scimeatlas

Research map / Large language models / Language, safety and interpretability

Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learning

Jihoon Kwon, Jiwon Choi, Jy-yong Sohn

NeurIPS 2026Large language models › Language, safety and interpretabilityapproach: In-context learning analysisopen problems in this approach1 citations (OpenAlex)

Seoul National University · Yonsei University

Read the paperPlace an idea next to itCheck your own paper ↗

15measured effects
9improved
1no clear effect
5hurt
In one sentence

Proposes d_NTP, a next-token-probability discrepancy metric between task-vector and ICL inference that correlates with accuracy, and Linear Task Vector (LTV), a closed-form ridge-regression linear mapping from zero-shot hidden states to ICL-induced hidden-state shifts.

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.

Problem

Task vectors for in-context learning are evaluated only by downstream accuracy, which gives little insight into why one extraction method works better or how to design better ones, while ICL incurs growing inference cost with demonstration length.

Approach

Measure task-vector quality as KL divergence between TV-based and ICL next-token distributions (d_NTP), show it correlates negatively with accuracy, and derive a training-free closed-form linear mapping (LTV) that minimizes a hidden-state MSE proxy bounding d_NTP.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use LTV instead of State Vectortask-vector inference · Average of 8 benchmarks, LLaMA-2-13Baccuracy (%): 70.22 -> 79.46Improved
use LTV instead of Task Vectortask-vector inference · Average of 8 benchmarks, LLaMA-3.1-8Baccuracy (%): 70.75 -> 75.46Improved
use LTV instead of State Vectortask-vector inference · Average of 8 benchmarks, LLaMA-2-7Baccuracy (%): 68.25 -> 71.19Improved
use LTV instead of State Vectortask-vector inference · Average of 8 benchmarks, Qwen-3-8Baccuracy (%): 76.01 -> 79.57Improved
use LTV instead of ICL with 30 demonstrationsLLM inference · Average of 8 benchmarks, Qwen-3-8Baccuracy (%): 85.84 -> 79.57Hurt
use LTV instead of ICL for inference latencyLLaMA-3.1-8B · Per-sample inference timeseconds: 0.2238 -> 0.0226Improved
use LTV instead of Function Vector for extraction costLLaMA-3.1-8B · Extraction timeseconds: 198.965 -> 42.664Improved
use LTV instead of I2CL for extraction costLLaMA-3.1-8B · Extraction timeseconds: 1.347 -> 42.664Hurt
reduce number of unlabeled queries N from 256 to 128 (ablation)LTV · Hyperparameter sweep, LLaMA-3.1-8Baverage accuracy (%): 75.2 -> 74.7Hurt
reduce number of unlabeled queries N from 256 to 64 (ablation)LTV · Hyperparameter sweep, LLaMA-3.1-8Baverage accuracy (%): 75.2 -> 72.2Hurt
vary ridge lambda from 5.0 to 1.0 or 10.0 (ablation)LTV · Hyperparameter sweep, LLaMA-3.1-8Baverage accuracy (%): 75.2 -> 75.2No clear effect
use LTV instead of Task Vector on linear regressiontask-vector inference · Linear regression, LLaMA-3.1-8BMSE: 5.97 -> 5.13Improved

Surprising findings

  • Transferred task vectors from a 72B model outperform the 7B model's own LTV on most benchmarks, and the 80.00% average even exceeds the 72B model's own LTV (79.96%).
  • Task-vector methods can exceed their own ICL accuracy on some individual tasks while overall ICL remains higher on average (e.g., LTV on Qwen-2.5-72B reaches 79.96% vs ICL 84.25%).

Limitations

  • Linear mapping is the only evaluated form; the paper acknowledges more expressive mappings may help and when the linear approximation holds is unexplored.
  • Evaluated mainly on short outputs (single-token classification and scalar regression), not longer generation or reasoning.
  • Cross-model transfer requires the source and target models to share a tokenizer.

Open problems this paper states

Open problems in in-context learning analysis

Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?

All 5 open problems and what was already tried →

Experimental setup

Datasets: AGNews DBPedia HateSpeech18 MR SST-2 SST-5 SUBJ TREC

Benchmarks: AGNews DBPedia HateSpeech18 MR SST-2 SST-5 SUBJ TREC linear regression (synthetic) ReLU regression (synthetic)

Metrics: accuracy d_NTP (KL divergence) mean squared error inference latency extraction time

Baselines: Zero-shot ICL Function Vector Task Vector State Vector I2CL

Builds on: Task Vector Function Vector State Vector I2CL

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