DeCoVec: Building Decoding Space based Task Vector for Large Language Models via In-Context Learning
Feiyang Li, Yile Wang

TL;DR
DeCoVec is a training-free, non-invasive method that constructs task vectors in the decoding space of large language models using in-context learning, improving task performance without fine-tuning.
Contribution
It introduces a novel approach to steer LLMs by constructing task vectors directly in the decoding space via ICL, avoiding fine-tuning or internal state manipulation.
Findings
DeCoVec outperforms standard few-shot baselines on multiple benchmarks.
It improves accuracy by up to +5.50 points.
It reduces generation degeneration and logical flaws.
Abstract
Task vectors, representing directions in model or activation spaces that encode task-specific behaviors, have emerged as a promising tool for steering large language models (LLMs). However, existing approaches typically require fine-tuning or invasive manipulation of internal states, limiting their flexibility and scalability. We propose \textsc{DeCoVec} (Decoding Space based Task Vector), a training-free and non-invasive framework that constructs task vectors directly in the \textit{decoding space} by leveraging in-context learning (ICL). Specifically, \textsc{DeCoVec} captures the task essence as the difference between the output logit distributions of few-shot and zero-shot prompts, then steers generation by injecting this vector into the decoding process. Experiments across seven LLMs (0.5B--9B) on TruthfulQA, Math-500, and AQUA-RAT show that \textsc{DeCoVec} consistently…
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.
