paper-with-me

Papers

A Markov Categorical Framework for Language Modeling

2025-07-25 · Yifan Zhang arxiv

Autoregressive language models achieve remarkable performance, yet a unified theory explaining their internal mechanisms, how training shapes representations, and why these representations support complex behavior remains incomplete. We introduce an analytical framework that models the single-step generation process as a composition of information-processing stages using the language of Markov categories. This compositional perspective connects three aspects of language modeling that are often studied separately: the training objective, the geometry of the learned representation space, and practical model capabilities. First, our framework gives an information-theoretic rationale for parallel drafting methods such as speculative decoding by quantifying the information surplus a hidden state contains about future tokens beyond the immediate next one. Second, we clarify how the standard negative log-likelihood (NLL) objective learns not only a most likely next token, but also the data's intrinsic conditional uncertainty, formalized through categorical entropy. Our main spectral result is conditional: for a linear-softmax head with bounded output features, a calibrated quadratic upper-bound surrogate to NLL induces, after whitening or variance normalization, a generalized CCA/eigenproblem aligning representation directions with predictive prototypes. This gives a compositional lens for understanding how information flows through a model and how likelihood training can shape its internal geometry.

📄 PDF Abstract BibTeX arXiv:2507.19247

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A Rose by Any Other Name Would Smell as Sweet: Categorical Homotopy Theory for Large Language Models

2025-08-07 · Sridhar Mahadevan arxiv

Natural language is replete with superficially different statements, such as ``Charles Darwin wrote" and ``Charles Darwin is the author of", which carry the same meaning. Large language models (LLMs) should generate the …

Causal Abstractions, Categorically Unified

2025-10-06 · Markus Englberger, Devendra Singh Dhami arxiv

We present a categorical framework for relating causal models that represent the same system at different levels of abstraction. We define a causal abstraction as natural transformations between appropriate Markov functo…

The Gauss-Markov Adjunction Provides Categorical Semantics of Residuals in Supervised Learning

2025-07-03 · Moto Kamiura arxiv

Enhancing the intelligibility and interpretability of machine learning is a crucial task in responding to the demand for Explicability as an AI principle, and in promoting the better social implementation of AI. The aim …

Efficient Perplexity Bound and Ratio Matching in Discrete Diffusion Language Models

2025-07-06 · Etrit Haxholli, Yeti Z. Gurbuz, Ogul Can, Eli Waxman arxiv

While continuous diffusion models excel in modeling continuous distributions, their application to categorical data has been less effective. Recent work has shown that ratio-matching through score-entropy within a contin…

Score-based Continuous-time Discrete Diffusion Models

2022-11-30 · Haoran Sun, Lijun Yu, Bo Dai, Dale Schuurmans 외

Score-based modeling through stochastic differential equations (SDEs) has provided a new perspective on diffusion models, and demonstrated superior performance on continuous data. However, the gradient of the log-likelih…