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

*Jihoon Kwon, Jiwon Choi, Jy-yong Sohn*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152916) · [OpenReview](https://openreview.net/forum?id=PRjQ0E5e0e) · [alphaXiv](https://www.alphaxiv.org/abs/2605.20730) · [Open on the map](../papers.html#p152916)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Transformer In-Context Learning](../pgroup/655.md) · Type: new method · Keywords: in-context learning, task vectors, distributional alignment, next-token prediction, linear mapping, model transfer

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › In-Context Learning; [Evaluation & Benchmarks](../areas/evaluation.md) › Model Capability Diagnostics › LLM Evaluation Proxies

## Summary
Linear Task Vector (LTV) aligns task vectors' predictive distribution with in-context learning via a closed-form linear mapping, improving average accuracy by 9.2% and reducing inference latency across benchmarks.

## Explained to a 5-year-old
Large language models can learn new tasks by showing examples. To save time, researchers make small copies of those examples called task vectors. They want these copies to work like the original examples. They created a new way to make the copies better by matching how likely the next word is. This helps the models learn faster and use less computer power.

## Explained to a 5-year-old, longer
Big computer programs called language models can do many different jobs. They learn by looking at lots of examples written out one after another. When there are many examples, it takes a long time and a lot of computer power to run them. Researchers found a trick to make the learning faster: they compress the examples into small hidden representations called task vectors. However, they weren’t sure if these compressed versions worked as well as the full examples. The paper says that the compressed version should give the same predictions for the next word as the full examples. They created a measure to check how far apart the predictions are. Using this measure, they built a simple rule that adjusts the task vectors so they match the original predictions. This rule works like a quick math formula that estimates the effect of the examples. When they tested it on many different tasks, the new rule gave better results than the old ways. It also used less computer time, making the models faster. Finally, they found that task vectors from a big model can even help a smaller model learn better.

## For a technical reader
The paper addresses the high cost of using large language models for new tasks by showing many examples each time (in-context learning). It proposes compressing those examples into compact task vectors, but existing methods lack a direct way to verify their quality. The authors introduce a metric that compares the next-token probabilities produced by the compressed vectors with those from the full examples, and they show this metric correlates with downstream performance. They then derive a closed-form linear mapping that minimizes this discrepancy, effectively estimating the effect of demonstrations. Experiments on eight classification benchmarks and five models demonstrate that this approach improves accuracy by about 9 % and reduces inference latency, while also enabling cross-model transfer of task vectors.

## Problem
Task vectors for in-context learning are evaluated only indirectly via downstream accuracy, which provides limited insight into how to design effective extraction methods.

## Method
The approach introduces a distributional alignment metric measuring next-token probability discrepancy between task vector inference and ICL inference, and uses a linear mapping to minimize this discrepancy, effectively estimating demonstration effects via regression.

## Results
The approach improves average accuracy by 9.2% and reduces inference latency across benchmarks, and transfers from larger to smaller models, boosting performance by 6.4%.

## Contributions
Introduces a distributional alignment metric as a proxy for task vector quality, proposes a linear mapping to minimize this metric, and demonstrates improved performance and cross-model transferability of task vectors.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152916)
