paper-with-me

홈 › Papers

Weight-based Analysis of Detokenization in Language Models: Understanding the First Stage of Inference Without Inference

2025-01-27 · Go Kamoda, Benjamin Heinzerling, Tatsuro Inaba, Keito Kudo, Keisuke Sakaguchi, Kentaro Inui

According to the stages-of-inference hypothesis, early layers of language models map their subword-tokenized input, which does not necessarily correspond to a linguistically meaningful segmentation, to more meaningful representations that form the model's ``inner vocabulary''. Prior analysis of this detokenization stage has predominantly relied on probing and interventions such as path patching, which involve selecting particular inputs, choosing a subset of components that will be patched, and then observing changes in model behavior. Here, we show that several important aspects of the detokenization stage can be understood purely by analyzing model weights, without performing any model inference steps. Specifically, we introduce an analytical decomposition of first-layer attention in GPT-2. Our decomposition yields interpretable terms that quantify the relative contributions of position-related, token-related, and mixed effects. By focusing on terms in this decomposition, we discover weight-based explanations of attention bias toward close tokens and attention for detokenization.

📄 PDF Abstract BibTeX arXiv:2501.15754

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Adam 설명 없음
Residual Connection 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

Inside the LLM Word Factory

2026-06-07 · Benzi Busigin, Yuval Pinter arxiv

Transformer language models process input provided as subword fragments, but natural language semantics usually rely on word-level concepts. Detokenization is the process where models reconcile these two facts, aggregati…

Defragmenting Language Models: An Interpretability-based Approach for Vocabulary Expansion

2026-04-17 · Maitrey Mehta, Nishant Subramani, Zhichao Xu, Ashim Gupta 외 arxiv

All languages are equal; when it comes to tokenization, some are more equal than others. Tokens are the hidden currency that dictate the cost and latency of access to contemporary LLMs. However, many languages written in…

IMSurReal: IMS at the Surface Realization Shared Task 2019

2019-11-01 · WS 2019 11 · Xiang Yu, Agnieszka Falenska, Marina Haid, Ngoc Thang Vu 외

We introduce the IMS contribution to the Surface Realization Shared Task 2019. Our submission achieves the state-of-the-art performance without using any external resources. The system takes a pipeline approach consistin…

The Remarkable Robustness of LLMs: Stages of Inference?

2024-06-27 · Vedang Lad, Wes Gurnee, Max Tegmark

We demonstrate and investigate the remarkable robustness of Large Language Models by deleting and swapping adjacent layers. We find that deleting and swapping interventions retain 72-95\% of the original model's predicti…

Feature EngineeringPrediction

TMT: Tri-Modal Translation between Speech, Image, and Text by Processing Different Modalities as Different Languages

2024-02-25 · Minsu Kim, Jee-weon Jung, Hyeongseop Rha, Soumi Maiti 외

The capability to jointly process multi-modal information is becoming an essential task. However, the limited number of paired multi-modal data and the large computational requirements in multi-modal learning hinder the …

DecoderMachine TranslationTranslation