paper-with-me

홈 › Papers

Token-wise Decomposition of Autoregressive Language Model Hidden States for Analyzing Model Predictions

2023-05-17 · Byung-Doh Oh, William Schuler

While there is much recent interest in studying why Transformer-based large language models make predictions the way they do, the complex computations performed within each layer have made their behavior somewhat opaque. To mitigate this opacity, this work presents a linear decomposition of final hidden states from autoregressive language models based on each initial input token, which is exact for virtually all contemporary Transformer architectures. This decomposition allows the definition of probability distributions that ablate the contribution of specific input tokens, which can be used to analyze their influence on model probabilities over a sequence of upcoming words with only one forward pass from the model. Using the change in next-word probability as a measure of importance, this work first examines which context words make the biggest contribution to language model predictions. Regression experiments suggest that Transformer-based language models rely primarily on collocational associations, followed by linguistic factors such as syntactic dependencies and coreference relationships in making next-word predictions. Additionally, analyses using these measures to predict syntactic dependencies and coreferent mention spans show that collocational association and repetitions of the same token largely explain the language models' predictions on these tasks.

📄 PDF Abstract BibTeX arXiv:2305.10614

Code (1)

byungdoh/llm_decomposition 공식 구현 jax

Tasks

Language ModelingLanguage Modellingmodel

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Multi-Head Attention 설명 없음
Adam 설명 없음
Residual Connection 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

SpecBound: Adaptive Bounded Self-Speculation with Layer-wise Confidence Calibration

2026-04-14 · Zhuofan Wen, Yang Feng arxiv

Speculative decoding has emerged as a promising approach to accelerate autoregressive inference in large language models (LLMs). Self-draft methods, which leverage the base LLM itself for speculation, avoid the overhead …

Computational Efficiency

FELLE: Autoregressive Speech Synthesis with Token-Wise Coarse-to-Fine Flow Matching

2025-02-16 · Hui Wang, Shujie Liu, Lingwei Meng, Jinyu Li 외

To advance continuous-valued token modeling and temporal-coherence enforcement, we propose FELLE, an autoregressive model that integrates language modeling with token-wise flow matching. By leveraging the autoregressive …

Language ModelingLanguage ModellingSpeech Synthesis

LoSA: Locality Aware Sparse Attention for Block-Wise Diffusion Language Models

2026-04-13 · Haocheng Xi, Harman Singh, Yuezhou Hu, Coleman Hooper 외 arxiv

Block-wise diffusion language models (DLMs) generate multiple tokens in any order, offering a promising alternative to the autoregressive decoding pipeline. However, they still remain bottlenecked by memory-bound attenti…

SPA-Cache: Singular Proxies for Adaptive Caching in Diffusion Language Models

2026-01-30 · Wenhao Sun, Rong-Cheng Tu, Yifu Ding, Zhao Jin 외 arxiv

While Diffusion Language Models (DLMs) offer a flexible, arbitrary-order alternative to the autoregressive paradigm, their non-causal nature precludes standard KV caching, forcing costly hidden state recomputation at eve…

Replacing Language Model for Style Transfer

2022-11-14 · Pengyu Cheng, Ruineng Li

We introduce replacing language model (RLM), a sequence-to-sequence language modeling framework for text style transfer (TST). Our method autoregressively replaces each token of the source sentence with a text span that …

DisentanglementLanguage ModelingLanguage Modellingmodel+4