SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.16298 · 2023

At Which Training Stage Does Code Data Help LLMs Reasoning?

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2309.16298.json · badge: /api/ran/2309.16298.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yingweima2022/codellm canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
convert_text_to_ids Ran
ran, honoured the contract we drafted
yingweima2022/codellm/src/generate.py
pointer only (licence: NONE) · get_code("ba31aa28df517100")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

divideIntoNstrand Ran
ran; our contract draft was wrong, not the code
yingweima2022/codellm/process_multi_level.py
pointer only (licence: NONE); the stored copy get_code serves, from DanJun6737/TopoFR, is pointer only (licence: NONE) · get_code("2da848988b60d9cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gather Ran
ran, violated the contract we drafted
yingweima2022/codellm/src/generate.py
pointer only (licence: NONE) · get_code("a43454e73b20e26c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_input_data_batch_slice_map Ran
ran; our contract draft was wrong, not the code
yingweima2022/codellm/src/dataset.py
pointer only (licence: NONE) · get_code("f6086c3d6ab0cde0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_input_data_batch_slice_map1 Ran
ran; our contract draft was wrong, not the code
yingweima2022/codellm/src/dataset.py
pointer only (licence: NONE) · get_code("0e9b480c03a3d45b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_jsonl_files Ran
ran; our contract draft was wrong, not the code
yingweima2022/codellm/process_multi_level.py
pointer only (licence: NONE) · get_code("c5e39df8dfefe276")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

set_weight_decay Ran
ran; our contract draft was wrong, not the code
yingweima2022/codellm/instruction_following.py
pointer only (licence: NONE) · get_code("f12f9486ba2960e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_loss Not yet run
unverified (harvested, no recorded run)
yingweima2022/codellm/src/generate.py
pointer only (licence: NONE) · get_code("9b45cbca36a0a377")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yingweima2022/codellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 2 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
divideIntoNstrand 4 other papers
2 dated earlier, 2 later
1801.07698 (2018-01)
ArcFace: Additive Angular Margin Loss for Deep Face Recognition
aaai_20057 (2022 (year only))
FedFR: Joint Optimization Federated Framework for Generic and Personalized Face Recognition
2410.10587 (2024-10)
TopoFR: A Closer Look at Topology Alignment on Face Recognition
and 1 more not named here
set_weight_decay 3 other papers
1 dated earlier, 1 the same month, 1 later
2303.17568 (2023-03)
CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-X
2309.02772 (2023-09)
Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models
aaai_27798 (2024 (year only))
Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs) have exhibited remarkable reasoning capabilities and become the foundation of language technologies. Inspired by the great success of code data in training LLMs, we naturally wonder at which training stage introducing code data can really help LLMs reasoning. To this end, this paper systematically explores the impact of code data on LLMs at different stages. Concretely, we introduce the code data at the pre-training stage, instruction-tuning stage, and both of them, respectively. Then, the reasoning capability of LLMs is comprehensively and fairly evaluated via six reasoning tasks in five domains. We critically analyze the experimental results and provide conclusions with insights. First, pre-training LLMs with the mixture of code and text can significantly enhance LLMs' general reasoning capability almost without negative transfer on other tasks. Besides, at the instruction-tuning stage, code data endows LLMs the task-specific reasoning capability. Moreover, the dynamic mixing strategy of code and text data assists LLMs to learn reasoning capability step-by-step during training. These insights deepen the understanding of LLMs regarding reasoning ability for their application, such as scientific question answering, legal support, etc. The source code and model parameters are released at the link:~\url{https://github.com/yingweima2022/CodeLLM}.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2309.16298")
get_code_for_paper("2309.16298")
have("2309.16298")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2309.16298.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2309.16298.svg)](https://syntology.ai/paper/2309.16298)

Connect an agent — have() is free.