paper-with-me

홈 › Papers

Should you marginalize over possible tokenizations?

2023-06-30 · Nadezhda Chirkova, Germán Kruszewski, Jos Rozen, Marc Dymetman

Autoregressive language models (LMs) map token sequences to probabilities. The usual practice for computing the probability of any character string (e.g. English sentences) is to first transform it into a sequence of tokens that is scored by the model. However, there are exponentially many token sequences that represent any given string. To truly compute the probability of a string one should marginalize over all tokenizations, which is typically intractable. Here, we analyze whether the practice of ignoring the marginalization is justified. To this end, we devise an importance-sampling-based algorithm that allows us to compute estimates of the marginal probabilities and compare them to the default procedure in a range of state-of-the-art models and datasets. Our results show that the gap in log-likelihood is no larger than 0.5% in most cases, but that it becomes more pronounced for data with long complex words.

📄 PDF Abstract BibTeX arXiv:2306.17757

Code (1)

naver/marginalization 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers

2026-05-21 · Maya Bechler-Speicher, Gilad Yehudai, Gil Harari, Clayton Sanford 외 arxiv

Transformers have become a central architecture for graph learning, but their application to graphs requires first choosing a tokenization: a graph-to-token map that determines which structural information is exposed at …

Graph Learning

Constructing a BPE Tokenization DFA

2024-05-13 · Martin Berglund, Willeke Martens, Brink van der Merwe

Many natural language processing systems operate over tokenizations of text to address the open-vocabulary problem. In this paper, we give and analyze an algorithm for the efficient construction of deterministic finite a…

Where is the signal in tokenization space?

2024-08-16 · Renato Lui Geh, Honghua Zhang, Kareem Ahmed, Benjie Wang 외

Large Language Models (LLMs) are typically shipped with tokenizers that deterministically encode text into so-called canonical token sequences, to which the LLMs assign probability values. One common assumption is that t…

State Space Models

Time-Shifted Token Scheduling for Symbolic Music Generation

2025-09-28 · Ting-Kang Wang, Chih-Pin Tan, Yi-Hsuan Yang arxiv

Symbolic music generation faces a fundamental trade-off between efficiency and quality. Fine-grained tokenizations achieve strong coherence but incur long sequences and high complexity, while compact tokenizations improv…

Music Generation

Improving Self Consistency in LLMs through Probabilistic Tokenization

2024-07-04 · Ashutosh Sathe, Divyanshu Aggarwal, Sunayana Sitaram

Prior research has demonstrated noticeable performance gains through the use of probabilistic tokenizations, an approach that involves employing multiple tokenizations of the same input string during the training phase o…

Language ModelingLanguage Modelling