Soft Head Selection for Injecting ICL-Derived Task Embeddings
Department of Intelligence and Information, Seoul National University(首尔大学智能与信息系);Daegu Gyeongbuk Institute of Science and Technology(大邱庆北科学技术院);Samsung Advanced Institute of Technology, Samsung Electronics Co., Ltd(三星电子三星综合技术院)
Jungwon Park, Jimyeong Kim, Changin Choi, Wonjong Rhee
Large language models (LLMs) are commonly adapted to downstream tasks using parameter-efficient fine-tuning (PEFT) or in-context learning (ICL). Recently, ICL-driven embedding-based adaptation has been proposed as a distinct task adaptation paradigm. It derives task-specific embeddings from intermediate activations using few-shot prompts and injects them during inference. Despite its conceptual appeal, this approach has not demonstrated consistent performance gains over PEFT or ICL, and its empirical advantages have been limited in practice. We propose Soft head-selection for ICL-derived Task Embeddings (SITE), a gradient-based method that identifies task-relevant attention heads to enable effective task embedding injection. Across various types of open-ended generation, reasoning, and natural language understanding tasks, SITE significantly outperforms prior embedding-based adaptation methods and few-shot ICL, while using substantially fewer trainable parameters than PEFT. Experiments on 12 LLMs ranging from 4B to 70B parameters demonstrate the generality of our approach, and intra-task and inter-task activation patching analyses further provide new mechanistic insights by revealing strong task dependence in attention head functionality.
Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learning
School of Data Science and Engineering, East China Normal University(华东师范大学数据科学与工程学院);Alibaba Group(阿里巴巴集团);School of Statistics, East China Normal University(华东师范大学统计学院)
Beyond Demonstrations: Dynamic Vector Construction from Latent Representations
National Key Laboratory for Multimedia Information Processing, Peking University(国家多媒体信息处理重点实验室,北京大学);MOE Key Laboratory of Computational Linguistics, Peking University(教育部计算语言学重点实验室,北京大学);School of Software and Microelectronics, Peking University(软件与微电子学院,北京大学);School of Computer Science, Peking University(计算机科学学院,北京大学)
Uncertainty Unveiled: Can Exposure to More In-context Examples Mitigate Uncertainty for Large Language Models?
State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences(多模态人工智能系统国家重点实验室,自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(人工智能学院,中国科学院大学)
Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture
SciAI Center, Cornell University, USA(SciAI中心,康奈尔大学,美国);Neural Coding and Brain Computing Unit, OIST, Japan(神经编码与脑计算单元,海洋研究所,日本);SciAI Center, Center for Applied Mathematics, School of Civil and Environmental Engineering, Cornell University, USA(SciAI中心,应用数学中心,土木与环境工程学院,康奈尔大学,美国)
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Machine Learning Platform Department, Tencent(腾讯机器学习平台部);School of Computer Science, Wuhan University(武汉大学计算机学院)