mlsanityData to 14 Oct 2026

From Shortcut Learning to Discrete Neural Insertion Sort

arXiv 2609.31114 ↗First posted 25 Sep 2026cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Neural algorithmic reasoning aims to train neural networks to follow known algorithms and generalize beyond the input sizes seen during training. However, correct final outputs and intermediate supervision do not necessarily show that a model follows the intended execution. We study this problem using insertion sort. Our analysis of the CLRS30 baseline NAR shows that the hint objective is weakly optimized and that hint accuracy remains low. Moreover, many intermediate representations can already be decoded into sorted sequences before the reference insertion-sort execution terminates, suggesting that the model learns a shortcut to the final output. Motivated by these findings, we introduce Discrete Neural Insertion Sort. Our model represents the sequence as a chain, separates scalar exchanges from control-state transitions, and projects node representations back to discrete states after every processor step. When trained only on sequences of length 16, the model achieves 100% sorted-sequence accuracy on sequences of length 64 and 128. However, an ablation shows that discretization and graph structure alone are insufficient: without additional supervision of the global inner-loop state, the model fails even at the training length. Our results show that discrete execution can support strong length generalization, while also highlighting the problem-specific inductive bias required to learn a faithful algorithmic execution.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 9 of its 13 references that are in the map. First posted on arXiv 25 Sep 2026.

Builds on

9 of 13 references.

References · 9

  1. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  2. 2019What Can Neural Networks Reason About?cited by 159
  3. 2021Neural Algorithmic Reasoningcited by 94
  4. 2020Neural Execution Engines: Learning to Execute Subroutinescited by 36
  5. 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 31
  6. 2024On the Markov Property of Neural Algorithmic Reasoning: Analyses and Methodscited by 11
  7. 2025Graph neural networks extrapolate out-of-distribution for shortest pathscited by 11
  8. 2024Discrete Neural Algorithmic Reasoningcited by 9
  9. 2023Latent Space Representations of Neural Algorithmic Reasonerscited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.