arXiv Machine Learning By Tianxiang Chen, Jingyuan Zhou, Guoyao Yang, Kaidi Yang

A Mechanistic Analysis of In-Context Learning and Out-of-Context Hallucination

Read the original on arXiv Machine Learning →

The paper investigates how large language models use functional roles in dynamic context to perform in‑context learning (ICL) and how they sometimes produce out‑of‑context hallucinations. It shows that role information can be internally represented but does not always reliably constrain output, and derives a first‑order decomposition that links role effect to sufficient contribution magnitude and coherent signed aggregation. Causal analysis reveals that role span contributions influence key token choices in response structure, content selection, and factual values, and that sufficient role span support can reverse failing choices.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv Machine Learning
Sep 2

How Do Language Models Choose Between Context and Memory?

The paper investigates how language models decide between contextual information and their internal memory when the two conflict. By estimating "authority directions" from agreement prompts and swapping these directions between matched prompts, the authors show that such interventions can reproduce 30–68% of the shift in source choice across Qwen, Llama, and OLMo models. Cross‑task experiments reveal that authority directions learned on one task transfer only modestly (≈9%) to another, indicating that authority computations are largely task‑specific.

By Benjamin Shih, John Winnicki, Arianna Cao
arXiv Machine Learning
Oct 23

How Depth Growth and Looping Shape In-Context Learning in Language Models

The paper investigates how depth growth and looping in language models influence in-context learning (ICL). It shows that models with these architectural features rely more on contextual information, acquire ICL earlier, and retain it better than fully dense counterparts. Attention analysis reveals that depth growth propagates early induction heads across layers, and ablations confirm that these models depend more on induction-ranked heads for few‑shot performance and token prediction.

By Ferdinand Kapl, Kaitlin Maile, Stefan Bauer, Johannes von Oswald