Yutaka Matsuo, Qi Cao, Andrew Gambardella, Yusuke Iwasawa, Takeshi Kojima, Fumiya Uchiyama
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Recent large language models (LLMs) have demonstrated remarkable generalization abilities in mathematics and logical reasoning tasks. Prior research indicates that LLMs pre-trained with programming language data exhibit high mathematical and reasoning abilities; however, this causal relationship has not been rigorously tested. Our research aims to verify which programming languages and features during pre-training affect logical inference performance. Specifically, we pre-trained decoderbased language models from scratch using datasets from ten programming languages (e.g., Python, C, Java) and three natural language datasets (Wikipedia, Fineweb, C4) under identical conditions. Thereafter, we evaluated the trained models in a few-shot in-context learning setting on logical reasoning tasks: FLD and bAbi, which do not require commonsense or world knowledge. The results demonstrate that nearly all models trained with programming languages consistently outperform those trained with natural languages, indicating that programming languages contain factors that elicit logic inference performance. In addition, we found that models trained with programming languages exhibit a better ability to follow instructions compared to those trained with natural languages. Further analysis reveals that the depth of Abstract Syntax Trees representing parsed results of programs also affects logical reasoning performance. These findings will offer insights into the essential elements of pretraining for acquiring the foundational abilities of LLMs. 1
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2410.06735")
get_code_for_paper("2410.06735")
have("2410.06735")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2410.06735.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2410.06735)
Connect an agent — have() is free.