SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.03662 · 2024

The representation landscape of few-shot learning and fine-tuning in large language models

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 3 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 7 failures of our instrument; 2 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.03662.json · badge: /api/ran/2409.03662.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
diegodoimo/geometry_icl_finetuning canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_accuracy Ran
ran; our contract draft was wrong, not the code
diegodoimo/geometry_icl_finetuning/finetune.py
pointer only (licence: NONE) · get_code("b16d252479c798a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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_distances Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
diegodoimo/geometry_icl_finetuning/extraction/pairwise_distances.py
pointer only (licence: NONE) · get_code("d371140435e592be")
How it ran

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

find_grad_accumulation_steps Ran
ran, honoured the contract we drafted
diegodoimo/geometry_icl_finetuning/utils/helpers_finetune.py
pointer only (licence: NONE) · get_code("95c7235973fc3b16")
How it ran

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

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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_dataloader Ran
ran on a synthesized input
diegodoimo/geometry_icl_finetuning/utils/dataloader_utils.py
pointer only (licence: NONE) · get_code("07ca7bcd15827c80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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_embdims Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
diegodoimo/geometry_icl_finetuning/extraction/helpers.py
pointer only (licence: NONE) · get_code("7c5a7b161c7346f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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_max_memory_allocated Ran
ran, honoured the contract we drafted
diegodoimo/geometry_icl_finetuning/utils/helpers_finetune.py
pointer only (licence: NONE) · get_code("1262b68c811b4637")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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_max_memory_reserved Ran
ran, honoured the contract we drafted
diegodoimo/geometry_icl_finetuning/utils/helpers_finetune.py
pointer only (licence: NONE) · get_code("364acf45a359d615")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
diegodoimo/geometry_icl_finetuning/utils/model_utils.py
pointer only (licence: NONE) · get_code("7909a9fdbd3ff24a")
How it ran

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

measure_performance Ran
ran; our contract draft was wrong, not the code
diegodoimo/geometry_icl_finetuning/extraction/helpers.py
pointer only (licence: NONE) · get_code("1821e57029eddbc2")
How it ran

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

return_label_overlap Ran
ran; our contract draft was wrong, not the code
diegodoimo/geometry_icl_finetuning/analysis/utils.py
pointer only (licence: NONE) · get_code("9a349d02a69bd59f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, diegodoimo/geometry_icl_finetuning 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)
diegodoimo/geometry_icl_finetuning/finetune.py
pointer only (licence: NONE) · get_code("4e34b8e1dddc6b87")
How it ran

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

lambda_fn Not yet run
unverified (harvested, no recorded run)
diegodoimo/geometry_icl_finetuning/extract_repr.py
pointer only (licence: NONE) · get_code("e9bf2efd0ef0239a")
How it ran

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

In-context learning (ICL) and supervised fine-tuning (SFT) are two common strategies for improving the performance of modern large language models (LLMs) on specific tasks. Despite their different natures, these strategies often lead to comparable performance gains. However, little is known about whether they induce similar representations inside LLMs. We approach this problem by analyzing the probability landscape of their hidden representations in the two cases. More specifically, we compare how LLMs solve the same question-answering task, finding that ICL and SFT create very different internal structures, in both cases undergoing a sharp transition in the middle of the network. In the first half of the network, ICL shapes interpretable representations hierarchically organized according to their semantic content. In contrast, the probability landscape obtained with SFT is fuzzier and semantically mixed. In the second half of the model, the fine-tuned representations develop probability modes that better encode the identity of answers, while the landscape of ICL representations is characterized by less defined peaks. Our approach reveals the diverse computational strategies developed inside LLMs to solve the same task across different conditions, allowing us to make a step towards designing optimal methods to extract information from language models.

For agents

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

get_harvested_code_for_paper("2409.03662")
get_code_for_paper("2409.03662")
have("2409.03662")

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

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

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

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

Connect an agent — have() is free.