Identifying and Analyzing Performance-Critical Tokens in Large Language Models

Authors

  • Yu Bai Beijing Institute of Technology, Beijing, China Beijing Academy of Artificial Intelligence, Beijing, China
  • Heyan Huang Beijing Institute of Technology, Beijing, China Southeast Academy of Information Technology, Fujian, China
  • Cesare Spinoso-Di Piano Mila - Quebec Artificial Intelligence Institute McGill University
  • Sanxing Chen Duke University
  • Marc-Antoine Rondeau Mila - Quebec Artificial Intelligence Institute
  • Yang Gao Beijing Institute of Technology, Beijing, China
  • Jackie Chi Kit Cheung Mila - Quebec Artificial Intelligence Institute McGill University Canada CIFAR AI Chair

DOI:

https://doi.org/10.1609/aaai.v40i36.40251

Abstract

In-context learning (ICL) has emerged as an effective solution for few-shot learning with large language models (LLMs). However, how LLMs leverage demonstrations to specify a task and learn a corresponding computational function through ICL is underexplored. Drawing from the way humans learn from content-label mappings in demonstrations, we categorize the tokens in an ICL prompt into content, stopword, and template tokens. Our goal is to identify the types of tokens whose representations directly influence LLM's performance, a property we refer to as being performance-critical. By ablating representations from the attention of the test example, we find that the representations of informative content tokens have less influence on performance compared to template and stopword tokens, which contrasts with the human attention to informative words. We give evidence that the representations of performance-critical tokens aggregate information from the content tokens. Moreover, we demonstrate experimentally that lexical meaning, repetition, and structural cues are the main distinguishing characteristics of these tokens. Our work sheds light on how LLMs learn to perform tasks from demonstrations and deepens our understanding of the roles different types of tokens play in LLMs.

Downloads

Published

2026-03-14

How to Cite

Bai, Y., Huang, H., Spinoso-Di Piano, C., Chen, S., Rondeau, M.-A., Gao, Y., & Cheung, J. C. K. (2026). Identifying and Analyzing Performance-Critical Tokens in Large Language Models. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30031–30039. https://doi.org/10.1609/aaai.v40i36.40251

Issue

Section

AAAI Technical Track on Natural Language Processing I