Exploring the Design Space of Permutation Diffusion LLMs

arXiv cs.CL Papers

Summary

Meta researchers explore three diffusion-LLM parameterizations for permutation generation — hard-assignment, soft-assignment, and direct ordering-score prediction — evaluating them on recommendation reranking across Amazon domains and showing that design choices must be jointly optimized for corruption, parameterization, objective, and decoding.

arXiv:2610.20635v1 Announce Type: new Abstract: Permutation generation with language models requires both text-conditioned ranking and a global one-to-one assignment between candidates and output positions. We study this problem through three diffusion-LLM parameterizations: hard-assignment prediction over shuffled candidate-index sequences, soft-assignment prediction over doubly stochastic matrices, and direct ordering-score prediction followed by sorting. The three families place permutation constraints at different stages of prediction and decoding and therefore support different training objectives and sampling procedures. We evaluate these designs on recommendation reranking across three Amazon domains with candidate sets of size 10 and 20. At one function evaluation, the hard- and soft-assignment variants achieve Recall@1 comparable to a constrained masked-diffusion baseline, whereas direct ordering-score prediction guarantees valid permutations without Hungarian assignment or Sinkhorn normalization. Additional function evaluations do not consistently improve ranking quality, and their effect depends strongly on the state representation and training objective. These results show that corruption, prediction parameterization, objective, and decoder should be designed jointly for permutation diffusion with language-model denoisers.
Original Article
View Cached Full Text

Cached at: 10/16/26, 06:58 AM

# Exploring the Design Space of Permutation Diffusion LLMs
Source: [https://arxiv.org/html/2610.20635](https://arxiv.org/html/2610.20635)
Mingfu LiangAffiliation:MetaKavosh AsadiAffiliation:MetaListed in alphabetical order by surname\.Jean\-Pascal BillaudAffiliation:MetaListed in alphabetical order by surname\.Tianyi ChenAffiliation:MetaListed in alphabetical order by surname\.Yanhui GuoAffiliation:MetaListed in alphabetical order by surname\.Christina HuangAffiliation:MetaListed in alphabetical order by surname\.Baekjin KimAffiliation:MetaListed in alphabetical order by surname\.Jimmy KimAffiliation:MetaListed in alphabetical order by surname\.Yufei LiAffiliation:MetaListed in alphabetical order by surname\.Daqi SunAffiliation:MetaListed in alphabetical order by surname\.Jiachen SunAffiliation:MetaListed in alphabetical order by surname\.Dian YuAffiliation:MetaListed in alphabetical order by surname\.Zaiwei ZhangAffiliation:MetaListed in alphabetical order by surname\.Kaushik RangaduraiAffiliation:MetaFrank ShyuAffiliation:MetaSandeep PandeyAffiliation:MetaXi LiuAffiliation:MetaLuke SimonAffiliation:Meta

###### Abstract

Permutation generation with language models requires both text\-conditioned ranking and a global one\-to\-one assignment between candidates and output positions\. We study this problem through three diffusion\-LLM parameterizations: hard\-assignment prediction over shuffled candidate\-index sequences, soft\-assignment prediction over doubly stochastic matrices, and direct ordering\-score prediction followed by sorting\. The three families place permutation constraints at different stages of prediction and decoding and therefore support different training objectives and sampling procedures\. We evaluate these designs on recommendation reranking across three Amazon domains with candidate sets of size 10 and 20\. At one function evaluation, the hard\- and soft\-assignment variants achieve Recall@1 comparable to a constrained masked\-diffusion baseline, whereas direct ordering\-score prediction guarantees valid permutations without Hungarian assignment or Sinkhorn normalization\. Additional function evaluations do not consistently improve ranking quality, and their effect depends strongly on the state representation and training objective\. These results show that corruption, prediction parameterization, objective, and decoder should be designed jointly for permutation diffusion with language\-model denoisers\.

††date:October 1, 2026††correspondence:[zhexu@meta\.com](mailto:[email protected]),[xliu1@meta\.com](mailto:[email protected])## 1Introduction

Permutation generation maps a fixed candidate set to an ordered sequence in which each candidate appears exactly once\. This structure arises in ranking, sorting, and other combinatorial prediction tasks\([Vinyals et al\., 2015](https://arxiv.org/html/2610.20635#bib.bib10);[Zhang et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib7)\)\. Large language models \(LLMs\) can condition such orderings on textual candidate descriptions and task context, as demonstrated in listwise reranking\([Sun et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib15)\)\. Unlike unconstrained text generation, permutation generation requires a global one\-to\-one assignment between candidates and output positions\.

Autoregressive \(AR\) LLMs generate candidate\-index tokens sequentially and therefore requireKKprediction steps for a set of sizeKK\. Diffusion LLMs \(dLLMs\) instead predict multiple positions in parallel and iteratively update the resulting state through successive function evaluations \(NFEs\)\([Sahoo et al\., 2024](https://arxiv.org/html/2610.20635#bib.bib3);[Nie et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib4)\)\. Recent work applies this paradigm to document and recommendation reranking\([Liu et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib18);[Zhang et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib21)\)\. Parallel prediction alone, however, does not guarantee a valid permutation because independently predicted identifiers may repeat or omit candidates\. The central modeling challenge is thus to combine parallel prediction with the global assignment constraint\.

Permutation\-structured corruption provides a natural starting point\. Hard shuffling changes candidate order while preserving permutation validity\. A continuous alternative represents assignments as doubly stochastic matrices in the Birkhoff polytope, the convex hull of permutation matrices\. SymmetricDiffusers, Soft\-Rank Diffusion, and PermFlow study discrete or continuous permutation generation with task\-specific neural architectures rather than pretrained general\-purpose LLMs\([Zhang et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib7);[He et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib8);[Min and Gomes, 2026](https://arxiv.org/html/2610.20635#bib.bib9)\)\. We investigate how such structured states and prediction parameterizations can be integrated with a pretrained LLM for text\-conditioned generation\. Structural preservation during corruption is insufficient by itself: the prediction parameterization, training objective, and decoder jointly determine whether the model learns and returns valid assignments\.

We study three parameterizations within a shared conditional clean\-state prediction framework \(Section[4](https://arxiv.org/html/2610.20635#S4)and Table[1](https://arxiv.org/html/2610.20635#S4.T1)\)\.Hard\-assignment diffusion LLMs \(HA\-dLLMs\)operate on shuffled candidate\-index sequences and predict candidate scores for each output position; Hungarian assignment produces a permutation at every denoising step\.Soft\-assignment diffusion LLMs \(SA\-dLLMs\)use continuous assignment matrices as both states and predictions; Sinkhorn normalization approximately enforces doubly stochastic constraints, and a terminal Hungarian assignment returns a discrete permutation\.Ordering\-score diffusion LLMs \(OS\-dLLMs\)operate on shuffled sequences but predict one scalar score per candidate; sorting yields a valid permutation without Hungarian assignment or Sinkhorn normalization\. The three families therefore impose the assignment constraint at different stages of prediction and decoding\.

For each parameterization, we examine the corruption process, training objective, and sampling procedure\. For HA\-dLLMs, we compare token cross\-entropy, row\-plus\-column assignment cross\-entropy, Sinkhorn marginal negative log\-likelihood, and a structured hinge loss\. For SA\-dLLMs, anchored\-rollout training supervises predictions from model\-generated states, and we compare Predict–recorrupt and Residual\-correction sampling adapted from Cold Diffusion\([Bansal et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib6)\)\. OS\-dLLM combines a listwise ordering objective with sorting\-based decoding\.

We evaluate these configurations on recommendation reranking across three Amazon domains with candidate sets of 10 and 20 items\. The task reorders a supplied candidate set rather than generating a single item\. At one function evaluation \(NFE=1=1\), the hard\- and soft\-assignment variants achieve reranking quality comparable to a constrained masked diffusion language model \(mdLLM\)\. Direct ordering\-score prediction uniquely guarantees permutation validity without Hungarian assignment or Sinkhorn normalization\. The experiments characterize how the design choices affect ranking quality, validity, decoding structure, and sensitivity to NFE\.

Our contributions are threefold:

- •We formulate three permutation\-diffusion LLM families—hard assignment, soft assignment, and direct ordering score—and distinguish their state representations and validity mechanisms\.
- •We develop family\-specific corruption processes111We use*corruption*,*noising*, and*forward process*interchangeably; likewise,*corruption level*and*diffusion time*are synonymous\.*Denoising*and*sampling*refer to reverse generation\., objectives, and samplers, including structured assignment losses and model\-generated soft\-state training\.
- •We empirically characterize the resulting tradeoffs in ranking quality, permutation validity, and iterative behavior on recommendation reranking\.

## 2Related Work

##### Diffusion models for discrete structures\.

Discrete denoising diffusion extends generative modeling beyond continuous Gaussian corruption by specifying transition processes over categorical states\([Austin et al\., 2021](https://arxiv.org/html/2610.20635#bib.bib2)\)\. Masked diffusion specializes this approach to absorbing mask states, with objectives closely connected to masked language modeling\([Sahoo et al\., 2024](https://arxiv.org/html/2610.20635#bib.bib3)\)\. Subsequent work scales this formulation to instruction\-following language models\([Nie et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib4)\)\. Beyond sequences, DISCO formulates discrete\-state continuous\-time diffusion for graph generation and establishes permutation\-equivariant and permutation\-invariant properties with respect to node ordering\([Xu et al\., 2024](https://arxiv.org/html/2610.20635#bib.bib5)\)\.

##### Cold Diffusion\.

Cold Diffusion studies image generation under general deterministic degradations rather than discrete\-sequence diffusion\([Bansal et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib6)\)\. Its restoration\-and\-recorruption perspective motivates our samplers\. We adapt this perspective to assignments: hard corruption rearranges a fixed candidate set, whereas soft corruption interpolates between doubly stochastic matrices\.

##### Generative models of permutations\.

SymmetricDiffusers defines discrete diffusion on finite symmetric groups using shuffle\-based forward processes and generalized Plackett–Luce reverse parameterizations\([Zhang et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib7)\)\. Soft\-Rank Diffusion constructs corruption through continuous soft ranks and uses contextualized generalized Plackett–Luce denoisers to predict clean permutations\([He et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib8)\)\. PermFlow learns conditional flows on the affine space of matrices with unit row and column sums, targeting multimodal permutation distributions\([Min and Gomes, 2026](https://arxiv.org/html/2610.20635#bib.bib9)\)\. These works evaluate task\-specific permutation architectures rather than pretrained general\-purpose LLMs\. We incorporate related structural ideas into a pretrained language\-model backbone and compare per\-step assignment projection, soft\-state recurrence, and direct ordering\-score prediction\. Unlike soft\-rank vectors or unconstrained affine states, SA\-dLLM evolves nonnegative doubly stochastic matrices\.

##### Assignment relaxations and neural ordering\.

Pointer Networks established neural sequence prediction over input\-dependent object sets\([Vinyals et al\., 2015](https://arxiv.org/html/2610.20635#bib.bib10)\)\. Listwise maximum likelihood estimation \(ListMLE\) defines a likelihood objective for ordering scores\([Xia et al\., 2008](https://arxiv.org/html/2610.20635#bib.bib11)\), which we apply to the source\-slot order induced by a corrupted permutation\. For matrix\-valued assignments, Sinkhorn normalization enforces row and column marginals through iterative scaling\([Sinkhorn and Knopp, 1967](https://arxiv.org/html/2610.20635#bib.bib12)\), while Gumbel–Sinkhorn Networks use it to construct differentiable relaxations of latent permutations\([Mena et al\., 2018](https://arxiv.org/html/2610.20635#bib.bib13)\)\. Hungarian assignment provides the discrete optimization primitive for our projected decoders\([Kuhn, 1955](https://arxiv.org/html/2610.20635#bib.bib14)\)\. We compare how these components impose assignment constraints during language\-model sampling\.

##### Language models for reranking and recommendation\.

RankGPT frames listwise reranking as instructional permutation generation\([Sun et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib15)\), while RankZephyr develops specialized open listwise rerankers\([Pradeep et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib16)\)\. Faster Improved Listwise Reranking with Single Token Decoding \(FIRST\) derives a complete ranking from first\-token logits, showing that LLM reranking need not generate a full autoregressive identifier sequence\([Gangi Reddy et al\., 2024](https://arxiv.org/html/2610.20635#bib.bib17)\)\. DiffuRank studies masked\-diffusion reranking with parallel scoring, constrained permutation sampling, and Hungarian assignment at NFE=1=1\([Liu et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib18)\)\. Our constrained mdLLM baseline is closely related to this assignment formulation; HA\-dLLM and OS\-dLLM replace masking with shuffling, whereas SA\-dLLM evolves an assignment matrix throughout inference\. Recent work also advocates discriminative LLM retrieval rather than generative retrieval for efficient candidate generation\([Xu et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib28)\); our setting begins after retrieval and ranks a fixed candidate set\. In recommendation, GR2 introduces an autoregressive generative reasoning reranker trained through semantic\-ID mid\-training, reasoning\-trace distillation, and reinforcement learning\([Liang et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib19)\)\. Its technical report extends the system with context compression, on\-policy distillation, and serving\-oriented reasoning distillation\([Li et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib20)\)\. Diffusion\-GR2 then converts GR2 to block diffusion through conversion fine\-tuning, on\-policy distillation, and reinforcement learning\([Zhang et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib21)\)\. We instead model the permutation state directly, enforce validity through sorting or assignment, and generate no explicit reasoning trace\. LLaDA\-Rec applies masked diffusion to parallel semantic\-identifier generation\([Shi et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib22)\); its next\-item generation task differs from reordering all members of a supplied candidate set\.

##### Training on model\-generated states\.

Conditioning on model\-generated states creates distribution shift in sequential prediction\. Dataset Aggregation \(DAgger\) addresses this problem by collecting supervision on learner\-induced states\([Ross et al\., 2011](https://arxiv.org/html/2610.20635#bib.bib23)\), and Diffusion\-GR2 applies on\-policy teacher supervision to generated reasoning\-and\-ranking trajectories\([Zhang et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib21)\)\. Our anchored\-rollout objective extends this motivation to continuous assignment states\. We measure stability across NFE budgets rather than assume that additional evaluations improve quality\.

## 3Preliminaries

### 3\.1Notation and Problem Formulation

Plain italic symbols denote scalars \(e\.g\.,K,N,tK,N,t\), bold lowercase symbols denote numerical vectors \(e\.g\.,𝐡i\\mathbf\{h\}\_\{i\}\), and bold uppercase symbols denote matrices \(e\.g\.,𝐒,𝐗t\\mathbf\{S\},\\mathbf\{X\}\_\{t\}\)\. Calligraphic symbols denote sets and spaces \(e\.g\.,𝒱idx,ℬK\\mathcal\{V\}\_\{\\mathrm\{idx\}\},\\mathcal\{B\}\_\{K\}\)\. Permutations, symbolic token sequences, and the parameter collectionθ\\thetaremain unbolded\.

For a matrix𝐀\\mathbf\{A\}, we writeAi​jA\_\{ij\}for scalar entries and𝐀i,:\\mathbf\{A\}\_\{i,:\}for rows; for time\-indexed matrices,Xt,i​j=\(𝐗t\)i​jX\_\{t,ij\}=\(\\mathbf\{X\}\_\{t\}\)\_\{ij\}\. Scalar entries remain unbolded, including those of predicted matrices such asQi​j\(n\)Q^\{\(n\)\}\_\{ij\}\. We applylog⁡𝐀\\log\\mathbf\{A\}andmax⁡\{𝐀,ε\}\\max\\\{\\mathbf\{A\},\\varepsilon\\\}elementwise\. Allarg​max\\operatorname\*\{arg\\,max\}expressions select one maximizer using a fixed tie\-breaking rule\. Permutations compose as\(a∘b\)​\(i\)=a⁡\(b⁡\(i\)\)\(a\\circ b\)\(i\)=a\(b\(i\)\)\.

LetK≥2K\\geq 2be the number of candidates and\[K\]=\{1,…,K\}\[K\]=\\\{1,\\ldots,K\\\}\. The contextcccontains the user context and the presented candidate descriptionsx1:Kx\_\{1:K\}\. Let𝒱raw\\mathcal\{V\}\_\{\\mathrm\{raw\}\}denote the pretrained vocabulary and𝒱idx=\{ν1,…,νK\}\\mathcal\{V\}\_\{\\mathrm\{idx\}\}=\\\{\\nu\_\{1\},\\ldots,\\nu\_\{K\}\\\}the added candidate\-index tokens, withνj\\nu\_\{j\}serialized as<idx\_j\>\. The expanded vocabulary𝒱\\mathcal\{V\}contains these sets and additional task\-specific tokens\. Indexjjidentifies a candidate in the presented list rather than an output position: token<idx\_j\>at output positioniiplaces candidatejjat rankii\. We writeθ\\thetafor the model parameters and𝔖K\\mathfrak\{S\}\_\{K\}for the symmetric group on\[K\]\[K\]\. A ranking is a permutationπ∈𝔖K\\pi\\in\\mathfrak\{S\}\_\{K\}, whereπ⁡\(i\)=j\\pi\(i\)=jmeans that candidatejjoccupies output positionii\. The clean target permutationπ0\\pi\_\{0\}corresponds to the token sequence

y0=\(νπ0​\(1\),…,νπ0​\(K\)\)\.y\_\{0\}=\\left\(\\nu\_\{\\pi\_\{0\}\(1\)\},\\ldots,\\nu\_\{\\pi\_\{0\}\(K\)\}\\right\)\.\(1\)Candidate indices and output positions are one\-based\. The clean target has permutation matrix

P0,i​j=\[j=π0\(i\)\]\.P\_\{0,ij\}=\\mathbf\{1\}\\\!\\left\[j=\\pi\_\{0\}\(i\)\\right\]\.\(2\)

### 3\.2Autoregressive Reranking

An autoregressive reranker predicts the candidate\-index sequencey0y\_\{0\}from left to right\([Vinyals et al\., 2015](https://arxiv.org/html/2610.20635#bib.bib10);[Sun et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib15)\)\. Letpθp\_\{\\theta\}be the vocabulary distribution\. For candidate\-token prediction, we use its restriction to𝒱idx\\mathcal\{V\}\_\{\\mathrm\{idx\}\},

pθidx​\(v∣c,y<i\)=pθ​\(v∣c,y<i\)∑v′∈𝒱idxpθ​\(v′∣c,y<i\),v∈𝒱idx,p\_\{\\theta\}^\{\\mathrm\{idx\}\}\(v\\mid c,y\_\{<i\}\)=\\frac\{p\_\{\\theta\}\(v\\mid c,y\_\{<i\}\)\}\{\\sum\_\{v^\{\\prime\}\\in\\mathcal\{V\}\_\{\\mathrm\{idx\}\}\}p\_\{\\theta\}\(v^\{\\prime\}\\mid c,y\_\{<i\}\)\},\\qquad v\\in\\mathcal\{V\}\_\{\\mathrm\{idx\}\},\(3\)wherey<iy\_\{<i\}denotes the preceding candidate tokens\. The candidate\-sequence distribution factorizes as

pθAR​\(y0∣c\)=∏i=1Kpθidx​\(y0,i∣c,y0,<i\)\.p\_\{\\theta\}^\{\\mathrm\{AR\}\}\(y\_\{0\}\\mid c\)=\\prod\_\{i=1\}^\{K\}p\_\{\\theta\}^\{\\mathrm\{idx\}\}\\\!\\left\(y\_\{0,i\}\\mid c,y\_\{0,<i\}\\right\)\.\(4\)The candidate\-token loss under teacher\-forced causal fine\-tuning is

ℒAR=−1K∑i=1Klogpθidx\(y0,i∣c,y0,<i\)\.\\mathcal\{L\}\_\{\\mathrm\{AR\}\}=\-\\frac\{1\}\{K\}\\sum\_\{i=1\}^\{K\}\\log p\_\{\\theta\}^\{\\mathrm\{idx\}\}\\\!\\left\(y\_\{0,i\}\\mid c,y\_\{0,<i\}\\right\)\.\(5\)
At inference, the evaluated AR baseline uses permutation\-constrained greedy decoding:

y^i=arg​maxv∈𝒱idx∖\{y^1,…,y^i−1\}⁡pθidx​\(v∣c,y^<i\)\.\\widehat\{y\}\_\{i\}=\\operatorname\*\{arg\\,max\}\_\{v\\in\\mathcal\{V\}\_\{\\mathrm\{idx\}\}\\setminus\\\{\\widehat\{y\}\_\{1\},\\ldots,\\widehat\{y\}\_\{i\-1\}\\\}\}p\_\{\\theta\}^\{\\mathrm\{idx\}\}\\\!\\left\(v\\mid c,\\widehat\{y\}\_\{<i\}\\right\)\.\(6\)Restricting each prediction to unused candidate\-index tokens ensures that every candidate appears exactly once; unconstrained greedy decoding may repeat or omit candidates\. Generating the full ranking requiresKKsequential prediction steps\. Section[5](https://arxiv.org/html/2610.20635#S5)specifies the output format\.

### 3\.3Masked Diffusion Language\-Model Reranking

The masked diffusion language model \(mdLLM\) baseline adapts masked clean\-token prediction\([Sahoo et al\., 2024](https://arxiv.org/html/2610.20635#bib.bib3);[Nie et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib4)\)to candidate\-index sequences\.

##### Candidate scores\.

For parallel prediction, letLi​vL\_\{iv\}be the logit for vocabulary tokenv∈𝒱v\\in\\mathcal\{V\}at output positionii\. The candidate\-score matrix is

Si​j=Li​νj,𝐒∈ℝK×K,S\_\{ij\}=L\_\{i\\nu\_\{j\}\},\\qquad\\mathbf\{S\}\\in\\mathbb\{R\}^\{K\\times K\},\(7\)Rows index output positions and columns index candidates\. During iterative inference,𝐒\(n\)\\mathbf\{S\}^\{\(n\)\}denotes the score matrix at stepnn, with steps indexed asn=N,N−1,…,1n=N,N\-1,\\ldots,1for an NFE budget ofNN\. Each function evaluation scores allKKpositions in parallel\.

#### 3\.3\.1Forward masking and clean\-state prediction

The forward process replaces a random subset of clean ranking tokens with the mask tokenνmask\\nu\_\{\\mathrm\{mask\}\}, serialized as<rank\_mask\>\. We drawρ∼Unif⁡\(ρmin,1\)\\rho\\sim\\operatorname\{Unif\}\(\\rho\_\{\\min\},1\), whereρmin∈\[0,1\)\\rho\_\{\\min\}\\in\[0,1\), and independently sampleβi∼Bernoulli⁡\(ρ\)\\beta\_\{i\}\\sim\\operatorname\{Bernoulli\}\(\\rho\)for eachi∈\[K\]i\\in\[K\]\. If no position is masked, we select one uniformly and set its indicator to one\. The resulting mask set and corrupted sequence are

Ω=\{i∈\[K\]:βi=1\},\\Omega=\\\{i\\in\[K\]:\\beta\_\{i\}=1\\\},\(8\)y~i=\{νmask,i∈Ω,y0,i,i∉Ω\.\\widetilde\{y\}\_\{i\}=\\begin\{cases\}\\nu\_\{\\mathrm\{mask\}\},&i\\in\\Omega,\\\\ y\_\{0,i\},&i\\notin\\Omega\.\\end\{cases\}\(9\)
The context is encoded as a causal prefix, while theKKranking slots attend to the prefix and bidirectionally to one another\. Prediction is unshifted: the hidden state at positioniipredicts the clean tokeny0,iy\_\{0,i\}\. Using the candidate\-score matrix𝐒\\mathbf\{S\}from Equation \([7](https://arxiv.org/html/2610.20635#S3.E7)\), the single\-example cross\-entropy over masked positions is

ℒmdLLM=−1\|Ω\|∑i∈Ωlogexp⁡Si,π0​\(i\)∑j=1Kexp⁡Si​j\.\\mathcal\{L\}\_\{\\mathrm\{mdLLM\}\}=\-\\frac\{1\}\{\|\\Omega\|\}\\sum\_\{i\\in\\Omega\}\\log\\frac\{\\exp S\_\{i,\\pi\_\{0\}\(i\)\}\}\{\\sum\_\{j=1\}^\{K\}\\exp S\_\{ij\}\}\.\(10\)

#### 3\.3\.2Raw confidence decoding

We adapt confidence\-based parallel decoding\([Chang et al\., 2022](https://arxiv.org/html/2610.20635#bib.bib26);[Nie et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib4)\)to fixed\-length candidate sequences\. Inference begins fromKKmasked positions and uses1≤N≤K1\\leq N\\leq Kfunction evaluations, indexed in decreasing order asn=N,N−1,…,1n=N,N\-1,\\ldots,1\. Each evaluation predicts the candidate\-score matrix𝐒\(n\)\\mathbf\{S\}^\{\(n\)\}in parallel\. Let𝒰n⊆\[K\]\\mathcal\{U\}\_\{n\}\\subseteq\[K\]denote the unresolved positions, initially𝒰N=\[K\]\\mathcal\{U\}\_\{N\}=\[K\]\. Their confidence scores are

αi\(n\)=maxj∈\[K\]⁡exp⁡Si​j\(n\)∑j′=1Kexp⁡Si​j′\(n\),i∈𝒰n\.\\alpha\_\{i\}^\{\(n\)\}=\\max\_\{j\\in\[K\]\}\\frac\{\\exp S^\{\(n\)\}\_\{ij\}\}\{\\sum\_\{j^\{\\prime\}=1\}^\{K\}\\exp S^\{\(n\)\}\_\{ij^\{\\prime\}\}\},\\qquad i\\in\\mathcal\{U\}\_\{n\}\.\(11\)Within each row, the largest confidence corresponds to the largest logit\.

To fill all positions in exactlyNNevaluations, stepnncommits

mn=⌈\|𝒰n\|n⌉m\_\{n\}=\\left\\lceil\\frac\{\|\\mathcal\{U\}\_\{n\}\|\}\{n\}\\right\\rceil\(12\)positions with the largest confidence\. Denote this selected set byℐn⊆𝒰n\\mathcal\{I\}\_\{n\}\\subseteq\\mathcal\{U\}\_\{n\}\. The raw decoder predicts

j^i=arg​maxj∈\[K\]⁡Si​j\(n\),i∈ℐn,\\widehat\{j\}\_\{i\}=\\operatorname\*\{arg\\,max\}\_\{j\\in\[K\]\}S^\{\(n\)\}\_\{ij\},\\qquad i\\in\\mathcal\{I\}\_\{n\},\(13\)and sets𝒰n−1=𝒰n∖ℐn\\mathcal\{U\}\_\{n\-1\}=\\mathcal\{U\}\_\{n\}\\setminus\\mathcal\{I\}\_\{n\}\. Committed tokens remain visible in subsequent evaluations\. Because candidate choices are independent across positions, simultaneous commitments may repeat candidates, and later evaluations may reuse candidates committed earlier\.

### 3\.4Assignment Operators

##### Discrete assignment\.

Given a score matrix𝐒∈ℝK×K\\mathbf\{S\}\\in\\mathbb\{R\}^\{K\\times K\}, an assignment operator enforces a one\-to\-one correspondence between output positions and candidates\. Define the set of permutation matrices as

𝒫K=\{𝐏∈\{0,1\}K×K:𝐏𝟏=𝟏,𝐏⊤𝟏=𝟏\}\\mathcal\{P\}\_\{K\}=\\left\\\{\\mathbf\{P\}\\in\\\{0,1\\\}^\{K\\times K\}:\\mathbf\{P\}\\mathbf\{1\}=\\mathbf\{1\},\\;\\mathbf\{P\}^\{\\top\}\\mathbf\{1\}=\\mathbf\{1\}\\right\\\}\(14\)where𝟏∈ℝK\\mathbf\{1\}\\in\\mathbb\{R\}^\{K\}is the all\-ones vector\. The maximum\-score assignment is

𝐏^∈arg​max𝐏∈𝒫K⁡⟨𝐒,𝐏⟩,⟨𝐒,𝐏⟩=∑i,jSi​j​Pi​j\.\\widehat\{\\mathbf\{P\}\}\\in\\operatorname\*\{arg\\,max\}\_\{\\mathbf\{P\}\\in\\mathcal\{P\}\_\{K\}\}\\langle\\mathbf\{S\},\\mathbf\{P\}\\rangle,\\qquad\\langle\\mathbf\{S\},\\mathbf\{P\}\\rangle=\\sum\_\{i,j\}S\_\{ij\}P\_\{ij\}\.\(15\)The Hungarian algorithm solves this linear assignment problem\([Kuhn, 1955](https://arxiv.org/html/2610.20635#bib.bib14)\)\. Each row and column of𝐏^\\widehat\{\\mathbf\{P\}\}contains exactly one nonzero entry, yielding a valid permutation\.

##### Soft assignment\.

Relaxing binary entries to nonnegative values yields the Birkhoff polytope of doubly stochastic matrices,

ℬK=\{𝐗∈ℝ≥0K×K:𝐗𝟏=𝟏,𝐗⊤𝟏=𝟏\}\.\\mathcal\{B\}\_\{K\}=\\left\\\{\\mathbf\{X\}\\in\\mathbb\{R\}\_\{\\geq 0\}^\{K\\times K\}:\\mathbf\{X\}\\mathbf\{1\}=\\mathbf\{1\},\\;\\mathbf\{X\}^\{\\top\}\\mathbf\{1\}=\\mathbf\{1\}\\right\\\}\.\(16\)For temperatureτ\>0\\tau\>0, Sinkhorn normalization alternately rescales the rows and columns of the elementwise exponentialexp⁡\(𝐒/τ\)\\exp\(\\mathbf\{S\}/\\tau\)to sum to one\([Sinkhorn and Knopp, 1967](https://arxiv.org/html/2610.20635#bib.bib12);[Mena et al\., 2018](https://arxiv.org/html/2610.20635#bib.bib13)\)\. We denote this operation bySKτ⁡\(𝐒\)\\operatorname\{SK\}\_\{\\tau\}\(\\mathbf\{S\}\)and implement it in log space for numerical stability; Appendix[A](https://arxiv.org/html/2610.20635#A1)specifies the stopping criterion and iteration limit\. The output is an approximately doubly stochastic soft assignment rather than a discrete permutation\.

##### Constrained mdLLM decoding\.

Assignment\-based permutation decoding has also been studied for diffusion reranking\([Liu et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib18)\)\. The constrained masked decoder applies discrete assignment to each selected subset of positions\. Let𝒥n⊆\[K\]\\mathcal\{J\}\_\{n\}\\subseteq\[K\]denote the unused candidates, with𝒥N=\[K\]\\mathcal\{J\}\_\{N\}=\[K\]initially\. Confidence is recomputed over𝒥n\\mathcal\{J\}\_\{n\}, and themnm\_\{n\}most confident positions in𝒰n\\mathcal\{U\}\_\{n\}formℐn\\mathcal\{I\}\_\{n\}\. Their joint assignment is

an∗=arg​maxa:ℐn↪𝒥n∑i∈ℐnS\(n\)i,a⁡\(i\),a\_\{n\}^\{\*\}=\\operatorname\*\{arg\\,max\}\_\{a:\\mathcal\{I\}\_\{n\}\\hookrightarrow\\mathcal\{J\}\_\{n\}\}\\sum\_\{i\\in\\mathcal\{I\}\_\{n\}\}S^\{\(n\)\}\_\{i,a\(i\)\},\(17\)where↪\\hookrightarrowdenotes an injective mapping\. A rectangular Hungarian solve assigns distinct unused candidates to the selected positions\. The selected positions are committed, and their candidates are removed from𝒥n\\mathcal\{J\}\_\{n\}before the next evaluation\. AtN=1N=1, the procedure reduces to a globalK×KK\\times Kassignment; atN=KN=K, each evaluation commits one position and one unused candidate\. It therefore returns a valid permutation for every supported budget, using one shrinking rectangular assignment solve per evaluation\.

## 4Method

##### Design\-space overview\.

We consider three parameterizations of conditional clean\-state prediction: hard\-assignment prediction \(HA\-dLLM\), soft\-assignment prediction \(SA\-dLLM\), and direct ordering\-score prediction \(OS\-dLLM\)\. Table[1](https://arxiv.org/html/2610.20635#S4.T1)summarizes their state representations, corruption processes, objectives, samplers, and decoders\.

Figures[1](https://arxiv.org/html/2610.20635#S4.F1)and[2](https://arxiv.org/html/2610.20635#S4.F2)illustrate the shared training and sampling workflows\. Training corrupts the target permutation while holding the instruction prefix fixed and optimizes the model to predict the clean state\. At inference, each model evaluation predicts a clean state from the current corrupted state; a multi\-step sampler then constructs the input to the next evaluation\.

Figure 1:Permutation\-diffusion training\. The instruction prefix remains fixed while the target permutation is corrupted\. The model predicts the clean permutation from the corrupted state and is optimized with a family\-specific objective\.Figure 2:Permutation\-diffusion sampling\. The model conditions on the fixed instruction prefix and current corrupted state to predict the clean permutation\. In multi\-step sampling, this prediction determines the state for the next evaluation\.Table 1:Design choices studied in this work\. Losses and samplers listed within a family are alternatives\. CE denotes cross\-entropy and NLL denotes negative log\-likelihood\. Each model ultimately returns a discrete permutation\.Model familyState and corruptionTraining loss optionsSampling optionsDiscrete decodingHard\-assignment prediction \(HA\-dLLM\)Hard permutation; subset shufflingToken CEPredict–recorruptHungarian assignment at every denoising stepRow\-plus\-column CESinkhorn marginal NLLStructured hingeSoft\-assignment prediction \(SA\-dLLM\)Doubly stochastic matrix; affine soft corruptionAnchored\-rollout marginal lossPredict–recorruptOne terminal Hungarian assignmentResidual\-correctionDirect ordering\-score prediction \(OS\-dLLM\)Hard permutation; subset shufflingPlackett–Luce/ListMLEPredict–recorruptStable sorting at every denoising step; no assignment solverThe algorithms below describe single\-example updates; Sections[5\.3](https://arxiv.org/html/2610.20635#S5.SS3)and[A\.2](https://arxiv.org/html/2610.20635#A1.SS2)specify the backbone, initialization, and training protocol\. The textual context forms a causal prefix followed byKKranking slots with bidirectional attention among slots\. HA\-dLLM and SA\-dLLM use unshifted prediction: the hidden state at destination slotiipredicts the clean assignment at that slot, unlike AR next\-token prediction\. OS\-dLLM instead assigns an ordering score to the item in each current slot\.

In mdLLM, the mask pattern reveals the corrupted positions and implicitly indicates the corruption level\. Subset shuffling introduces no mask tokens, so the hard\-state models receiveTTas an additional input\. A Fourier\-feature MLP\([Tancik et al\., 2020](https://arxiv.org/html/2610.20635#bib.bib25)\)embeds the corruption level222We use*corruption level*and*diffusion time*interchangeably\.and adds the resulting vector to each ranking\-slot embedding\. Its output projection is initialized to zero, so the initial timestep embedding is zero\.

### 4\.1Hard\-Assignment Prediction \(HA\-dLLM\)

HA\-dLLM represents every forward and reverse state as a discrete candidate\-index sequence\. The model predicts real\-valued candidate scores; the term “hard assignment” describes the state representation and decoder, not the raw model output\.

#### 4\.1\.1Input and output representation

At corruption levelT∈\[K\]T\\in\[K\], the stateπT\\pi\_\{T\}is serialized as\(νπT​\(1\),…,νπT​\(K\)\)\(\\nu\_\{\\pi\_\{T\}\(1\)\},\\ldots,\\nu\_\{\\pi\_\{T\}\(K\)\}\), and the model receives\(c,πT,T\)\(c,\\pi\_\{T\},T\)\. Training and inference use the same input representation\. The Fourier\-feature MLP receives the normalized levelT/KT/K\. Letdddenote the common dimension of the token embeddings and backbone hidden states, and let𝐡i∈ℝd\\mathbf\{h\}\_\{i\}\\in\\mathbb\{R\}^\{d\}be the final\-layer representation at ranking slotii\. The vocabulary projection produces logits

Li​v=𝐰v⊤​𝐡i\+bv,v∈𝒱\.L\_\{iv\}=\\mathbf\{w\}\_\{v\}^\{\\top\}\\mathbf\{h\}\_\{i\}\+b\_\{v\},\\qquad v\\in\\mathcal\{V\}\.\(18\)The resulting candidate\-score matrix is𝐒θ​\(c,πT,T\)∈ℝK×K\\mathbf\{S\}\_\{\\theta\}\(c,\\pi\_\{T\},T\)\\in\\mathbb\{R\}^\{K\\times K\}, with entriesSi​j=Li​νjS\_\{ij\}=L\_\{i\\nu\_\{j\}\}as in Equation \([7](https://arxiv.org/html/2610.20635#S3.E7)\)\. We omit the inputs when unambiguous; all HA\-dLLM objectives below operate on this matrix\.

#### 4\.1\.2Forward process and training objectives

##### Subset\-shuffling corruption\.

We use subset shuffling, a shuffle\-based corruption related to prior permutation diffusion processes\([Zhang et al\., 2025](https://arxiv.org/html/2610.20635#bib.bib7)\)\. We sampleT∼Unif⁡\(\[K\]\)T\\sim\\operatorname\{Unif\}\(\[K\]\), selectTToutput positions uniformly without replacement, and uniformly permute the candidates at those positions while leaving all others unchanged\. LetgTtrg\_\{T\}^\{\\mathrm\{tr\}\}denote the resulting position permutation\. The corrupted target is

πT=π0∘gTtr\.\\pi\_\{T\}=\\pi\_\{0\}\\circ g\_\{T\}^\{\\mathrm\{tr\}\}\.\(19\)
We explore four alternative training objectives for HA\-dLLM: per\-token cross\-entropy, row\-plus\-column assignment cross\-entropy, Sinkhorn marginal negative log\-likelihood, and structured hinge\.

##### Per\-token cross\-entropy\.

Per\-token cross\-entropy \(token CE\) applies cross\-entropy independently to each row of𝐒\\mathbf\{S\}:

ℒtok=−1K∑i=1Klogexp⁡Si,π0​\(i\)∑j=1Kexp⁡Si​j\.\\mathcal\{L\}\_\{\\mathrm\{tok\}\}=\-\\frac\{1\}\{K\}\\sum\_\{i=1\}^\{K\}\\log\\frac\{\\exp S\_\{i,\\pi\_\{0\}\(i\)\}\}\{\\sum\_\{j=1\}^\{K\}\\exp S\_\{ij\}\}\.\(20\)

##### Row\-plus\-column assignment cross\-entropy\.

Row\-plus\-column assignment cross\-entropy \(assignment CE\) augments token CE with a column\-wise term, encouraging each candidate to occupy exactly one output position\. Letλcol≥0\\lambda\_\{\\mathrm\{col\}\}\\geq 0weight this term:

ℒcol\\displaystyle\\mathcal\{L\}\_\{\\mathrm\{col\}\}=−1K∑j=1Klogexp⁡Sπ0−1​\(j\),j∑i=1Kexp⁡Si​j,\\displaystyle=\-\\frac\{1\}\{K\}\\sum\_\{j=1\}^\{K\}\\log\\frac\{\\exp S\_\{\\pi\_\{0\}^\{\-1\}\(j\),j\}\}\{\\sum\_\{i=1\}^\{K\}\\exp S\_\{ij\}\},\(21\)ℒassign\\displaystyle\\mathcal\{L\}\_\{\\mathrm\{assign\}\}=ℒtok\+λcol​ℒcol\.\\displaystyle=\\mathcal\{L\}\_\{\\mathrm\{tok\}\}\+\\lambda\_\{\\mathrm\{col\}\}\\mathcal\{L\}\_\{\\mathrm\{col\}\}\.\(22\)

##### Sinkhorn marginal negative log\-likelihood\.

Using Sinkhorn normalization\([Sinkhorn and Knopp, 1967](https://arxiv.org/html/2610.20635#bib.bib12);[Mena et al\., 2018](https://arxiv.org/html/2610.20635#bib.bib13)\)as introduced in Section[3\.4](https://arxiv.org/html/2610.20635#S3.SS4), we construct the Sinkhorn marginal negative log\-likelihood \(Sinkhorn NLL\) loss

𝐐=SKτ\(𝐒\),ℒsink=−1K∑i=1KlogQi,π0​\(i\)\.\\mathbf\{Q\}=\\operatorname\{SK\}\_\{\\tau\}\(\\mathbf\{S\}\),\\qquad\\mathcal\{L\}\_\{\\mathrm\{sink\}\}=\-\\frac\{1\}\{K\}\\sum\_\{i=1\}^\{K\}\\log Q\_\{i,\\pi\_\{0\}\(i\)\}\.\(23\)This objective assigns high marginal probability to the ground\-truth candidate at every position while coupling rows and columns through Sinkhorn normalization\.

##### Structured hinge\.

We adapt the margin\-rescaled structured hinge\([Tsochantaridis et al\., 2005](https://arxiv.org/html/2610.20635#bib.bib24)\)to global assignment scores\. Let𝐏0\\mathbf\{P\}\_\{0\}be the clean permutation matrix defined in Equation \([2](https://arxiv.org/html/2610.20635#S3.E2)\), and define the per\-position mismatch cost

Δi​j=γ⁡\(1−P0,i​j\),γ\>0\.\\Delta\_\{ij\}=\\gamma\(1\-P\_\{0,ij\}\),\\qquad\\gamma\>0\.\(24\)The most violated assignment and the resulting hinge are

𝐏~\\displaystyle\\widetilde\{\\mathbf\{P\}\}=arg​max𝐏∈𝒫K⁡\{⟨𝐒,𝐏⟩\+⟨𝚫,𝐏⟩\},\\displaystyle=\\operatorname\*\{arg\\,max\}\_\{\\mathbf\{P\}\\in\\mathcal\{P\}\_\{K\}\}\\left\\\{\\langle\\mathbf\{S\},\\mathbf\{P\}\\rangle\+\\langle\\bm\{\\Delta\},\\mathbf\{P\}\\rangle\\right\\\},\(25\)ℒhinge\\displaystyle\\mathcal\{L\}\_\{\\mathrm\{hinge\}\}=1K​\[⟨𝐒,𝐏~−𝐏0⟩\+⟨𝚫,𝐏~⟩\]\+\.\\displaystyle=\\frac\{1\}\{K\}\\left\[\\langle\\mathbf\{S\},\\widetilde\{\\mathbf\{P\}\}\-\\mathbf\{P\}\_\{0\}\\rangle\+\\langle\\bm\{\\Delta\},\\widetilde\{\\mathbf\{P\}\}\\rangle\\right\]\_\{\+\}\.\(26\)The Hungarian solution𝐏~\\widetilde\{\\mathbf\{P\}\}is detached when computing the subgradient, and\[z\]\+=max⁡\{z,0\}\[z\]\_\{\+\}=\\max\\\{z,0\\\}\.

Algorithm[1](https://arxiv.org/html/2610.20635#alg1)summarizes a single\-example training step for the selected objective\.

Algorithm 1HA\-dLLM training step1:Training example

\(c,π0\)\(c,\\pi\_\{0\}\); model parameters

θ\\theta; selected HA\-dLLM objective and its hyperparameters

2:Sample

T∼Unif⁡\(\[K\]\)T\\sim\\operatorname\{Unif\}\(\[K\]\)and select

TTpositions uniformly without replacement\.

3:Sample

gTtrg\_\{T\}^\{\\mathrm\{tr\}\}by uniformly permuting the selected positions\.

4:

πT←π0∘gTtr\\pi\_\{T\}\\leftarrow\\pi\_\{0\}\\circ g\_\{T\}^\{\\mathrm\{tr\}\}
5:

𝐒←𝐒θ​\(c,πT,T\)\\mathbf\{S\}\\leftarrow\\mathbf\{S\}\_\{\\theta\}\(c,\\pi\_\{T\},T\)
6:Compute the training loss using Equation \([20](https://arxiv.org/html/2610.20635#S4.E20)\), \([22](https://arxiv.org/html/2610.20635#S4.E22)\), \([23](https://arxiv.org/html/2610.20635#S4.E23)\), or \([26](https://arxiv.org/html/2610.20635#S4.E26)\), according to the selected objective\.

7:Update

θ\\thetawith the gradient of the loss\.

8:returnUpdated parameters

θ\\theta\.

#### 4\.1\.3Predict–recorrupt sampling and decoding

##### Initialization and schedule\.

We adapt the restore\-and\-recorrupt sampler of Cold Diffusion\([Bansal et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib6)\)to permutations and call the resulting rule*Predict–recorrupt*\. For1≤N≤K1\\leq N\\leq K, choose an integer schedule

K=dN\>dN−1\>⋯\>d0=0,K=d\_\{N\}\>d\_\{N\-1\}\>\\cdots\>d\_\{0\}=0,\(27\)and sample one position shufflegdng\_\{d\_\{n\}\}at each scheduled level from the corresponding subset\-shuffling corruption\. These shuffles are retained throughout inference, withgd0=idg\_\{d\_\{0\}\}=\\mathrm\{id\}andgdNg\_\{d\_\{N\}\}uniform over𝔖K\\mathfrak\{S\}\_\{K\}\. We initializeπ\(N\)=gdN\\pi^\{\(N\)\}=g\_\{d\_\{N\}\}\. Forn=N,N−1,…,1n=N,N\-1,\\ldots,1,π\(n\)\\pi^\{\(n\)\}denotes the input at leveldnd\_\{n\}, and one model evaluation produces the stateπ\(n−1\)\\pi^\{\(n\-1\)\}at leveldn−1d\_\{n\-1\}\.

##### Hungarian decoding\.

At stepnn, the model produces𝐒\(n\)=𝐒θ​\(c,π\(n\),dn\)\\mathbf\{S\}^\{\(n\)\}=\\mathbf\{S\}\_\{\\theta\}\(c,\\pi^\{\(n\)\},d\_\{n\}\)\. The Hungarian algorithm\([Kuhn, 1955](https://arxiv.org/html/2610.20635#bib.bib14)\)gives

𝐏^0\(n\)=arg​max𝐏∈𝒫K⁡⟨𝐒\(n\),𝐏⟩\.\\widehat\{\\mathbf\{P\}\}\_\{0\}^\{\(n\)\}=\\operatorname\*\{arg\\,max\}\_\{\\mathbf\{P\}\\in\\mathcal\{P\}\_\{K\}\}\\langle\\mathbf\{S\}^\{\(n\)\},\\mathbf\{P\}\\rangle\.\(28\)

##### Predict–recorrupt update\.

Letπ^0\(n\)\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}denote the corresponding clean ranking\. Composing this prediction with the retained shuffle at the next corruption level gives

π\(n−1\)=π^0\(n\)∘gdn−1\.\\boxed\{\\pi^\{\(n\-1\)\}=\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\circ g\_\{d\_\{n\-1\}\}\.\}\(29\)Forn\>1n\>1, the sampler re\-corrupts the clean prediction before the next evaluation\. Becausegd0=idg\_\{d\_\{0\}\}=\\mathrm\{id\}, the final output isπ^=π\(0\)=π^0\(1\)\\widehat\{\\pi\}=\\pi^\{\(0\)\}=\\widehat\{\\pi\}\_\{0\}^\{\(1\)\}\.

Algorithm[2](https://arxiv.org/html/2610.20635#alg2)summarizes Predict–recorrupt sampling for HA\-dLLM\.

Algorithm 2HA\-dLLM Predict–recorrupt sampling1:Context

cc; trained model

𝐒θ\\mathbf\{S\}\_\{\\theta\}; budget

1≤N≤K1\\leq N\\leq K
2:Choose integer levels

K=dN\>dN−1\>⋯\>d0=0K=d\_\{N\}\>d\_\{N\-1\}\>\\cdots\>d\_\{0\}=0\.

3:Draw and retain position shuffles

gd0,…,gdNg\_\{d\_\{0\}\},\\ldots,g\_\{d\_\{N\}\}according to the chosen levels\.

4:

π\(N\)←gdN\\pi^\{\(N\)\}\\leftarrow g\_\{d\_\{N\}\}
5:for

n=N,N−1,…,1n=N,N\-1,\\ldots,1do

6:

𝐒\(n\)←𝐒θ​\(c,π\(n\),dn\)\\mathbf\{S\}^\{\(n\)\}\\leftarrow\\mathbf\{S\}\_\{\\theta\}\(c,\\pi^\{\(n\)\},d\_\{n\}\)
7:Use Hungarian assignment to obtain

π^0\(n\)←arg​maxπ∈𝔖K∑i=1KS\(n\)i,π⁡\(i\)\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\leftarrow\\operatorname\*\{arg\\,max\}\_\{\\pi\\in\\mathfrak\{S\}\_\{K\}\}\\sum\_\{i=1\}^\{K\}S^\{\(n\)\}\_\{i,\\pi\(i\)\}\.

8:

π\(n−1\)←π^0\(n\)∘gdn−1\\pi^\{\(n\-1\)\}\\leftarrow\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\circ g\_\{d\_\{n\-1\}\}
9:endfor

10:return

π^=π\(0\)\\widehat\{\\pi\}=\\pi^\{\(0\)\}\.

Appendix[B\.1](https://arxiv.org/html/2610.20635#A2.SS1)proves that Predict–recorrupt preserves permutation validity for HA\-dLLM and OS\-dLLM \(Proposition[B\.1](https://arxiv.org/html/2610.20635#A2.Thmproposition1)\) and analyzes why direct composition\-and\-inversion analogues of Residual\-correction are unsuitable for hard permutation states\.

### 4\.2Soft\-Assignment Prediction \(SA\-dLLM\)

#### 4\.2\.1Input and output representation

SA\-dLLM replaces discrete token states with continuous assignments in the Birkhoff polytopeℬK\\mathcal\{B\}\_\{K\}defined in Section[3\.4](https://arxiv.org/html/2610.20635#S3.SS4)\. Its input comprises the context, a corrupted assignment, and the normalized corruption levelt∈\[0,1\]t\\in\[0,1\]\. Let𝐄∈ℝK×d\\mathbf\{E\}\\in\\mathbb\{R\}^\{K\\times d\}contain the candidate\-index embeddings as rows\. A state𝐗t∈ℬK\\mathbf\{X\}\_\{t\}\\in\\mathcal\{B\}\_\{K\}induces ranking\-slot embeddings

𝐇t=𝐗t​𝐄\.\\mathbf\{H\}\_\{t\}=\\mathbf\{X\}\_\{t\}\\mathbf\{E\}\.\(30\)Prompt\-token embeddings are unchanged\. For ranking slots,𝐇t\\mathbf\{H\}\_\{t\}replaces the standard embedding lookup at the first transformer layer, after which the timestep embedding is added\.

The backbone produces𝐒θ​\(c,𝐗t,t\)∈ℝK×K\\mathbf\{S\}\_\{\\theta\}\(c,\\mathbf\{X\}\_\{t\},t\)\\in\\mathbb\{R\}^\{K\\times K\}\. Write this matrix as𝐒\\mathbf\{S\}and letκ\>0\\kappa\>0be a score bound\. To control the scale inherited from the autoregressive vocabulary projection, we row\-center and rescale the scores for each example:

Si​j∘\\displaystyle S^\{\\circ\}\_\{ij\}=Si​j−1K​∑j′=1KSi​j′,\\displaystyle=S\_\{ij\}\-\\frac\{1\}\{K\}\\sum\_\{j^\{\\prime\}=1\}^\{K\}S\_\{ij^\{\\prime\}\},\(31\)∥𝐒∘∥max\\displaystyle\\lVert\\mathbf\{S\}^\{\\circ\}\\rVert\_\{\\max\}=maxi,j⁡\|Si​j∘\|,\\displaystyle=\\max\_\{i,j\}\|S^\{\\circ\}\_\{ij\}\|,\(32\)𝐒~\\displaystyle\\widetilde\{\\mathbf\{S\}\}=𝐒∘max⁡\{1,∥𝐒∘∥max/κ\}\.\\displaystyle=\\frac\{\\mathbf\{S\}^\{\\circ\}\}\{\\max\\\{1,\\lVert\\mathbf\{S\}^\{\\circ\}\\rVert\_\{\\max\}/\\kappa\\\}\}\.\(33\)Applying the Sinkhorn normalization from Section[3\.4](https://arxiv.org/html/2610.20635#S3.SS4)with the appropriate temperature produces the clean soft\-assignment prediction

𝐐θ​\(c,𝐗t,t\)=SKτ⁡\(𝐒~\)∈ℬK\\mathbf\{Q\}\_\{\\theta\}\(c,\\mathbf\{X\}\_\{t\},t\)=\\operatorname\{SK\}\_\{\\tau\}\(\\widetilde\{\\mathbf\{S\}\}\)\\in\\mathcal\{B\}\_\{K\}\(34\)

#### 4\.2\.2Forward process and anchored\-rollout training

For each example, we sample Gaussian logits independently of the target and context and apply Sinkhorn normalization to obtain a noise matrix:

Gi​j​∼i\.i\.d\.​𝒩​\(0,1\),𝐙=SKτ⁡\(𝐆\)\.G\_\{ij\}\\overset\{\\mathrm\{i\.i\.d\.\}\}\{\\sim\}\\mathcal\{N\}\(0,1\),\\qquad\\mathbf\{Z\}=\\operatorname\{SK\}\_\{\\tau\}\(\\mathbf\{G\}\)\.\(35\)Holding𝐙\\mathbf\{Z\}fixed, the forward path linearly interpolates between the clean permutation matrix and the noise matrix:

𝐗t∗=\(1−t\)​𝐏0\+t​𝐙,t∈\[0,1\]\.\\mathbf\{X\}\_\{t\}^\{\*\}=\(1\-t\)\\mathbf\{P\}\_\{0\}\+t\\mathbf\{Z\},\\qquad t\\in\[0,1\]\.\(36\)
SA\-dLLM training uses two model evaluations, at corruption levels11andt′<1t^\{\\prime\}<1, to provide supervision on a model\-generated state\([Ross et al\., 2011](https://arxiv.org/html/2610.20635#bib.bib23)\)\. The first evaluation predicts a clean assignment from the noise endpoint:

𝐐end=𝐐θ​\(c,𝐙,1\)\.\\mathbf\{Q\}^\{\\mathrm\{end\}\}=\\mathbf\{Q\}\_\{\\theta\}\(c,\\mathbf\{Z\},1\)\.\(37\)We then samplet′t^\{\\prime\}and re\-corrupt𝐐end\\mathbf\{Q\}^\{\\mathrm\{end\}\}with the same noise matrix:

𝐗~t′=\(1−t′\)​sg⁡\(𝐐end\)\+t′​𝐙,\\widetilde\{\\mathbf\{X\}\}\_\{t^\{\\prime\}\}=\(1\-t^\{\\prime\}\)\\operatorname\{sg\}\(\\mathbf\{Q\}^\{\\mathrm\{end\}\}\)\+t^\{\\prime\}\\mathbf\{Z\},\(38\)wheresg\\operatorname\{sg\}denotes stop\-gradient\. The second evaluation predicts the same clean target from this re\-corrupted assignment:

𝐐roll=𝐐θ​\(c,𝐗~t′,t′\)\.\\mathbf\{Q\}^\{\\mathrm\{roll\}\}=\\mathbf\{Q\}\_\{\\theta\}\(c,\\widetilde\{\\mathbf\{X\}\}\_\{t^\{\\prime\}\},t^\{\\prime\}\)\.\(39\)The rollout state contains no direct contribution from𝐏0\\mathbf\{P\}\_\{0\}\. Because the transition begins at𝐗1=𝐙\\mathbf\{X\}\_\{1\}=\\mathbf\{Z\}, Predict–recorrupt and Residual\-correction yield the same𝐗~t′\\widetilde\{\\mathbf\{X\}\}\_\{t^\{\\prime\}\}for this single step\.

##### Anchored\-rollout marginal loss\.

For a predicted assignment𝐐\\mathbf\{Q\}with positive entries, define the marginal loss over all output positions

ℓSA\(𝐐,𝐏0\)=−1K⟨𝐏0,log𝐐⟩=−1K∑i=1KlogQi,π0​\(i\)\.\\ell\_\{\\mathrm\{SA\}\}\(\\mathbf\{Q\},\\mathbf\{P\}\_\{0\}\)=\-\\frac\{1\}\{K\}\\langle\\mathbf\{P\}\_\{0\},\\log\\mathbf\{Q\}\\rangle=\-\\frac\{1\}\{K\}\\sum\_\{i=1\}^\{K\}\\log Q\_\{i,\\pi\_\{0\}\(i\)\}\.\(40\)The anchored\-rollout objective is

ℒanchor=12​ℓSA​\(𝐐end,𝐏0\)\+12​ℓSA​\(𝐐roll,𝐏0\)\.\\boxed\{\\mathcal\{L\}\_\{\\mathrm\{anchor\}\}=\\frac\{1\}\{2\}\\ell\_\{\\mathrm\{SA\}\}\(\\mathbf\{Q\}^\{\\mathrm\{end\}\},\\mathbf\{P\}\_\{0\}\)\+\\frac\{1\}\{2\}\\ell\_\{\\mathrm\{SA\}\}\(\\mathbf\{Q\}^\{\\mathrm\{roll\}\},\\mathbf\{P\}\_\{0\}\)\.\}\(41\)As with the hard Sinkhorn objective, this marginal surrogate scores the ground\-truth candidate at each position rather than computing the exact negative log\-likelihood of a joint distribution overK\!K\!permutations\.

Algorithm[3](https://arxiv.org/html/2610.20635#alg3)summarizes the procedure\. The set𝒩train\\mathcal\{N\}\_\{\\mathrm\{train\}\}determines the grid from whicht′t^\{\\prime\}is sampled; each example still uses exactly two model evaluations, irrespective ofNtrN\_\{\\mathrm\{tr\}\}\.

Algorithm 3SA\-dLLM anchored\-rollout training step1:Training example

\(c,𝐏0\)\(c,\\mathbf\{P\}\_\{0\}\); model parameters

θ\\theta; budget set

𝒩train\\mathcal\{N\}\_\{\\mathrm\{train\}\}; Sinkhorn temperature

τ\\tau
2:Sample

Gi​j​∼i\.i\.d\.​𝒩​\(0,1\)G\_\{ij\}\\overset\{\\mathrm\{i\.i\.d\.\}\}\{\\sim\}\\mathcal\{N\}\(0,1\)and set

𝐙←SKτ⁡\(𝐆\)\\mathbf\{Z\}\\leftarrow\\operatorname\{SK\}\_\{\\tau\}\(\\mathbf\{G\}\)\.

3:

𝐐end←𝐐θ​\(c,𝐙,1\)\\mathbf\{Q\}^\{\\mathrm\{end\}\}\\leftarrow\\mathbf\{Q\}\_\{\\theta\}\(c,\\mathbf\{Z\},1\)using Equation \([34](https://arxiv.org/html/2610.20635#S4.E34)\)\.

4:Sample

Ntr∼Unif⁡\(𝒩train\)N\_\{\\mathrm\{tr\}\}\\sim\\operatorname\{Unif\}\(\\mathcal\{N\}\_\{\\mathrm\{train\}\}\)and

ℓ∼Unif⁡\{0,…,Ntr−1\}\\ell\\sim\\operatorname\{Unif\}\\\{0,\\ldots,N\_\{\\mathrm\{tr\}\}\-1\\\}\.

5:

t′←1−\(ℓ\+1\)/Ntrt^\{\\prime\}\\leftarrow 1\-\(\\ell\+1\)/N\_\{\\mathrm\{tr\}\}
6:

𝐗~t′←\(1−t′\)​sg⁡\(𝐐end\)\+t′​𝐙\\widetilde\{\\mathbf\{X\}\}\_\{t^\{\\prime\}\}\\leftarrow\(1\-t^\{\\prime\}\)\\operatorname\{sg\}\(\\mathbf\{Q\}^\{\\mathrm\{end\}\}\)\+t^\{\\prime\}\\mathbf\{Z\}
7:

𝐐roll←𝐐θ​\(c,𝐗~t′,t′\)\\mathbf\{Q\}^\{\\mathrm\{roll\}\}\\leftarrow\\mathbf\{Q\}\_\{\\theta\}\(c,\\widetilde\{\\mathbf\{X\}\}\_\{t^\{\\prime\}\},t^\{\\prime\}\)
8:

ℒanchor←12​ℓSA​\(𝐐end,𝐏0\)\+12​ℓSA​\(𝐐roll,𝐏0\)\\mathcal\{L\}\_\{\\mathrm\{anchor\}\}\\leftarrow\\tfrac\{1\}\{2\}\\ell\_\{\\mathrm\{SA\}\}\(\\mathbf\{Q\}^\{\\mathrm\{end\}\},\\mathbf\{P\}\_\{0\}\)\+\\tfrac\{1\}\{2\}\\ell\_\{\\mathrm\{SA\}\}\(\\mathbf\{Q\}^\{\\mathrm\{roll\}\},\\mathbf\{P\}\_\{0\}\)
9:Update

θ\\thetawith the gradient of the single\-example loss\.

10:returnUpdated parameters

θ\\theta\.

#### 4\.2\.3Predict–recorrupt and Residual\-correction sampling

##### Initialization and schedule\.

We adapt the restore\-and\-recorrupt and improved updates of Cold Diffusion\([Bansal et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib6)\), calling them Predict–recorrupt and Residual\-correction, respectively\. Both use the same trained model, noise matrix, and terminal decoder\. For an NFE budgetN≥1N\\geq 1, they follow the linear schedule

1=tN\>tN−1\>⋯\>t0=0,tn=nN,1=t\_\{N\}\>t\_\{N\-1\}\>\\cdots\>t\_\{0\}=0,\\qquad t\_\{n\}=\\frac\{n\}\{N\},\(42\)sample one noise matrix𝐙\\mathbf\{Z\}, initialize𝐗tN=𝐙\\mathbf\{X\}\_\{t\_\{N\}\}=\\mathbf\{Z\}, and reuse𝐙\\mathbf\{Z\}throughout the trajectory\. The model receives\(c,𝐗tn,tn\)\(c,\\mathbf\{X\}\_\{t\_\{n\}\},t\_\{n\}\), while the sampler additionally uses𝐙\\mathbf\{Z\}to construct the next state\. At each stepn=N,N−1,…,1n=N,N\-1,\\ldots,1, the model predicts𝐐\(n\)=𝐐θ​\(c,𝐗tn,tn\)\\mathbf\{Q\}^\{\(n\)\}=\\mathbf\{Q\}\_\{\\theta\}\(c,\\mathbf\{X\}\_\{t\_\{n\}\},t\_\{n\}\)\.

##### Predict–recorrupt update\.

Predict–recorrupt applies the forward corruption to the latest prediction at the next scheduled time:

𝐗tn−1=\(1−tn−1\)​𝐐\(n\)\+tn−1​𝐙\.\\boxed\{\\mathbf\{X\}\_\{t\_\{n\-1\}\}=\(1\-t\_\{n\-1\}\)\\mathbf\{Q\}^\{\(n\)\}\+t\_\{n\-1\}\\mathbf\{Z\}\.\}\(43\)Its terminal assignment is the last clean prediction𝐀=𝐐\(1\)\\mathbf\{A\}=\\mathbf\{Q\}^\{\(1\)\}\.

##### Residual\-correction update\.

Residual\-correction subtracts the current prediction corrupted attnt\_\{n\}and adds the same prediction corrupted attn−1t\_\{n\-1\}, using the retained noise matrix𝐙\\mathbf\{Z\}\. Under the affine corruption in Equation \([36](https://arxiv.org/html/2610.20635#S4.E36)\), the update simplifies to

𝐗tn−1=𝐗tn\+\(tn−tn−1\)​\(𝐐\(n\)−𝐙\)\.\\boxed\{\\mathbf\{X\}\_\{t\_\{n\-1\}\}=\\mathbf\{X\}\_\{t\_\{n\}\}\+\(t\_\{n\}\-t\_\{n\-1\}\)\(\\mathbf\{Q\}^\{\(n\)\}\-\\mathbf\{Z\}\)\.\}\(44\)We implement this update with the equivalent accumulator

𝐂N\\displaystyle\\mathbf\{C\}\_\{N\}=𝟎K×K,\\displaystyle=\\mathbf\{0\}\_\{K\\times K\},\(45\)𝐂n−1\\displaystyle\\mathbf\{C\}\_\{n\-1\}=𝐂n\+\(tn−tn−1\)​𝐐\(n\),\\displaystyle=\\mathbf\{C\}\_\{n\}\+\(t\_\{n\}\-t\_\{n\-1\}\)\\mathbf\{Q\}^\{\(n\)\},\(46\)𝐗tn−1\\displaystyle\\mathbf\{X\}\_\{t\_\{n\-1\}\}=tn−1​𝐙\+𝐂n−1\.\\displaystyle=t\_\{n\-1\}\\mathbf\{Z\}\+\\mathbf\{C\}\_\{n\-1\}\.\(47\)Its terminal assignment is the step\-weighted ensemble

𝐀=𝐂0=∑n=1N\(tn−tn−1\)​𝐐\(n\)\.\\mathbf\{A\}=\\mathbf\{C\}\_\{0\}=\\sum\_\{n=1\}^\{N\}\(t\_\{n\}\-t\_\{n\-1\}\)\\mathbf\{Q\}^\{\(n\)\}\.\(48\)
If𝐙\\mathbf\{Z\}and all𝐐\(n\)\\mathbf\{Q\}^\{\(n\)\}are exactly doubly stochastic, both updates remain inℬK\\mathcal\{B\}\_\{K\}because every state is a convex combination of𝐙\\mathbf\{Z\}and the predictions\. Finite Sinkhorn normalization satisfies these constraints only approximately\. Appendix[B\.2](https://arxiv.org/html/2610.20635#A2.SS2)proves the validity claims and derives the Residual\-correction trajectory and terminal ensemble\. Neither sampler uses an intermediate discrete projection\.

##### Terminal Hungarian decoding\.

For either sampler, the terminal assignment scores are

𝐖=log⁡\(max⁡\{𝐀,ε\}\),\\mathbf\{W\}=\\log\\\!\\left\(\\max\\\{\\mathbf\{A\},\\varepsilon\\\}\\right\),\(49\)whereε\>0\\varepsilon\>0provides a numerical floor before the elementwise logarithm\. A single Hungarian projection then yields

π^=arg​maxπ∈𝔖K∑i=1KWi,π⁡\(i\)\.\\widehat\{\\pi\}=\\operatorname\*\{arg\\,max\}\_\{\\pi\\in\\mathfrak\{S\}\_\{K\}\}\\sum\_\{i=1\}^\{K\}W\_\{i,\\pi\(i\)\}\.\(50\)The soft\-state updates neither clip nor renormalize intermediate states; the terminal Hungarian assignment is the only discrete projection\.

Algorithms[4](https://arxiv.org/html/2610.20635#alg4)and[5](https://arxiv.org/html/2610.20635#alg5)summarize Predict–recorrupt and Residual\-correction sampling, respectively\. Each uses one terminal Hungarian assignment\.

Algorithm 4SA\-dLLM Predict–recorrupt sampling1:Context

cc; trained model

𝐐θ\\mathbf\{Q\}\_\{\\theta\}; budget

N≥1N\\geq 1; Sinkhorn temperature

τ\>0\\tau\>0; numerical floor

ε\>0\\varepsilon\>0
2:Set

tn←n/Nt\_\{n\}\\leftarrow n/Nfor

n=0,…,Nn=0,\\ldots,N\.

3:Sample

Gi​j​∼i\.i\.d\.​𝒩​\(0,1\)G\_\{ij\}\\overset\{\\mathrm\{i\.i\.d\.\}\}\{\\sim\}\\mathcal\{N\}\(0,1\)and set

𝐙←SKτ⁡\(𝐆\)\\mathbf\{Z\}\\leftarrow\\operatorname\{SK\}\_\{\\tau\}\(\\mathbf\{G\}\)\.

4:

𝐗tN←𝐙\\mathbf\{X\}\_\{t\_\{N\}\}\\leftarrow\\mathbf\{Z\}
5:for

n=N,N−1,…,1n=N,N\-1,\\ldots,1do

6:

𝐐\(n\)←𝐐θ​\(c,𝐗tn,tn\)\\mathbf\{Q\}^\{\(n\)\}\\leftarrow\\mathbf\{Q\}\_\{\\theta\}\(c,\\mathbf\{X\}\_\{t\_\{n\}\},t\_\{n\}\)
7:

𝐗tn−1←\(1−tn−1\)​𝐐\(n\)\+tn−1​𝐙\\mathbf\{X\}\_\{t\_\{n\-1\}\}\\leftarrow\(1\-t\_\{n\-1\}\)\\mathbf\{Q\}^\{\(n\)\}\+t\_\{n\-1\}\\mathbf\{Z\}
8:endfor

9:

𝐖←log⁡\(max⁡\{𝐐\(1\),ε\}\)\\mathbf\{W\}\\leftarrow\\log\\\!\\left\(\\max\\\{\\mathbf\{Q\}^\{\(1\)\},\\varepsilon\\\}\\right\)
10:Use Hungarian assignment to obtain

π^←arg​maxπ∈𝔖K∑i=1KWi,π⁡\(i\)\\widehat\{\\pi\}\\leftarrow\\operatorname\*\{arg\\,max\}\_\{\\pi\\in\\mathfrak\{S\}\_\{K\}\}\\sum\_\{i=1\}^\{K\}W\_\{i,\\pi\(i\)\}\.

11:return

π^\\widehat\{\\pi\}\.

Algorithm 5SA\-dLLM Residual\-correction sampling1:Context

cc; trained model

𝐐θ\\mathbf\{Q\}\_\{\\theta\}; budget

N≥1N\\geq 1; Sinkhorn temperature

τ\>0\\tau\>0; numerical floor

ε\>0\\varepsilon\>0
2:Set

tn←n/Nt\_\{n\}\\leftarrow n/Nfor

n=0,…,Nn=0,\\ldots,N\.

3:Sample

Gi​j​∼i\.i\.d\.​𝒩​\(0,1\)G\_\{ij\}\\overset\{\\mathrm\{i\.i\.d\.\}\}\{\\sim\}\\mathcal\{N\}\(0,1\)and set

𝐙←SKτ⁡\(𝐆\)\\mathbf\{Z\}\\leftarrow\\operatorname\{SK\}\_\{\\tau\}\(\\mathbf\{G\}\)\.

4:

𝐗tN←𝐙\\mathbf\{X\}\_\{t\_\{N\}\}\\leftarrow\\mathbf\{Z\};

𝐂N←𝟎K×K\\mathbf\{C\}\_\{N\}\\leftarrow\\mathbf\{0\}\_\{K\\times K\}
5:for

n=N,N−1,…,1n=N,N\-1,\\ldots,1do

6:

𝐐\(n\)←𝐐θ​\(c,𝐗tn,tn\)\\mathbf\{Q\}^\{\(n\)\}\\leftarrow\\mathbf\{Q\}\_\{\\theta\}\(c,\\mathbf\{X\}\_\{t\_\{n\}\},t\_\{n\}\)
7:

𝐂n−1←𝐂n\+\(tn−tn−1\)​𝐐\(n\)\\mathbf\{C\}\_\{n\-1\}\\leftarrow\\mathbf\{C\}\_\{n\}\+\(t\_\{n\}\-t\_\{n\-1\}\)\\mathbf\{Q\}^\{\(n\)\}
8:

𝐗tn−1←tn−1​𝐙\+𝐂n−1\\mathbf\{X\}\_\{t\_\{n\-1\}\}\\leftarrow t\_\{n\-1\}\\mathbf\{Z\}\+\\mathbf\{C\}\_\{n\-1\}
9:endfor

10:

𝐖←log⁡\(max⁡\{𝐂0,ε\}\)\\mathbf\{W\}\\leftarrow\\log\\\!\\left\(\\max\\\{\\mathbf\{C\}\_\{0\},\\varepsilon\\\}\\right\)
11:Use Hungarian assignment to obtain

π^←arg​maxπ∈𝔖K∑i=1KWi,π⁡\(i\)\\widehat\{\\pi\}\\leftarrow\\operatorname\*\{arg\\,max\}\_\{\\pi\\in\\mathfrak\{S\}\_\{K\}\}\\sum\_\{i=1\}^\{K\}W\_\{i,\\pi\(i\)\}\.

12:return

π^\\widehat\{\\pi\}\.

### 4\.3Direct Ordering\-Score Prediction \(OS\-dLLM\)

#### 4\.3\.1Input and output representation

OS\-dLLM uses the same prompt, hard permutation state, slot\-attention pattern, and Fourier\-feature timestep embedding as HA\-dLLM\. Rather than scoring assignments or enumeratingK\!K\!permutations, it maps the hidden state of each current source slotssto a scalar ordering score

qs=𝐚⊤​𝐡s\+b,s∈\[K\]\.q\_\{s\}=\\mathbf\{a\}^\{\\top\}\\mathbf\{h\}\_\{s\}\+b,\\qquad s\\in\[K\]\.\(51\)Here𝐚∈ℝd\\mathbf\{a\}\\in\\mathbb\{R\}^\{d\}andb∈ℝb\\in\\mathbb\{R\}are learned parameters\. Sorting theKKscores determines the destination order\. We denote the source\-slot score vector by𝐪θ​\(c,πT,T\)∈ℝK\\mathbf\{q\}\_\{\\theta\}\(c,\\pi\_\{T\},T\)\\in\\mathbb\{R\}^\{K\}\.

#### 4\.3\.2Forward process and training loss

Training uses the subset\-shuffling corruption in Equation \([19](https://arxiv.org/html/2610.20635#S4.E19)\)\. Relative to the current rankingπT\\pi\_\{T\}, define the target source order

σT∗=πT−1∘π0,πT​\(σT∗​\(i\)\)=π0​\(i\)\.\\sigma\_\{T\}^\{\*\}=\\pi\_\{T\}^\{\-1\}\\circ\\pi\_\{0\},\\qquad\\pi\_\{T\}\\\!\\left\(\\sigma\_\{T\}^\{\*\}\(i\)\\right\)=\\pi\_\{0\}\(i\)\.\(52\)ThusσT∗​\(i\)\\sigma\_\{T\}^\{\*\}\(i\)is the current source slot containing the candidate assigned to destination rankii\.

##### Listwise maximum likelihood\.

We train allKKpositions with the negative log\-likelihood of the Plackett–Luce model\([Plackett, 1975](https://arxiv.org/html/2610.20635#bib.bib27)\), using the ListMLE objective\([Xia et al\., 2008](https://arxiv.org/html/2610.20635#bib.bib11)\):

ℒperm=1K∑i=1K\[log∑r=iKexpqσT∗​\(r\)−qσT∗​\(i\)\]\.\\mathcal\{L\}\_\{\\mathrm\{perm\}\}=\\frac\{1\}\{K\}\\sum\_\{i=1\}^\{K\}\\left\[\\log\\sum\_\{r=i\}^\{K\}\\exp q\_\{\\sigma\_\{T\}^\{\*\}\(r\)\}\-q\_\{\\sigma\_\{T\}^\{\*\}\(i\)\}\\right\]\.\(53\)
Algorithm[6](https://arxiv.org/html/2610.20635#alg6)summarizes the ListMLE training step for one example\.

Algorithm 6OS\-dLLM training step1:Training example

\(c,π0\)\(c,\\pi\_\{0\}\); model parameters

θ\\theta
2:Sample

T∼Unif⁡\(\[K\]\)T\\sim\\operatorname\{Unif\}\(\[K\]\)and select

TTpositions uniformly without replacement\.

3:Sample

gTtrg\_\{T\}^\{\\mathrm\{tr\}\}by uniformly permuting the selected positions\.

4:if

gTtrg\_\{T\}^\{\\mathrm\{tr\}\}is the identitythen

5:Replace

gTtrg\_\{T\}^\{\\mathrm\{tr\}\}by a random transposition, following Section[A\.2](https://arxiv.org/html/2610.20635#A1.SS2)\.

6:endif

7:

πT←π0∘gTtr\\pi\_\{T\}\\leftarrow\\pi\_\{0\}\\circ g\_\{T\}^\{\\mathrm\{tr\}\}
8:Compute source\-slot scores

𝐪←𝐪θ​\(c,πT,T\)\\mathbf\{q\}\\leftarrow\\mathbf\{q\}\_\{\\theta\}\(c,\\pi\_\{T\},T\)\.

9:

σT∗←πT−1∘π0\\sigma\_\{T\}^\{\*\}\\leftarrow\\pi\_\{T\}^\{\-1\}\\circ\\pi\_\{0\}
10:Compute

ℒperm\\mathcal\{L\}\_\{\\mathrm\{perm\}\}over all

KKpositions using Equation \([53](https://arxiv.org/html/2610.20635#S4.E53)\)\.

11:Update

θ\\thetawith the gradient of the single\-example loss\.

12:returnUpdated parameters

θ\\theta\.

#### 4\.3\.3Predict–recorrupt sampling and decoding

##### Sorting\-based decoding\.

Forn=N,N−1,…,1n=N,N\-1,\\ldots,1, let𝐪\(n\)∈ℝK\\mathbf\{q\}^\{\(n\)\}\\in\\mathbb\{R\}^\{K\}contain the source\-slot scores\. A stable descending sort yields the source order

σ^\(n\)=argsort⁡\(𝐪\(n\);descending\),\\widehat\{\\sigma\}^\{\(n\)\}=\\operatorname\{argsort\}\(\\mathbf\{q\}^\{\(n\)\};\\text\{descending\}\),\(54\)which is composed with the current ranking to predict the clean state:

π^0\(n\)=π\(n\)∘σ^\(n\)\.\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}=\\pi^\{\(n\)\}\\circ\\widehat\{\\sigma\}^\{\(n\)\}\.\(55\)The decoder therefore uses sorting rather than Hungarian assignment\.

##### Predict–recorrupt update\.

Multi\-step inference uses the same fixed trajectory and Predict–recorrupt update as Equation \([29](https://arxiv.org/html/2610.20635#S4.E29)\):

π\(n−1\)=π^0\(n\)∘gdn−1\.\\pi^\{\(n\-1\)\}=\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\circ g\_\{d\_\{n\-1\}\}\.\(56\)Algorithm[7](https://arxiv.org/html/2610.20635#alg7)summarizes sorting\-based Predict–recorrupt sampling\.

Algorithm 7OS\-dLLM Predict–recorrupt sampling1:Context

cc; trained model

𝐪θ\\mathbf\{q\}\_\{\\theta\}; budget

1≤N≤K1\\leq N\\leq K
2:Choose integer levels

K=dN\>dN−1\>⋯\>d0=0K=d\_\{N\}\>d\_\{N\-1\}\>\\cdots\>d\_\{0\}=0\.

3:Draw and retain position shuffles

gd0,…,gdNg\_\{d\_\{0\}\},\\ldots,g\_\{d\_\{N\}\}as in Algorithm[2](https://arxiv.org/html/2610.20635#alg2)\.

4:

π\(N\)←gdN\\pi^\{\(N\)\}\\leftarrow g\_\{d\_\{N\}\}
5:for

n=N,N−1,…,1n=N,N\-1,\\ldots,1do

6:

𝐪\(n\)←𝐪θ​\(c,π\(n\),dn\)\\mathbf\{q\}^\{\(n\)\}\\leftarrow\\mathbf\{q\}\_\{\\theta\}\(c,\\pi^\{\(n\)\},d\_\{n\}\)
7:

σ^\(n\)←argsort⁡\(𝐪\(n\);descending\)\\widehat\{\\sigma\}^\{\(n\)\}\\leftarrow\\operatorname\{argsort\}\(\\mathbf\{q\}^\{\(n\)\};\\text\{descending\}\)using a stable sort\.

8:

π^0\(n\)←π\(n\)∘σ^\(n\)\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\leftarrow\\pi^\{\(n\)\}\\circ\\widehat\{\\sigma\}^\{\(n\)\}
9:

π\(n−1\)←π^0\(n\)∘gdn−1\\pi^\{\(n\-1\)\}\\leftarrow\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\circ g\_\{d\_\{n\-1\}\}
10:endfor

11:return

π^=π\(0\)\\widehat\{\\pi\}=\\pi^\{\(0\)\}\.

## 5Experiments

We evaluate one\-evaluation ranking quality, projection\-free validity, and sensitivity to the NFE budget\. We also compare the training objectives and sampling procedures within each model family\.

### 5\.1Experimental Setup

#### 5\.1\.1Datasets and splits

We use the Beauty, Sports and Outdoors, and Toys and Games categories of the Amazon\-2014 review dataset\([McAuley et al\., 2015](https://arxiv.org/html/2610.20635#bib.bib1)\)333Evaluation on the internal system is ongoing\.\. We apply standard 5\-core filtering and a leave\-one\-out protocol, yielding one query per retained user in each split\. Table[2](https://arxiv.org/html/2610.20635#S5.T2)summarizes the processed data\.

Table 2:Statistics of the three processed Amazon review datasets\.
#### 5\.1\.2Candidate construction and target relabeling

Each reranking example contains user\-history text and textual descriptions ofKKcandidates\. The target is a sequence of candidate indices ordered from most to least relevant\.

For each query, a pointwise cross\-encoder reranker\([Xu et al\., 2026](https://arxiv.org/html/2610.20635#bib.bib28)\)scores the item catalog\. ForK∈\{10,20\}K\\in\\\{10,20\\\}, we retain the held\-out positive and theK−1K\-1highest\-scoring nonpositive items as hard negatives\. The positive is the only item with an observed relevance label\. We place it first in the clean order and sort the negatives by decreasing cross\-encoder score; consequently, the negative order is a pseudo\-label rather than an independently annotated relevance judgment\.

Before presentation, we randomly permute the candidate list and relabel the target with the inverse permutation\. Formally, letx¯j\\bar\{x\}\_\{j\}andπ¯0\\bar\{\\pi\}\_\{0\}denote the canonical candidate descriptions and target order, whereπ¯0\\bar\{\\pi\}\_\{0\}is the identity under the construction above\. We sampleη∈𝔖K\\eta\\in\\mathfrak\{S\}\_\{K\}, presentxj=x¯η⁡\(j\)x\_\{j\}=\\bar\{x\}\_\{\\eta\(j\)\}, and setπ0=η−1∘π¯0\\pi\_\{0\}=\\eta^\{\-1\}\\circ\\bar\{\\pi\}\_\{0\}\. This presentation shuffle is part of dataset construction and is distinct from diffusion corruption\.

#### 5\.1\.3Prompt and output representation

The prompt contains a system instruction, the user’s purchase history, andKKenumerated candidate descriptions\. Candidatejjis prefixed by<idx\_j\>\. The final instruction requests every index exactly once, ordered from most to least relevant and enclosed by<rank\>and</rank\>\.

### 5\.2Metrics

Letr∈\{1,…,K\}r\\in\\\{1,\\ldots,K\\\}denote the one\-based rank of the held\-out positive in a valid prediction\. Invalid outputs receive zero for all relevance metrics\. We average each metric over test queries\.

##### Recall\.

Recall@kkindicates whether the positive appears among the firstkkpositions:

R​@k=𝟏\[r≤k\]\.\\operatorname\{R@\}k=\\mathbf\{1\}\[r\\leq k\]\.\(57\)We report Recall@1 and Recall@5\.

##### Mean reciprocal rank\.

Mean reciprocal rank \(MRR\) is

MRR=1r\.\\operatorname\{MRR\}=\\frac\{1\}\{r\}\.\(58\)

##### Normalized discounted cumulative gain\.

With one relevant item, normalized discounted cumulative gain at cutoffkkis

NDCG​@⁡k=𝟏\[r≤k\]log2⁡\(r\+1\)\.\\operatorname\{NDCG@\}k=\\frac\{\\mathbf\{1\}\[r\\leq k\]\}\{\\log\_\{2\}\(r\+1\)\}\.\(59\)We report NDCG@1 and NDCG@5\. Because every example has exactly one relevant item, NDCG@1 and Recall@1 are numerically identical; duplicate NDCG@1 values are omitted from the main tables\.

##### Position accuracy\.

Position accuracy is the fraction of positions whose predicted candidate matches the clean target at the same position\. It measures recovery of the full target permutation rather than only the positive item’s rank\.

##### Pairwise accuracy\.

Pairwise accuracy is the fraction of candidate pairs that appear in the same relative order as in the clean target\. A pair receives credit only if both candidates occur exactly once, thereby penalizing omissions and duplicates\.

##### Valid rate\.

Valid rate is the fraction of outputs containing every presented candidate index exactly once\. We apply no post hoc projection during evaluation; position and pairwise accuracy are computed from the raw output\.

##### Number of function evaluations\.

The number of function evaluations \(NFE\) counts language\-model forward evaluations used to produce a ranking\. AR requires one sequential evaluation per candidate token, whereas each diffusion evaluation scores allKKranking positions in parallel\.

### 5\.3Baselines

All learned models use the same pretrained Qwen3\-0\.6B backbone444Model checkpoint:[https://huggingface\.co/Qwen/Qwen3\-0\.6B](https://huggingface.co/Qwen/Qwen3-0.6B)\. Official overview:[https://qwenlm\.github\.io/blog/qwen3/](https://qwenlm.github.io/blog/qwen3/)\., candidate sets, prompt format, candidate\-index vocabulary, and presentation shuffle\. We include the following baselines:

- •Random valid permutation\.A uniformly random candidate order provides a nonlearned reference with guaranteed validity\.
- •AR reranker\.The model generatesKKcandidate\-index tokens with permutation\-constrained greedy decoding\.
- •Masked diffusion language model\.The mdLLM predicts masked slots in parallel, and its constrained decoder commits a one\-to\-one assignment over the remaining positions and candidates at each step\.

The evaluated configurations follow Table[1](https://arxiv.org/html/2610.20635#S4.T1)\. HA\-dLLM uses token CE, row\-plus\-column assignment CE, Sinkhorn marginal NLL, or structured hinge training, followed by Predict–recorrupt sampling\. SA\-dLLM uses Predict–recorrupt or Residual\-correction sampling, and OS\-dLLM uses ListMLE with Predict–recorrupt sampling\. HA\-dLLM applies Hungarian decoding at every denoising step, SA\-dLLM applies it only at termination, and OS\-dLLM uses sorting\.

Complete optimization, checkpoint\-selection, and evaluation settings are provided in Appendix[A](https://arxiv.org/html/2610.20635#A1)\.

### 5\.4Parallel Reranking with One Function Evaluation

Table 3:Full\-test Recall@1\. AR usesKKsequential function evaluations; all other learned models use NFE=1=1\. “H” denotes Hungarian assignment and “sort” denotes the ordering\-score decoder\. AR values marked†\\daggerare from earlier full\-test controls; all other values are from the metric\-complete evaluation\. Boldface indicates the highest pre\-rounding value in each column\.K=10K=10K=20K=20Model / decoderNFEBeautySportsToysBeautySportsToysRandom valid permutation0\.100\.100\.100\.050\.050\.050AR†KK\.863\.892\.852\.828\.875\.792mdLLM \+ constrained/H1\.883\.917\.840\.823\.875\.787HA\-dLLM, token CE \+ H1\.879\.913\.845\.817\.872\.782HA\-dLLM, assignment CE \+ H1\.880\.918\.847\.820\.873\.790HA\-dLLM, Sinkhorn NLL \+ H1\.881\.918\.847\.817\.871\.786HA\-dLLM, structured hinge \+ H1\.855\.885\.848\.813\.854\.771SA\-dLLM anchored \+ final H1\.889\.914\.851\.823\.869\.788OS\-dLLM \+ sort1\.840\.887\.814\.782\.842\.741Table[3](https://arxiv.org/html/2610.20635#S5.T3)compares NFE=1=1diffusion prediction withKK\-step AR decoding\. The strongest diffusion configuration exceeds the reported AR control on Beauty and Sports atK=10K=10, matches it on Sports atK=20K=20, and differs by at most0\.50\.5Recall@1 percentage points in the remaining settings\. No diffusion family dominates all six settings: SA\-dLLM performs best on Beauty atK=10K=10and matches constrained mdLLM on Beauty atK=20K=20, whereas HA\-dLLM variants lead the proposed families on Sports at both candidate\-set sizes and on Toys atK=20K=20\. Because the AR entries come from earlier full\-test controls, these cross\-family comparisons should be interpreted as provisional until AR is regenerated with the metric\-complete evaluator\.

### 5\.5Constraint Satisfaction Without Assignment Projection

Table[4](https://arxiv.org/html/2610.20635#S5.T4)compares discrete rankings produced without assignment projection\. At NFE=1=1, raw mdLLM has near\-zero validity because independent token predictions repeat or omit candidates, whereas OS\-dLLM is valid by construction\. At NFE=K=K, raw mdLLM approaches unit validity and achieves higher Recall@1 than OS\-dLLM in all six settings\. Sorting therefore guarantees validity at every budget, whereas raw mdLLM relies on iterative commitment to recover valid permutations\.

Table 4:Projection\-free Recall@1 and valid rate at NFE=1=1and NFE=K=K\. Each cell reportsN=1→N=KN=1\\rightarrow N=K\. Values are rounded to three decimals; 1\.000 does not necessarily indicate exact validity of one\.
### 5\.6Effect of Additional Function Evaluations

Table[5](https://arxiv.org/html/2610.20635#S5.T5)reports Recall@1 across NFE budgets on Beauty withK=20K=20\. Constrained mdLLM, Sinkhorn\-trained HA\-dLLM, and SA\-dLLM change little; token CE and assignment CE degrade, whereas OS\-dLLM improves by0\.50\.5percentage points\. The effect of additional evaluations is therefore parameterization dependent\.

Table 5:Recall@1 versus NFE on Beauty withK=20K=20\. HA\-dLLM and OS\-dLLM use Predict–recorrupt sampling; SA\-dLLM uses the selected anchored\-rollout checkpoint\.Table[6](https://arxiv.org/html/2610.20635#S5.T6)shows that stable Recall@1 can conceal changes in the full order\. OS\-dLLM gains0\.4970\.497Recall@1 percentage points while losing0\.7880\.788position\-accuracy and0\.8600\.860pairwise\-accuracy points\. Sinkhorn\-trained HA\-dLLM and SA\-dLLM remain stable on both relevance and full\-order metrics\.

Table 6:Metric changes from NFE=1=1to NFE=20=20on Beauty withK=20K=20, in percentage points\. Positive values indicate improvement\.Across the six evaluated settings, Sinkhorn NLL is the most consistently stable HA\-dLLM objective as NFE increases\. OS\-dLLM improves from NFE=1=1to NFE=K=Kin five settings but remains below the strongest HA\-dLLM in each setting\.

## 6Conclusion

We studied conditional permutation generation with language\-model denoisers through three parameterizations: hard\-assignment prediction, soft\-assignment prediction, and direct ordering\-score prediction\. The corresponding model families impose permutation constraints through per\-step assignment, terminal assignment, and sorting, respectively, and require distinct corruption processes, objectives, and samplers\.

The experiments demonstrate that useful rankings can be produced at NFE=1=1while exposing tradeoffs among ranking quality, validity, and iterative stability\. Anchored SA\-dLLM remains stable across NFE budgets, whereas OS\-dLLM guarantees validity without Hungarian assignment but trails the strongest constrained decoders\. Additional function evaluations do not consistently improve ranking quality\. These findings support treating corruption, prediction parameterization, objective, and sampler as coupled design choices\. Evaluation on larger candidate sets, multiple training seeds, independently judged full rankings, and controlled end\-to\-end latency measurements remains important future work\.

## References

- Austinet al\.\(2021\)J\. Austin, D\. D\. Johnson, J\. Ho, D\. Tarlow, and R\. van den BergStructured denoising diffusion models in discrete state\-spaces\.InAdvances in Neural Information Processing Systems,Vol\.34\.External Links:[Link](https://arxiv.org/abs/2107.03006),2107\.03006Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px1.p1.1)\.
- Bansalet al\.\(2023\)A\. Bansal, E\. Borgnia, H\. Chu, J\. S\. Li, H\. Kazemi, F\. Huang, M\. Goldblum, J\. Geiping, and T\. GoldsteinCold diffusion: inverting arbitrary image transforms without noise\.InAdvances in Neural Information Processing Systems,Vol\.36,pp\. 41259–41282\.External Links:[Link](https://arxiv.org/abs/2208.09392),2208\.09392Cited by:[§B\.1\.2](https://arxiv.org/html/2610.20635#A2.SS1.SSS2.Px4.p1.1),[§1](https://arxiv.org/html/2610.20635#S1.p5.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px2.p1.1),[§4\.1\.3](https://arxiv.org/html/2610.20635#S4.SS1.SSS3.Px1.p1.1),[§4\.2\.3](https://arxiv.org/html/2610.20635#S4.SS2.SSS3.Px1.p1.1)\.
- Changet al\.\(2022\)H\. Chang, H\. Zhang, L\. Jiang, C\. Liu, and W\. T\. FreemanMaskGIT: masked generative image transformer\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 11315–11325\.External Links:[Link](https://openaccess.thecvf.com/content/CVPR2022/html/Chang_MaskGIT_Masked_Generative_Image_Transformer_CVPR_2022_paper.html)Cited by:[§3\.3\.2](https://arxiv.org/html/2610.20635#S3.SS3.SSS2.p1.1)\.
- Gangi Reddyet al\.\(2024\)R\. Gangi Reddy, J\. Doo, Y\. Xu, M\. A\. Sultan, D\. Swain, A\. Sil, and H\. JiFIRST: faster improved listwise reranking with single token decoding\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,pp\. 8642–8652\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.emnlp-main.491),[Link](https://aclanthology.org/2024.emnlp-main.491/)Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1)\.
- Heet al\.\(2026\)S\. He, Y\. Zhang, S\. Zhang, and D\. van DijkLearning permutation distributions via reflected diffusion on ranks\.InInternational Conference on Machine Learning,External Links:[Link](https://arxiv.org/abs/2603.17353),2603\.17353Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p3.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px3.p1.1)\.
- Kuhn \(1955\)H\. W\. KuhnThe Hungarian method for the assignment problem\.Naval Research Logistics Quarterly2\(1–2\),pp\. 83–97\.External Links:[Document](https://dx.doi.org/10.1002/nav.3800020109),[Link](https://onlinelibrary.wiley.com/doi/10.1002/nav.3800020109)Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px4.p1.1),[§3\.4](https://arxiv.org/html/2610.20635#S3.SS4.SSS0.Px1.p1.3),[§4\.1\.3](https://arxiv.org/html/2610.20635#S4.SS1.SSS3.Px2.p1.1)\.
- Liet al\.\(2026\)Y\. Li, Z\. Zhang, M\. Liang, K\. Asadi, J\. Xu, J\. Kim, C\. Bai, J\. Zhang, H\. Xie, P\. Agrawal, D\. Yu, T\. Chen, J\. Billaud, G\. Buell, Y\. \(\. Zhu, S\. Patil, B\. Bian, Z\. Fang, K\. Huang, S\. Sudanagunta, Y\. Huang, E\. Lu, C\. O’Brien, Y\. Song, L\. Li, J\. Tao, Z\. Zhu, C\. Li, G\. Liu, N\. Wu, Z\. Hu, L\. Han, L\. Chen, M\. Lei, G\. Rehm, S\. Song, T\. Zhang, L\. Li, K\. Singh, Y\. Yetim, I\. Atishev, S\. Gera, A\. Sadeghi, R\. Yan, N\. Mizutani, S\. Wang, S\. Yang, Z\. Li, J\. Liu, M\. Sun, F\. Tian, X\. Wei, C\. Sun, S\. Gu, P\. Aggarwal, S\. Manickavelu, K\. Rangadurai, Z\. Hua, F\. Shyu, R\. Sharma, L\. Li, S\. Mei, W\. Chen, S\. Kolay, B\. Schulte, D\. Chandra, A\. \(\. Song, S\. Pandey, X\. Liu, H\. Firooz, and L\. SimonGR2 technical report\.Note:arXiv preprint arXiv:2606\.31984External Links:[Link](https://arxiv.org/abs/2606.31984),[Document](https://dx.doi.org/10.48550/arXiv.2606.31984),2606\.31984Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1)\.
- Lianget al\.\(2026\)M\. Liang, Y\. Li, J\. Xu, K\. Asadi, X\. Liu, S\. Gu, K\. Rangadurai, F\. Shyu, S\. Wang, S\. Yang, Z\. Li, J\. Liu, M\. Sun, F\. Tian, X\. Wei, C\. Sun, J\. Tao, S\. Mei, W\. Chen, S\. Kolay, S\. Pandey, H\. Firooz, and L\. SimonGR2: generative reasoning re\-ranker\.Note:arXiv preprint arXiv:2602\.07774External Links:[Link](https://arxiv.org/abs/2602.07774),[Document](https://dx.doi.org/10.48550/arXiv.2602.07774),2602\.07774Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1)\.
- Liuet al\.\(2026\)Q\. Liu, K\. Ai, J\. Mao, Y\. Zhang, M\. Li, D\. Long, P\. Xie, F\. Zhu, and J\. WenDiffuRank: effective document reranking with diffusion language models\.Note:arXiv preprint arXiv:2602\.12528External Links:[Link](https://arxiv.org/abs/2602.12528),[Document](https://dx.doi.org/10.48550/arXiv.2602.12528),2602\.12528Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p2.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1),[§3\.4](https://arxiv.org/html/2610.20635#S3.SS4.SSS0.Px3.p1.1)\.
- McAuleyet al\.\(2015\)J\. McAuley, C\. Targett, Q\. Shi, and A\. van den HengelImage\-based recommendations on styles and substitutes\.InProceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval,pp\. 43–52\.External Links:[Document](https://dx.doi.org/10.1145/2766462.2767755),[Link](https://doi.org/10.1145/2766462.2767755)Cited by:[§5\.1\.1](https://arxiv.org/html/2610.20635#S5.SS1.SSS1.p1.1)\.
- Menaet al\.\(2018\)G\. Mena, D\. Belanger, S\. Linderman, and J\. SnoekLearning latent permutations with Gumbel\-Sinkhorn networks\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/1802.08665),1802\.08665Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px4.p1.1),[§3\.4](https://arxiv.org/html/2610.20635#S3.SS4.SSS0.Px2.p1.2),[§4\.1\.2](https://arxiv.org/html/2610.20635#S4.SS1.SSS2.Px4.p1.1)\.
- Min and Gomes \(2026\)Y\. Min and C\. P\. GomesLearning unbiased permutations via flow matching\.Note:arXiv preprint arXiv:2605\.16755External Links:[Link](https://arxiv.org/abs/2605.16755),[Document](https://dx.doi.org/10.48550/arXiv.2605.16755),2605\.16755Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p3.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px3.p1.1)\.
- Nieet al\.\(2025\)S\. Nie, F\. Zhu, Z\. You, X\. Zhang, J\. Ou, J\. Hu, J\. Zhou, Y\. Lin, J\. Wen, and C\. LiLarge language diffusion models\.InAdvances in Neural Information Processing Systems,Vol\.38\.External Links:[Link](https://arxiv.org/abs/2502.09992),[Document](https://dx.doi.org/10.52202/085713-1689),2502\.09992Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p2.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px1.p1.1),[§3\.3\.2](https://arxiv.org/html/2610.20635#S3.SS3.SSS2.p1.1),[§3\.3](https://arxiv.org/html/2610.20635#S3.SS3.p1.1)\.
- Plackett \(1975\)R\. L\. PlackettThe analysis of permutations\.Journal of the Royal Statistical Society: Series C \(Applied Statistics\)24\(2\),pp\. 193–202\.External Links:[Document](https://dx.doi.org/10.2307/2346567)Cited by:[§4\.3\.2](https://arxiv.org/html/2610.20635#S4.SS3.SSS2.Px1.p1.1)\.
- Pradeepet al\.\(2023\)R\. Pradeep, S\. Sharifymoghaddam, and J\. LinRankZephyr: effective and robust zero\-shot listwise reranking is a breeze\!\.Note:arXiv preprint arXiv:2312\.02724External Links:[Link](https://arxiv.org/abs/2312.02724),[Document](https://dx.doi.org/10.48550/arXiv.2312.02724),2312\.02724Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1)\.
- Rosset al\.\(2011\)S\. Ross, G\. Gordon, and D\. BagnellA reduction of imitation learning and structured prediction to no\-regret online learning\.InProceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics,Proceedings of Machine Learning Research, Vol\.15,pp\. 627–635\.External Links:[Link](https://proceedings.mlr.press/v15/ross11a.html)Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px6.p1.1),[§4\.2\.2](https://arxiv.org/html/2610.20635#S4.SS2.SSS2.p2.1)\.
- Sahooet al\.\(2024\)S\. S\. Sahoo, M\. Arriola, Y\. Schiff, A\. Gokaslan, E\. Marroquin, J\. T\. Chiu, A\. Rush, and V\. KuleshovSimple and effective masked diffusion language models\.InAdvances in Neural Information Processing Systems,Vol\.37\.External Links:[Link](https://arxiv.org/abs/2406.07524),2406\.07524Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p2.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px1.p1.1),[§3\.3](https://arxiv.org/html/2610.20635#S3.SS3.p1.1)\.
- Shiet al\.\(2025\)T\. Shi, C\. Shen, W\. Yu, S\. Nie, C\. Li, X\. Zhang, M\. He, Y\. Han, and J\. XuLLaDA\-Rec: discrete diffusion for parallel semantic ID generation in generative recommendation\.Note:arXiv preprint arXiv:2511\.06254External Links:[Link](https://arxiv.org/abs/2511.06254),[Document](https://dx.doi.org/10.48550/arXiv.2511.06254),2511\.06254Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1)\.
- Sinkhorn and Knopp \(1967\)R\. Sinkhorn and P\. KnoppConcerning nonnegative matrices and doubly stochastic matrices\.Pacific Journal of Mathematics21\(2\),pp\. 343–348\.External Links:[Document](https://dx.doi.org/10.2140/pjm.1967.21.343),[Link](https://doi.org/10.2140/pjm.1967.21.343)Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px4.p1.1),[§3\.4](https://arxiv.org/html/2610.20635#S3.SS4.SSS0.Px2.p1.2),[§4\.1\.2](https://arxiv.org/html/2610.20635#S4.SS1.SSS2.Px4.p1.1)\.
- Sunet al\.\(2023\)W\. Sun, L\. Yan, X\. Ma, S\. Wang, P\. Ren, Z\. Chen, D\. Yin, and Z\. RenIs ChatGPT good at search? investigating large language models as re\-ranking agents\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,pp\. 14918–14937\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-main.923),[Link](https://aclanthology.org/2023.emnlp-main.923/)Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p1.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1),[§3\.2](https://arxiv.org/html/2610.20635#S3.SS2.p1.1)\.
- Tanciket al\.\(2020\)M\. Tancik, P\. Srinivasan, B\. Mildenhall, S\. Fridovich\-Keil, N\. Raghavan, U\. Singhal, R\. Ramamoorthi, J\. Barron, and R\. NgFourier features let networks learn high frequency functions in low dimensional domains\.InAdvances in Neural Information Processing Systems,Vol\.33\.External Links:[Link](https://arxiv.org/abs/2006.10739)Cited by:[§4](https://arxiv.org/html/2610.20635#S4.SS0.SSS0.Px1.p4.1)\.
- Tsochantaridiset al\.\(2005\)I\. Tsochantaridis, T\. Joachims, T\. Hofmann, and Y\. AltunLarge margin methods for structured and interdependent output variables\.Journal of Machine Learning Research6\(50\),pp\. 1453–1484\.External Links:[Link](https://jmlr.org/papers/v6/tsochantaridis05a.html)Cited by:[§4\.1\.2](https://arxiv.org/html/2610.20635#S4.SS1.SSS2.Px5.p1.1)\.
- Vinyalset al\.\(2015\)O\. Vinyals, M\. Fortunato, and N\. JaitlyPointer networks\.InAdvances in Neural Information Processing Systems,Vol\.28,pp\. 2692–2700\.External Links:[Link](https://arxiv.org/abs/1506.03134),1506\.03134Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p1.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px4.p1.1),[§3\.2](https://arxiv.org/html/2610.20635#S3.SS2.p1.1)\.
- Xiaet al\.\(2008\)F\. Xia, T\. Liu, J\. Wang, W\. Zhang, and H\. LiListwise approach to learning to rank: theory and algorithm\.InProceedings of the 25th International Conference on Machine Learning,pp\. 1192–1199\.External Links:[Document](https://dx.doi.org/10.1145/1390156.1390306),[Link](https://dl.acm.org/doi/10.1145/1390156.1390306)Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px4.p1.1),[§4\.3\.2](https://arxiv.org/html/2610.20635#S4.SS3.SSS2.Px1.p1.1)\.
- Xuet al\.\(2026\)Z\. Xu, P\. Agrawal, K\. Asadi, T\. Chen, C\. Hu, J\. Johnson, W\. Lan, M\. Liang, X\. Liu, T\. O\. Lui, O\. Ositelu, S\. Pandey, A\. Peshin, F\. Qi, A\. Ramakrishna, K\. Rangadurai, F\. Shyu, L\. Simon, Y\. Yang, and C\. ZhangThe case against generation for retrieval: discriminative language models as effective retrievers\.Note:arXiv preprint arXiv:2607\.25346External Links:[Link](https://arxiv.org/abs/2607.25346),[Document](https://dx.doi.org/10.48550/arXiv.2607.25346),2607\.25346Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1),[§5\.1\.2](https://arxiv.org/html/2610.20635#S5.SS1.SSS2.p2.1)\.
- Xuet al\.\(2024\)Z\. Xu, R\. Qiu, Y\. Chen, H\. Chen, X\. Fan, M\. Pan, Z\. Zeng, M\. Das, and H\. TongDiscrete\-state continuous\-time diffusion for graph generation\.InAdvances in Neural Information Processing Systems,Vol\.37\.External Links:[Document](https://dx.doi.org/10.52202/079017-2531),[Link](https://proceedings.neurips.cc/paper_files/paper/2024/hash/91813e5ddd9658b99be4c532e274b49c-Abstract-Conference.html)Cited by:[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px1.p1.1)\.
- Zhanget al\.\(2025\)Y\. Zhang, D\. Yang, and R\. LiaoSymmetricDiffusers: learning discrete diffusion on finite symmetric groups\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2410.02942),2410\.02942Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p1.1),[§1](https://arxiv.org/html/2610.20635#S1.p3.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px3.p1.1),[§4\.1\.2](https://arxiv.org/html/2610.20635#S4.SS1.SSS2.Px1.p1.1)\.
- Zhanget al\.\(2026\)Z\. Zhang, K\. Ni, Y\. Chen, M\. Liang, X\. Wei, Y\. Pu, F\. Tian, C\. Sun, F\. Shyu, A\. \(\. Song, S\. Pandey, L\. Simon, T\. Chen, and X\. LiuDiffusion\-GR2: diffusion generative reasoning re\-ranker\.Note:arXiv preprint arXiv:2607\.01170External Links:[Link](https://arxiv.org/abs/2607.01170),[Document](https://dx.doi.org/10.48550/arXiv.2607.01170),2607\.01170Cited by:[§1](https://arxiv.org/html/2610.20635#S1.p2.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px5.p1.1),[§2](https://arxiv.org/html/2610.20635#S2.SS0.SSS0.Px6.p1.1)\.

## Appendix AImplementation Details

This section specifies the input construction, optimization, checkpoint\-selection, and evaluation settings used in the experiments\.

### A\.1Input Serialization and Sequence Lengths

We extend the pretrained vocabulary𝒱raw\\mathcal\{V\}\_\{\\mathrm\{raw\}\}with the candidate\-index tokens𝒱idx\\mathcal\{V\}\_\{\\mathrm\{idx\}\}, the mdLLM mask token<rank\_mask\>, and the delimiters<rank\>and</rank\>\. The serialized AR target containsK\+2K\+2tokens: an opening delimiter,KKcandidate indices, and a closing delimiter marking the end of the ranking\. Equation \([5](https://arxiv.org/html/2610.20635#S3.E5)\) includes only the candidate\-token component\. Input states and prediction parameterizations follow Sections[3](https://arxiv.org/html/2610.20635#S3)and[4](https://arxiv.org/html/2610.20635#S4)\. The maximum sequence length is 2,048 forK=10K=10and 4,096 forK=20K=20\. When truncation is required, we left\-truncate only the prompt prefix and preserve the complete ranking region\.

### A\.2Training Configuration

#### A\.2\.1Initialization and shared optimization

Each diffusion model is initialized from the AR checkpoint trained for the same dataset and candidate budget\. The Fourier\-feature MLP and scalar ordering\-score projection, when present, are initialized separately; assignment\-based models reuse the pretrained vocabulary projection\. We train with AdamW, weight decay0\.010\.01, 5% linear warmup followed by cosine decay, gradient\-norm clipping at 1\.0, a bfloat16 backbone, gradient checkpointing, and random seed 42\. Numerically sensitive assignment mixing, Sinkhorn normalization, and trajectory arithmetic use FP32\. The effective batch size is 128, and training runs for at most ten epochs\. Diffusion models use a learning rate of10−410^\{\-4\}; AR learning rates are selected from\{2×10−5,10−4\}\\\{2\\times 10^\{\-5\},10^\{\-4\}\\\}on validation data\. All checkpoint selection uses validation data only\.

#### A\.2\.2Hard\-state models

Both hard\-state families use explicit timestep conditioning, sampleTTuniformly from\[K\]\[K\], and omit self\-conditioning\. The Fourier\-feature MLP receivesT/KT/Kduring training anddn/Kd\_\{n\}/Kduring inference\. If a sampled training shuffle leaves the permutation unchanged, including whenT=1T=1, we replace it with a random transposition\. Identity corruptions are therefore excluded during training, and theT=KT=Ktraining distribution is not uniform over all permutations, whereas inference begins from a uniform permutation\. HA\-dLLM objectives supervise allKKpositions, including positions unchanged by corruption; OS\-dLLM applies ListMLE to the full order\. Assignment CE usesλcol=1\\lambda\_\{\\mathrm\{col\}\}=1, hard Sinkhorn NLL usesτ=0\.1\\tau=0\.1with 20 Sinkhorn iterations, and structured hinge usesγ=1\\gamma=1\.

#### A\.2\.3Soft\-state model

SA\-dLLM uses noise\-endpoint temperatureτZ=0\.7\\tau\_\{Z\}=0\.7, prediction temperatureτQ=1\.0\\tau\_\{Q\}=1\.0, score boundκ=4\.0\\kappa=4\.0, and Sinkhorn tolerance10−510^\{\-5\}\. Sinkhorn normalization is capped at 256 iterations, with one optional 16\-iteration refinement for near\-threshold cases\. The anchored objective uses two supervised backbone evaluations per example and samplesNtrN\_\{\\mathrm\{tr\}\}from𝒩train=\{2,5,10\}\\mathcal\{N\}\_\{\\mathrm\{train\}\}=\\\{2,5,10\\\}forK=10K=10and from𝒩train=\{2,5,10,20\}\\mathcal\{N\}\_\{\\mathrm\{train\}\}=\\\{2,5,10,20\\\}forK=20K=20\.

### A\.3Evaluation Configuration

ForK=10K=10, we evaluateN∈\{1,2,5,10\}N\\in\\\{1,2,5,10\\\}; forK=20K=20, we evaluateN∈\{1,2,5,10,20\}N\\in\\\{1,2,5,10,20\\\}\. The NFE=1=1SA\-dLLM prediction is identical for Predict–recorrupt and Residual\-correction and is counted once\. For each SA\-dLLM example, we reuse the same deterministic noise endpoint across budgets and samplers\. For HA\-dLLM and OS\-dLLM, we report only Predict–recorrupt; preliminary hard\-state Residual\-correction runs are excluded\.

All full\-test evaluations use eight parallel workers\. The per\-worker batch size is 32 for hard\-state models and SA\-dLLM withK=10K=10, and 16 for SA\-dLLM withK=20K=20\. We save both predicted and target permutations\.

## Appendix BAnalysis

### B\.1Analysis of Hard\-State Sampling

We analyze the Predict–recorrupt updates for HA\-dLLM and OS\-dLLM, defined in Equations \([29](https://arxiv.org/html/2610.20635#S4.E29)\) and \([56](https://arxiv.org/html/2610.20635#S4.E56)\) and summarized in Algorithms[2](https://arxiv.org/html/2610.20635#alg2)and[7](https://arxiv.org/html/2610.20635#alg7)\.

#### B\.1\.1Validity of Hard\-State Predict–Recorrupt Sampling

Under the schedule in Equation \([27](https://arxiv.org/html/2610.20635#S4.E27)\), one shufflegdng\_\{d\_\{n\}\}is sampled for each corruption level and retained throughout the denoising trajectory\. For this fixed collection, defineDd​\(π\)=π∘gdD\_\{d\}\(\\pi\)=\\pi\\circ g\_\{d\}\. Predict–recorrupt appliesDdn−1D\_\{d\_\{n\-1\}\}to each decoded clean prediction\. Validity follows from closure of permutations under composition\.

###### Proposition B\.1\(Hard\-state validity of Predict–recorrupt sampling\)\.

Supposeπ\(N\)∈𝔖K\\pi^\{\(N\)\}\\in\\mathfrak\{S\}\_\{K\}, every decoded clean predictionπ^0\(n\)∈𝔖K\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\\in\\mathfrak\{S\}\_\{K\}, and every retained shufflegdn∈𝔖Kg\_\{d\_\{n\}\}\\in\\mathfrak\{S\}\_\{K\}, withgd0=idg\_\{d\_\{0\}\}=\\mathrm\{id\}\. For any scheduleK=dN\>⋯\>d0=0K=d\_\{N\}\>\\cdots\>d\_\{0\}=0and everyn=N,…,1n=N,\\ldots,1, Predict–recorrupt satisfies

π\(n−1\)=Ddn−1​\(π^0\(n\)\)∈𝔖K,π\(0\)=π^0\(1\)\.\\pi^\{\(n\-1\)\}=D\_\{d\_\{n\-1\}\}\(\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\)\\in\\mathfrak\{S\}\_\{K\},\\qquad\\pi^\{\(0\)\}=\\widehat\{\\pi\}\_\{0\}^\{\(1\)\}\.\(60\)

###### Proof\.

Bothπ^0\(n\)\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}andgdn−1g\_\{d\_\{n\-1\}\}are bijections on\[K\]\[K\]; their composition is therefore a bijection\. Induction from the valid initial state establishes validity at every step\. At the final step,gd0=idg\_\{d\_\{0\}\}=\\mathrm\{id\}returns the last decoded clean prediction\. Hungarian assignment in Equation \([28](https://arxiv.org/html/2610.20635#S4.E28)\) guarantees a valid HA\-dLLM prediction\. For OS\-dLLM, the stable sort in Equation \([55](https://arxiv.org/html/2610.20635#S4.E55)\) produces a permutation of source slots, whose composition with the current permutation is also valid\. The result is independent of prediction accuracy\. ∎

The update is also consistent with a fixed clean prediction\. Ifπ^0\(n\)=π⋆\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}=\\pi\_\{\\star\}at every evaluation, then each updated state equalsDdn−1​\(π⋆\)D\_\{d\_\{n\-1\}\}\(\\pi\_\{\\star\}\)and the final output isπ⋆\\pi\_\{\\star\}\. This claim concerns states produced after the first evaluation\. The sampled initial state isgdNg\_\{d\_\{N\}\}, whereas the corresponding forward\-corrupted state would beπ⋆∘gdN\\pi\_\{\\star\}\\circ g\_\{d\_\{N\}\}; these states need not coincide for the same shuffle\. WhengdNg\_\{d\_\{N\}\}is uniform andπ⋆\\pi\_\{\\star\}is fixed, however, both have the uniform marginal distribution over𝔖K\\mathfrak\{S\}\_\{K\}\.

#### B\.1\.2Why Additive Residual\-Correction Does Not Directly Extend to Permutations

##### Original residual update\.

For a state𝐱\(n\)\\mathbf\{x\}^\{\(n\)\}, predicted clean state𝐱^0\(n\)\\widehat\{\\mathbf\{x\}\}\_\{0\}^\{\(n\)\}, and fixed corruption trajectory𝒟d\\mathcal\{D\}\_\{d\}, Residual\-correction uses

𝐱\(n−1\)=𝐱\(n\)−𝒟dn​\(𝐱^0\(n\)\)\+𝒟dn−1​\(𝐱^0\(n\)\)\.\\mathbf\{x\}^\{\(n\-1\)\}=\\mathbf\{x\}^\{\(n\)\}\-\\mathcal\{D\}\_\{d\_\{n\}\}\(\\widehat\{\\mathbf\{x\}\}\_\{0\}^\{\(n\)\}\)\+\\mathcal\{D\}\_\{d\_\{n\-1\}\}\(\\widehat\{\\mathbf\{x\}\}\_\{0\}^\{\(n\)\}\)\.\(61\)The update preserves the difference between the current state and corrupted prediction while changing the corruption level\.

##### Permutation\-space analogue\.

ForDd​\(π\)=π∘gdD\_\{d\}\(\\pi\)=\\pi\\circ g\_\{d\}, replacing subtraction and addition with inversion and composition gives

π\(n−1\)\\displaystyle\\pi^\{\(n\-1\)\}=π\(n\)∘\(Ddn​\(π^0\(n\)\)\)−1∘Ddn−1​\(π^0\(n\)\)\\displaystyle=\\pi^\{\(n\)\}\\circ\\bigl\(D\_\{d\_\{n\}\}\(\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\)\\bigr\)^\{\-1\}\\circ D\_\{d\_\{n\-1\}\}\(\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\)\(62\)=π\(n\)∘\(gdn\)−1∘\(π^0\(n\)\)−1∘π^0\(n\)⏟id∘gdn−1\\displaystyle=\\pi^\{\(n\)\}\\circ\(g\_\{d\_\{n\}\}\)^\{\-1\}\\circ\\underbrace\{\(\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\)^\{\-1\}\\circ\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\}\_\{\\mathrm\{id\}\}\\circ g\_\{d\_\{n\-1\}\}=π\(n\)∘\(gdn\)−1∘gdn−1\.\\displaystyle=\\pi^\{\(n\)\}\\circ\(g\_\{d\_\{n\}\}\)^\{\-1\}\\circ g\_\{d\_\{n\-1\}\}\.\(63\)This update preserves permutation validity, but the prediction cancels within each step regardless of how predictions vary across the trajectory\.

##### Dependence on initialization\.

ForK=dN\>⋯\>d0=0K=d\_\{N\}\>\\cdots\>d\_\{0\}=0andgd0=idg\_\{d\_\{0\}\}=\\mathrm\{id\}, successive shuffle factors cancel across steps, giving

π\(0\)=π\(N\)∘\(gdN\)−1=\{π⋆,π\(N\)=π⋆∘gdN,id,π\(N\)=gdN\.\\pi^\{\(0\)\}=\\pi^\{\(N\)\}\\circ\(g\_\{d\_\{N\}\}\)^\{\-1\}=\\begin\{cases\}\\pi\_\{\\star\},&\\pi^\{\(N\)\}=\\pi\_\{\\star\}\\circ g\_\{d\_\{N\}\},\\\\ \\mathrm\{id\},&\\pi^\{\(N\)\}=g\_\{d\_\{N\}\}\.\\end\{cases\}\(64\)Thus, the update exactly reconstructs a clean permutation from an input paired with its retained shuffle\. Under the generation initializationπ\(N\)=gdN\\pi^\{\(N\)\}=g\_\{d\_\{N\}\}, however, it always returns the original presentation order independently of the model\. For uniformgdNg\_\{d\_\{N\}\}, the two initial states have identical marginals but different couplings with the retained shuffle unlessπ⋆=id\\pi\_\{\\star\}=\\mathrm\{id\}; the marginals alone therefore do not determine the output\.

##### Connection to the TACoS analysis\.

Section 3\.3 of Cold Diffusion analyzes Transformation Agnostic Cold Sampling \(TACoS\) under the approximation𝒟d​\(𝐱\)≈𝐱\+d​𝐞\\mathcal\{D\}\_\{d\}\(\\mathbf\{x\}\)\\approx\\mathbf\{x\}\+d\\mathbf\{e\}, where𝐞\\mathbf\{e\}is constant and independent of𝐱\\mathbf\{x\}\([Bansal et al\., 2023](https://arxiv.org/html/2610.20635#bib.bib6)\)\. Treating this approximation as exact yields

𝐱\(n−1\)\\displaystyle\\mathbf\{x\}^\{\(n\-1\)\}=𝐱\(n\)−\(𝐱^0\(n\)\+dn​𝐞\)\+\(𝐱^0\(n\)\+dn−1​𝐞\)\\displaystyle=\\mathbf\{x\}^\{\(n\)\}\-\(\\widehat\{\\mathbf\{x\}\}\_\{0\}^\{\(n\)\}\+d\_\{n\}\\mathbf\{e\}\)\+\(\\widehat\{\\mathbf\{x\}\}\_\{0\}^\{\(n\)\}\+d\_\{n\-1\}\\mathbf\{e\}\)=𝐱\(n\)−\(dn−dn−1\)​𝐞\.\\displaystyle=\\mathbf\{x\}^\{\(n\)\}\-\(d\_\{n\}\-d\_\{n\-1\}\)\\mathbf\{e\}\.\(65\)Prediction errors cancel, so initialization at𝐱\(N\)=𝐱⋆\+dN​𝐞\\mathbf\{x\}^\{\(N\)\}=\\mathbf\{x\}\_\{\\star\}\+d\_\{N\}\\mathbf\{e\}exactly recovers𝐱⋆\\mathbf\{x\}\_\{\\star\}\. This reconstruction property is consistent with the paired\-permutation case above\. Cancellation alone therefore does not imply failure; the degeneracy arises from the combination of the update and the generation initialization\. For the soft corruptionDt𝐙​\(𝐀\)=𝐀\+t⁡\(𝐙−𝐀\)D\_\{t\}^\{\\mathbf\{Z\}\}\(\\mathbf\{A\}\)=\\mathbf\{A\}\+t\(\\mathbf\{Z\}\-\\mathbf\{A\}\), the displacement depends on the clean state, so the residual update retains the prediction through\(tn−tn−1\)​\(𝐐\(n\)−𝐙\)\(t\_\{n\}\-t\_\{n\-1\}\)\(\\mathbf\{Q\}^\{\(n\)\}\-\\mathbf\{Z\}\)\.

##### Alternative composition order\.

Applying the correction on the left gives

π\(n−1\)=Ddn−1​\(π^0\(n\)\)∘\(Ddn​\(π^0\(n\)\)\)−1∘π\(n\)\.\\pi^\{\(n\-1\)\}=D\_\{d\_\{n\-1\}\}\(\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\)\\circ\\bigl\(D\_\{d\_\{n\}\}\(\\widehat\{\\pi\}\_\{0\}^\{\(n\)\}\)\\bigr\)^\{\-1\}\\circ\\pi^\{\(n\)\}\.\(66\)This ordering can retain dependence on the prediction\. Nevertheless, permutation sign is multiplicative and invariant under inversion, so the prediction sign cancels within each step and intermediate shuffle signs cancel across steps\. Underπ\(N\)=gdN\\pi^\{\(N\)\}=g\_\{d\_\{N\}\},

sgn⁡\(π\(0\)\)=sgn⁡\(π\(N\)\)​sgn⁡\(gdN\)=\+1\.\\operatorname\{sgn\}\(\\pi^\{\(0\)\}\)=\\operatorname\{sgn\}\(\\pi^\{\(N\)\}\)\\operatorname\{sgn\}\(g\_\{d\_\{N\}\}\)=\+1\.\(67\)Hence this ordering cannot generate odd permutations\. The limitation applies to both HA\-dLLM and OS\-dLLM under the stated initialization and concerns only these direct analogues, not arbitrary permutation\-valued residual samplers\.

### B\.2Analysis of Soft\-State Sampling

We analyze the SA\-dLLM Predict–recorrupt and Residual\-correction samplers defined in Equations \([43](https://arxiv.org/html/2610.20635#S4.E43)\) and \([44](https://arxiv.org/html/2610.20635#S4.E44)\) and summarized in Algorithms[4](https://arxiv.org/html/2610.20635#alg4)and[5](https://arxiv.org/html/2610.20635#alg5)\.

##### Validity of soft\-state sampling\.

LetℬK\\mathcal\{B\}\_\{K\}be the Birkhoff polytope defined in Equation \([16](https://arxiv.org/html/2610.20635#S3.E16)\)\. For fixed𝐙∈ℬK\\mathbf\{Z\}\\in\\mathcal\{B\}\_\{K\}, the affine corruption in Equation \([36](https://arxiv.org/html/2610.20635#S4.E36)\) can be written asDt𝐙​\(𝐀\)=\(1−t\)​𝐀\+t​𝐙D\_\{t\}^\{\\mathbf\{Z\}\}\(\\mathbf\{A\}\)=\(1\-t\)\\mathbf\{A\}\+t\\mathbf\{Z\}\. The Predict–recorrupt update in Equation \([43](https://arxiv.org/html/2610.20635#S4.E43)\) usesDtn−1𝐙​\(𝐐\(n\)\)D\_\{t\_\{n\-1\}\}^\{\\mathbf\{Z\}\}\(\\mathbf\{Q\}^\{\(n\)\}\)directly, while the Residual\-correction update in Equation \([44](https://arxiv.org/html/2610.20635#S4.E44)\) uses

𝐗tn−1\\displaystyle\\mathbf\{X\}\_\{t\_\{n\-1\}\}=𝐗tn−Dtn𝐙​\(𝐐\(n\)\)\+Dtn−1𝐙​\(𝐐\(n\)\)\\displaystyle=\\mathbf\{X\}\_\{t\_\{n\}\}\-D\_\{t\_\{n\}\}^\{\\mathbf\{Z\}\}\(\\mathbf\{Q\}^\{\(n\)\}\)\+D\_\{t\_\{n\-1\}\}^\{\\mathbf\{Z\}\}\(\\mathbf\{Q\}^\{\(n\)\}\)=𝐗tn\+\(tn−tn−1\)​\(𝐐\(n\)−𝐙\)\.\\displaystyle=\\mathbf\{X\}\_\{t\_\{n\}\}\+\(t\_\{n\}\-t\_\{n\-1\}\)\(\\mathbf\{Q\}^\{\(n\)\}\-\\mathbf\{Z\}\)\.\(68\)Reusing𝐙\\mathbf\{Z\}throughout the trajectory is essential for the invariant below\.

###### Proposition B\.2\(Soft\-state validity\)\.

Let1=tN\>⋯\>t0=01=t\_\{N\}\>\\cdots\>t\_\{0\}=0follow the schedule in Equation \([42](https://arxiv.org/html/2610.20635#S4.E42)\), initialize𝐗tN=𝐙\\mathbf\{X\}\_\{t\_\{N\}\}=\\mathbf\{Z\}, and suppose that𝐙,𝐐\(n\)∈ℬK\\mathbf\{Z\},\\mathbf\{Q\}^\{\(n\)\}\\in\\mathcal\{B\}\_\{K\}at every evaluation\. Both sampling rules keep every state inℬK\\mathcal\{B\}\_\{K\}\. In particular, withΔn=tn−tn−1\>0\\Delta\_\{n\}=t\_\{n\}\-t\_\{n\-1\}\>0, the residual trajectory satisfies

𝐗tn=tn​𝐙\+∑m=n\+1NΔm​𝐐\(m\),0≤n≤N,\\mathbf\{X\}\_\{t\_\{n\}\}=t\_\{n\}\\mathbf\{Z\}\+\\sum\_\{m=n\+1\}^\{N\}\\Delta\_\{m\}\\mathbf\{Q\}^\{\(m\)\},\\qquad 0\\leq n\\leq N,\(69\)where an empty sum is zero\. The terminal assignment is𝐀=𝐐\(1\)\\mathbf\{A\}=\\mathbf\{Q\}^\{\(1\)\}for Predict–recorrupt and𝐀=∑n=1NΔn​𝐐\(n\)\\mathbf\{A\}=\\sum\_\{n=1\}^\{N\}\\Delta\_\{n\}\\mathbf\{Q\}^\{\(n\)\}for Residual\-correction\.

###### Proof\.

The Predict–recorrupt update is a convex combination of𝐐\(n\)\\mathbf\{Q\}^\{\(n\)\}and𝐙\\mathbf\{Z\}, so feasibility follows from the convexity ofℬK\\mathcal\{B\}\_\{K\}\. For Residual\-correction, Equation \([69](https://arxiv.org/html/2610.20635#A2.E69)\) holds atn=Nn=NbecausetN=1t\_\{N\}=1and the sum is empty\. If it holds atnn, then

𝐗tn−1\\displaystyle\\mathbf\{X\}\_\{t\_\{n\-1\}\}=tn​𝐙\+∑m=n\+1NΔm​𝐐\(m\)\+Δn​\(𝐐\(n\)−𝐙\)\\displaystyle=t\_\{n\}\\mathbf\{Z\}\+\\sum\_\{m=n\+1\}^\{N\}\\Delta\_\{m\}\\mathbf\{Q\}^\{\(m\)\}\+\\Delta\_\{n\}\(\\mathbf\{Q\}^\{\(n\)\}\-\\mathbf\{Z\}\)=tn−1​𝐙\+∑m=nNΔm​𝐐\(m\),\\displaystyle=t\_\{n\-1\}\\mathbf\{Z\}\+\\sum\_\{m=n\}^\{N\}\\Delta\_\{m\}\\mathbf\{Q\}^\{\(m\)\},\(70\)which proves the invariant by induction\. Its coefficients are nonnegative and satisfy

tn\+∑m=n\+1NΔm=tn\+\(tN−tn\)=1\.t\_\{n\}\+\\sum\_\{m=n\+1\}^\{N\}\\Delta\_\{m\}=t\_\{n\}\+\(t\_\{N\}\-t\_\{n\}\)=1\.\(71\)Every residual state is therefore a convex combination of doubly stochastic matrices\. Substitutingt0=0t\_\{0\}=0gives the stated terminal assignment for Residual\-correction\. ∎

With finite Sinkhorn iterations, the statement holds up to normalization error\. If every noise and prediction matrix is nonnegative and has row\- and column\-sum errors bounded byδ\\deltain maximum absolute value, then every generated state satisfies the same bound in exact arithmetic; convex combinations do not amplify these errors\. The terminal Hungarian operation in Equation \([50](https://arxiv.org/html/2610.20635#S4.E50)\) returns a discrete permutation\. Although exact Sinkhorn predictions are strictly positive, Equation \([49](https://arxiv.org/html/2610.20635#S4.E49)\) applies a positive floor to the terminal assignment to prevent finite\-precision underflow before taking logarithms\.

##### Consistency with clean\-state prediction\.

If all predictions along either trajectory equal the same assignment𝐀⋆∈ℬK\\mathbf\{A\}\_\{\\star\}\\in\\mathcal\{B\}\_\{K\}, then both samplers reproduce its affine corruption path exactly:

𝐗tn=\(1−tn\)​𝐀⋆\+tn​𝐙,𝐀=𝐀⋆\.\\mathbf\{X\}\_\{t\_\{n\}\}=\(1\-t\_\{n\}\)\\mathbf\{A\}\_\{\\star\}\+t\_\{n\}\\mathbf\{Z\},\\qquad\\mathbf\{A\}=\\mathbf\{A\}\_\{\\star\}\.\(72\)For Predict–recorrupt, the result follows directly from the update\. For Residual\-correction, it follows from Equation \([69](https://arxiv.org/html/2610.20635#A2.E69)\) and∑m=n\+1NΔm=1−tn\\sum\_\{m=n\+1\}^\{N\}\\Delta\_\{m\}=1\-t\_\{n\}\. In the ideal case𝐀⋆=𝐏⋆∈𝒫K\\mathbf\{A\}\_\{\\star\}=\\mathbf\{P\}\_\{\\star\}\\in\\mathcal\{P\}\_\{K\}, both samplers recover the clean permutation matrix before terminal decoding\. Exact permutation\-valued soft predictions are an idealized limit of finite\-temperature Sinkhorn outputs\.

##### Scope of the sampling guarantee\.

These results establish feasible trajectories and consistency with the model’s clean\-state predictions\. To formalize generation, letω\\omegacollect the sampled initialization and any other randomness reused by the sampler, and letFθ,N​\(c,ω\)∈𝔖KF\_\{\\theta,N\}\(c,\\omega\)\\in\\mathfrak\{S\}\_\{K\}denote the final decoded output\. The induced distribution is

pθ,Nalg\(π∣c\)=Prω\[Fθ,N\(c,ω\)=π\]\.p\_\{\\theta,N\}^\{\\mathrm\{alg\}\}\(\\pi\\mid c\)=\\Pr\_\{\\omega\}\\\!\\left\[F\_\{\\theta,N\}\(c,\\omega\)=\\pi\\right\]\.\(73\)With fixed tie\-breaking, random initialization followed by deterministic updates defines a permutation\-valued generative procedure\. The preceding arguments do not establish equality with the data distribution or exact sampling from reverse conditionals\. The same noise matrix𝐙\\mathbf\{Z\}influences every intermediate state and subsequent prediction; consequently, each re\-corrupted state is coupled to the preceding trajectory rather than being an independent sample from the forward corruption distribution conditioned on the latest prediction\.

Similar Articles

Answer First, Reason Later: Commitment Order in Diffusion LLMs

arXiv cs.CL

This paper investigates why diffusion LLMs fail at reasoning tasks: unconstrained token commitment freezes answers early and collapses to answer-only outputs. The authors identify commitment order as the root cause and propose a training-free, frontier-gated decoding intervention that recovers performance while preserving parallel decoding.