paper-with-me

Papers

Soft Head Selection for Injecting ICL-Derived Task Embeddings

2025-07-28 · Jungwon Park, Jimyeong Kim, Changin Choi, Wonjong Rhee arxiv

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.

📄 PDF Abstract BibTeX arXiv:2507.20906

Code (0)

등록된 구현이 없습니다.

Tasks

parameter-efficient fine-tuningNatural Language Understanding

Similar Papers 제목 키워드 기반

Knowledge Prompts: Injecting World Knowledge into Language Models through Soft Prompts

2022-10-10 · Cicero Nogueira dos santos, Zhe Dong, Daniel Cer, John Nham 외

Soft prompts have been recently proposed as a tool for adapting large frozen language models (LMs) to new tasks. In this work, we repurpose soft prompts to the task of injecting world knowledge into LMs. We introduce a m…

Self-Supervised LearningWorld Knowledge

Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution

2026-06-04 · Liliana Hotsko, Yinxi Li, Yuntian Deng, Pengyu Nie arxiv

Code language models need repository-level context to resolve imports, APIs, and project conventions. Existing methods inject this knowledge as long inputs (retrieved through RAG or dependency analysis) or through per-re…

parameter-efficient fine-tuning

BERT-Based Multi-Head Selection for Joint Entity-Relation Extraction

2019-08-16 · Weipeng Huang, Xingyi Cheng, Taifeng Wang, Wei Chu

In this paper, we report our method for the Information Extraction task in 2019 Language and Intelligence Challenge. We incorporate BERT into the multi-head selection framework for joint entity-relation extraction. This …

RelationRelation Extraction

Virtual Class Enhanced Discriminative Embedding Learning

2018-11-30 · NeurIPS 2018 12 · Binghui Chen, Weihong Deng, Haifeng Shen

Recently, learning discriminative features to improve the recognition performances gradually becomes the primary goal of deep learning, and numerous remarkable works have emerged. In this paper, we propose a novel yet ex…

Face VerificationGeneral Classification

Multicriteria interpretability driven Deep Learning

2021-11-28 · Marco Repetto

Deep Learning methods are renowned for their performances, yet their lack of interpretability prevents them from high-stakes contexts. Recent model agnostic methods address this problem by providing post-hoc interpretabi…

Deep Learningvalid