Language models can learn implicit multi-hop reasoning, but only if they have lots of training data

Publication date

2025-11

Authors

Yao, Yuekun
Du, YupeiISNI 0000000493058809
Zhu, Dawei
Hahn, Michael
Koller, Alexander

Editors

Christodoulopoulos, Christos
Chakraborty, Tanmoy
Rose, Carolyn
Peng, Violet

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

No license information available

Abstract

Implicit reasoning is the ability of a language model to solve multi-hop reasoning tasks in a single forward pass, without chain of thought. We investigate this capability using GPT2-style language models trained from scratch on controlled k-hop reasoning datasets (k = 2, 3, 4). We show that while such models can indeed learn implicit k-hop reasoning, the required training data grows exponentially in k, and the required number of transformer layers grows linearly in k. We offer a theoretical explanation for why this depth growth is necessary. We further find that the data requirement can be mitigated, but not eliminated, through curriculum learning.

Keywords

Computational Theory and Mathematics, Computer Science Applications, Information Systems, Linguistics and Language

Citation

Yao, Y, Du, Y, Zhu, D, Hahn, M & Koller, A 2025, Language models can learn implicit multi-hop reasoning, but only if they have lots of training data. in C Christodoulopoulos, T Chakraborty, C Rose & V Peng (eds), EMNLP 2025 - 2025 Conference on Empirical Methods in Natural Language Processing, Proceedings of the Conference. EMNLP 2025 - 2025 Conference on Empirical Methods in Natural Language Processing, Proceedings of the Conference, Association for Computational Linguistics (ACL), pp. 9684-9702, 30th Conference on Empirical Methods in Natural Language Processing, EMNLP 2025, Suzhou, China, 4/11/25. https://doi.org/10.18653/v1/2025.emnlp-main.490, conference