Adaptive Task Vectors for Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Kang, Joonseong, Lee, Soojeong, Park, Subeen, Park, Sumin, Kim, Taero, Kim, Jihee, Lee, Ryunyi, Song, Kyungwoo
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908392522514432
author Kang, Joonseong
Lee, Soojeong
Park, Subeen
Park, Sumin
Kim, Taero
Kim, Jihee
Lee, Ryunyi
Song, Kyungwoo
author_facet Kang, Joonseong
Lee, Soojeong
Park, Subeen
Park, Sumin
Kim, Taero
Kim, Jihee
Lee, Ryunyi
Song, Kyungwoo
contents In-Context Learning (ICL) enables Large Language Models (LLMs) to perform tasks without parameter updates by conditioning on a few demonstrations provided in the prompt. Despite its success, ICL suffers from several limitations, including sensitivity to demonstration order, context length constraints, and computational inefficiency. To address these challenges, task vector-based approaches compress task information into a single vector. However, these methods typically construct task vectors from fixed sets of demonstrations and reuse them across input queries, without conditioning on the specific input. This limitation can lead models to struggle with effective adaptation when the input query is not well aligned with the underlying demonstrations, consequently degrading their generalization performance on unseen tasks. To overcome this limitation, we propose Adaptive Task Vectors (ATV), a simple and effective framework that dynamically generates task vectors conditioned on each input query. ATV employs a small language model to generate task vectors, which are then transformed to match the target LLM's architecture and applied to guide its output generation. In contrast to ICL and previous vector-based approaches, which rely on fixed demonstration sets and their corresponding vectors, ATV dynamically generates task vectors tailored to each specific input query and task. Consequently, ATV demonstrates strong performance and generalization capabilities, even for unseen tasks. Furthermore, we provide a theoretical analysis indicating that ATV is expressively equivalent to LoRA under equal rank budgets and more expressive than Prefix-Tuning, thereby offering formal support for its representational advantage.
format Preprint
id arxiv_https___arxiv_org_abs_2506_03426
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Adaptive Task Vectors for Large Language Models
Kang, Joonseong
Lee, Soojeong
Park, Subeen
Park, Sumin
Kim, Taero
Kim, Jihee
Lee, Ryunyi
Song, Kyungwoo
Machine Learning
Computation and Language
In-Context Learning (ICL) enables Large Language Models (LLMs) to perform tasks without parameter updates by conditioning on a few demonstrations provided in the prompt. Despite its success, ICL suffers from several limitations, including sensitivity to demonstration order, context length constraints, and computational inefficiency. To address these challenges, task vector-based approaches compress task information into a single vector. However, these methods typically construct task vectors from fixed sets of demonstrations and reuse them across input queries, without conditioning on the specific input. This limitation can lead models to struggle with effective adaptation when the input query is not well aligned with the underlying demonstrations, consequently degrading their generalization performance on unseen tasks. To overcome this limitation, we propose Adaptive Task Vectors (ATV), a simple and effective framework that dynamically generates task vectors conditioned on each input query. ATV employs a small language model to generate task vectors, which are then transformed to match the target LLM's architecture and applied to guide its output generation. In contrast to ICL and previous vector-based approaches, which rely on fixed demonstration sets and their corresponding vectors, ATV dynamically generates task vectors tailored to each specific input query and task. Consequently, ATV demonstrates strong performance and generalization capabilities, even for unseen tasks. Furthermore, we provide a theoretical analysis indicating that ATV is expressively equivalent to LoRA under equal rank budgets and more expressive than Prefix-Tuning, thereby offering formal support for its representational advantage.
title Adaptive Task Vectors for Large Language Models
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2506.03426