Decoding Path Recovery in Number Generation: Shifting to Intermediate Layers and Top-k Ranks

Jasivan Alex Sivakumar, Nafise Sadat Moosavi


Abstract

Existing work on numerical reasoning typically interprets incorrect outputs as failures of representation or computation. We instead study the recoverability of numerical errors: whether a correct answer remains accessible when considering a model’s intermediate layers or lower-ranked tokens despite an incorrect final output. Across eight open-source language models, we find that on average 30% of arithmetic failures remain recoverable beyond standard decoding, indicating that some numerical errors arise from selecting the wrong token rather than failing to compute it altogether. However, this recoverability is not universal. As arithmetic complexity increases, the correct answer progressively disappears not only from the model’s final prediction but also from alternative candidates and intermediate computations, revealing the limits of decoding-based recovery. Finally, we show that recoverable and unrecoverable failures exhibit distinct predictive dynamics with regard to probability and rank behaviour in intermediate layers, providing insight into when interventions such as adaptive decoding or post-generation correction are likely to succeed. Overall, our findings characterise both the opportunities and limitations of exploiting latent numerical information during generation.

Anthology ID:
2026.inlg-long.46
Volume:
Proceedings of the 19th International Natural Language Generation Conference: Long Papers
Month:
October
Year:
2026
Address:
Utrecht, The Netherlands
Editors:
Guanyi Chen, Laura Perez-Beltrachini, Emiel van Miltenburg
Venue:
INLG
SIG:
SIGGEN
Publisher:
Association for Computational Linguistics
Note:
Pages:
814–829
Language:
URL:
https://aclanthology.org/2026.inlg-long.46/
DOI:
Bibkey:
Cite (ACL):
Jasivan Alex Sivakumar and Nafise Sadat Moosavi. 2026. Decoding Path Recovery in Number Generation: Shifting to Intermediate Layers and Top-k Ranks. In Proceedings of the 19th International Natural Language Generation Conference: Long Papers, pages 814–829, Utrecht, The Netherlands. Association for Computational Linguistics.
Cite (Informal):
Decoding Path Recovery in Number Generation: Shifting to Intermediate Layers and Top-k Ranks (Sivakumar & Moosavi, INLG 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.inlg-long.46.pdf