Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selection (Journal of Machine Learning Research, 2026)