arXiv

Learning without training: The implicit dynamics of in-context learning

Title: In-Context Learning Without Training: The Implicit Dynamics

Abstract:

A defining characteristic of Large Language Models (LLMs) is their capacity for in-context learning. This phenomenon allows models to identify and adapt to new patterns at inference time simply by observing examples within the prompt, even when those patterns were absent from the training data. Crucially, this learning occurs without any modification to the model’s weights. Despite its prominence, the underlying mechanisms driving this capability remain largely unexplored.

In this study, we demonstrate that the combination of a self-attention layer and a Multi-Layer Perceptron (MLP) within a transformer block enables the implicit adjustment of the MLP’s weights based on contextual information. Through a blend of theoretical analysis and empirical experimentation, we propose that this straightforward mechanism offers insight into the origins of in-context learning capabilities in LLMs, extending beyond what is accounted for during the training phase. Specifically, our findings indicate that a standard forward pass incorporating context is mathematically equivalent to a context-free forward pass where the MLP weights have been modified by a minimal, low-rank update derived from the context.


Source: arXiv Generated at: 2026-06-03 00:00:00 UTC

Related Articles

TechCrunch

The world’s largest privately owned laser just turned on

Xcimer Energy activated the Phoenix laser, the world’s largest privately owned laser, aiming to commercialize fusion pow...

Uber Targets Doubling Its Fleet of Electric Motorcycles in Kenya
Bloomberg

Uber Targets Doubling Its Fleet of Electric Motorcycles in Kenya

Uber plans to double its electric motorcycle fleet in Kenya. This expansion aims to enhance sustainable transport option...

AI Saves Time But Most Companies Waste the Gain, Study Shows
Bloomberg

AI Saves Time But Most Companies Waste the Gain, Study Shows

A study reveals that while AI saves employee time, most companies fail to capitalize on these gains, squandering potenti...

JPMorgan Lifts S&P Target on Earnings 'Supercycle'
Bloomberg

JPMorgan Lifts S&P Target on Earnings 'Supercycle'

JPMorgan raised its S&P 500 target, citing an earnings “supercycle” that reflects heightened confidence in corporate pro...

Europe Sleepwalking Into Economic Ruin, Serb Leader Says
Bloomberg

Europe Sleepwalking Into Economic Ruin, Serb Leader Says

Serbian leader warns Europe is sleepwalking into economic ruin.

Delta Electronics Flags Power Crunch
Bloomberg

Delta Electronics Flags Power Crunch

Delta Electronics warns of a looming power deficit due to surging demand and constrained production, predicting serious ...