Do Larger Language Models Generalize Better? A Scaling Law for Implicit Reasoning at Pretraining Time

Xinyi Wang, Shawn Tan, Shenbo Xu, Mingyu Jin, William Yang Wang +2 more
4/4/2025
cs.AIcs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Reasoning is an integral part of many tasks performed by language models (LMs). However, the effects of scaling model sizes and data on reasoning abilities at pretraining time remain understudied. To rigorously investigate this problem, we pretrain LMs from scratch on a synthetic implicit multihop reasoning environment designed to closely replicate the structure and distribution of real-world large-scale knowledge graphs. We then assess the LMs' ability to complete the missing edges in the graph, which requires multi-hop reasoning that can be viewed as a simplification of implicit reasoning during real-world pretraining. Interestingly, we observe that overparameterization can impair the implicit reasoning performance due to excessive memorization. We investigate different factors that affect the loss curve when scaling different components of the knowledge graph, model size, and training steps. To predict the optimal model size for a specific knowledge graph, we find an empirical scaling law that shows optimal-sized LMs can approximately reason over 0.008 bit information per parameter. This work shows counterintuitive effects of model size scaling and provides new insights into the relationship between scaling and reasoning in LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025larger,
  title  = {Do Larger Language Models Generalize Better? A Scaling Law for Implicit Reasoning at Pretraining Time},
  author = {Xinyi Wang and Shawn Tan and Shenbo Xu and Mingyu Jin and William Yang Wang and Rameswar Panda and Yikang Shen},
  year   = {2025},
  eprint = {2504.03635},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.03635v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.03635.svg)](https://codeofpaper.com/paper/2504.03635)

Discussion