Manifold Trajectories in Next-Token Prediction: From Replicator Dynamics to Softmax Equilibrium

Christopher R. Lee-Jenkins
8/28/2025
cs.LGcs.AImath.DS

No confident code implementation found for this paper.

Abstract

Decoding in large language models is often described as scoring tokens and normalizing with softmax. We give a minimal, self-contained account of this step as a constrained variational principle on the probability simplex. The discrete, normalization-respecting ascent is the classical multiplicative-weights (entropic mirror) update; its continuous-time limit is the replicator flow. From these ingredients we prove that, for a fixed context and temperature, the next-token distribution follows a smooth trajectory inside the simplex and converges to the softmax equilibrium. This formalizes the common ``manifold traversal'' intuition at the output-distribution level. The analysis yields precise, practice-facing consequences: temperature acts as an exact rescaling of time along the same trajectory, while top-k and nucleus sampling restrict the flow to a face with identical guarantees. We also outline a controlled account of path-dependent score adjustments and their connection to loop-like, hallucination-style behavior. We make no claims about training dynamics or internal representations; those are deferred to future work.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{leejenkins2025manifold,
  title  = {Manifold Trajectories in Next-Token Prediction: From Replicator Dynamics to Softmax Equilibrium},
  author = {Christopher R. Lee-Jenkins},
  year   = {2025},
  eprint = {2508.21186},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.21186v1}
}

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/2508.21186.svg)](https://codeofpaper.com/paper/2508.21186)

Discussion