Metraipolis › archive › dc_5e86e46903a9

Capturing In-Context Learning Dynamics with Task Operators — arXiv:2610.01054

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.01054
License (as archived)
CC0-1.0
Archived
2026-10-06T12:12:34.332Z
SHA-256 of the archived text
a3ac81ea83a5f9767becd5d08621190655ec5a6ff2d93fea2c064732c5a76145
Stable URL of this page
https://metraipolis.com/documento/dc_5e86e46903a9

How to cite

Capturing In-Context Learning Dynamics with Task Operators — arXiv:2610.01054 — arXiv (en), https://arxiv.org/abs/2610.01054 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_5e86e46903a9 (Metraipolis archive dc_5e86e46903a9, sha256 a3ac81ea83a5f9767becd5d08621190655ec5a6ff2d93fea2c064732c5a76145)
BibTeX
@misc{dc5e86e46903a9,
  title = {Capturing In-Context Learning Dynamics with Task Operators — arXiv:2610.01054},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.01054},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_5e86e46903a9; sha256 a3ac81ea83a5f9767becd5d08621190655ec5a6ff2d93fea2c064732c5a76145},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.01054. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In-context learning (ICL) enables language models to perform new tasks from demonstrations without weight updates. However, every ICL inference requires processing the full set of examples, resulting in inefficient deployments, and how ICL works mechanistically is not fully understood. Prior work compresses ICL into fixed activation vectors extracted from specific layers or positions, but these input-independent interventions fail on complex tasks where the output depends on fine-grained interactions with the input. By analyzing the ICL forward pass, we show that each attention head's output is an affine transformation of its context-masked counterpart, and that the parameters of this transformation are empirically stable across samples for a given task. Building on this, we introduce Task Operator (TO), which replays this transformation as an analytically derived update to the attention output projection. Across lexical, algorithmic, and reasoning tasks, TO achieves the best overall performance among prior methods and substantially narrows the gap between zero-shot inference and ICL. We further show that the extracted knowledge concentrates in a task-specific sparse circuit across layers and positions, and that averaging operators from disjoint demonstration batches enables effective many-shot scaling without expanding the context window. Our code is available at this https URL .

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-02 in cs.AI).
Categorie arXiv: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI); Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2610.01054 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-06T10:21:28.149Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-10-02?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).