SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.04318 · 2024

Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

12 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2409.04318.json · badge: /api/ran/2409.04318.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
HLR/LvsR-LLM canonical (classifier label)
classifier basis: census
12 ran · 0 no recorded run
FunctionStatusWhere it lives
create_IO_example Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/utils.py
pointer only (licence: NONE) · get_code("a7103037fea193cf")
How it ran

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

create_file_name Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/utils.py
pointer only (licence: NONE) · get_code("2d0a9726e7f08256")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HLR/LvsR-LLM 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_model Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/Datasets/model_training.py
pointer only (licence: NONE) · get_code("ee73f674640a4661")
How it ran

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

generate_random_chance_of_admission Ran
ran, honoured the contract we drafted
HLR/LvsR-LLM/Datasets/utils.py
pointer only (licence: NONE) · get_code("bd90d7e0a54821fe")
How it ran

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

generate_random_charges_usedcar Ran
ran, honoured the contract we drafted
HLR/LvsR-LLM/Datasets/utils.py
pointer only (licence: NONE) · get_code("81ffacf0b35b7f76")
How it ran

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

generate_random_output Ran
ran, honoured the contract we drafted
HLR/LvsR-LLM/utils.py
pointer only (licence: NONE) · get_code("887a84fd93372282")
How it ran

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

generate_random_output Ran
ran, honoured the contract we drafted
HLR/LvsR-LLM/Datasets/utils.py
pointer only (licence: NONE) · get_code("05223f06301a425a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HLR/LvsR-LLM 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_drop_list Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/Datasets/model_training.py
pointer only (licence: NONE) · get_code("f7a371212c0b807c")
How it ran

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

preprocess_usedcars Ran
ran, honoured the contract we drafted
HLR/LvsR-LLM/Datasets/data_preprocessing.py
pointer only (licence: NONE) · get_code("2b74fb1168aa2682")
How it ran

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

process_admission_chance Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/reader.py
pointer only (licence: NONE) · get_code("3494677b1e2970bc")
How it ran

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

process_insurance_cost Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/reader.py
pointer only (licence: NONE) · get_code("a49115e866e69018")
How it ran

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

read_dataset Ran
ran; our contract draft was wrong, not the code
HLR/LvsR-LLM/reader.py
pointer only (licence: NONE) · get_code("03675993a6b6403b")
How it ran

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

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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

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

Generative Large Language Models (LLMs) are capable of being in-context learners. However, the underlying mechanism of in-context learning (ICL) is still a major research question, and experimental research results about how models exploit ICL are not always consistent. In this work, we propose a framework for evaluating in-context learning mechanisms, which we claim are a combination of retrieving internal knowledge and learning from in-context examples by focusing on regression tasks. First, we show that LLMs can solve real-world regression problems and then design experiments to measure the extent to which the LLM retrieves its internal knowledge versus learning from in-context examples. We argue that this process lies on a spectrum between these two extremes. We provide an in-depth analysis of the degrees to which these mechanisms are triggered depending on various factors, such as prior knowledge about the tasks and the type and richness of the information provided by the in-context examples. We employ three LLMs and utilize multiple datasets to corroborate the robustness of our findings. Our results shed light on how to engineer prompts to leverage meta-learning from in-context examples and foster knowledge retrieval depending on the problem being addressed.

For agents

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

get_harvested_code_for_paper("2409.04318")
get_code_for_paper("2409.04318")
have("2409.04318")

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

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

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

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

Connect an agent — have() is free.