mlsanityData to 14 Oct 2026

Tropical Attention: Neural Algorithmic Reasoning for Combinatorial Algorithms

arXiv 2505.17190 ↗First posted 22 May 2025cs.LG math.AG math.COcited by 12

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

Can algebraic geometry enhance the sharpness, robustness, and interpretability of modern neural reasoning models by equipping them with a mathematically grounded inductive bias? To answer this, we introduce Tropical Attention, an attention mechanism grounded in tropical geometry that lifts the attention kernel into tropical projective space, where reasoning is piecewise-linear and 1-Lipschitz, thus preserving the polyhedral decision structure inherent to combinatorial reasoning. We prove that Multi-Head Tropical Attention (MHTA) stacks universally approximate tropical circuits and realize tropical transitive closure through composition, achieving polynomial resource bounds without invoking recurrent mechanisms. These guarantees explain why the induced polyhedral decision boundaries remain sharp and scale-invariant, rather than smoothed by Softmax. Empirically, we show that Tropical Attention delivers stronger out-of-distribution generalization in both length and value, with high robustness against perturbative noise, and substantially faster inference with fewer parameters compared to Softmax-based and recurrent attention baselines. For the first time, we extend neural algorithmic reasoning beyond PTIME problems to NP-hard and NP-complete problems, paving the way toward sharper and more expressive Large Reasoning Models (LRMs) capable of tackling complex combinatorial challenges in phylogenetics, cryptography, particle physics, and mathematical discovery.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 10 of its 77 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

10 of 77 references.

References · 10

  1. 2020Longformer: The Long-Document Transformercited by 3,413
  2. 2020Rethinking Attention with Performerscited by 1,601
  3. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  4. 2018Universal Transformerscited by 647
  5. 2022Mega: Moving Average Equipped Gated Attentioncited by 179
  6. 2024The Real Tropical Geometry of Neural Networkscited by 24
  7. 2024On the Resurgence of Recurrent Models for Long Sequences -- Survey and Research Opportunities in the Transformer Eracited by 17
  8. 2018Capacitated Dynamic Programming: Faster Knapsack and Graph Algorithmscited by 4
  9. 2022Transformer with Fourier Integral Attentionscited by 2
  10. 2023Faster 0-1-Knapsack via Near-Convex Min-Plus-Convolutioncited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 9.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026The Geometry of Thought: Disclosing the Transformer as a Tropical Polynomial Circuit
  2. 2023Infusing Lattice Symmetry Priors in Attention Mechanisms for Sample-Efficient Abstract Geometric Reasoning
  3. 2025Attend or Perish: Benchmarking Attention in Algorithmic Reasoning
  4. 2026Reasoning on the Simplex: Geometric Fixed-Point Models
  5. 2026Dense Neuro-Symbolic Reasoning in a Unified Geometry State
  6. 2026Sparsity is Combinatorial Depth: Quantifying MoE Expressivity via Tropical Geometry
  7. 2024Reasoning Algorithmically in Graph Neural Networks
  8. 2024Reasoning in Large Language Models: A Geometric Perspective