SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.07546 · 2024

Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning

arXiv · PDF · Open in the Atlas

Code that ran

20 of 24 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, 12 violated it and 1 has no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2404.07546.json · badge: /api/ran/2404.07546.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
ruyue0001/decompose_icl_improvement canonical (classifier label)
classifier basis: census
20 ran · 4 no recorded run
FunctionStatusWhere it lives
SARIngram Ran
ran on a synthesized input
ruyue0001/decompose_icl_improvement/sari.py
pointer only (licence: NONE) · get_code("aed9f558bc97e642")
How it ran

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

corpus_bleu1 Ran
ran, honoured the contract we drafted
ruyue0001/decompose_icl_improvement/handle_generation.py
pointer only (licence: NONE) · get_code("1eeea749ec1a866b")
How it ran

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

corpus_bleu2 Ran
ran, honoured the contract we drafted
ruyue0001/decompose_icl_improvement/handle_generation.py
pointer only (licence: NONE) · get_code("a569a12d62394751")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ruyue0001/decompose_icl_improvement 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_generation_demo Ran
ran; our contract draft was wrong, not the code
ruyue0001/decompose_icl_improvement/prepare_prompt.py
pointer only (licence: NONE) · get_code("67237d6d80179fce")
How it ran

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

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ruyue0001/decompose_icl_improvement 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_ner Ran
ran; our contract draft was wrong, not the code
ruyue0001/decompose_icl_improvement/txt2jsonl.py
pointer only (licence: NONE) · get_code("62d9ca729ee37577")
How it ran

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

is_business Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/ag_news.py
pointer only (licence: NONE) · get_code("116f6785089f9155")
How it ran

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

is_entailment Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/glue_rte.py
pointer only (licence: NONE) · get_code("0a551c743a828127")
How it ran

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

is_equivalent Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/medical_question.py
pointer only (licence: NONE) · get_code("1e19118ef42994b1")
How it ran

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

is_hate Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/hs18.py
pointer only (licence: NONE) · get_code("29e820b828a67c24")
How it ran

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

is_mistral_entailment Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/glue_rte.py
pointer only (licence: NONE) · get_code("48fbfe608a52528c")
How it ran

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

is_mistral_in_space Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/hs18.py
pointer only (licence: NONE) · get_code("856747dbbfe12a77")
How it ran

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

is_mistral_in_space Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/medical_question.py
pointer only (licence: NONE) · get_code("09ad6407d9101378")
How it ran

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

is_non_entailment Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/glue_rte.py
pointer only (licence: NONE) · get_code("7b0e33bf8239b9a6")
How it ran

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

is_non_equivalent Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/medical_question.py
pointer only (licence: NONE) · get_code("870e69d4013fee2e")
How it ran

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

is_non_hate Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/hs18.py
pointer only (licence: NONE) · get_code("851700f22f8e29c6")
How it ran

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

is_sci_tech Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/ag_news.py
pointer only (licence: NONE) · get_code("2ba2e8163bc35f7a")
How it ran

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

is_sports Ran
ran, violated the contract we drafted
ruyue0001/decompose_icl_improvement/post_process/ag_news.py
pointer only (licence: NONE) · get_code("4bd4c4a432070b96")
How it ran

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

match_original_query Ran
ran; our contract draft was wrong, not the code
ruyue0001/decompose_icl_improvement/txt2jsonl.py
pointer only (licence: NONE) · get_code("db76713faf3d599e")
How it ran

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

match_original_query_ner Ran
ran; our contract draft was wrong, not the code
ruyue0001/decompose_icl_improvement/txt2jsonl.py
pointer only (licence: NONE) · get_code("b6a80eaa186a1dd7")
How it ran

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

ReadInFile Not yet run
unverified (harvested, no recorded run)
ruyue0001/decompose_icl_improvement/sari.py
pointer only (licence: NONE) · get_code("35effb67911bfd9a")
How it ran

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

SARIsent Not yet run
unverified (harvested, no recorded run)
ruyue0001/decompose_icl_improvement/sari.py
pointer only (licence: NONE) · get_code("a739e4c44244f1e2")
How it ran

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

create_demo_ner Not yet run
unverified (harvested, no recorded run)
ruyue0001/decompose_icl_improvement/prepare_prompt.py
pointer only (licence: NONE) · get_code("70cb606f6be4b0c5")
How it ran

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

loader Not yet run
unverified (harvested, no recorded run)
ruyue0001/decompose_icl_improvement/generate_icl_retrieval.py
pointer only (licence: NONE) · get_code("c951a5a9d203c637")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ruyue0001/decompose_icl_improvement 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 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 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 24 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-22.

Repositories linked to this paper

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

Abstract

In-context Learning (ICL) has emerged as a powerful capability alongside the development of scaled-up large language models (LLMs). By instructing LLMs using few-shot demonstrative examples, ICL enables them to perform a wide range of tasks without updating millions of parameters. However, the precise contributions of demonstrations towards improving end-task performance have not been thoroughly investigated in recent analytical studies. In this paper, we empirically decompose the overall performance of ICL into three dimensions, label space, format, and discrimination, and we evaluate four general-purpose LLMs across a diverse range of tasks. Counter-intuitively, we find that the demonstrations have a marginal impact on provoking discriminative knowledge of language models. However, ICL exhibits significant efficacy in regulating the label space and format, which helps LLMs respond to desired label words. We then demonstrate that this ability functions similar to detailed instructions for LLMs to follow. We additionally provide an in-depth analysis of the mechanism of retrieval helping with ICL. Our findings demonstrate that retrieving the semantically similar examples notably boosts the model's discriminative capability. However, we also observe a trade-off in selecting good in-context examples regarding label diversity.

For agents

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

get_harvested_code_for_paper("2404.07546")
get_code_for_paper("2404.07546")
have("2404.07546")

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

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

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

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

Connect an agent — have() is free.