atlas

Research map / Learning theory and algorithms / Combinatorial and search optimization

Tropical Attention: Neural Algorithmic Reasoning for Combinatorial Algorithms

NeurIPS 2025 · Learning theory and algorithms › Combinatorial and search optimization · approach: Differentiable and symbolic reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Tropical Attention, which replaces softmax dot-product attention with max-plus scoring based on the tropical Hilbert metric, and tests it on combinatorial and NP-hard algorithmic reasoning tasks for OOD length, value, and noise generalization.

Problem

Softmax attention produces dispersed, smooth decision boundaries and fails to generalize out-of-distribution (length, value, noise) on combinatorial and dynamic-programming algorithmic reasoning tasks.

Approach

Lift queries, keys, and values into tropical projective space and compute attention scores with the negative tropical Hilbert projective metric, aggregating with a max-plus matrix-vector product, so the attention is piecewise-linear, 1-Lipschitz, and temperature-free.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace softmax attention with Tropical AttentionTransformer · Combinatorial tasks, Length OODMicro-F1 / MSEHelped
Replace softmax attention with Tropical AttentionTransformer · Quickselect, Value OODMicro-F1: 74.30\std{1.99} -> 71.10\std{3.11}Hurt
Replace softmax attention with Tropical AttentionTransformer · SCC, Value OODMicro-F1: 81.38\std{2.62} -> 74.86\std{5.01}Hurt
Replace softmax attention with Tropical AttentionTransformer · BalancedPartition, Value OODMicro-F1: 63.40\std{4.29} -> 55.76\std{5.63}Hurt
Replace softmax attention with Tropical AttentionTransformer · 3SUM, Value OODMicro-F1: 26.25\std{3.50} -> 22.00\std{2.16}Hurt
Replace softmax attention with Tropical AttentionTransformer · SCC, Perturbative NoiseMicro-F1: 71.33\std{1.96} -> 69.86\std{4.17}Hurt
Replace softmax attention with Tropical AttentionTransformer · LRA averageaccuracy: 86.25 -> 72.79Mixed
Use Tropical Transformer instead of Universal Transformer with ACTTransformer · All tasksinference time: 3\times-$9\times fasterHelped
Use Tropical Transformer instead of Universal Transformer with ACTTransformer · All tasksparameter count: 20\% fewer parametersHelped

Surprising findings

Limitations

Experimental setup

Datasets: Floyd-Warshall synthetic graphs QuickSelect synthetic 3SUM synthetic Subset-Sum synthetic Balanced Partition synthetic 0-1 Knapsack synthetic Fractional Knapsack synthetic Convex Hull synthetic SCC synthetic Bin Packing synthetic Minimum Coin Change synthetic Long Range Arena

Benchmarks: eleven custom combinatorial tasks (length OOD, value OOD, perturbative noise) Long Range Arena (ListOps, Text, Retrieval, Image, Pathfinder)

Metrics: Micro-F1 MSE accuracy inference time (ms) parameter count

Baselines: Vanilla softmax Transformer Adaptive softmax attention Universal Transformer with ACT Transformer Longformer Linformer Performer MEGA Fourierformer

Builds on: Universal Transformer adaptive softmax attention Long Range Arena CLRS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy