atlas

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

Discrete Neural Algorithmic Reasoning

ICML 2025 · Learning theory and algorithms › Combinatorial and search optimization · approach: Constrained neural network optimization · 1 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 Discrete Neural Algorithmic Reasoners (DNAR) that keep execution states discrete via hard attention, discrete bottlenecks, and a separate discrete scalar-update module, achieving perfect out-of-distribution scores on SALSA-CLRS and CLRS-30 tasks.

Problem

Neural algorithmic reasoners generalize poorly out-of-distribution to larger graphs, because continuous internal computations drift under distribution shift, and their learned algorithms are hard to interpret or verify.

Approach

Force the processor to keep node and edge features in a finite set of discrete states using discrete bottlenecks and hard attention, separate continuous scalars from the state flow so they only affect attention priorities, and update scalars via discrete increment/keep/push operations selected by states.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use discrete neural reasoning with hint supervisionDNAR · SALSA-CLRS tasks at size 1600node- and graph-level accuracy: DNAR achieves 100. / 100. on BFS, DFS, SP, Prim, and MIS; PGN scores are 98.5 / 0.0, 23.1 / 0.0, 84.5 / 0.0, 66.8 / 0.0,Helped
use DNAR rather than the strongest reported baselineCLRS-30, size 64 · BFSnode-level accuracy: 99.96 ± 0.0 -> 100. ± 0.0Helped
use DNAR rather than the strongest reported baselineCLRS-30, size 64 · DFSnode-level accuracy: 100. ± 0.0 -> 100. ± 0.0No clear effect
use DNAR rather than the strongest reported baselineCLRS-30, size 64 · SPnode-level accuracy: 99.14 ± 0.1 -> 100. ± 0.0Helped
use DNAR rather than the strongest reported baselineCLRS-30, size 64 · Primnode-level accuracy: 95.19 ± 0.3 -> 100. ± 0.0Helped
remove all discrete bottlenecks (ablation)DNAR · SALSA-CLRS BFS, size 1600graph-level accuracy: 100. -> 0.0Hurt
replace hard attention with regular attention (ablation)DNAR · BFS on complete bipartite graphs, size 800 and 1600correct pointer attention weight: 0.97 (+) -> 0.86 (+) -> 0.76 (+) -> 0.38 (-) -> 0.24 (-)Hurt
replace discrete ScalarUpdate with a regular attention-based network (ablation)DNAR · SALSA-CLRS Dijkstra, size 1600node-level accuracy: 100. -> 11.8Hurt
replace discrete ScalarUpdate with a 2-layer addition MLP (ablation)DNAR · SALSA-CLRS Dijkstra, size 1600node-level accuracy: 100. -> 22.2Hurt
train without hint supervision (ablation)DNAR no-hint BFS model · BFS validation graphs, size 16node-level accuracy: 100. -> 94Hurt
train the proposed reasoner on smaller graphsDNAR · SALSA-CLRS Dijkstra, test size 160node-level accuracy: 13 -> 26 -> 100Mixed

Surprising findings

Limitations

Experimental setup

Datasets: SALSA-CLRS CLRS-30

Benchmarks: SALSA-CLRS CLRS-30

Metrics: node-level accuracy graph-level accuracy

Baselines: GIN Pointer Graph Network Triplet-GMPNN Hint-ReLIC G-ForgetNet

Builds on: CLRS-30 SALSA-CLRS Transformer Convolution Transformer Programs Gumbel-Softmax

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