Transducing Language Models
Not on the map. Why?
Abstract (arXiv)
Modern language models define distributions over strings, but downstream tasks often require different output formats. For instance, a model that generates byte-pair strings does not directly produce word-level predictions, and a DNA model does not directly produce amino-acid sequences. In such cases, a deterministic string-to-string transformation can convert the model's output to the desired form. This is a familiar pattern in probability theory: applying a function f to a random variable X~ p yields a transformed random variable f(X) with an induced distribution. While such transformations are occasionally used in language modeling, prior work does not treat them as yielding new, fully functional language models. We formalize this perspective and introduce a general framework for language models derived from deterministic string-to-string transformations. We focus on transformations representable as finite-state transducers -- a commonly used state-machine abstraction for efficient string-to-string mappings. We develop algorithms that compose a language model with an FST to *marginalize* over source strings mapping to a given target, propagating probabilities through the transducer without altering model parameters and enabling *conditioning* on transformed outputs. We present an exact algorithm, an efficient approximation, and a theoretical analysis. We conduct experiments in three domains: converting language models from tokens to bytes, from tokens to words, and from DNA to amino acids. These experiments demonstrate inference-time adaptation of pretrained language models to match application-specific output requirements.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 25 of its 62 references that are in the map. First posted on arXiv 5 Mar 2026.
Builds on
25 of 62 references.
References · 25
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 632
- 2023Efficient Guided Generation for Large Language Modelscited by 192
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 187
- 2020Fast WordPiece Tokenizationcited by 85
- 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 79
- 2024Automata-based constraints for language model decodingcited by 49
- 2024How to Compute the Probability of a Wordcited by 36
13 more
- 2023Analyzing Cognitive Plausibility of Subword Tokenizationcited by 30
- 2024Leading Whitespaces of Language Models' Subword Vocabulary Pose a Confound for Calculating Word Probabilitiescited by 30
- 2024From Language Models over Tokens to Language Models over Characterscited by 28
- 2024Where is the signal in tokenization space?cited by 21
- 2024Understanding and Mitigating Tokenization Bias in Language Modelscited by 18
- 2023Words, Subwords, and Morphemes: What Really Matters in the Surprisal-Reading Time Relationship?cited by 13
- 2024On the Proper Treatment of Tokenization in Psycholinguisticscited by 12
- 2024Model Decides How to Tokenize: Adaptive DNA Sequence Tokenization with MxDNAcited by 11
- 2025Language Models over Canonical Byte-Pair Encodingscited by 8
- 2025Sampling from Your Language Model One Byte at a Timecited by 7
- 2019Neural Grammatical Error Correction with Finite State Transducerscited by 6
- 2024Constructing a BPE Tokenization DFAcited by 5
- 2025Syntactic Control of Language Models by Posterior Inferencecited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026On the Proper Treatment of Units in Surprisal Theorycited by 2
- 2026Surprisal Theory is Tautological (without Rational Grounding)cited by 0
- 2026Stochastic Estimation of Transduced Language Modelscited by 0
- 2026Stochastic Estimation of Transduced Language Models27 Aug 2026
- 2026Surprisal Theory is Tautological (without Rational Grounding)23 Jul 2026
- 2026On the Proper Treatment of Units in Surprisal Theory30 Apr 2026