paper-with-me

홈 › Papers

Token Erasure as a Footprint of Implicit Vocabulary Items in LLMs

2024-06-28 · Sheridan Feucht, David Atkinson, Byron Wallace, David Bau

LLMs process text as sequences of tokens that roughly correspond to words, where less common words are represented by multiple tokens. However, individual tokens are often semantically unrelated to the meanings of the words/concepts they comprise. For example, Llama-2-7b's tokenizer splits the word "northeastern" into the tokens ['_n', 'ort', 'he', 'astern'], none of which correspond to semantically meaningful units like "north" or "east." Similarly, the overall meanings of named entities like "Neil Young" and multi-word expressions like "break a leg" cannot be directly inferred from their constituent tokens. Mechanistically, how do LLMs convert such arbitrary groups of tokens into useful higher-level representations? In this work, we find that last token representations of named entities and multi-token words exhibit a pronounced "erasure" effect, where information about previous and current tokens is rapidly forgotten in early layers. Using this observation, we propose a method to "read out" the implicit vocabulary of an autoregressive LLM by examining differences in token representations across layers, and present results of this method for Llama-2-7b and Llama-3-8B. To our knowledge, this is the first attempt to probe the implicit vocabulary of an LLM.

📄 PDF Abstract BibTeX arXiv:2406.20086

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Cut Your Losses in Large-Vocabulary Language Models

2024-11-13 · Erik Wijmans, Brody Huval, Alexander Hertzberg, Vladlen Koltun 외

As language models grow ever larger, so do their vocabularies. This has shifted the memory footprint of LLMs during training disproportionately to one single layer: the cross-entropy in the loss computation. Cross-entrop…

Improving LLMs for Recommendation with Out-Of-Vocabulary Tokens

2024-06-12 · Ting-Ji Huang, Jia-Qi Yang, Chunxu Shen, Kai-Qi Liu 외

Characterizing users and items through vector representations is crucial for various tasks in recommender systems. Recent approaches attempt to apply Large Language Models (LLMs) in recommendation through a question and …

MemorizationRecommendation Systems

Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillation

2025-12-16 · Buu Phan, Ashish Khisti, Karen Ullrich arxiv

Computing next-token likelihood ratios between two language models (LMs) is a standard task in training paradigms such as knowledge distillation. Since this requires both models to share the same probability space, it be…

Knowledge DistillationMathematical Reasoning

CE-SDWV: Effective and Efficient Concept Erasure for Text-to-Image Diffusion Models via a Semantic-Driven Word Vocabulary

2025-01-26 · Jiahang Tu, Qian Feng, Chufan Chen, Jiahua Dong 외

Large-scale text-to-image (T2I) diffusion models have achieved remarkable generative performance about various concepts. With the limitation of privacy and safety in practice, the generative capability concerning NSFW (N…

Personalized Speech recognition on mobile devices

2016-03-10 · Ian McGraw, Rohit Prabhavalkar, Raziel Alvarez, Montse Gonzalez Arenas 외

We describe a large vocabulary speech recognition system that is accurate, has low latency, and yet has a small enough memory and computational footprint to run faster than real-time on a Nexus 5 Android smartphone. We e…

DecoderLanguage ModelingLanguage Modellingspeech-recognition+1