Saved in:
Bibliographic Details
Main Authors: Alberghi, Riccardo, Demyanenko, Elizaveta, Biggio, Luca, Saglietti, Luca
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.05362
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912682419945472
author Alberghi, Riccardo
Demyanenko, Elizaveta
Biggio, Luca
Saglietti, Luca
author_facet Alberghi, Riccardo
Demyanenko, Elizaveta
Biggio, Luca
Saglietti, Luca
contents Recent advances in natural language processing highlight two key factors for improving reasoning in large language models (LLMs): (i) allocating more test-time compute tends to help on harder problems but often introduces redundancy in the reasoning trace, and (ii) compute is most effective when reasoning is systematic and incremental, forming structured chains of thought (CoTs) akin to human problem-solving. To study these factors in isolation, we introduce a controlled setting based on shortest-path tasks in layered graphs. We train decoder-only transformers on question-trace-answer triples using a custom tokenizer, comparing models trained on optimal bottom-up dynamic programming traces with those trained on longer, valid traces involving backtracking. Surprisingly, with the same training-token budget, models trained on inefficient traces generalize better to unseen graphs. This benefit is not due to length alone-injecting arbitrary redundancy into reasoning traces fails to help and can even hurt performance. Instead, we find that generalization correlates with the model's confidence in next-token prediction, suggesting that long, coherent, and locally incremental traces make the training signal easier to optimize.
format Preprint
id arxiv_https___arxiv_org_abs_2507_05362
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle On the Bias of Next-Token Predictors Toward Systematically Inefficient Reasoning: A Shortest-Path Case Study
Alberghi, Riccardo
Demyanenko, Elizaveta
Biggio, Luca
Saglietti, Luca
Computation and Language
Artificial Intelligence
Machine Learning
Recent advances in natural language processing highlight two key factors for improving reasoning in large language models (LLMs): (i) allocating more test-time compute tends to help on harder problems but often introduces redundancy in the reasoning trace, and (ii) compute is most effective when reasoning is systematic and incremental, forming structured chains of thought (CoTs) akin to human problem-solving. To study these factors in isolation, we introduce a controlled setting based on shortest-path tasks in layered graphs. We train decoder-only transformers on question-trace-answer triples using a custom tokenizer, comparing models trained on optimal bottom-up dynamic programming traces with those trained on longer, valid traces involving backtracking. Surprisingly, with the same training-token budget, models trained on inefficient traces generalize better to unseen graphs. This benefit is not due to length alone-injecting arbitrary redundancy into reasoning traces fails to help and can even hurt performance. Instead, we find that generalization correlates with the model's confidence in next-token prediction, suggesting that long, coherent, and locally incremental traces make the training signal easier to optimize.
title On the Bias of Next-Token Predictors Toward Systematically Inefficient Reasoning: A Shortest-Path Case Study
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2507.05362