paper-with-me

Papers

Tropical Attention: Neural Algorithmic Reasoning for Combinatorial Algorithms

2025-05-22 · Baran Hashemi, Kurt Pasque, Chris Teska, Ruriko Yoshida

Dynamic programming (DP) algorithms for combinatorial optimization problems work with taking maximization, minimization, and classical addition in their recursion algorithms. The associated value functions correspond to convex polyhedra in the max plus semiring. Existing Neural Algorithmic Reasoning models, however, rely on softmax-normalized dot-product attention where the smooth exponential weighting blurs these sharp polyhedral structures and collapses when evaluated on out-of-distribution (OOD) settings. We introduce Tropical attention, a novel attention function that operates natively in the max-plus semiring of tropical geometry. We prove that Tropical attention can approximate tropical circuits of DP-type combinatorial algorithms. We then propose that using Tropical transformers enhances empirical OOD performance in both length generalization and value generalization, on algorithmic reasoning tasks, surpassing softmax baselines while remaining stable under adversarial attacks. We also present adversarial-attack generalization as a third axis for Neural Algorithmic Reasoning benchmarking. Our results demonstrate that Tropical attention restores the sharp, scale-invariant reasoning absent from softmax.

📄 PDF Abstract BibTeX arXiv:2505.17190

Code (0)

등록된 구현이 없습니다.

Tasks

Adversarial AttackBenchmarkingCombinatorial OptimizationMathematical ReasoningOut-of-Distribution Generalization

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Reasoning Algorithmically in Graph Neural Networks

2024-02-21 · Danilo Numeroso

The development of artificial intelligence systems with advanced reasoning capabilities represents a persistent and long-standing research question. Traditionally, the primary strategy to address this challenge involved …

Combinatorial OptimizationEdge ClassificationLogical Reasoning

Neural Algorithmic Reasoning for Combinatorial Optimisation

2023-05-18 · Dobrik Georgiev, Danilo Numeroso, Davide Bacciu, Pietro Liò

Solving NP-hard/complete combinatorial problems with neural networks is a challenging research area that aims to surpass classical approximate algorithms. The long-term objective is to outperform hand-designed heuristics…

Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers

2025-01-18 · Xiaoyu Li, YIngyu Liang, Jiangxuan Long, Zhenmei Shi 외

Looped Transformers have shown exceptional neural algorithmic reasoning capability in simulating traditional graph algorithms, but their application to more complex structures like hypergraphs remains underexplored. Hype…

Combinatorial Optimization

Expressivity of Transformers: A Tropical Geometry Perspective

2026-04-16 · Ye Su, Yong Liu arxiv

To quantify the geometric expressivity of transformers, we introduce a tropical geometry framework to characterize their exact spatial partitioning capabilities. By modeling self-attention as a vector-valued tropical rat…

Algorithmic Complexities in Backpropagation and Tropical Neural Networks

2021-01-03 · Ozgur Ceyhan

In this note, we propose a novel technique to reduce the algorithmic complexity of neural network training by using matrices of tropical real numbers instead of matrices of real numbers. Since the tropical arithmetics re…