Tropical Attention: Neural Algorithmic Reasoning for Combinatorial Algorithms
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
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2018Universal Transformerscited by 647
- 2022Mega: Moving Average Equipped Gated Attentioncited by 179
- 2024The Real Tropical Geometry of Neural Networkscited by 24
- 2024On the Resurgence of Recurrent Models for Long Sequences -- Survey and Research Opportunities in the Transformer Eracited by 17
- 2018Capacitated Dynamic Programming: Faster Knapsack and Graph Algorithmscited by 4
- 2022Transformer with Fourier Integral Attentionscited by 2
- 2023Faster 0-1-Knapsack via Near-Convex Min-Plus-Convolutioncited by 1
Built on by
Citing papers per year: 2025: 3; 2026: 9.
12 papers.
- 2026AutoSOTA: An End-to-End Automated Research System for State-of-the-Art AI Model Discoverycited by 23
- 2025Quantitative Bounds for Length Generalization in Transformerscited by 8
- 2026Free Energy Mixercited by 2
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Taskscited by 2
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problemscited by 1
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformerscited by 1
- 2026Geometric Capacity of Transformers: A Tropical Geometry Perspectivecited by 1
- 2026Classifiers in High Dimensional Hilbert Metricscited by 0
- 2026Phylogenetic Tree Inference with Tropical Axial Attentioncited by 0
- 2026A Symbolic Neural CPU for Quantization-Simulated Writeback and Interpretable Program Executioncited by 0
- 2026Laguerre Geometry for Interpreting Large Language Modelscited by 0
- 2026On the Representational Geometry of Dynamic Programscited by 0
- 2026On the Representational Geometry of Dynamic Programs25 Aug 2026
- 2026Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks20 Jul 2026
- 2026Laguerre Geometry for Interpreting Large Language Models12 Jul 2026
- 2026A Symbolic Neural CPU for Quantization-Simulated Writeback and Interpretable Program Execution10 Jul 2026
- 2026Phylogenetic Tree Inference with Tropical Axial Attention12 May 2026
- 2026Geometric Capacity of Transformers: A Tropical Geometry Perspective16 Apr 2026
- 2026AutoSOTA: An End-to-End Automated Research System for State-of-the-Art AI Model Discovery7 Apr 2026
- 2026Free Energy Mixer6 Feb 2026
- 2026Classifiers in High Dimensional Hilbert Metrics19 Jan 2026
- 2025HATSolver: Learning Groebner Bases with Hierarchical Attention Transformers9 Dec 2025
- 2025Quantitative Bounds for Length Generalization in Transformers30 Oct 2025
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems17 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026The Geometry of Thought: Disclosing the Transformer as a Tropical Polynomial Circuit
- 2023Infusing Lattice Symmetry Priors in Attention Mechanisms for Sample-Efficient Abstract Geometric Reasoning
- 2025Attend or Perish: Benchmarking Attention in Algorithmic Reasoning
- 2026Reasoning on the Simplex: Geometric Fixed-Point Models
- 2026Dense Neuro-Symbolic Reasoning in a Unified Geometry State
- 2026Sparsity is Combinatorial Depth: Quantifying MoE Expressivity via Tropical Geometry
- 2024Reasoning Algorithmically in Graph Neural Networks
- 2024Reasoning in Large Language Models: A Geometric Perspective