paper-with-me

홈 › Papers

Localizing Task Recognition and Task Learning in In-Context Learning via Attention Head Analysis

2025-09-29 · Haolin Yang, Hakaze Cho, Naoya Inoue arxiv

We investigate the mechanistic underpinnings of in-context learning (ICL) in large language models by reconciling two dominant perspectives: the component-level analysis of attention heads and the holistic decomposition of ICL into Task Recognition (TR) and Task Learning (TL). We propose a novel framework based on Task Subspace Logit Attribution (TSLA) to identify attention heads specialized in TR and TL, and demonstrate their distinct yet complementary roles. Through correlation analysis, ablation studies, and input perturbations, we show that the identified TR and TL heads independently and effectively capture the TR and TL components of ICL. Using steering experiments with geometric analysis of hidden states, we reveal that TR heads promote task recognition by aligning hidden states with the task subspace, while TL heads rotate hidden states within the subspace toward the correct label to facilitate prediction. We further show how previous findings on ICL mechanisms, including induction heads and task vectors, can be reconciled with our attention-head-level analysis of the TR-TL decomposition. Our framework thus provides a unified and interpretable account of how large language models execute ICL across diverse tasks and settings.

📄 PDF Abstract BibTeX arXiv:2509.24164

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

DOAD: Decoupled One Stage Action Detection Network

2023-04-01 · Shuning Chang, Pichao Wang, Fan Wang, Jiashi Feng 외

Localizing people and recognizing their actions from videos is a challenging task towards high-level video understanding. Existing methods are mostly two-stage based, with one stage for person bounding box generation and…

Action DetectionAction RecognitionVideo Understanding

Inside Out Visual Place Recognition

2021-11-26 · Sarah Ibrahimi, Nanne van Noord, Tim Alpherts, Marcel Worring

Visual Place Recognition (VPR) is generally concerned with localizing outdoor images. However, localizing indoor scenes that contain part of an outdoor scene can be of large value for a wide range of applications. In thi…

Data AugmentationVisual Place Recognition

TDAM: Top-Down Attention Module for Contextually Guided Feature Selection in CNNs

2021-11-26 · Shantanu Jaiswal, Basura Fernando, Cheston Tan

Attention modules for Convolutional Neural Networks (CNNs) are an effective method to enhance performance on multiple computer-vision tasks. While existing methods appropriately model channel-, spatial- and self-attentio…

feature selectionImage ClassificationMulti-Label ClassificationObject Localization+2

Recurrent Attentional Reinforcement Learning for Multi-label Image Recognition

2017-12-20 · Tianshui Chen, Zhouxia Wang, Guanbin Li, Liang Lin

Recognizing multiple labels of images is a fundamental but challenging task in computer vision, and remarkable progress has been attained by localizing semantic-aware image regions and predicting their labels with deep c…

Multi-Label Image Recognitionreinforcement-learningReinforcement LearningReinforcement Learning (RL)

GTNet:Guided Transformer Network for Detecting Human-Object Interactions

2021-08-02 · A S M Iftekhar, Satish Kumar, R. Austin McEver, Suya You 외

The human-object interaction (HOI) detection task refers to localizing humans, localizing objects, and predicting the interactions between each human-object pair. HOI is considered one of the fundamental steps in truly u…

Human-Object Interaction DetectionObject