betaFeedback

WorksComputer Science

Exploring the Design Space of Permutation Diffusion LLMs

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.

Introduction

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 [23, 27]. Large language models (LLMs) can condition such orderings on textual candidate descriptions and task context, as demonstrated in listwise reranking [20]. 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 require KK prediction steps for a set of size KK. Diffusion LLMs (dLLMs) instead predict multiple positions in parallel and iteratively update the resulting state through successive function evaluations (NFEs) [17, 13]. Recent work applies this paradigm to document and recommendation reranking [9, 28]. 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; He et al., 2026; Min and Gomes, 2026. 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 (§ 4 and Table 1). 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.

Model familyState and corruptionTraining loss optionsSampling optionsDiscrete decoding
Hard-assignment prediction (HA-dLLM)Hard permutation; subset shufflingToken CE<br>Row-plus-column CE<br>Sinkhorn marginal NLL<br>Structured hingePredict–recorruptHungarian assignment at every denoising step
Soft-assignment prediction (SA-dLLM)Doubly stochastic matrix; affine soft corruptionAnchored-rollout marginal lossPredict–recorrupt<br>Residual-correctionOne terminal Hungarian assignment
Direct ordering-score prediction (OS-dLLM)Hard permutation; subset shufflingPlackett–Luce/ListMLEPredict–recorruptStable sorting at every denoising step; no assignment solver

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.

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., [2]). 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\mathrm{NFE}=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 processes1, 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.

Related 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., [1]). Masked diffusion specializes this approach to absorbing mask states, with objectives closely connected to masked language modeling (Sahoo et al., [17]). Subsequent work scales this formulation to instruction-following language models (Nie et al., [13]). 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., [25]).

► Cold Diffusion. Cold Diffusion studies image generation under general deterministic degradations rather than discrete-sequence diffusion (Bansal et al., [2]). Its restoration-and-recorruption perspective motivates

Preliminaries

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 ([27]). Soft-Rank Diffusion constructs corruption through continuous soft ranks and uses contextualized generalized Plackett–Luce denoisers to predict clean permutations ([5]). PermFlow learns conditional flows on the affine space of matrices with unit row and column sums, targeting multimodal permutation distributions ([12]). 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 ([23]). Listwise maximum likelihood estimation (ListMLE) defines a likelihood objective for ordering scores ([24]), 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 ([19]), while Gumbel–Sinkhorn Networks use it to construct differentiable relaxations of latent permutations ([11]). Hungarian assignment provides the discrete optimization primitive for our projected decoders ([6]). 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 ([20]), while RankZephyr develops specialized open listwise rerankers ([15]). 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 ([4]). DiffuRank studies masked-diffusion reranking with parallel scoring, constrained permutation sampling, and Hungarian assignment at NFE = 1 ([9]). 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 ([26]); 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 ([8]). Its technical report extends the system with context compression, on-policy distillation, and serving-oriented reasoning distillation ([7]). Diffusion–GR2 then converts GR2 to block diffusion through conversion fine-tuning, on-policy distillation, and reinforcement learning ([28]). 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 ([18]); 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 ([16]), and Diffusion–GR2 applies on-policy teacher supervision to generated reasoning- and ranking trajectories ([28]). 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.

Notation and Problem Formulation

Plain italic symbols denote scalars (e.g., KK, NN, tt), bold lowercase symbols denote numerical vectors (e.g., hi\mathbf{h}_i), and bold uppercase symbols denote matrices (e.g., S\mathbf{S}, Xt\mathbf{X}_t). Calligraphic symbols denote sets and spaces (e.g., Vidx\mathcal{V}_{\mathrm{idx}}, BK\mathcal{B}_K). Permutations, symbolic token sequences, and the parameter collection θ\theta remain unbolded.

For a matrix A\mathbf{A}, we write AijA_{ij} for scalar entries and Ai,:A_{i,:} for rows; for time-indexed matrices, Xt,ij=(Xt)ijX_{t,ij} = (\mathbf{X}_t)_{ij}. Scalar entries remain unbolded, including those of predicted matrices such as Qij(n)Q_{ij}^{(n)}. We apply log⁡A\log\mathbf{A} and max⁡{A,ϵ}\max\{\mathbf{A}, \epsilon\} elementwise. All arg⁡max⁡\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)).

Let K≥2K \ge2 be the number of candidates and [K]={1,…,K}[K] = \{1, \ldots, K\}. The context cc contains the user context and the presented candidate descriptions x1:K\mathbf{x}_{1:K}. Let Vraw\mathcal{V}_{\mathrm{raw}} denote the pretrained vocabulary and Vidx={ν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 V\mathcal{V} contains these sets and additional task-specific tokens. Index jj identifies a candidate in the presented list rather than an output position: token <idx_j> at output position ii places candidate jj at rank ii. We write θ\theta for the model parameters and SK\mathcal{S}_K for the symmetric group on [K][K]. A ranking is a permutation π∈SK\pi\in\mathcal{S}_K, where π(i)=j\pi(i) = j means that candidate jj occupies output position ii. The clean target permutation π0\pi_0 corresponds to the token sequence

y0=(νπ0(1),…,νπ0(K)).(1)\mathbf{y}_0 = (\nu_{\pi_0(1)}, \ldots, \nu_{\pi_0(K)}). \tag*{(1)}

Candidate indices and output positions are one-based. The clean target has permutation matrix

P0,ij=1[j=π0(i)].(2)P_{0,ij} = \mathbb{1}[j = \pi_0(i)]. \tag*{(2)}

Autoregressive Reranking

An autoregressive reranker predicts the candidate-index sequence y0\mathbf{y}_0 from left to right (Vinyals et al., [23]; Sun et al., [20]). Let pθp_\theta be the vocabulary distribution. For candidate-token prediction, we use its restriction to Vidx\mathcal{V}_{\mathrm{idx}},

pθidx(v∣c,y<i)=pθ(v∣c,y<i)∑v′∈Vidxpθ(v′∣c,y<i),v∈Vidx,(3)p_\theta^{\mathrm{idx}}(v \mid c, \mathbf{y}_{<i}) = \frac{p_\theta(v \mid c, \mathbf{y}_{<i})}{\sum_{v' \in\mathcal{V}_{\mathrm{idx}}} p_\theta(v' \mid c, \mathbf{y}_{<i})}, \qquad v \in\mathcal{V}_{\mathrm{idx}}, \tag*{(3)}

where y<i\mathbf{y}_{<i} denotes the preceding candidate tokens. The candidate-sequence distribution factorizes as

pθAR(y0∣c)=∏i=1Kpθidx(y0,i∣c,y0,<i).(4)p_\theta^{\mathrm{AR}}(\mathbf{y}_0 \mid c) = \prod_{i=1}^{K} p_\theta^{\mathrm{idx}}(y_{0,i} \mid c, \mathbf{y}_{0,<i}). \tag*{(4)}

The candidate-token loss under teacher-forced causal fine-tuning is

LAR=−1K∑i=1Klog⁡pθidx(y0,i∣c,y0,<i).(5)\mathcal{L}_{\mathrm{AR}} = -\frac{1}{K}\sum_{i=1}^{K} \log p_\theta^{\mathrm{idx}}(y_{0,i} \mid c, \mathbf{y}_{0,<i}). \tag*{(5)}

At inference, the evaluated AR baseline uses permutation-constrained greedy decoding:

y^i=arg⁡max⁡v∈Vidx∖{y^1,…,y^i−1} pθidx(v∣c,y^<i).(6)\hat{y}_i = \underset{v \in\mathcal{V}_{\mathrm{idx}} \setminus\{\hat{y}_1,\ldots,\hat{y}_{i-1}\}}{\arg\max}\ p_\theta^{\mathrm{idx}}(v \mid c, \hat{\mathbf{y}}_{<i}). \tag*{(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 requires KK sequential prediction steps. § 5 specifies the output format.

Masked Diffusion Language-Model Reranking

The masked diffusion language model (mdLLM) baseline adapts masked clean-token prediction ([17, 13]) to candidate-index sequences.

Candidate scores. For parallel prediction, let LivL_{iv} be the logit for vocabulary token v∈Vv \in\mathcal{V} at output position ii. The candidate-score matrix is

Sij=Livj,S∈RK×K,(7)S_{ij}=L_{iv_j}, \qquad S \in\mathbb{R}^{K \times K}, \tag*{(7)}

Rows index output positions and columns index candidates. During iterative inference, S(n)S^{(n)} denotes the score matrix at step nn, with steps indexed as n=N,N−1,…,1n=N, N-1, \ldots, 1 for an NFE budget of NN. Each function evaluation scores all KK positions in parallel.

Forward 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 each i∈[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},(8)\Omega= \{i \in[K] : \beta_i = 1\}, \tag*{(8)}
y~i={νmask,i∈Ω,y0,i,i∉Ω.(9)\tilde{y}_i = \begin{cases} \nu_{\mathrm{mask}}, & i \in\Omega,\\ y_{0,i}, & i \notin\Omega. \end{cases} \tag*{(9)}

The context is encoded as a causal prefix, while the KK ranking slots attend to the prefix and bidirectionally to one another. Prediction is unshifted: the hidden state at position ii predicts the clean token y0,iy_{0,i}. Using the candidate-score matrix SS from Equation (7), the single-example cross-entropy over masked positions is

LmdLLM=−1∣Ω∣∑i∈Ωlog⁡exp⁡Si,π0(i)∑j=1Kexp⁡Sij.(10)\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}}. \tag*{(10)}

Raw confidence decoding

We adapt confidence-based parallel decoding ([3, 13]) to fixed-length candidate sequences. Inference begins from KK masked positions and uses 1≤N≤K1 \leq N \leq K function evaluations, indexed in decreasing order as n=N,N−1,…,1n=N, N-1, \ldots, 1. Each evaluation predicts the candidate-score matrix S(n)S^{(n)} in parallel. Let Un⊆[K]\mathcal{U}_n \subseteq[K] denote the unresolved positions, initially UN=[K]\mathcal{U}_N=[K]. Their confidence scores are

αi(n)=max⁡j∈[K]exp⁡Sij(n)∑j′=1Kexp⁡Sij′(n),i∈Un.(11)\alpha_i^{(n)}=\max_{j\in[K]}\frac{\exp S_{ij}^{(n)}}{\sum_{j'=1}^{K}\exp S_{ij'}^{(n)}}, \qquad i\in\mathcal{U}_n. \tag*{(11)}

Within each row, the largest confidence corresponds to the largest logit.

To fill all positions in exactly NN evaluations, step nn commits

mn=⌈∣Un∣n⌉(12)m_n=\left\lceil\frac{|\mathcal{U}_n|}{n}\right\rceil \tag*{(12)}

positions with the largest confidence. Denote this selected set by In⊆Un\mathcal{I}_n \subseteq\mathcal{U}_n. The raw decoder predicts

j^i=arg⁡max⁡j∈[K] Sij(n),i∈In,(13)\hat{j}_i=\underset{j\in[K]}{\arg\max}\ S_{ij}^{(n)}, \qquad i\in\mathcal{I}_n, \tag*{(13)}

and sets Un−1=Un∖In\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.

Assignment Operators

Assignment Operators

Discrete assignment. Given a score matrix S∈RK×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

PK={P∈{0,1}K×K:P1=1, PT1=1}(14)\mathcal{P}_K = \left\{ \mathbf{P} \in\{0,1\}^{K \times K} : \mathbf{P}\mathbf{1} = \mathbf{1},\ \mathbf{P}^{\mathsf{T}}\mathbf{1} = \mathbf{1} \right\} \tag*{(14)}

where 1∈RK\mathbf{1} \in\mathbb{R}^{K} is the all-ones vector. The maximum-score assignment is

P^∈arg max⁡P∈PK⟨S,P⟩,⟨S,P⟩=∑i,jSijPij.(15)\widehat{\mathbf{P}} \in\underset{\mathbf{P} \in\mathcal{P}_K}{\operatorname{arg\,max}}\langle\mathbf{S}, \mathbf{P} \rangle,\qquad\langle\mathbf{S}, \mathbf{P} \rangle= \sum_{i,j} S_{ij}P_{ij}. \tag*{(15)}

The Hungarian algorithm solves this linear assignment problem Kuhn, [6]. Each row and column of P^\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,

BK={X∈R≥0K×K:X1=1, XT1=1}.(16)\mathcal{B}_K = \left\{ \mathbf{X} \in\mathbb{R}_{\ge0}^{K \times K} : \mathbf{X}\mathbf{1} = \mathbf{1},\ \mathbf{X}^{\mathsf{T}}\mathbf{1} = \mathbf{1} \right\}. \tag*{(16)}

For temperature τ>0\tau> 0, Sinkhorn normalization alternately rescales the rows and columns of the elementwise exponential exp⁡(S/τ)\exp(\mathbf{S}/\tau) to sum to one [19, 11]. We denote this operation by SK⁡τ(S)\operatorname{SK}_{\tau}(\mathbf{S}) and implement it in log space for numerical stability; Appendix § 8 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 [9]. The constrained masked decoder applies discrete assignment to each selected subset of positions. Let Jn⊆[K]\mathcal{J}_n \subseteq[K] denote the unused candidates, with JN=[K]\mathcal{J}_N = [K] initially. Confidence is recomputed over Jn\mathcal{J}_n, and the mnm_n most confident positions in Un\mathcal{U}_n form In\mathcal{I}_n. Their joint assignment is

an∗=arg max⁡a:In↪Jn∑i∈InSi,a(i)(n),(17)a_n^* = \underset{a:\mathcal{I}_n \hookrightarrow\mathcal{J}_n}{\operatorname{arg\,max}} \sum_{i \in\mathcal{I}_n} S_{i,a(i)}^{(n)}, \tag*{(17)}

where ↪\hookrightarrow denotes 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 Jn\mathcal{J}_n before the next evaluation. At N=1N = 1, the procedure reduces to a global K×KK \times K assignment; at N=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.

Method

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 summarizes their state representations, corruption processes, objectives, samplers, and decoders.

Figure 1 and Figure 2 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.

The algorithms below describe single-example updates; § 6.2 and A.2 specify the backbone, initialization, and training protocol. The textual context forms a causal prefix followed by KK ranking slots with bidirectional attention among slots. HA-dLLM and SA-dLLM use unshifted prediction: the hidden state at destination slot ii predicts 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 receive TT as an additional input. A Fourier-feature MLP [21] embeds the corruption level2 and adds the resulting vector to each ranking-slot embedding. Its output projection is initialized to zero, so the initial timestep embedding is zero.

Hard-Assignment Prediction (HA-dLLM)

Input and output representation

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.

Input and output representation

At corruption level T∈[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 level T/KT/K. Let dd denote the common dimension of the token embeddings and backbone hidden states, and let hi∈Rd\mathbf{h}_i \in\mathbb{R}^{d} be the final-layer representation at ranking slot ii. The vocabulary projection produces logits

Liv=wvThi+bv,v∈V.(18)L_{iv} = \mathbf{w}_v^{\mathsf{T}}\mathbf{h}_i + b_v,\qquad v \in\mathcal{V}. \tag*{(18)}

The resulting candidate-score matrix is Sθ(c,πT,T)∈RK×K\mathbf{S}_{\theta}(c, \pi_T, T) \in\mathbb{R}^{K \times K}, with entries Sij=LiνjS_{ij} = L_{i\nu_j} as in Equation (7). We omit the inputs when unambiguous; all HA-dLLM objectives below operate on this matrix.

Forward process and training objectives

Subset-shuffling corruption. We use subset shuffling, a shuffle-based corruption related to prior permutation diffusion processes [27]. We sample T∼Unif⁡([K])T \sim\operatorname{Unif}([K]), select TT output positions uniformly without replacement, and uniformly permute the candidates at those positions while leaving all others unchanged. Let gTtrg_T^{\mathrm{tr}} denote the resulting position permutation. The corrupted target is

πT=π0∘gTtr.(19)\pi_T = \pi_0 \circ g_T^{\mathrm{tr}}. \tag*{(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 S\mathbf{S}:

Ltok=−1K∑i=1Klog⁡exp⁡Si,π0(i)∑j=1Kexp⁡Sij.(20)\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}}. \tag*{(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 Algorithm 1 HA-dLLM training step

Require: Training example (c,π0)(c, \pi_0); model parameters θ\theta; selected HA-dLLM objective and its hyperparameters 1: Sample T∼Unif⁡([K])T \sim\operatorname{Unif}([K]) and select TT positions uniformly without replacement. 2: Sample gTtrg_T^{\mathrm{tr}} by uniformly permuting the selected positions. 3: πT←π0∘gTtr\pi_T \leftarrow\pi_0 \circ g_T^{\mathrm{tr}} 4: S←Sθ(c,πT,T)S \leftarrow S_\theta(c, \pi_T, T) 5: Compute the training loss using Equation (20), (22), (23), or (26), according to the selected objective. 6: Update θ\theta with the gradient of the loss. 7: return Updated parameters θ\theta.

position. Let λcol≥0\lambda_{\mathrm{col}} \ge0 weight this term:

Lcol=−1K∑j=1Klog⁡exp⁡Sπ0−1(j),j∑i=1Kexp⁡Sij.(21)\mathcal{L}_{\mathrm{col}}=-\frac{1}{K}\sum_{j=1}^{K}\log\frac{\exp S_{\pi_0^{-1}(j),j}}{\sum_{i=1}^{K}\exp S_{ij}}. \tag*{(21)}
Lassign=Ltok+λcolLcol.(22)\mathcal{L}_{\mathrm{assign}}=\mathcal{L}_{\mathrm{tok}}+\lambda_{\mathrm{col}}\mathcal{L}_{\mathrm{col}}. \tag*{(22)}

▶ Sinkhorn marginal negative log-likelihood. Using Sinkhorn normalization (Sinkhorn and Knopp, [19]; Mena et al., [11]) as introduced in § 3.5, we construct the Sinkhorn marginal negative log-likelihood (Sinkhorn NLL) loss

Q=SK⁡τ(S),Lsink=−1K∑i=1Klog⁡Qi,π0(i).(23)Q=\operatorname{SK}_{\tau}(S),\qquad\mathcal{L}_{\mathrm{sink}}=-\frac{1}{K}\sum_{i=1}^{K}\log Q_{i,\pi_0(i)}. \tag*{(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., [22]) to global assignment scores. Let P0\mathbf{P}_0 be the clean permutation matrix defined in Equation (2), and define the per-position mismatch cost

Δij=γ(1−P0,ij),γ>0.(24)\Delta_{ij}=\gamma(1-P_{0,ij}),\qquad\gamma>0. \tag*{(24)}

The most violated assignment and the resulting hinge are

P~=arg⁡max⁡P∈PK{⟨S,P⟩+⟨Δ,P⟩},(25)\widetilde{\mathbf{P}}=\underset{\mathbf{P}\in\mathcal{P}_K}{\arg\max}\left\{\langle S,\mathbf{P}\rangle+\langle\Delta,\mathbf{P}\rangle\right\}, \tag*{(25)}
Lhinge=1K[⟨S,P~−P0⟩+⟨Δ,P~⟩]+.(26)\mathcal{L}_{\mathrm{hinge}}=\frac{1}{K}\left[\langle S,\widetilde{\mathbf{P}}-\mathbf{P}_0\rangle+\langle\Delta,\widetilde{\mathbf{P}}\rangle\right]_+. \tag*{(26)}

The Hungarian solution P~\widetilde{\mathbf{P}} is detached when computing the subgradient, and [z]+=max⁡{z,0}[z]_+=\max\{z,0\}.

Algorithm 1 summarizes a single-example training step for the selected objective.

Predict–recorrupt sampling and decoding

▶ Initialization and schedule. We adapt the restore-and-recorrupt sampler of Cold Diffusion (Bansal et al., [2]) to permutations and call the resulting rule Predict–recorrupt. For 1≤N≤K1\le N\le K, choose an integer schedule

K=dN>dN−1>⋯>d0=0,(27)K=d_N>d_{N-1}>\cdots>d_0=0, \tag*{(27)}

and sample one position shuffle gdng_{d_n} at each scheduled level from the corresponding subset-shuffling corruption. These shuffles are retained throughout inference, with gd0=id⁡g_{d_0}=\operatorname{id} and gdNg_{d_N} uniform over SK\mathcal{S}_K. We initialize π(N)=gdN\pi^{(N)}=g_{d_N}. For n=N,N−1,…,1n=N,N-1,\ldots,1, π(n)\pi^{(n)} denotes the input at level dnd_n, and one model evaluation produces the state π(n−1)\pi^{(n-1)} at level dn−1d_{n-1}.

Algorithm 2 HA-dLLM Predict–recorrupt sampling
Require: Context $c$; trained model $S_\theta$; budget $1 \le N \le K$
1: Choose integer levels $K = d_N > d_{N-1} > \cdots > d_0 = 0$.
2: Draw and retain position shuffles $g_{d_0}, \ldots, g_{d_N}$ according to the chosen levels.
3: $\pi^{(N)} \leftarrow g_{d_N}$
4: for $n = N, N-1, \ldots, 1$ do
5: $S^{(n)} \leftarrow S_\theta(c, \pi^{(n)}, d_n)$
6: Use Hungarian assignment to obtain $\widehat{\pi}_0^{(n)} \leftarrow \underset{\pi \in \mathcal{S}_K}{\arg\max}\sum_{i=1}^{K} S_{i,\pi(i)}^{(n)}$.
7: $\pi^{(n-1)} \leftarrow \widehat{\pi}_0^{(n)} \circ g_{d_{n-1}}$
8: end for
9: return $\widehat{\pi} = \pi^{(0)}$.

Hungarian decoding. At step nn, the model produces S(n)=Sθ(c,π(n),dn)\mathbf{S}^{(n)} = S_\theta(c, \pi^{(n)}, d_n). The Hungarian algorithm (Kuhn [6]) gives

P^0(n)=arg⁡max⁡P∈PK⟨S(n),P⟩.(28)\widehat{\mathbf{P}}_0^{(n)} = \underset{\mathbf{P} \in\mathcal{P}_K}{\arg\max}\langle\mathbf{S}^{(n)}, \mathbf{P}\rangle. \tag*{(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.(29)\pi^{(n-1)} = \widehat{\pi}_0^{(n)} \circ g_{d_{n-1}}. \tag*{(29)}

For n>1n > 1, the sampler re-corrupts the clean prediction before the next evaluation. Because gd0=idg_{d_0} = \mathrm{id}, the final output is π^=π(0)=π^0(1)\widehat{\pi} = \pi^{(0)} = \widehat{\pi}_0^{(1)}.

Algorithm 2 summarizes Predict–recorrupt sampling for HA-dLLM.

Appendix § 9.§ 1 proves that Predict–recorrupt preserves permutation validity for HA-dLLM and OS-dLLM (Proposition B.1) and analyzes why direct composition-and-inversion analogues of Residual-correction are unsuitable for hard permutation states.

Soft-Assignment Prediction (SA-dLLM)

Input and output representation

SA-dLLM replaces discrete token states with continuous assignments in the Birkhoff polytope BK\mathcal{B}_K defined in § 3.5. Its input comprises the context, a corrupted assignment, and the normalized corruption level t∈[0,1]t \in[0,1]. Let E∈RK×d\mathbf{E} \in\mathbb{R}^{K \times d} contain the candidate-index embeddings as rows. A state Xt∈BK\mathbf{X}_t \in\mathcal{B}_K induces ranking-slot embeddings

Ht=XtE.(30)\mathbf{H}_t = \mathbf{X}_t\mathbf{E}. \tag*{(30)}

Prompt-token embeddings are unchanged. For ranking slots, Ht\mathbf{H}_t replaces the standard embedding lookup at the first transformer layer, after which the timestep embedding is added.

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

Sij∘=Sij−1K∑j′=1KSij′,(31)S^\circ_{ij} = S_{ij} - \frac{1}{K}\sum_{j'=1}^{K} S_{ij'}, \tag*{(31)}
∥S∘∥max⁡=max⁡i,j∣Sij∘∣,(32)\lVert\mathbf{S}^\circ\rVert_{\max} = \max_{i,j} \lvert S^\circ_{ij}\rvert, \tag*{(32)}
S~=S∘max⁡{1,∥S∘∥max⁡/κ}.(33)\widetilde{\mathbf{S}} = \frac{\mathbf{S}^\circ}{\max\{1,\lVert\mathbf{S}^\circ\rVert_{\max}/\kappa\}}. \tag*{(33)}

Applying the Sinkhorn normalization from § 3.5 with the appropriate temperature produces the clean soft-assignment prediction

Qθ(c,Xt,t)=SK⁡τ(S~)∈BK(34)\mathbf{Q}_{\theta}(c,\mathbf{X}_{t},t)=\operatorname{SK}_{\tau}(\widetilde{\mathbf{S}})\in\mathcal{B}_{K} \tag*{(34)}

Forward 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:

Gij∼i.i.d.N(0,1),Z=SK⁡τ(G).(35)G_{ij}\mathrel{\overset{\mathrm{i.i.d.}}{\sim}}\mathcal{N}(0,1),\qquad\mathbf{Z}=\operatorname{SK}_{\tau}(\mathbf{G}). \tag*{(35)}

Holding Z\mathbf{Z} fixed, the forward path linearly interpolates between the clean permutation matrix and the noise matrix:

Xt∗=(1−t)P0+tZ,t∈[0,1].(36)\mathbf{X}_{t}^{*}=(1-t)\mathbf{P}_{0}+t\mathbf{Z},\qquad t\in[0,1]. \tag*{(36)}

SA-dLLM training uses two model evaluations, at corruption levels 11 and t′<1t' < 1, to provide supervision on a model-generated state (Ross et al., [16]). The first evaluation predicts a clean assignment from the noise endpoint:

Qend=Qθ(c,Z,1).(37)\mathbf{Q}^{\mathrm{end}}=\mathbf{Q}_{\theta}(c,\mathbf{Z},1). \tag*{(37)}

We then sample t′t' and re-corrupt Qend\mathbf{Q}^{\mathrm{end}} with the same noise matrix:

X~t′=(1−t′)sg⁡(Qend)+t′Z,(38)\widetilde{\mathbf{X}}_{t'}=(1-t')\operatorname{sg}(\mathbf{Q}^{\mathrm{end}})+t'\mathbf{Z}, \tag*{(38)}

where sg denotes stop-gradient. The second evaluation predicts the same clean target from this re-corrupted assignment:

Qroll=Qθ(c,X~t′,t′).(39)\mathbf{Q}^{\mathrm{roll}}=\mathbf{Q}_{\theta}(c,\widetilde{\mathbf{X}}_{t'},t'). \tag*{(39)}

The rollout state contains no direct contribution from P0\mathbf{P}_{0}. Because the transition begins at X1=Z\mathbf{X}_{1}=\mathbf{Z}, Predict–recorrupt and Residual-correction yield the same X~t′\widetilde{\mathbf{X}}_{t'} for this single step.

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

ℓSA(Q,P0)=−1K⟨P0,log⁡Q⟩=−1K∑i=1Klog⁡Qi,π0(i).(40)\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)}. \tag*{(40)}

The anchored-rollout objective is

Lanchor=12ℓSA(Qend,P0)+12ℓSA(Qroll,P0).(41)\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}). \tag*{(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 over K!K! permutations. Algorithm 3 summarizes the procedure. The set Ntrain\mathcal{N}_{\mathrm{train}} determines the grid from which t′t' is sampled; each example still uses exactly two model evaluations, irrespective of NtrN_{\mathrm{tr}}.

Predict–recorrupt and Residual-correction sampling

Initialization and schedule. We adapt the restore-and-recorrupt and improved updates of Cold Diffusion (Bansal et al., [2]), calling them Predict–recorrupt and Residual-correction, respectively. Both use the same trained model, noise matrix, and terminal decoder. For an NFE budget N≥1N\geq1, they follow the linear schedule

1=tN>tN−1>⋯>t0=0,tn=nN.(42)1=t_{N}>t_{N-1}>\cdots>t_{0}=0,\qquad t_{n}=\frac{n}{N}. \tag*{(42)}

sample one noise matrix Z\mathbf{Z}, initialize XtN=Z\mathbf{X}_{t_{N}}=\mathbf{Z}, and reuse Z\mathbf{Z} throughout the trajectory. The model receives (c,Xtn,tn)(c,\mathbf{X}_{t_{n}},t_{n}), while the sampler additionally uses Z\mathbf{Z} to construct the next state. At each step n=N,N−1,…,1n=N,N-1,\ldots,1, the model predicts Q(n)=Qθ(c,Xtn,tn)\mathbf{Q}^{(n)}=\mathbf{Q}_{\theta}(c,\mathbf{X}_{t_{n}},t_{n}).

Direct Ordering-Score Prediction (OS-dLLM)

Algorithm 3 SA-dLLM anchored-rollout training step

Require: Training example (c,P0)(c, P_0); model parameters θ\theta; budget set Ntrain\mathcal{N}_{\mathrm{train}}; Sinkhorn temperature τ\tau

  1. Sample Gij∼i.i.d.N(0,1)G_{ij} \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \mathcal{N}(0,1) and set Z←SK⁡τ(G)\mathbf{Z} \leftarrow\operatorname{SK}_{\tau}(\mathbf{G}).

  2. Qend←Qθ(c,Z,1)\mathbf{Q}^{\mathrm{end}} \leftarrow Q_{\theta}(c,\mathbf{Z},1) using Equation (34).

  3. Sample Ntr∼Unif⁡(Ntrain)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\}.

  4. t′←1−(ℓ+1)/Ntrt' \leftarrow1-(\ell+1)/N_{\mathrm{tr}}

  5. X~t′←(1−t′)sg⁡(Qend)+t′Z\widetilde{\mathbf{X}}_{t'} \leftarrow(1-t')\operatorname{sg}(\mathbf{Q}^{\mathrm{end}})+t'\mathbf{Z}

  6. Qroll←Qθ(c,X~t′,t′)\mathbf{Q}^{\mathrm{roll}} \leftarrow Q_{\theta}(c,\widetilde{\mathbf{X}}_{t'},t')

  7. Lanchor←12ℓSA(Qend,P0)+12ℓSA(Qroll,P0)\mathcal{L}_{\mathrm{anchor}} \leftarrow\frac{1}{2}\ell_{\mathrm{SA}}(\mathbf{Q}^{\mathrm{end}},P_0)+\frac{1}{2}\ell_{\mathrm{SA}}(\mathbf{Q}^{\mathrm{roll}},P_0)

  8. Update θ\theta with the gradient of the single-example loss.

  9. return Updated parameters θ\theta.

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

Xtn−1=(1−tn−1)Q(n)+tn−1Z.(43)\mathbf{X}_{t_{n-1}}=(1-t_{n-1})\mathbf{Q}^{(n)}+t_{n-1}\mathbf{Z}. \tag*{(43)}

Its terminal assignment is the last clean prediction A=Q(1)\mathbf{A}=\mathbf{Q}^{(1)}.

Residual-correction update. Residual-correction subtracts the current prediction corrupted at tnt_n and adds the same prediction corrupted at tn−1t_{n-1}, using the retained noise matrix Z\mathbf{Z}. Under the affine corruption in Equation (36), the update simplifies to

Xtn−1=Xtn+(tn−tn−1)(Q(n)−Z).(44)\mathbf{X}_{t_{n-1}}=\mathbf{X}_{t_n}+(t_n-t_{n-1})(\mathbf{Q}^{(n)}-\mathbf{Z}). \tag*{(44)}

We implement this update with the equivalent accumulator

CN=0K×K,(45)\mathbf{C}_N=\mathbf{0}_{K\times K}, \tag*{(45)}
Cn−1=Cn+(tn−tn−1)Q(n),(46)\mathbf{C}_{n-1}=\mathbf{C}_n+(t_n-t_{n-1})\mathbf{Q}^{(n)}, \tag*{(46)}
Xtn−1=tn−1Z+Cn−1.(47)\mathbf{X}_{t_{n-1}}=t_{n-1}\mathbf{Z}+\mathbf{C}_{n-1}. \tag*{(47)}

Its terminal assignment is the step-weighted ensemble

A=C0=∑n=1N(tn−tn−1)Q(n).(48)\mathbf{A}=\mathbf{C}_0=\sum_{n=1}^{N}(t_n-t_{n-1})\mathbf{Q}^{(n)}. \tag*{(48)}

If Z\mathbf{Z} and all Q(n)\mathbf{Q}^{(n)} are exactly doubly stochastic, both updates remain in BKB_K because every state is a convex combination of Z\mathbf{Z} and the predictions. Finite Sinkhorn normalization satisfies these constraints only approximately. Appendix § 9.§ 2 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

W=log⁡(max⁡{A,ε}),(49)\mathbf{W}=\log(\max\{\mathbf{A},\varepsilon\}), \tag*{(49)}

where ε>0\varepsilon>0 provides a numerical floor before the elementwise logarithm. A single Hungarian projection then yields

π^=arg⁡max⁡π∈SK∑i=1KWi,π(i).(50)\hat{\pi}=\underset{\pi\in\mathcal{S}_K}{\arg\max}\sum_{i=1}^{K}W_{i,\pi(i)}. \tag*{(50)}

The soft-state updates neither clip nor renormalize intermediate states; the terminal Hungarian assignment is the only discrete projection.

Algorithms 4 and 5 summarize Predict–recorrupt and Residual-correction sampling, respectively. Each uses one terminal Hungarian assignment.

Algorithm 4 SA-dLLM Predict–recorrupt sampling

Require: Context cc; trained model QθQ_\theta; budget N≥1N \ge1; Sinkhorn temperature τ>0\tau> 0; numerical floor ε>0\varepsilon> 0

  1. Set tn←n/Nt_n \leftarrow n/N for n=0,…,Nn = 0,\ldots,N.

  2. Sample Gij∼i.i.d.N(0,1)G_{ij} \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0,1) and set Z←SK⁡τ(G)\mathbf{Z} \leftarrow\operatorname{SK}_\tau(\mathbf{G}).

  3. XtN←Z\mathbf{X}_{t_N} \leftarrow\mathbf{Z}

  4. for n=N,N−1,…,1n = N,N-1,\ldots,1 do

  5. Q(n)←Qθ(c,Xtn,tn)\mathbf{Q}^{(n)} \leftarrow Q_\theta(c,\mathbf{X}_{t_n},t_n)

  6. Xtn−1←(1−tn−1)Q(n)+tn−1Z\mathbf{X}_{t_{n-1}} \leftarrow(1-t_{n-1})\mathbf{Q}^{(n)} + t_{n-1}\mathbf{Z}

  7. end for

  8. W←log⁡(max⁡{Q(1),ε})\mathbf{W} \leftarrow\log(\max\{\mathbf{Q}^{(1)},\varepsilon\})

  9. Use Hungarian assignment to obtain π^←arg⁡max⁡π∈SK∑i=1KWi,π(i)\hat{\pi} \leftarrow\arg\max_{\pi\in\mathcal{S}_K}\sum_{i=1}^{K}W_{i,\pi(i)}.

  10. return π^\hat{\pi}.

Algorithm 5 SA-dLLM Residual-correction sampling

Require: Context cc; trained model QθQ_\theta; budget N≥1N \ge1; Sinkhorn temperature τ>0\tau> 0; numerical floor ε>0\varepsilon> 0

  1. Set tn←n/Nt_n \leftarrow n/N for n=0,…,Nn = 0,\ldots,N.

  2. Sample Gij∼i.i.d.N(0,1)G_{ij} \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0,1) and set Z←SK⁡τ(G)\mathbf{Z} \leftarrow\operatorname{SK}_\tau(\mathbf{G}).

  3. XtN←Z\mathbf{X}_{t_N} \leftarrow\mathbf{Z}; CN←0K×K\mathbf{C}_N \leftarrow\mathbf{0}_{K\times K}

  4. for n=N,N−1,…,1n = N,N-1,\ldots,1 do

  5. Q(n)←Qθ(c,Xtn,tn)\mathbf{Q}^{(n)} \leftarrow Q_\theta(c,\mathbf{X}_{t_n},t_n)

  6. Cn−1←Cn+(tn−tn−1)Q(n)\mathbf{C}_{n-1} \leftarrow\mathbf{C}_n + (t_n-t_{n-1})\mathbf{Q}^{(n)}

  7. Xtn−1←tn−1Z+Cn−1\mathbf{X}_{t_{n-1}} \leftarrow t_{n-1}\mathbf{Z} + \mathbf{C}_{n-1}

  8. end for

  9. W←log⁡(max⁡{C0,ε})\mathbf{W} \leftarrow\log(\max\{\mathbf{C}_0,\varepsilon\})

  10. Use Hungarian assignment to obtain π^←arg⁡max⁡π∈SK∑i=1KWi,π(i)\hat{\pi} \leftarrow\arg\max_{\pi\in\mathcal{S}_K}\sum_{i=1}^{K}W_{i,\pi(i)}.

  11. return π^\hat{\pi}.

Direct Ordering-Score Prediction (OS-dLLM)

Input 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 enumerating K!K! permutations, it maps the hidden state of each current source slot ss to a scalar ordering score

qs=aThs+b,s∈[K].(51)q_s = \mathbf{a}^{\mathsf{T}}\mathbf{h}_s + b,\qquad s \in[K]. \tag*{(51)}

Here a∈Rd\mathbf{a} \in\mathbb{R}^{d} and b∈Rb \in\mathbb{R} are learned parameters. Sorting the KK scores determines the destination order. We denote the source-slot score vector by qθ(c,πT,T)∈RK\mathbf{q}_\theta(c,\pi_T,T) \in\mathbb{R}^{K}.

Forward process and training loss

Training uses the subset-shuffling corruption in Equation (19). Relative to the current ranking πT\pi_T, define the target source order

σT∗=πT−1∘π0,πT(σT∗(i))=π0(i).(52)\sigma_T^* = \pi_T^{-1} \circ\pi_0,\qquad\pi_T(\sigma_T^*(i)) = \pi_0(i). \tag*{(52)}

Thus σT∗(i)\sigma_T^*(i) is the current source slot containing the candidate assigned to destination rank ii.

Listwise maximum likelihood. We train all KK positions with the negative log-likelihood of the Plackett–Luce model (Plackett, [14]), using the ListMLE objective (Xia et al., [24]):

Lperm=1K∑i=1K[log⁡∑r=iKexp⁡qσT∗(r)−qσT∗(i)].(53)\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]. \tag*{(53)}

Algorithm 6 summarizes the ListMLE training step for one example.

Algorithm 6 OS-dLLM training step

Require: Training example (c,π0)(c,\pi_0); model parameters θ\theta

  1. Sample T∼Unif⁡([K])T \sim\operatorname{Unif}([K]) and select TT positions uniformly without replacement.

  2. Sample gTtrg_T^{\mathrm{tr}} by uniformly permuting the selected positions.

  3. if gTtrg_T^{\mathrm{tr}} is the identity then

  4. Replace gTtrg_T^{\mathrm{tr}} by a random transposition, following Section A.2.

  5. end if

  6. πT←π0∘gTtr\pi_T \leftarrow\pi_0 \circ g_T^{\mathrm{tr}}

  7. Compute source-slot scores q←qθ(c,πT,T)\mathbf{q} \leftarrow q_\theta(c,\pi_T,T).

  8. σT∗←πT−1∘π0\sigma_T^* \leftarrow\pi_T^{-1} \circ\pi_0

  9. Compute Lperm\mathcal{L}_{\mathrm{perm}} over all KK positions using Equation (53).

  10. Update θ\theta with the gradient of the single-example loss.

  11. return Updated parameters θ\theta.

Algorithm 7 OS-dLLM Predict–recorrupt sampling

Require: Context cc; trained model qθq_\theta; budget 1≤N≤K1 \le N \le K

  1. Choose integer levels K=dN>dN−1>⋯>d0=0K=d_N>d_{N-1}>\cdots>d_0=0.

  2. Draw and retain position shuffles gd0,…,gdNg_{d_0},\ldots,g_{d_N} as in Algorithm 2.

  3. π(N)←gdN\pi^{(N)} \leftarrow g_{d_N}

  4. for n=N,N−1,…,1n=N,N-1,\ldots,1 do

  5. q(n)←qθ(c,π(n),dn)\mathbf{q}^{(n)} \leftarrow q_\theta(c,\pi^{(n)},d_n)

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

  7. π^0(n)←π(n)∘σ^(n)\hat{\pi}_0^{(n)} \leftarrow\pi^{(n)} \circ\hat{\sigma}^{(n)}

  8. π(n−1)←π^0(n)∘gdn−1\pi^{(n-1)} \leftarrow\hat{\pi}_0^{(n)} \circ g_{d_{n-1}}

  9. end for

  10. return π^=π(0)\hat{\pi}=\pi^{(0)}.

Predict–recorrupt sampling and decoding

▶ Sorting-based decoding. For n=N,N−1,…,1n=N,N-1,\ldots,1, let q(n)∈RK\mathbf{q}^{(n)} \in\mathbb{R}^{K} contain the source-slot scores. A stable descending sort yields the source order

σ^(n)=argsort⁡(q(n);descending),(54)\hat{\sigma}^{(n)}=\operatorname{argsort}(\mathbf{q}^{(n)};\text{descending}), \tag*{(54)}

which is composed with the current ranking to predict the clean state:

π^0(n)=π(n)∘σ^(n).(55)\hat{\pi}_0^{(n)}=\pi^{(n)}\circ\hat{\sigma}^{(n)}. \tag*{(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):

π(n−1)=π^0(n)∘gdn−1.(56)\pi^{(n-1)}=\hat{\pi}_0^{(n)}\circ g_{d_{n-1}}. \tag*{(56)}

Algorithm 7 summarizes sorting-based Predict–recorrupt sampling.

Experiments

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.

Experimental Setup

Experimental Setup

Datasets and splits

We use the Beauty, Sports and Outdoors, and Toys and Games categories of the Amazon-2014 review dataset ([10])3. We apply standard 5-core filtering and a leave-one-out protocol, yielding one query per retained user in each split. Table 2 summarizes the processed data.

Dataset# Users# ItemsMean Len.Median Len.
Beauty22,36312,1018.876
Sports and Outdoors35,59818,3578.326
Toys and Games19,41211,9248.636

Table 2. Statistics of the three processed Amazon review datasets.

Candidate construction and target relabeling

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

For each query, a pointwise cross-encoder reranker ([26]) scores the item catalog. For K∈{10,20}K \in\{10, 20\}, we retain the held-out positive and the K−1K - 1 highest-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, let xˉ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 η∈SK\eta\in S_K, present xj=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.

Prompt and output representation

The prompt contains a system instruction, the user’s purchase history, and KK enumerated candidate descriptions. Candidate jj is prefixed by <idx_j>. The final instruction requests every index exactly once, ordered from most to least relevant and enclosed by <rank> and </rank>.

Metrics

Let r∈{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@kk indicates whether the positive appears among the first kk positions:

R@k=1[r≤k].(57)\mathrm{R}@k = \mathbf{1}[r \le k]. \tag*{(57)}

We report Recall@1 and Recall@5.

▶ Mean reciprocal rank. Mean reciprocal rank (MRR) is

MRR=1r.(58)\mathrm{MRR} = \frac{1}{r}. \tag*{(58)}

Normalized discounted cumulative gain. With one relevant item, normalized discounted cumulative gain at cutoff kk is

NDCG⁡@k=1[r≤k]log⁡2(r+1).(59)\operatorname{NDCG}@k = \frac{\mathbf{1}[r \le k]}{\log_{2}(r+1)}. \tag*{(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 all KK ranking positions in parallel.

Baselines

All learned models use the same pretrained Qwen3-0.6B backbone4, 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 generates KK candidate-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. 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 § 8.

Parallel Reranking with One Function Evaluation

Table 3 compares NFE = 1 diffusion prediction with KK-step AR decoding. The strongest diffusion configuration exceeds the reported AR control on Beauty and Sports at K=10K = 10, matches it on Sports at K=20K = 20, and differs by at most 0.5 Recall@1 percentage points in the remaining settings. No diffusion family dominates all six settings: SA-dLLM performs best on Beauty at K=10K = 10 and matches constrained mdLLM on Beauty at K=20K = 20, whereas HA-dLLM variants lead the proposed families on Sports at both candidate-set sizes and on Toys at K=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.

Table 3 Full-test Recall@1. AR uses KK sequential function evaluations; all other learned models use NFE = 1. “H” denotes Hungarian assignment and “sort” denotes the ordering-score decoder. AR values marked † are from earlier full-test controls; all other values are from the metric-complete evaluation. Boldface indicates the highest pre-rounding value in each column.

Model / decoderNFEK=10K = 10 BeautyK=10K = 10 SportsK=10K = 10 ToysK=20K = 20 BeautyK=20K = 20 SportsK=20K = 20 Toys
Random valid permutation0.100.100.100.050.050.050
AR†KK.863.892.852.828.875.792
mdLLM + constrained/H1.883.917.840.823.875.787
HA-dLLM, token CE + H1.879.913.845.817.872.782
HA-dLLM, assignment CE + H1.880.918.847.820.873.790
HA-dLLM, Sinkhorn NLL + H1.881.918.847.817.871.786
HA-dLLM, structured hinge + H1.855.885.848.813.854.771
SA-dLLM anchored + final H1.889.914.851.823.869.788
OS-dLLM + sort1.840.887.814.782.842.741

Table 3.

Constraint Satisfaction Without Assignment Projection

Table 4 compares discrete rankings produced without assignment projection. At NFE = 1, raw mdLLM has near-zero validity because independent token predictions repeat or omit candidates, whereas OS-dLLM is valid by construction. At NFE = KK, 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 and NFE = KK. Each cell reports N=1→N=KN = 1 \rightarrow N = K. Values are rounded to three decimals; 1.000 does not necessarily indicate exact validity of one.

DatasetKKRaw mdLLMOS-dLLM
Beauty10.013/.013 → .883/1.000.840/1.000 → .854/1.000
Beauty20.000/.000 → .823/1.000.782/1.000 → .787/1.000
Sports10.039/.040 → .916/1.000.887/1.000 → .898/1.000
Sports20.000/.000 → .874/1.000.842/1.000 → .846/1.000
Toys10.001/.001 → .842/1.000.814/1.000 → .820/1.000
Toys20.000/.000 → .789/1.000.741/1.000 → .739/1.000

Table 4.

Effect of Additional Function Evaluations

Table 5 reports Recall@1 across NFE budgets on Beauty with K=20K = 20. Constrained mdLLM, Sinkhorn-trained HA-dLLM, and SA-dLLM change little; token CE and assignment CE degrade, whereas OS-dLLM improves by 0.5 percentage points. The effect of additional evaluations is therefore parameterization dependent.

Model / decoderN=1N = 1N=2N = 2N=5N = 5N=10N = 10N=20N = 20
mdLLM + constrained/H.823.822.822.823.823
HA-dLLM, token CE + H.817.802.793.784.796
HA-dLLM, assignment CE + H.820.811.814.813.811
HA-dLLM, Sinkhorn NLL + H.817.817.819.817.818
HA-dLLM, structured hinge + H.813.810.810.809.810
SA-dLLM, Predict–recorrupt.823.822.822.822.822
SA-dLLM, Residual-correction.823.822.823.823.823
OS-dLLM + sort.782.781.783.784.787

Table 5. Recall@1 versus NFE on Beauty with K=20K = 20. HA-dLLM and OS-dLLM use Predict–recorrupt sampling; SA-dLLM uses the selected anchored-rollout checkpoint.

Table 6 shows that stable Recall@1 can conceal changes in the full order. OS-dLLM gains 0.497 Recall@1 percentage points while losing 0.788 position-accuracy and 0.860 pairwise-accuracy points. Sinkhorn-trained HA-dLLM and SA-dLLM remain stable on both relevance and full-order metrics.

Model / decoderΔR@1\Delta\mathrm{R}@1ΔR@5\Delta\mathrm{R}@5ΔMRR\Delta\mathrm{MRR}ΔNDCG@5\Delta\mathrm{NDCG}@5ΔPosition\Delta\mathrm{Position}ΔPairwise\Delta\mathrm{Pairwise}
mdLLM + constrained/H−.013-.013+.004+.004+.000+.000−.006-.006−.078-.078−.128-.128
HA-dLLM, token CE + H−2.070-2.070−2.209-2.209−1.959-1.959−2.123-2.123−2.328-2.328−.965-.965
HA-dLLM, assignment CE + H−.970-.970−.974-.974−.907-.907−.964-.964−2.194-2.194−.570-.570
HA-dLLM, Sinkhorn NLL + H+.045+.045+.080+.080+.051+.051+.058+.058+.074+.074+.005+.005
HA-dLLM, structured hinge + H−.295-.295−.165-.165−.241-.241−.231-.231−1.591-1.591−1.314-1.314
SA-dLLM, Predict–recorrupt−.026-.026−.067-.067−.039-.039−.042-.042+.014+.014+.077+.077
SA-dLLM, Residual-correction+.009+.009−.005-.005+.002+.002+.003+.003+.008+.008+.032+.032
OS-dLLM + sort+.497+.497−.336-.336+.172+.172+.040+.040−.788-.788−.860-.860

Table 6. Metric changes from NFE = 1 to NFE = 20 on Beauty with K=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 to NFE = KK in five settings but remains below the strongest HA-dLLM in each setting.

Conclusion

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 while 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.

Implementation Details

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

Input Serialization and Sequence Lengths

We extend the pretrained vocabulary Vraw\mathcal{V}_{\mathrm{raw}} with the candidate-index tokens Vidx\mathcal{V}_{\mathrm{idx}}, the mdLLM mask token <rank_mask>, and the delimiters <rank> and </rank>. The serialized AR target contains K+2K + 2 tokens: an opening delimiter, KK candidate indices, and a closing delimiter marking the end of the ranking. Equation (5) includes only the candidate-token component. Input states and prediction parameterizations follow Sections 3 and § 4. The maximum sequence length is 2,048 for K=10K = 10 and 4,096 for K=20K = 20. When truncation is required, we left-truncate only the prompt prefix and preserve the complete ranking region.

Training Configuration

Initialization 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 decay 0.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 of 10−410^{-4}; AR learning rates are selected from {2×10−5,10−4}\{2 \times10^{-5}, 10^{-4}\} on validation data. All checkpoint selection uses validation data only.

Hard-state models

Both hard-state families use explicit timestep conditioning, sample TT uniformly from [K][K], and omit self-conditioning. The Fourier-feature MLP receives T/KT/K during training and dn/Kd_n/K during inference. If a sampled training shuffle leaves the permutation unchanged, including when T=1T = 1, we replace it with a random transposition. Identity corruptions are therefore excluded during training, and the T=KT = K training distribution is not uniform over all permutations, whereas inference begins from a uniform permutation. HA-dLLM objectives supervise all KK positions, 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.1 with 20 Sinkhorn iterations, and structured hinge uses γ=1\gamma= 1.

Soft-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 tolerance 10−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 samples NtrN_{\mathrm{tr}} from Ntrain={2,5,10}\mathcal{N}_{\mathrm{train}} = \{2, 5, 10\} for K=10K = 10 and from Ntrain={2,5,10,20}\mathcal{N}_{\mathrm{train}} = \{2, 5, 10, 20\} for K=20K = 20.

Evaluation Configuration

For K=10K = 10, we evaluate N∈{1,2,5,10}N \in\{1, 2, 5, 10\}; for K=20K = 20, we evaluate N∈{1,2,5,10,20}N \in\{1, 2, 5, 10, 20\}. The NFE=1=1 SA-dLLM prediction is identical for Predict–reccorrupt 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–reccorrupt; 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 with K=10K = 10, and 16 for SA-dLLM with K=20K = 20. We save both predicted and target permutations.

Analysis

Analysis of Hard-State Sampling

We analyze the Predict–recorrupt updates for HA-dLLM and OS-dLLM, defined in Equations (29) and (56) and summarized in Algorithms 2 and 7.

Validity of Hard-State Predict–Recorrupt Sampling

Under the schedule in Equation (27), one shuffle gdng_{d_n} is sampled for each corruption level and retained throughout the denoising trajectory. For this fixed collection, define Dd(π)=π∘gdD_d(\pi) = \pi\circ g_d. Predict–recorrupt applies Ddn−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)∈SK\pi^{(N)} \in\mathcal{S}_K, every decoded clean prediction π^0(n)∈SK\hat{\pi}_0^{(n)} \in\mathcal{S}_K, and every retained shuffle gdn∈SKg_{d_n} \in\mathcal{S}_K, with gd0=idg_{d_0} = \mathrm{id}. For any schedule K=dN>⋯>d0=0K = d_N > \cdots> d_0 = 0 and every n=N,…,1n = N, \ldots, 1, Predict–recorrupt satisfies

π(n−1)=Ddn−1(π^0(n))∈SK,π(0)=π^0(1).(60)\pi^{(n-1)} = D_{d_{n-1}}\left(\hat{\pi}_0^{(n)}\right) \in\mathcal{S}_K,\qquad\pi^{(0)} = \hat{\pi}_0^{(1)}. \tag*{(60)}

Proof. Both π^0(n)\hat{\pi}_0^{(n)} and gdn−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) guarantees a valid HA-dLLM prediction. For OS-dLLM, the stable sort in Equation (55) produces a permutation of source slots, whose composition with the current permutation is also valid. The result is independent of prediction accuracy. □\square

The update is also consistent with a fixed clean prediction. If π^0(n)=π⋆\hat{\pi}_0^{(n)} = \pi_\star at every evaluation, then each updated state equals Ddn−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 is gdNg_{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. When gdNg_{d_N} is uniform and π⋆\pi_\star is fixed, however, both have the uniform marginal distribution over SK\mathcal{S}_K.

Why Additive Residual-Correction Does Not Directly Extend to Permutations

▶ Original residual update. For a state x(n)x^{(n)}, predicted clean state x^0(n)\hat{x}_0^{(n)}, and fixed corruption trajectory DdD_d, Residual-correction uses

x(n−1)=x(n)−Ddn(x^0(n))+Ddn−1(x^0(n)).(61)x^{(n-1)} = x^{(n)} - D_{d_n}\left(\hat{x}_0^{(n)}\right) + D_{d_{n-1}}\left(\hat{x}_0^{(n)}\right). \tag*{(61)}

The update preserves the difference between the current state and corrupted prediction while changing the corruption level.

▶ Permutation-space analogue. For Dd(π)=π∘gdD_d(\pi) = \pi\circ g_d, replacing subtraction and addition with inversion and composition gives

π(n−1)=π(n)∘(Ddn(π^0(n)))−1∘Ddn−1(π^0(n))(62)\pi^{(n-1)} = \pi^{(n)} \circ\left(D_{d_n}\left(\hat{\pi}_0^{(n)}\right)\right)^{-1} \circ D_{d_{n-1}}\left(\hat{\pi}_0^{(n)}\right) \tag*{(62)}
=π(n)∘(gdn)−1∘(π^0(n))−1∘π^0(n)∘gdn−1=π(n)∘(gdn)−1∘gdn−1.(63)\begin{aligned} &= \pi^{(n)} \circ(g_{d_n})^{-1} \circ(\hat{\pi}_0^{(n)})^{-1} \circ\hat{\pi}_0^{(n)} \circ g_{d_{n-1}} \\ &= \pi^{(n)} \circ(g_{d_n})^{-1} \circ g_{d_{n-1}}. \tag*{(63)} \end{aligned}

This update preserves permutation validity, but the prediction cancels within each step regardless of how predictions vary across the trajectory.

Dependence on initialization. For K=dN>⋯>d0=0K = d_N > \cdots> d_0 = 0 and gd0=idg_{d_0} = \mathrm{id}, successive shuffle factors cancel across steps, giving

π(0)=π(N)∘(gdN)−1={π⋆,π(N)=π⋆∘gdN,id,π(N)=gdN.(64)\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} \tag*{(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 uniform gdNg_{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 Dd(x)≈x+deD_d(x) \approx x + d\mathbf{e}, where e\mathbf{e} is constant and independent of xx [2]. Treating this approximation as exact yields

x(n−1)=x(n)−(x^0(n)+dne)+(x^0(n)+dn−1e)=x(n)−(dn−dn−1)e.(65)\begin{aligned} \mathbf{x}^{(n-1)} &= \mathbf{x}^{(n)} - (\widehat{\mathbf{x}}_0^{(n)} + d_n\mathbf{e}) + (\widehat{\mathbf{x}}_0^{(n)} + d_{n-1}\mathbf{e})\\ &= \mathbf{x}^{(n)} - (d_n - d_{n-1})\mathbf{e}. \tag*{(65)} \end{aligned}

Prediction errors cancel, so initialization at x(N)=x⋆+dNe\mathbf{x}^{(N)} = \mathbf{x}_{\star} + d_N\mathbf{e} exactly recovers x⋆\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 corruption DtZ(A)=A+t(Z−A)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)(Q(n)−Z)(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).(66)\pi^{(n-1)} = D_{d_{n-1}}\left(\widehat{\pi}_0^{(n)}\right) \circ\left(D_{d_n}\left(\widehat{\pi}_0^{(n)}\right)\right)^{-1} \circ\pi^{(n)}. \tag*{(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.(67)\operatorname{sgn}(\pi^{(0)}) = \operatorname{sgn}(\pi^{(N)})\operatorname{sgn}(g_{d_N}) = +1. \tag*{(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.

Analysis of Soft-State Sampling

We analyze the SA-dLLM Predict–recorrupt and Residual-correction samplers defined in Equations (43) and (44) and summarized in Algorithms 4 and 5.

Validity of soft-state sampling. Let BK\mathcal{B}_K be the Birkhoff polytope defined in Equation (16). For fixed Z∈BK\mathbf{Z} \in\mathcal{B}_K, the affine corruption in Equation (36) can be written as DtZ(A)=(1−t)A+tZD_t^{\mathbf{Z}}(\mathbf{A}) = (1 - t)\mathbf{A} + t\mathbf{Z}. The Predict–recorrupt update in Equation (43) uses Dtn−1Z(Q(n))D_{t_{n-1}}^{\mathbf{Z}}(\mathbf{Q}^{(n)}) directly, while the Residual-correction update in Equation (44) uses

Xtn−1=Xtn−DtnZ(Q(n))+Dtn−1Z(Q(n))=Xtn+(tn−tn−1)(Q(n)−Z).(68)\begin{aligned} \mathbf{X}_{t_{n-1}} &= \mathbf{X}_{t_n} - D_{t_n}^{\mathbf{Z}}(\mathbf{Q}^{(n)}) + D_{t_{n-1}}^{\mathbf{Z}}(\mathbf{Q}^{(n)})\\ &= \mathbf{X}_{t_n} + (t_n - t_{n-1})(\mathbf{Q}^{(n)} - \mathbf{Z}). \tag*{(68)} \end{aligned}

Reusing Z\mathbf{Z} throughout the trajectory is essential for the invariant below.

Proposition B.2 (Soft-state validity). Let 1=tN>⋯>t0=01 = t_N > \cdots> t_0 = 0 follow the schedule in Equation (42), initialize XtN=ZX_{t_N} = Z, and suppose that Z,Q(n)∈BKZ, Q^{(n)} \in\mathcal{B}_K at every evaluation. Both sampling rules keep every state in BK\mathcal{B}_K. In particular, with Δn=tn−tn−1>0\Delta_n = t_n - t_{n-1} > 0, the residual trajectory satisfies

Xtn=tnZ+∑m=n+1NΔmQ(m),0≤n≤N,(69)X_{t_n} = t_n Z + \sum_{m=n+1}^{N} \Delta_m Q^{(m)}, \qquad0 \le n \le N, \tag*{(69)}

where an empty sum is zero. The terminal assignment is A=Q(1)\mathbf{A} = Q^{(1)} for Predict–recorrupt and A=∑n=1NΔnQ(n)\mathbf{A} = \sum_{n=1}^{N} \Delta_n Q^{(n)} for Residual-correction.

Proof. The Predict–recorrupt update is a convex combination of Q(n)Q^{(n)} and ZZ, so feasibility follows from the convexity of BK\mathcal{B}_K. For Residual-correction, Equation (69) holds at n=Nn = N because tN=1t_N = 1 and the sum is empty. If it holds at nn, then

Xtn−1=tnZ+∑m=n+1NΔmQ(m)+Δn(Q(n)−Z)=tn−1Z+∑m=nNΔmQ(m),(70)\begin{aligned} X_{t_{n-1}} &= t_n Z + \sum_{m=n+1}^{N} \Delta_m Q^{(m)} + \Delta_n(Q^{(n)} - Z) \\ &= t_{n-1} Z + \sum_{m=n}^{N} \Delta_m Q^{(m)}, \tag*{(70)} \end{aligned}

which proves the invariant by induction. Its coefficients are nonnegative and satisfy

tn+∑m=n+1NΔm=tn+(tN−tn)=1.(71)t_n + \sum_{m=n+1}^{N} \Delta_m = t_n + (t_N - t_n) = 1. \tag*{(71)}

Every residual state is therefore a convex combination of doubly stochastic matrices. Substituting t0=0t_0 = 0 gives 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 δ\delta in 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) returns a discrete permutation. Although exact Sinkhorn predictions are strictly positive, Equation (49) 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 A⋆∈BK\mathbf{A}_\star\in\mathcal{B}_K, then both samplers reproduce its affine corruption path exactly:

Xtn=(1−tn)A⋆+tnZ,A=A⋆.(72)X_{t_n} = (1 - t_n)\mathbf{A}_\star+ t_n Z, \qquad\mathbf{A} = \mathbf{A}_\star. \tag*{(72)}

For Predict–recorrupt, the result follows directly from the update. For Residual-correction, it follows from Equation (69) and ∑m=n+1NΔm=1−tn\sum_{m=n+1}^{N} \Delta_m = 1 - t_n. In the ideal case A⋆=P⋆∈PK\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 ω\omega collect the sampled initialization and any other randomness reused by the sampler, and let FΘ,N(c,ω)∈SKF_{\Theta,N}(c,\omega) \in\mathcal{S}_K denote the final decoded output. The induced distribution is

pΘ,Nalg(π∣c)=Pr⁡ω[FΘ,N(c,ω)=π].(73)p^{\mathrm{alg}}_{\Theta,N}(\pi\mid c) = \Pr_{\omega}[F_{\Theta,N}(c,\omega) = \pi]. \tag*{(73)}

With fixed tie-breaking, random initialization followed by deterministic updates defines a permutation-valued generation procedure. The preceding arguments do not establish equality with the data distribution or exact sampling from reverse conditionals. The same noise matrix ZZ 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.

References

  1. [1]Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. In Advances in Neural Information Processing Systems, volume 34, 2021. https://arxiv.org/abs/2203.08006.
  2. [2]Arpit Bansal, Eitan Borgnia, Hong-Min Chu, Jie S. Li, Hamid Kazemi, Furong Huang, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Cold diffusion: Inverting arbitrary image transforms without noise. In Advances in Neural Information Processing Systems, volume 36, pages 41259–41282, 2023. https://arxiv.org/abs/2208.09392.
  3. [3]Hu iwen Chang, Han Zhang, Lu Jiang, Ce Liu, and William T. Freeman. MaskGIT: Masked generative image transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11315– 11325, 2022. https://openaccess.thecvf.com/content/CVPR2022/html/Chang_MaskGIT_Masked_Generative_Image_Transformer_CVPR_2022_paper.html.arxiv.org/abs/2202.04200
  4. [4]Revanth Gangi Reddy, JaeHyeok Doo, Yifei Xu, Md Arafat Sultan, Deevya Swain, Avirup Sil, and Heng Ji. FIRST: Faster improved listwise reranking with single token decoding. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 8642–8652. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.emnlp-main.491. https://aclanthology.org/2024.emnlp-main.491/.DOI
  5. [5]Sizhuang He, Yangtian Zhang, Shiyang Zhang, and David van Dijk. Learning permutation distributions via reflected diffusion on ranks. In International Conference on Machine Learning, 2026. https://arxiv.org/abs/2603.17353.
  6. [6]H. W. Kuhn. The Hungarian method for the assignment problem. Naval Research Logistics Quarterly, 2(1–2):83–97, 1955. doi: 10.1002/nav.3800020109. https://onlinelibrary.wiley.com/doi/10.1002/nav.3800020109.
  7. [7]Yufei Li, Zaiwei Zhang, Mingfu Liang, Kavosh Asadi, Jay Xu, Jimmy Kim, Chongyang Bai, Jieyi Zhang, Hongye Xie, Prachi Agrawal, Dian Yu, Tianyi Chen, Jean-Pascal Billaud, Garret Buell, YK (Yongkang) Zhu, Sachin Patil, Brooke Bian, Zhou Fang, Kevin Huang, Shiva Sudanagunta, Yuzhen Huang, Emma Lu, Chris O’Brien, Yang Song, Lihong Li, Jacob Tao, Zhicheng Zhu, Chao Li, Gaoxiang Liu, Neil Wu, Zhongyin Hu, Li Han, Loki Chen, Ming Lei, Greg Rehm, Siyuan Song, Tianwei Zhang, Li Li, Ketan Singh, Yavuz Yetim, Ilyas Atishe v, Satendra Gera, Ashkan Sadeghi, Rachel Yan, Nikko Mizutani, Shua iwen Wang, Song Yang, Zhijing Li, Jiang Liu, Mengying Sun, Fei Tian, Xiaohan Wei, Chonglin Sun, Shuo Gu, Parish Aggarwal, Senthil Manickavelu, Kaushik Rangadura i, Zhi Hua, Frank Shyu, Ruchit Sharma, Liyuan Liu, Shike Mei, Wenlin Chen, Santanu Kolay, Ben Schulte, Deepak Chandra, Adam (Yang) Song, Sandeep Pandey, Xi Liu, Hamed Firooz, and Luke Simon. GR2 technical report. arXiv preprint arXiv:2606.31984, 2026. https://arxiv.org/abs/2606.31984.
  8. [8]Mingfu Liang, Yufei Li, Jay Xu, Kavosh Asadi, Xi Liu, Shuo Gu, Kaushik Rangadurai, Frank Shyu, Shua iwen Wang, Song Yang, Zhijing Li, Jiang Liu, Mengying Sun, Fei Tian, Xiaohan Wei, Chonglin Sun, Jacob Tao, Shike Mei, Wenlin Chen, Santanu Kolay, Sandeep Pandey, Hamed Firooz, and Luke Simon. GR2: Generative reasoning re-ranker. arXiv preprint arXiv:2602.07774, 2026. https://arxiv.org/abs/2602.07774.
  9. [9]Qi Liu, Kun Ai, Jiaxin Mao, Yanzhao Zhang, Mingxin Li, Dingkun Long, Pengjun Xie, Fengbin Zhu, and Ji-Rong Wen. DiffuRank: Effective document reranking with diffusion language models. arXiv preprint arXiv:2602.12528, 2026. https://arxiv.org/abs/2602.12528.
  10. [10]Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton van den Hengel. Image-based recommendations on styles and substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 43–52. Association for Computing Machinery, 2015. doi: 10.1145/2766462.2767755. https://doi.org/10.1145/2766462.2767755.
  11. [11]Gonzalo Mena, David Belanger, Scott Linderman, and Jasper Snoek. Learning latent permutations with Gumbel-Sinkhorn networks. In International Conference on Learning Representations, 2018. https://arxiv.org/abs/1802.08665.
  12. [12]Yimeng Min and Carla P. Gomes. Learning unbiased permutations via flow matching. arXiv preprint arXiv:2605.16755, 2026. https://arxiv.org/abs/2605.16755.
  13. [13]Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Large language diffusion models. In Advances in Neural Information Processing Systems, volume 38, 2025. doi: 10.52202/085713-1689. https://arxiv.org/abs/2502.09992.
  14. [14]R. L. Plackett. The analysis of permutations. Journal of the Royal Statistical Society: Series C (Applied Statistics), 24 (2):193–202, 1975. doi: 10.2307/2346567.DOI
  15. [15]Ronak Pradeep, Sahel Sharify莫ghaddam, and Jimmy Lin. RankZephyr: Effective and robust zero-shot listwise reranking is a breeze! arXiv preprint arXiv:2312.02724, 2023. https://arxiv.org/abs/2312.02724.
  16. [16]Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pages 627–635. PMLR, 2011. https://proceedings.mlr.press/v15/ross11a.html.arxiv.org/abs/1011.0686
  17. [17]Subham Sekhar Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T. Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. In Advances in Neural Information Processing Systems, volume 37, 2024. https://arxiv.org/abs/2406.07524.
  18. [18]Teng Shi, Chenglei Shen, Weijie Yu, Shen Nie, Chongxuan Li, Xiao Zhang, Ming He, Yan Han, and Jun Xu. LLaDA-Rec: Discrete diffusion for parallel semantic ID generation in generative recommendation. arXiv preprint arXiv:2511.06254, 2025. https://arxiv.org/abs/2511.06254.
  19. [19]Richard Sinkhorn and Paul Knopp. Concerning nonnegative matrices and doubly stochastic matrices. Pacific Journal of Mathematics, 21(2):343–348, 1967. doi: 10.2140/pjm.1967.21.343. https://doi.org/10.2140/pjm.1967.21.343.
  20. [20]Weiwei Sun, Lingyong Yan, Xinyu Ma, Shuaiqiang Wang, Pengjie Ren, Zhumin Chen, Dawei Yin, and Zhaochun Ren. Is ChatGPT good at search? investigating large language models as re-ranking agents. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 14918–14937. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.923. https://aclanthology.org/2023.emnlp-main.923/.DOI
  21. [21]Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. In Advances in Neural Information Processing Systems, volume 33, 2020. https://arxiv.org/abs/2006.10739.
  22. [22]Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann, and Yaserin Altun. Large margin methods for structured and interdependent output variables. Journal of Machine Learning Research, 6(50):1453–1484, 2005. https://jmlr.org/papers/v6/tsochantaridis05a.html.DOI
  23. [23]Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, volume 28, pages 2692–2700, 2015. https://arxiv.org/abs/1506.03134.
  24. [24]Fen Xia, Tie-Yan Liu, Jue Wang, Wensheng Zhang, and Hang Li. Listwise approach to learning to rank: Theory and algorithm. In Proceedings of the 25th International Conference on Machine Learning, pages 1192–1199. Association for Computing Machinery, 2008. doi: 10.1145/1390156.1390306. https://dl.acm.org/doi/10.1145/1390156.1390306.
  25. [25]Zhe Xu, Ruizhong Qiu, Yuzhong Chen, Huiyuan Chen, Xiran Fan, Menghai Pan, Zhichen Zeng, Mahashweta Das, and Hanghang Tong. Discrete-state continuous-time diffusion for graph generation. In Advances in Neural Information Processing Systems, volume 37, 2024. doi: 10.52202/079017-2531. https://proceedings.neurips.cc/paper_files/paper/2024/hash/91813e5dda9658b99be4c532e274b49e-Abstract-Conference.html.DOI
  26. [26]Zhe Xu, Prachi Agrawal, Kavosh Asadi, Tianyi Chen, Carl Hu, Justin Johnson, Wuwei Lan, Mingfu Liang, Xi Liu, Tik On Lui, Oladipo Ositelu, Sandeep Pandey, Ankit Peshin, Feng Qi, Anil Ramakrishna, Kaushik Rangadurai, Frank Shyu, Luke Simon, Yang Yang, and Chiyu Zhang. The case against generation for retrieval: Discriminative language models as effective retrievers. arXiv preprint arXiv:2607.25346, 2026. https://arxiv.org/abs/2607.25346.
  27. [27]Yongxing Zhang, Donglin Yang, and Renjie Liao. SymmetricDiffusers: Learning discrete diffusion on finite symmetric groups. In International Conference on Learning Representations, 2025. https://arxiv.org/abs/2410.02942.
  28. [28]Zhuoxuan Zhang, Kangqi Ni, Yuhang Chen, Mingfu Liang, Xiaohan Wei, Yunchen Pu, Fei Tian, Chonglin Sun, Frank Shyu, Adam (Yang) Song, Sandeep Pandey, Luke Simon, Tianlong Chen, and Xi Liu. Diffusion-GR2: Diffusion generative reasoning re-ranker. arXiv preprint arXiv:2607.01170, 2026. https://arxiv.org/abs/2607.01170.

Paper details

vlnc:W_9dfgew4p
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents