Understanding Token Probability Encoding in Output Embeddings

Hakaze Cho, Yoshihiro Sakai, Kenshiro Tanaka, Mariko Kato, Naoya Inoue
6/3/2024
10 citations
cs.CLcs.AIcs.LG

No official code found. Best implementation: hc495/Understand_Output_Embedding (0 stars, Python, last commit 2026-02-12).

Abstract

In this paper, we investigate the output token probability information in the output embedding of language models. We find an approximate common log-linear encoding of output token probabilities within the output embedding vectors and empirically demonstrate that it is accurate and sparse.

Show full abstract

As a causality examination, we steer the encoding in output embedding to modify the output probability distribution accurately. Moreover, the sparsity we find in output probability encoding suggests that a large number of dimensions in the output embedding do not contribute to causal language modeling. Therefore, we attempt to delete the output-unrelated dimensions and find more than 30% of the dimensions can be deleted without significant movement in output distribution and sequence generation. Additionally, in the pre-training dynamics of language models, we find that the output embeddings capture the corpus token frequency information in early steps, even before an obvious convergence of parameters starts.

View on arXivView PDF

Code Implementations(1)

[COLING 2025] Official code implementation of paper: "Understanding Token Probability Encoding in Output Embeddings"

00PythonJan 21, 20259 months ago
interpretabilitylanguage-model

Similar Papers

Cite this paper

@article{cho2024understanding,
  title  = {Understanding Token Probability Encoding in Output Embeddings},
  author = {Hakaze Cho and Yoshihiro Sakai and Kenshiro Tanaka and Mariko Kato and Naoya Inoue},
  year   = {2024},
  eprint = {2406.01468},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.01468v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.01468.svg)](https://codeofpaper.com/paper/2406.01468)

Discussion