mlsanityData to 7 Oct 2026

DeCoVec: Building Decoding Space based Task Vector for Large Language Models via In-Context Learning

arXiv 2604.11129 ↗First posted 13 Apr 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

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 textscDeCoVec (Decoding Space based Task Vector), a training-free and non-invasive framework that constructs task vectors directly in the textitdecoding space by leveraging in-context learning (ICL). Specifically, textscDeCoVec 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 textscDeCoVec consistently outperforms standard few-shot baselines, with gains up to +5.50 average accuracy. Further analysis demonstrates that textscDeCoVec effectively suppresses generation degeneration and logical flaws while exhibiting strong robustness to demonstration ordering, all without incurring additional input token costs. Our method offers a training-free and non-invasive solution for LLM steering without requiring weight updates or auxiliary models.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 37 references that are in the map. First posted on arXiv 13 Apr 2026.

Builds on

24 of 37 references.

References · 24

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2023Let's Verify Step by Stepcited by 3,598
  7. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  8. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  9. 2024Yi: Open Foundation Models by 01.AIcited by 706
  10. 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
  11. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
  12. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
12 more
  1. 2023In-Context Learning Creates Task Vectorscited by 302
  2. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  3. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
  4. 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
  5. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  6. 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
  7. 2023Chat Vector: A Simple Approach to Equip LLMs with Instruction Following and Model Alignment in New Languagescited by 52
  8. 2024Finding Visual Task Vectorscited by 24
  9. 2025Task Vectors in In-Context Learning: Emergence, Formation, and Benefitcited by 20
  10. 2025Steering Language Models with Weight Arithmeticcited by 19
  11. 2025Distribution-Aligned Decoding for Efficient LLM Task Adaptationcited by 7
  12. 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decodingcited by 4

Built on by

Not cited yet.