SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.23042 · ICLR · 2025

Toward Understanding In-context vs. In-weight Learning

Dale Schuurmans, András György, Xinyi Chen, Bryan Chan

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2410.23042.json · badge: /api/ran/2410.23042.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
chanb/icl_vs_iwl canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
get_param_mask_by_name Ran
ran; our contract draft was wrong, not the code
chanb/icl_vs_iwl/src/optimizer.py
pointer only (licence: NONE) · get_code("2548c37cb3dcc6e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

identity Ran
ran, honoured the contract we drafted
chanb/icl_vs_iwl/src/models.py
pointer only (licence: NONE); the stored copy get_code serves, from dholzmueller/universal_double_descent, is pointer only (licence: NONE) · get_code("9910e2fc297f8665")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

l2_norm Ran
ran, honoured the contract we drafted
chanb/icl_vs_iwl/src/learner.py
pointer only (licence: NONE) · get_code("e6ee54b3ae1accdc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

linear_warmup_sqrt_decay Ran
ran; our contract draft was wrong, not the code
chanb/icl_vs_iwl/src/optimizer.py
pointer only (licence: NONE) · get_code("b3094ed7367fd8a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

load_config Ran
ran; our contract draft was wrong, not the code
chanb/icl_vs_iwl/src/utils.py
pointer only (licence: NONE) · get_code("c2941847c7ff001c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

make_h Ran
ran; our contract draft was wrong, not the code
chanb/icl_vs_iwl/src/models.py
pointer only (licence: NONE) · get_code("91a98277e57a16bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

parse_dict Ran
ran; our contract draft was wrong, not the code
chanb/icl_vs_iwl/src/utils.py
pointer only (licence: NONE) · get_code("4f481719630f7b96")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

print_performance_with_aux Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chanb/icl_vs_iwl/experiments/utils.py
pointer only (licence: NONE) · get_code("381775abc41222b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

evaluate Not yet run
unverified (harvested, no recorded run)
chanb/icl_vs_iwl/experiments/utils.py
pointer only (licence: NONE) · get_code("3530bb7a687ad762")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

get_preds_labels Not yet run
unverified (harvested, no recorded run)
chanb/icl_vs_iwl/experiments/utils.py
pointer only (licence: NONE) · get_code("e1259466c139acd0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

get_scheduler Not yet run
unverified (harvested, no recorded run)
chanb/icl_vs_iwl/src/optimizer.py
pointer only (licence: NONE) · get_code("75fa073f0c5c3557")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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.

prepare_seqs_for_icl Not yet run
unverified (harvested, no recorded run)
chanb/icl_vs_iwl/src/dataset.py
pointer only (licence: NONE) · get_code("85b5f412d531bc19")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chanb/icl_vs_iwl 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 11 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
identity 69 other papers
57 dated earlier, 2 the same month, 10 later · 5 only as an assembly brick
1706.07296 (2017-06)
A Minimal Developmental Model Can Increase Evolvability in Soft Robots
1802.09419 (2018-02)
Stochastic Hyperparameter Optimization through Hypernetworks
1804.06055 (2018-04)
Co-occurrence Feature Learning from Skeleton Data for Action Recognition and Detection with Hierarchical Aggregation
and 66 more not named here

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-23.

Repositories linked to this paper

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

Abstract

It has recently been demonstrated empirically that in-context learning emerges in transformers when certain distributional properties are present in the training data, but this ability can also diminish upon further training. We provide a new theoretical understanding of these phenomena by identifying simplified distributional properties that give rise to the emergence and eventual disappearance of in-context learning. We do so by first analyzing a simplified model that uses a gating mechanism to choose between an in-weight and an in-context predictor. Through a combination of a generalization error and regret analysis we identify conditions where in-context and in-weight learning emerge. These theoretical findings are then corroborated experimentally by comparing the behaviour of a full transformer on the simplified distributions to that of the stylized model, demonstrating aligned results. We then extend the study to a full large language model, showing how fine-tuning on various collections of natural language prompts can elicit similar in-context and in-weight learning behaviour. * Equal contribution.

For agents

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

get_harvested_code_for_paper("2410.23042")
get_code_for_paper("2410.23042")
have("2410.23042")

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

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

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

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

Connect an agent — have() is free.