atlas

Research map / Architectures and efficiency / Attention and transformers

Task Vector Geometry Underlies Dual Modes of Task Inference in Transformers

NeurIPS 2026 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Trains small transformers from scratch on latent-task sequence mixtures (dice, linear regression, Markov chains) to show task vectors implement Bayesian retrieval in-distribution while OOD extrapolative learning uses a near-orthogonal subspace.

Problem

How task-vector geometry in hidden states is shaped by the training distribution, and what geometry supports in-distribution retrieval versus out-of-distribution generalization in transformers.

Approach

Formalizes task vectors as mappings of latents with four properties (P0-P3) linking hidden states to Bayesian posterior mixtures, and shows that increasing task diversity moves models into an extrapolative mode whose representations lie in a subspace nearly orthogonal to the task-vector subspace.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: synthetic biased dice sequences synthetic in-context linear regression synthetic Markov chain sequences planted Dyck sequences word-function tasks for Qwen2.5-7B probing

Benchmarks: synthetic E1 dice synthetic E2 linear regression synthetic E3 Markov chains

Metrics: R^2 KL divergence RMSE residual variance ratio interaction eta^2 fractional loss degradation

Baselines: unsteered model random same-rank orthogonal direction

Builds on: linear representation hypothesis task vectors superposition principle in-context linear regression

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy