Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learning
Jihoon Kwon, Jiwon Choi, Jy-yong Sohn

TL;DR
This paper introduces a new metric, $d_{NTP}$, to evaluate and improve task vectors in in-context learning, leading to better performance and reduced inference costs across multiple benchmarks.
Contribution
It proposes $d_{NTP}$ as a novel criterion for designing task vectors and develops LTV, a linear method that minimizes this discrepancy, outperforming existing baselines.
Findings
$d_{NTP}$ correlates strongly with downstream accuracy.
LTV improves average accuracy by 9.2% across benchmarks.
Task vectors transfer across models, enhancing smaller models' performance.
Abstract
In-context learning (ICL) allows large language models (LLMs) to adapt to new tasks through demonstrations, yet it suffers from escalating inference costs as context length increases. While task vectors offer a promising alternative by compressing demonstrations into compact hidden-state representations, their quality has been evaluated only through downstream task accuracy. This indirect criterion provides limited insight into how to design more effective task vector extraction methods. In this paper, we posit that inference using task vectors should align their predictive distribution with that of ICL. To quantify this, we introduce , a metric that measures the discrepancy in next-token probabilities between task vector-based and ICL-based inference. Our empirical analysis reveals that serves as a performance proxy, exhibiting a strong negative…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
