Introduction
In recent years, diffusion model has become one of the core paradigms in generative modeling and has achieved impressive success in image, audio, and text generation. Compared with the classical autoregressive (AR) models, diffusion models model the complex data distribution through gradual denoising, demonstrating the notable advantages in generation quality, stability, and flexibility [1 , 2 ] . For discrete data such as text sequences, discrete diffusion models extend this denoising principle to the discrete case by defining the noising and denoising processes directly on the discrete state space [3 , 4 ] .
In an idealized setting, diffusion models are trained and evaluated on the same underlying distribution. However, in practice, this assumption often fails, as discrepancies between the training and target distributions can arise due to factors such as privacy constraints, computational limitations, and mismatches between the training setup and the intended sampling task [5 , 6 , 7 ] . A representative example is conditional generation, where part of the data is observed and the
Renxiang Huang and Lifeng Lai are with the Department of Electrical and Computer Engineering, University of California, Davis, Davis, CA, 95616, USA (e-mail: r...@ucdavis.edu; lflai@ucdavis.edu).
Yuchen Liang is with the Luddy School of Informatics, Computing, and Engineering, Indiana University Indianapolis, Indianapolis, IN, 46202, USA (e-mail: yu...@iu.edu).
Yingbin Liang and Ness Shroff are with the Department of Electrical and Computer Engineering, The Ohio State University, Columbus, OH, 43210, USA (e-mail: liang.889@osu.edu; shroff.11@osu.edu). goal is to infer the unobserved part. Many tasks involving discrete data fall into this category, including sequence completion and text infilling [8 , 9 , 10 , 11 ] . Such tasks include generating the subsequent content based on the given prefix and filling the missing content while preserving the context. We refer to conditioning on fixed values as sampling “under fixed observations.” More generally, each constrained coordinate may admit several candidate values, which leads to sampling under the coordinate wise set constraints. We call a feasible combination of values an “assignment”. For example, in text rewriting and lexical simplification, each position of the word can be associated with a set of candidate replacements [12 , 13 ] . Fixed observations are recovered when each set contains a single value. Compared to AR models, diffusion models are more naturally suited to these tasks, as they do not rely on a fixed generation order and can flexibly handle partially observed inputs.
Within conditional sampling, one solution is to train a dedicated conditional diffusion model or adapt a pretrained model for each task, such as predictor-free guidance [14 ] and inference-time alignment methods [15 ] . However, such approaches may be costly because they require additional training of a new conditional model beyond unconditional pretraining. In comparison, zero-shot conditional generation does not require such an additional conditional model, since it directly uses the given condition at inference time to build a conditional sampler [9 , 10 ] . The core challenge for zero-shot conditional samplers is the inherent mismatch between the pretrained unconditional model and the conditional model needed in the inference process. In diffusion sampling, this discrepancy manifests in the score function, a phenomenon known as score mismatch [7 ] .
Among all zero-shot conditional samplers, the Conditional SEDD method [9 ] is particularly relevant to this paper. At each diffusion sampling step, Conditional SEDD enforces the fixed observations by setting the corresponding components of the current sample to their observed values, an operation we refer to as “hard clamping.” Although this method is straightforward to implement in practice, we will show that it is not generally equivalent to the true conditional reverse process, thereby introducing bias. Moreover, this approach still lacks any theoretical justifications. This naturally raises the first question studied in this paper:
Question 1: Can we characterize the bias induced by score-mismatched discrete diffusion models?
Moving from fixed observations to set constraints introduces another challenge, that is, how to allocate sampling probabilities to each feasible assignment. Once an assignment is selected, the fixed-observation sampler can be reused to generate the remaining contents. After understanding the construction of the assignment distribution, in order to make the fixed-observation sampler better aligned with the target distribution given set constraints while preserving the main advantage of the zero-shot approach, the second question arises:
Question 2: Can we design a novel method that extends the fixed-observation sampler to the set constraints setting, while explicitly controlling the additional approximation error?
In this paper, we answer both questions affirmatively.
Our Contributions
Overall, our analysis focuses on how mismatched scores interfere with the reverse rate matrix, thereby introducing bias into the sampling process for both general and zero-shot conditional samplers. This analysis provides the convergence guarantee for each assignment in set constraints. Based on the mixture representation of the assignments, we further extend the analysis from fixed observations to general set constraints. The detailed contributions of this paper are: Theoretical Guarantees on General Score-Mismatched Discrete Diffusion Models: Upon characterizing the score mismatch for discrete diffusion models, we provide the first non-asymptotic convergence upper bound in K L \mathrm{KL} KL -divergence between the target (mismatched) and the sampling distributions. Beyond the intrinsic sampling error when there is no mismatch, our theory characterizes a bias term induced by the score mismatch that arises from using the score of the training distribution to sample from a target (mismatched) distribution. Unlike the analysis in the continuous diffusion setting where the mismatch is expressed through the perturbation in the reverse Gaussian mean [7 ] , the mismatch for our setting perturbs the reverse rate matrix of the continuous time Markov chain (CTMC). Moreover, the Bregman divergence term associated with score entropy differs from the usual L 2 L^2 L 2 error for the continuous setting, introducing additional complications in the analysis.
Bias Characterization of Conditional SEDD: Based on the general score mismatch analysis, we further provide the first theoretical guarantees for the classical Conditional SEDD algorithm [9 ] under a fixed observation. By comparing the hard clamp score with the true conditional score, we reveal that the effect of hard clamping depends on the diffusion process. Under the absorbing rate, these two scores are identical on unobserved coordinates given the fixed non-MASK observation, and thus the convergence bound does not contain an additional score-mismatch bias term. Under the uniform rate, the hard clamping can introduce score mismatch over unobserved coordinates. With the assumption of condition compatibility, we bound this bias and characterize the dependence on the unobserved coordinates, vocabulary size, and compatibility parameter.
Randomized Hard Clamping (RHC) for Set Constraints: We propose a Randomized Hard Clamping (RHC) sampler for the set-constraint setting. In particular, we consider the setting where each constrained index in Ω ˉ \bar{\Omega} Ω ˉ admits several candidate values from the admissible sets rather than a single fixed value. As a result, the target conditional distribution admits an exact mixture representation according to the assignments. We further show that the exact assignment distribution can be reconstructed based on the unconditional score for absorbing-rate CTMCs. As a result, the proposed RHC sampler achieves zero-shot generation with a pretrained unconditional discrete diffusion model. The numerical simulations and real-data experiments further support our theoretical results and validate the practical effectiveness of the proposed RHC sampler.
In this section, we focus on related works for convergence analyses and conditional generation for discrete diffusion models. Other related works on conditional continuous diffusion are provided in Appendix § 1 .
Score-matched Discrete Diffusion Model: The existing discrete diffusion analysis focuses on the score-matched setting, that is, the target distribution is consistent with the training distribution. In particular, several recent works have established non-asymptotic convergence guarantees under different noise and sampling schemes [16 , 17 , 18 , 19 , 20 ] . However, these results cannot be directly applied when the target distribution differs from the training distribution, as in the zero-shot conditional generation.
Guided Discrete Diffusion Model: Recent works have studied guidance mechanisms in discrete diffusion. [14 ] proposed predictor guidance and predictor-free guidance applicable to CTMC-based discrete diffusion. Their method realized the guidance through scaling the rate matrix. [21 ] directly derived the classifier-based and classifier-free guidance rules by reweighting the transition kernel in discrete diffusion.
For conditional sampling at large, there are several strands of work. [22 ] proposed a discrete training-free guidance framework. [23 ] extended the training-free guidance to multimodal data. [24 ] pointed out that the bias exists in common discrete guidance methods and adopted Sequential Monte Carlo for debiasing. In addition, [25 ] studied reward optimization in the discrete diffusion. Similarly, [26 ] proposed soft value-based decoding, which introduced the soft value function to guide the model to approximate the optimal policy to implement conditional generation.
These studies focus on how to incorporate conditional information into the sampling process. Our work provides a general convergence framework to explicitly quantify the additional sampling error introduced by the mismatch.
Zero-Shot Discrete Diffusion Model: Zero-shot sampling has recently been explored in the discrete diffusion model. SEDD and RADD support zero-shot text infilling by fixing the prompt at each sampling step instead of retraining for the condition [9 , 27 ] . A discrete diffusion model based on heat bath dynamics, developed by [10 ] , reported good performance in zero-shot tasks, such as text and image infilling. [28 ] proposed a training-free method to calibrate the confidence of the sequence length to allow the adaptive length of the generated sequence. [29 ] proposed a plug-and-play posterior sampling method based on split Gibbs sampling. Their method introduces external conditions through the likelihood or reward guidance. Finally, note that all the works mentioned above focused mainly on algorithmic design and empirical performance, but did not characterize the theoretical performance introduced by modifications to the sampling process.
Our work establishes non-asymptotic convergence guarantees to quantify how the score mismatch affects the convergence of zero-shot conditional sampling with absorbing and uniform rates. This framework further supports the analysis for set constraints.
Constrained Diffusion Models: There are several studies regarding the explicit constraint for diffusion models. In continuous diffusion, [30 ] formulate the sampling process as an optimization problem to guide the generation result to satisfy the constraints. Using a similar idea, [31 ] introduced Constrained Discrete Diffusion. They incorporated differentiable projection and the augmented Lagrangian method into the sampling process so that the generated samples satisfy the conditional constraints. On the application side, [32 ] proposed a constrained decoding method applicable to the diffusion language model, which aims to make the generation result conform to the context-free grammar.
For set constraints, our RHC uses the unconditional score to assign probabilities to feasible values. The convergence guarantee separates the assignment distribution error and the sampling error.
Problem Setup
In this section, we first review the basic concepts of score-matched discrete diffusion models. Then we extend it to general score-mismatched discrete diffusion models. Finally, we specialize this framework to conditional generation problems and zero-shot methods.
(Score-matched) Discrete Diffusion Models
We consider the diffusion model defined on the discrete state space X = [ S ] d \mathcal{X} = [S]^d X = [ S ] d , where d d d denotes the length or dimensions of the sequence and S S S denotes the number of possible values for each dimension. Let q 0 q_0 q 0 be the training data distribution and x 0 ∼ q 0 x_0 \sim q_0 x 0 ∼ q 0 be a data sample. The training distribution has full support on the clean state space. The basic pipeline of the discrete diffusion model is to first gradually perturb the data distribution into a simple stationary distribution, and then learn the corresponding reverse process for denoising.
Forward process: Let T T T be the time horizon and q t q_t q t be the marginal distribution for 0 < t < T 0 < t < T 0 < t < T . The forward process can be expressed as a CTMC with the transition probability in a small time interval [ t − d t , t ] [t-dt,t] [ t − d t , t ] given by
q t ∣ t − d t ( y ∣ x ) = 1 y = x + Q t ( x , y ) d t + o ( d t ) , q_{t|t-dt}(y|x)=\mathbf{1}_{y=x}+Q_t(x,y)dt+o(dt), q t ∣ t − d t ( y ∣ x ) = 1 y = x + Q t ( x , y ) d t + o ( d t ) ,
where 1 y = x \mathbf{1}_{y=x} 1 y = x denotes the indicator function that equals 1 only when y = x y=x y = x and 0 otherwise, and Q t ∈ R S d × S d Q_t\in\mathbb{R}^{S^d\times S^d} Q t ∈ R S d × S d refers to the rate matrix of the CTMC. The rate matrix Q t Q_t Q t controls the instantaneous rate of the state transition. A valid rate matrix Q t Q_t Q t should satisfy the following requirements: Q t ( x , y ) ≥ 0 Q_t(x,y)\ge0 Q t ( x , y ) ≥ 0 for x ≠ y x\ne y x = y , Q t ( x , x ) ≤ 0 Q_t(x,x)\le0 Q t ( x , x ) ≤ 0 and also Q t ( x , x ) = − ∑ y ≠ x Q t ( x , y ) Q_t(x,x)=-\sum_{y\ne x}Q_t(x,y) Q t ( x , x ) = − ∑ y = x Q t ( x , y ) . To simplify the computation, a common assumption is that the forward propagation of each token x i ∈ [ S ] x^i\in[S] x i ∈ [ S ] is independent [4 ] , [9 ] , [16 ] , [17 ] . This independence is also reflected in the rate matrix Q t Q_t Q t , that is, for x ≠ y x\ne y x = y only at one index i i i , Q t ( x , y ) = Q t t o k e n ( x i , y i ) Q_t(x,y)=Q_t^{\mathrm{token}}(x^i,y^i) Q t ( x , y ) = Q t token ( x i , y i ) . Here, Q t t o k e n ∈ R S × S Q_t^{\mathrm{token}}\in\mathbb{R}^{S\times S} Q t token ∈ R S × S is the rate matrix of each token. In this work, we focus on the time-homogeneous case, which means that the rate matrix Q t Q_t Q t is independent of time t t t during the entire forward process, i.e., Q t ≡ Q Q_t\equiv Q Q t ≡ Q , Q t t o k e n ≡ Q t o k e n Q_t^{\mathrm{token}}\equiv Q^{\mathrm{token}} Q t token ≡ Q token .
There are two widely studied rate matrices in previous research. The first one is the absorbing rate matrix [4 ] , [9 ] , [16 ] , [27 ] . An absorbing rate matrix will cause all tokens to enter a MASK state at the terminal time point. Given M A S K ∈ [ S ] \mathrm{MASK}\in[S] MASK ∈ [ S ] , the absorbing rate matrix for one token is defined as
Q t o k e n = 1 S e M A S K T − I S , (1) Q^{\mathrm{token}}=\mathbf{1}_S e_{\mathrm{MASK}}^{\mathsf{T}}-I_S, \tag*{(1)} Q token = 1 S e MASK T − I S , (1)
where 1 S \mathbf{1}_S 1 S is a vector of ones with a length of S S S , e M A S K e_{\mathrm{MASK}} e MASK is a unit vector where the element is 1 only at the MASK position, and I S I_S I S is an identity matrix with a size of S × S S\times S S × S . By this definition, for all x ∈ [ S ] x\in[S] x ∈ [ S ] , x ≠ M A S K x\ne\mathrm{MASK} x = MASK , the diagonal elements satisfy Q t t o k e n ( x , x ) = − 1 Q_t^{\mathrm{token}}(x,x)=-1 Q t token ( x , x ) = − 1 and the elements in the column of MASK state satisfy Q t t o k e n ( x , M A S K ) = 1 Q_t^{\mathrm{token}}(x,\mathrm{MASK})=1 Q t token ( x , MASK ) = 1 . For the other cases, the elements in Q t t o k e n Q_t^{\mathrm{token}} Q t token will be 0. Based on this definition, we can have Q ( x , x ) = − ∑ y ≠ x Q ( x , y ) = − ( d − m ( x ) ) Q(x,x)=-\sum_{y\ne x}Q(x,y)=-(d-m(x)) Q ( x , x ) = − ∑ y = x Q ( x , y ) = − ( d − m ( x )) , where m ( x ) m(x) m ( x ) is defined as the number of MASK tokens in x x x . Here, we also emphasize that the clean data do not contain the MASK token throughout the subsequent analysis, whereas the diffusion state space includes MASK.
The second one is the uniform rate matrix [4 ] , [17 ] , [18 ] . A uniform rate matrix will cause all tokens to be distributed uniformly at the terminal time point. The token-wise rate matrix is defined as
Q t o k e n = 1 S 1 S 1 S T − I S . (2) Q^{\mathrm{token}}=\frac{1}{S}\mathbf{1}_S\mathbf{1}_S^{\mathsf{T}}-I_S. \tag*{(2)} Q token = S 1 1 S 1 S T − I S . (2)
This ensures that Q Q Q satisfies the requirements of a valid rate matrix. Hence, we can derive Q ( x , x ) = − ∑ y ≠ x Q ( x , y ) = − d S − 1 S Q(x,x)=-\sum_{y\ne x}Q(x,y)=-d\frac{S-1}{S} Q ( x , x ) = − ∑ y = x Q ( x , y ) = − d S S − 1 .
Reverse process: Given a forward CTMC, the time-reverse process is also a CTMC and can be described by the time-reverse process q ← t = q T − t \overleftarrow{q}_t=q_{T-t} q t = q T − t . The reverse rate matrix Q ← t ( x , y ) \overleftarrow{Q}_t(x,y) Q t ( x , y ) for x ≠ y x\ne y x = y satisfies [4 Proposition 1]
Q ← t ( x , y ) = Q T − t ( y , x ) q T − t ( y ) q T − t ( x ) . (3) \overleftarrow{Q}_t(x,y)=Q_{T-t}(y,x)\frac{q_{T-t}(y)}{q_{T-t}(x)}. \tag*{(3)} Q t ( x , y ) = Q T − t ( y , x ) q T − t ( x ) q T − t ( y ) . (3)
Similarly, for the reverse rate matrix, we also have Q ← t ( x , y ) ≥ 0 \overleftarrow{Q}_t(x,y)\ge0 Q t ( x , y ) ≥ 0 for x ≠ y x\ne y x = y , Q ← t ( x , x ) ≤ 0 \overleftarrow{Q}_t(x,x)\le0 Q t ( x , x ) ≤ 0 , and Q ← t ( x , x ) = − ∑ y ≠ x Q ← t ( x , y ) \overleftarrow{Q}_t(x,x)=-\sum_{y\ne x}\overleftarrow{Q}_t(x,y) Q t ( x , x ) = − ∑ y = x Q t ( x , y ) . Define s t ( y , x ) : = q t ( y ) q t ( x ) s_t(y,x):=\frac{q_t(y)}{q_t(x)} s t ( y , x ) := q t ( x ) q t ( y ) as the score function in discrete diffusion. Different from the score function ∇ log q t ( x ) \nabla\log q_t(x) ∇ log q t ( x ) in continuous diffusion, the discrete score measures the probability ratio of state y y y relative to the state x x x at time point t t t . Thus, the reverse rate matrix can be written as Q ← t ( x , y ) = Q T − t ( y , x ) s T − t ( y , x ) \overleftarrow{Q}_t(x,y)=Q_{T-t}(y,x)s_{T-t}(y,x) Q t ( x , y ) = Q T − t ( y , x ) s T − t ( y , x ) . Since the true score function s t ( y , x ) = q t ( y ) q t ( x ) s_t(y,x)=\frac{q_t(y)}{q_t(x)} s t ( y , x ) = q t ( x ) q t ( y ) is inaccessible, we train a neural network to learn this approximation s ^ t ≈ s t \hat{s}_t \approx s_t s ^ t ≈ s t .
Training Objective: Since the true distribution q t q_t q t cannot generally be obtained explicitly, one can introduce an approximation s ^ t \hat{s}_t s ^ t to approach the true score s t s_t s t such that Q ^ t ( x , y ) = Q T − t ( y , x ) s ^ T − t ( y , x ) \hat{Q}_t(x,y)=Q_{T-t}(y,x)\hat{s}_{T-t}(y,x) Q ^ t ( x , y ) = Q T − t ( y , x ) s ^ T − t ( y , x ) . According to [9 ] , a natural training objective is to minimize the score entropy loss:
L S E = E x t ∼ q ← t [ ∑ y ≠ x t ( Q ^ t ( x t , y ) − Q ← t ( x t , y ) + Q ← t ( x t , y ) log Q ← t ( x t , y ) Q ^ t ( x t , y ) ) ] . (4) \mathcal{L}_{\mathrm{SE}}=\mathbb{E}_{x_t\sim\overleftarrow{q}_t}\left[\sum_{y\ne x_t}\left(\hat{Q}_t(x_t,y)-\overleftarrow{Q}_t(x_t,y)+\overleftarrow{Q}_t(x_t,y)\log\frac{\overleftarrow{Q}_t(x_t,y)}{\hat{Q}_t(x_t,y)}\right)\right]. \tag*{(4)} L SE = E x t ∼ q t y = x t ∑ ( Q ^ t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q ^ t ( x t , y ) Q t ( x t , y ) ) . (4)
In this work, we focus on two practical samplers, τ \tau τ -leaping [4 ] and uniformization [33 ] . τ \tau τ -leaping is a time-discretized sampling method. With early-stopping, given the discrete time grids 0 = t 0 < t 1 < ⋯ < t N = T − δ 0=t_0<t_1<\cdots<t_N=T-\delta 0 = t 0 < t 1 < ⋯ < t N = T − δ , the reverse rate matrix in each time interval [ t k , t k + 1 ) [t_k,t_{k+1}) [ t k , t k + 1 ) will be frozen as Q ^ t k \hat{Q}_{t_k} Q ^ t k . Given the current state x t k x_{t_k} x t k , the number of the state transitions in [ t k , t k + 1 ) [t_k,t_{k+1}) [ t k , t k + 1 ) follows a Poisson distribution with rate Q ^ t k ( x t k , x t k − i + s ⋅ e i ) ( t k + 1 − t k ) \hat{Q}_{t_k}(x_{t_k},x_{t_k}^{-i}+s\cdot e^i)(t_{k+1}-t_k) Q ^ t k ( x t k , x t k − i + s ⋅ e i ) ( t k + 1 − t k ) , where e i e^i e i is a unit vector with 1 only at the i i i -th position. The update rule is thus given by
x t k + 1 = x t k + ∑ i = 1 d ∑ s = 1 S ( s − x t k i ) Pois ( Q ^ t k ( x t k , x t k − i + s ⋅ e i ) ( t k + 1 − t k ) ) ⋅ e i . (5) x_{t_{k+1}}=x_{t_k}+\sum_{i=1}^{d}\sum_{s=1}^{S}(s-x_{t_k}^{i})\operatorname{Pois}\left(\hat{Q}_{t_k}(x_{t_k},x_{t_k}^{-i}+s\cdot e^i)(t_{k+1}-t_k)\right)\cdot e^i. \tag*{(5)} x t k + 1 = x t k + i = 1 ∑ d s = 1 ∑ S ( s − x t k i ) Pois ( Q ^ t k ( x t k , x t k − i + s ⋅ e i ) ( t k + 1 − t k ) ) ⋅ e i . (5)
In particular, for τ \tau τ -leaping, one update includes all possible transitions during [ t k , t k + 1 ) [t_k,t_{k+1}) [ t k , t k + 1 ) . For discrete state spaces, τ \tau τ -leaping may suffer from an out-of-boundary issue. One can handle this issue by clipping in practice [19 Remark A.13] . The final convergence is not affected when the time step is sufficiently small [19 Proposition A.14] . On the other hand, uniformization is a continuous-time sampling method [33 ] . For t ∈ [ t k , t k + 1 ) t\in[t_k,t_{k+1}) t ∈ [ t k , t k + 1 ) , let the rate λ k \lambda_k λ k satisfy λ k ≥ sup x ∈ [ S ] d ∑ y ≠ x Q ^ t ( x , y ) \lambda_k\ge\sup_{x\in[S]^d}\sum_{y\ne x}\hat{Q}_t(x,y) λ k ≥ sup x ∈ [ S ] d ∑ y = x Q ^ t ( x , y ) , then the transition from the current state x x x to y y y will occur with a probability of Q ^ t ( x , y ) / λ k \hat{Q}_t(x,y)/\lambda_k Q ^ t ( x , y ) / λ k . Notably, the uniformization has been proven to exactly simulate the time-inhomogeneous CTMC [18 ] , [19 ] .
Score Mismatch in Discrete Diffusion Models
For the score-mismatched setting, the target distribution that we expect to sample from is not q 0 q_0 q 0 used for training, but another distribution q ~ 0 \tilde{q}_0 q ~ 0 . With the same forward rate matrix Q t Q_t Q t , the corresponding forward marginal distribution is q ~ t \tilde{q}_t q ~ t (t > 0 t>0 t > 0 ) and the time-reverse distribution is q ~ ← t = q ~ T − t \overleftarrow{\tilde{q}}_t=\tilde{q}_{T-t} q ~ t = q ~ T − t . The reverse rate matrix Q ~ ← t \overleftarrow{\tilde{Q}}_t Q ~ t corresponding to the target distribution is given by
Q ~ ← t ( x , y ) = Q T − t ( y , x ) q ~ T − t ( y ) q ~ T − t ( x ) = : Q T − t ( y , x ) s ~ T − t ( y , x ) . \overleftarrow{\tilde{Q}}_t(x,y)=Q_{T-t}(y,x)\frac{\tilde{q}_{T-t}(y)}{\tilde{q}_{T-t}(x)}=:Q_{T-t}(y,x)\tilde{s}_{T-t}(y,x). Q ~ t ( x , y ) = Q T − t ( y , x ) q ~ T − t ( x ) q ~ T − t ( y ) =: Q T − t ( y , x ) s ~ T − t ( y , x ) .
To quantify the deviation resulting from the inconsistency between the target score s ~ t \tilde{s}_t s ~ t and training score s t s_t s t , we introduce the score mismatch Δ t \Delta_t Δ t as follows:
Definition 1 (Discrete Score Mismatch). Given the target distribution q ~ 0 \tilde{q}_0 q ~ 0 and the corresponding forward process q ~ t \tilde{q}_t q ~ t , the score mismatch Δ t ( y , x ) \Delta_t(y,x) Δ t ( y , x ) between s ~ t \tilde{s}_t s ~ t and s t s_t s t is defined as
Δ t ( y , x ) : = s ~ T − t ( y , x ) s T − t ( y , x ) − 1 = ( q ~ T − t ( y ) q ~ T − t ( x ) ) / ( q T − t ( y ) q T − t ( x ) ) − 1 , ∀ x ≠ y , \Delta_t(y,x):=\frac{\tilde{s}_{T-t}(y,x)}{s_{T-t}(y,x)}-1=\left(\frac{\tilde{q}_{T-t}(y)}{\tilde{q}_{T-t}(x)}\right)\bigg/\left(\frac{q_{T-t}(y)}{q_{T-t}(x)}\right)-1,\qquad\forall x\ne y, Δ t ( y , x ) := s T − t ( y , x ) s ~ T − t ( y , x ) − 1 = ( q ~ T − t ( x ) q ~ T − t ( y ) ) / ( q T − t ( x ) q T − t ( y ) ) − 1 , ∀ x = y , where Δ t ( y , x ) ≥ − 1 \Delta_t(y,x)\ge-1 Δ t ( y , x ) ≥ − 1 for y ≠ x y\ne x y = x and Δ t ( x , x ) = 0 \Delta_t(x,x)=0 Δ t ( x , x ) = 0 . Hence, for x ≠ y x\ne y x = y , we have Q ~ ← t ( x , y ) = Q ← t ( x , y ) ( 1 + Δ t ( y , x ) ) \overleftarrow{\tilde{Q}}_t(x,y)=\overleftarrow{Q}_t(x,y)(1+\Delta_t(y,x)) Q ~ t ( x , y ) = Q t ( x , y ) ( 1 + Δ t ( y , x )) , where Q ~ ← t ( x , x ) = − ∑ y ≠ x Q ~ ← t ( x , y ) \overleftarrow{\tilde{Q}}_t(x,x)=-\sum_{y\ne x}\overleftarrow{\tilde{Q}}_t(x,y) Q ~ t ( x , x ) = − ∑ y = x Q ~ t ( x , y ) .
The score mismatch is naturally a distortion of the original reverse jump rate. This is an important difference from the additive score mismatch, which is typical for continuous diffusion models [7 ] . For the continuous models, the score mismatch can be expressed as an additive perturbation in the Gaussian reverse mean, that is, the difference between the posterior means. In contrast, for discrete diffusion models, the reverse process is driven by the rate matrix, where the change of the target distribution will result in a modification of these ratios rather than an additive perturbation. This motivates defining score mismatch also in terms of a ratio.
Zero-Shot Conditional Sampling under Fixed Observations
In the above general score mismatch setting, the target distribution q ~ 0 \tilde{q}_0 q ~ 0 differs from the training distribution q 0 q_0 q 0 . A crucial scenario of this setting is conditional generation, such as text infilling [9 ] , [27 ] . For this scenario, we do not aim to sample from the unconditional distribution q 0 q_0 q 0 ; instead, our goal is to complete the unobserved parts of a sequence given the condition of observing the partial sequence. More specifically, let x 0 ∈ [ S ] d x_0 \in[S]^d x 0 ∈ [ S ] d be divided into two parts: x 0 = [ x 0 Ω , x 0 Ω ˉ ] x_0 = [x_0^\Omega, x_0^{\bar{\Omega}}] x 0 = [ x 0 Ω , x 0 Ω ˉ ] , where Ω \Omega Ω refers to the set of unobserved indices that need to be filled and Ω ˉ \bar{\Omega} Ω ˉ refers to the observed indices. Given a non-MASK observation y ∈ [ S ] ∣ Ω ˉ ∣ y \in[S]^{|\bar{\Omega}|} y ∈ [ S ] ∣ Ω ˉ ∣ , the target distribution is the conditional distribution of the unobserved coordinates given the observation y y y :
q ~ 0 = q 0 ∣ y Ω = q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . \tilde{q}_0 = q_{0\mid y}^{\Omega} = q_0(x_0^\Omega\mid x_0^{\bar{\Omega}} = y). q ~ 0 = q 0 ∣ y Ω = q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) .
In the zero-shot setting, our goal is to sample from the conditional target using a pretrained unconditional discrete diffusion without any additional training for the given observations.
Zero-Shot Conditional Sampling under Set Constraints
More generally, Ω ˉ \bar{\Omega} Ω ˉ can refer to constrained coordinates, where each coordinate in Ω ˉ \bar{\Omega} Ω ˉ may accept multiple feasible values. For each coordinate m ∈ Ω ˉ m \in\bar{\Omega} m ∈ Ω ˉ , given the nonempty set A m ⊆ [ S ] \ M A S K A_m \subseteq[S]\backslash\mathrm{MASK} A m ⊆ [ S ] \ MASK , we define the set constraints as C = { x 0 m ∈ A m , m ∈ Ω ˉ } C = \{x_0^{m} \in A_m, m \in\bar{\Omega}\} C = { x 0 m ∈ A m , m ∈ Ω ˉ } and the feasible set as A = ∏ m ∈ Ω ˉ A m A = \prod_{m\in\bar{\Omega}} A_m A = ∏ m ∈ Ω ˉ A m , then equivalently, C = { x 0 Ω ˉ ∈ A } C = \{x_0^{\bar{\Omega}} \in A\} C = { x 0 Ω ˉ ∈ A } . Then, the corresponding target distribution should be the conditional marginal given by
q ~ 0 = q 0 ∣ C Ω = q 0 ( x 0 Ω ∣ C ) . \tilde{q}_0 = q_{0\mid C}^{\Omega} = q_0(x_0^\Omega\mid C). q ~ 0 = q 0 ∣ C Ω = q 0 ( x 0 Ω ∣ C ) .
and the fixed observation will be recovered if A m = { y m } A_m = \{y_m\} A m = { y m } for each m ∈ Ω ˉ m \in\bar{\Omega} m ∈ Ω ˉ . We extend the same zero-shot setting to these set constraints, aiming to sample from q 0 ∣ C Ω q_{0\mid C}^{\Omega} q 0 ∣ C Ω using a pretrained unconditional discrete diffusion without any additional training for the specified constraints.
Guarantees for General Score-Mismatched Discrete Diffusion Models
In this section, we present the results for the convergence analysis of general score-mismatched discrete diffusion model for a general target distribution q ~ 0 \tilde{q}_0 q ~ 0 . We first analyze the τ \tau τ -leaping sampler and adopt the following two assumptions, which are commonly used in previous studies for the score-matched discrete diffusion models [16 ] , [17 ] , [19 ] .
Assumption III.1. (Score Estimation Error). The score estimation s ^ T − t k \hat{s}_{T-t_k} s ^ T − t k satisfies
∑ k = 0 N − 1 ( t k + 1 − t k ) L ~ S E ( s ^ T − t k ) ≤ ε s c o r e , \sum_{k=0}^{N-1} (t_{k+1} - t_k) \widetilde{\mathcal{L}}_{\mathrm{SE}}(\hat{s}_{T-t_k}) \le\varepsilon_{\mathrm{score}}, k = 0 ∑ N − 1 ( t k + 1 − t k ) L SE ( s ^ T − t k ) ≤ ε score ,
where
L ~ S E : = E x t k ∼ q ~ t k [ ∑ y ≠ x t k ( Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) ) ] . \widetilde{\mathcal{L}}_{SE}:=\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}\left(\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\right)\right]. L S E := E x t k ∼ q t k y = x t k ∑ ( Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) ) .
Theorem III.1 measures the average estimation error of the score function along the reverse trajectory. This estimation error form is commonly used when there is no mismatch [16 , 17 , 19 ] . Under the score-mismatched setting, the only difference is in the distribution over which the loss is evaluated: here it is evaluated over the induced target process rather than the training process. This assumption holds when the target q ~ t \widetilde{q}_t q t is close to q t q_t q t , which is also the scenario of typical interest. For zero-shot generation discussed in Sections II-C and II-D, the scores used do not involve additional conditional training, but it is still assumed that the pretrained model with hard clamp score defined in (6) has sufficient estimation accuracy under the true conditional distribution. Note that such a mismatched loss evaluation has also been used for mismatched continuous diffusion models [7 ] .
Assumption III.2. (Bounded Score Estimates ) There exists M > 0 M>0 M > 0 such that ∀ x , y ∈ [ S ] d \forall x,y\in[S]^d ∀ x , y ∈ [ S ] d , the score estimation s ^ T − t ( y , x ) \hat{s}_{T-t}(y,x) s ^ T − t ( y , x ) satisfies M − 1 ≤ s ^ T − t ( y , x ) ≤ M M^{-1}\le\hat{s}_{T-t}(y,x)\le M M − 1 ≤ s ^ T − t ( y , x ) ≤ M .
Theorem III.2 is a typical assumption commonly used in the literature [16 , 17 , 19 ] . It is also mild as we will later show that the dependence on M M M is only logarithmic.
Absorbing-Rate CTMCs with τ \tau τ -leaping
The following theorem provides an upper bound for the KL-divergence between the target distribution q ~ 0 \widetilde{q}_0 q 0 and the sampling distribution p T p_T p T with early-stopping. The result is the first convergence guarantee for the score mismatched discrete diffusion in the CTMC framework.
Theorem III.3. Under Theorems III.1 and III.2, taking the time-steps t k + 1 − t k = c min { 1 , T − t k } t_{k+1}-t_k=c\min\{1,T-t_k\} t k + 1 − t k = c min { 1 , T − t k } , and with the absorbing-rate CTMC and the τ \tau τ -leaping sampler, we have
KL ( q ~ δ ∥ p T − δ ) ≲ E o r a c l e + ( 1 + T + log M δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ( y , x t k ) ∣ ] . \operatorname{KL}(\widetilde{q}_{\delta}\|p_{T-\delta})\lesssim\mathcal{E}_{\mathrm{oracle}}+(1+T+\log M\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)(T-t_k)^{-1}\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k}(y,x_{t_k})|\right]. KL ( q δ ∥ p T − δ ) ≲ E oracle + ( 1 + T + log M δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ( y , x t k ) ∣ .
where E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle is the sampling error from the score-matched sampling, including the initialization, discretization, and score estimation errors. To ensure a finite KL divergence, the oracle bound uses a surrogate initialization distribution [16 Theorem 1] .
Theorem III.3 indicates that with the absorbing-rate CTMC and τ \tau τ -leaping sampler,2 the final KL divergence can be divided into two terms. The first term, E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle , is the intrinsic sampling error without any score mismatch. For example, under the setting and assumptions of [16 Theorems 1 and 2] , the absorbing-rate analysis of τ \tau τ -leaping gives the following upper bound of oracle error:
E o r a c l e ≲ d e − T + ϵ s c o r e + d ( 1 + T + log M δ − 1 ) ( T + log δ − 1 ) 2 N . \mathcal{E}_{\mathrm{oracle}}\lesssim d e^{-T}+\epsilon_{\mathrm{score}}+d(1+T+\log M\delta^{-1})\frac{(T+\log\delta^{-1})^2}{N}. E oracle ≲ d e − T + ϵ score + d ( 1 + T + log M δ − 1 ) N ( T + log δ − 1 ) 2 .
which yields an explicit bound for Theorem III.3. This term allows sharper bounds on the same oracle contributions without changing the score-mismatch argument as long as the same sampling setting is applied. The second term is an additional bias term introduced by the score mismatch at each reverse sampling step. Such a bias will gradually accumulate and finally impact the KL divergence between the target distribution and the sampling distribution. If Δ t ( y , x ) = 0 \Delta_t(y,x)=0 Δ t ( y , x ) = 0 , that is, the target distribution and the training distribution are matched, the bias term will also disappear. The proof is provided in Appendix II.
To showcase the generality of Theorem III.3, we would later apply it to analyze the Conditional SEDD sampler in Section IV-A and the RHC sampler in Section V.
Under additional assumptions on the score mismatch, we can further characterize the sum in Theorem III.3 and make the parameter dependence of the resulting bias explicit, as follows.
Corollary III.4. Under the same setting and assumptions as in Theorem III.3, when ∣ Δ t ( y , x t ) ∣ ≲ 1 \lvert\Delta_t(y,x_t)\rvert\lesssim1 ∣ Δ t ( y , x t )∣ ≲ 1 , we further have
KL ( q ~ δ ∥ p T − δ ) ≲ E o r a c l e + d S ( 1 + T + log M δ − 1 ) ( T + log δ − 1 ) . \operatorname{KL}(\widetilde{q}_{\delta}\Vert p_{T-\delta}) \lesssim\mathcal{E}_{\mathrm{oracle}}+dS(1+T+\log M\delta^{-1})(T+\log\delta^{-1}). KL ( q δ ∥ p T − δ ) ≲ E oracle + d S ( 1 + T + log M δ − 1 ) ( T + log δ − 1 ) .
This corollary shows that, when ∣ Δ t ( y , x ) ∣ \lvert\Delta_t(y,x)\rvert ∣ Δ t ( y , x )∣ is uniformly upper-bounded by a constant, the bias term shows an explicit dependence on the dimension d d d and the vocabulary size S S S . Such a uniformly bounded condition is rather mild. Consider a target shift example, where the ratio q ~ 0 q 0 \frac{\widetilde{q}_0}{q_0} q 0 q 0 is bounded by constants that are independent of d d d , S S S , and t t t . Since the same forward process is applied to both the target and training distributions, the score mismatch admits ∣ Δ t ( y , x t ) ∣ ≲ 1 \lvert\Delta_t(y,x_t)\rvert\lesssim1 ∣ Δ t ( y , x t )∣ ≲ 1 . See the detailed proof of Theorem III.4 in Appendix III.
Using similar analysis techniques, we can also extend the result of Theorem III.3 to the uniform-rate CTMC case.
Corollary III.5. Under Theorems III.1 and III.2, taking the time step t k + 1 − t k = c min { 1 , T − t k } t_{k+1}-t_k=c\min\{1,T-t_k\} t k + 1 − t k = c min { 1 , T − t k } , with the uniform-rate CTMC and the τ \tau τ -leaping sampler, we have
KL ( q ~ δ ∥ p T − δ ) ≲ E o r a c l e u n i + S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } \operatorname{KL}(\widetilde{q}_{\delta}\Vert p_{T-\delta}) \lesssim\mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}}+S(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\} KL ( q δ ∥ p T − δ ) ≲ E oracle uni + S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } ⋅ E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ( y , x t k ) ∣ ] , \cdot\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})\lvert\Delta_{t_k}(y,x_{t_k})\rvert\right], ⋅ E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ( y , x t k )∣ , where E o r a c l e u n i \mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}} E oracle uni is the sampling error from the score-matched sampling with uniform rate.
Theorem III.5 illustrates that, similar to the absorbing-rate CTMC case, the final KL divergence for the uniform-rate CTMC case can also be decomposed into the oracle error E o r a c l e u n i \mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}} E oracle uni and an additional bias term induced by the score mismatch. This also highlights the fact that our method does not rely on a specific rate matrix but rather it reflects a general mechanism when there is score mismatch. As in Theorem III.3, E o r a c l e u n i \mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}} E oracle uni can be bounded by other applicable score-matched analyses of uniform rate and τ \tau τ -leaping sampler, such as [17 Theorem 2] . Compared to the absorbing-rate CTMC, the bias for the uniform-rate CTMC is worse by O ( S ) O(S) O ( S ) . This arises because the uniform rate allows the token transition to other S − 1 S-1 S − 1 states and thus the upper-bound of score function under the uniform rate shows a dependence on S S S . A similar phenomenon has been observed for the oracle error in score-matched discrete diffusion models [16 ] , [17 ] , [19 ] . The proof of Theorem III.5 is given in Appendix § 11 .
After establishing the convergence results for the τ \tau τ -leaping sampler, we now focus on the score-mismatch analysis of the uniformization sampler. To establish the corresponding convergence guarantee, we introduce the following continuous-time integral version of the score estimation error assumption:
Assumption III.6. (Integrated Score Estimation Error ) The s ^ T − t \hat{s}_{T-t} s ^ T − t satisfies
∫ 0 T − δ L ~ S E ( s ^ T − t ) d t ≤ ε s c o r e ′ . \int_{0}^{T-\delta} \widetilde{\mathcal{L}}_{\mathrm{SE}}(\hat{s}_{T-t})\mathrm{d}t \le\varepsilon'_{\mathrm{score}}. ∫ 0 T − δ L SE ( s ^ T − t ) d t ≤ ε score ′ .
Here, we clarify the distinction between Theorems III.1 and III.6. Theorem III.1 indicates that the score estimation error manifests as the accumulation of the score entropy over the discrete time grid. This controls the estimation error at the selected discrete time points t k t_k t k , which is generally appropriate for analyzing the sampling methods based on the time discretization, for example, the τ \tau τ -leaping sampler [4 ] , [19 ] . In contrast, Theorem III.6 requires controlling the score estimation error throughout the continuous time horizon, which is applicable to the analysis of the continuous-time sampling methods, for example, the uniformization sampler [18 ] , [33 ] .
Corollary III.7. Under Theorems III.2 and III.6, with absorbing rate and uniformization sampler, we have
KL ( q ~ δ ∥ p T − δ ) ≲ ε o r a c l e ′ \operatorname{KL}(\widetilde{q}_{\delta}\Vert p_{T-\delta}) \lesssim\varepsilon'_{\mathrm{oracle}} KL ( q δ ∥ p T − δ ) ≲ ε oracle ′ + ( 1 + T + log M δ − 1 ) ∫ 0 T − δ ( T − t ) − 1 E x t ∼ q ~ t [ ∑ y ≠ x t Q ( y , x t ) ∣ Δ t ∣ ] d t . {}+ (1+T+\log M\delta^{-1})\int_{0}^{T-\delta}(T-t)^{-1}\mathbb{E}_{x_t\sim\widetilde{q}_t}\left[\sum_{y\ne x_t}Q(y,x_t)|\Delta_t|\right]\mathrm{d}t. + ( 1 + T + log M δ − 1 ) ∫ 0 T − δ ( T − t ) − 1 E x t ∼ q t y = x t ∑ Q ( y , x t ) ∣ Δ t ∣ d t . where ε o r a c l e ′ \varepsilon'_{\mathrm{oracle}} ε oracle ′ is the sampling error from the score-matched sampling with uniformization sampler.
The uniformization sampler has been demonstrated to exactly simulate the sampling process without inducing time discretization error [19 ] . This property is also reflected in the accumulation way of score mismatch. Theorem III.7 indicates that the local score mismatch in reverse dynamics will gradually accumulate in the form of a continuous-time integral over time and eventually impact the KL \operatorname{KL} KL divergence between the target distribution and the generated distribution. Similarly, ε o r a c l e ′ \varepsilon'_{\mathrm{oracle}} ε oracle ′ can incorporate the bounds of score-matched initialization and score estimation errors. [16 Theorem 3] provides a concrete instance. The proof is given in Appendix § 5 .
Guarantees for Zero-Shot Conditional Discrete Diffusion Samplers under Fixed Observations
In this section, to showcase the applicability of our score-mismatch framework, we utilize our general convergence analysis in Section III to study the conditional zero-shot discrete diffusion model under fixed observations introduced in Section II-C. Specifically, we analyze one popular conditional zero-shot discrete diffusion sampler in the literature: the Conditional SEDD sampler [9 ] (see Algorithm 2). This sampler has demonstrated empirical effectiveness in text infilling without requiring additional conditional training. However, a theoretical understanding of this sampler remains lacking, particularly regarding how hard clamping at each diffusion step affects the final sampling error.
Let Ω ˉ ⊆ [ d ] \bar{\Omega} \subseteq[d] Ω ˉ ⊆ [ d ] denote the set of observed coordinates, and let Ω = [ d ] ∖ Ω ˉ \Omega= [d] \setminus\bar{\Omega} Ω = [ d ] ∖ Ω ˉ denote the set of unobserved coordinates to be generated. The algorithm directly performs hard clamps on the observed coordinates Ω ˉ \bar{\Omega} Ω ˉ during each step of the reverse sampling process (which corresponds to a per-step hard projection in view of constrained sampling). We focus on the sampling accuracy over the unobserved coordinates Ω \Omega Ω , given a fixed non-MASK observation y y y . Specifically, for x ^ \hat{x} x ^ and x x x differing only at a coordinate k ∈ Ω k \in\Omega k ∈ Ω , at each time-step t t t , the hard clamp mechanism uses
s t ∣ y h a r d - c l a m p ( x ^ t , x t ) = q t ( x ^ t Ω ∣ x ˉ t Ω ˉ = y ) q t ( x t Ω ∣ x ˉ t Ω ˉ = y ) = q t ( x ^ t Ω , x t Ω ˉ = y ) q t ( x t Ω , x t Ω ˉ = y ) . (6) s^{\mathrm{hard\text{-}clamp}}_{t|y}(\hat{x}_t,x_t)=\frac{q_t(\hat{x}^{\Omega}_{t}|\bar{x}^{\bar{\Omega}}_{t}=y)}{q_t(x^{\Omega}_{t}|\bar{x}^{\bar{\Omega}}_{t}=y)}=\frac{q_t(\hat{x}^{\Omega}_{t},x^{\bar{\Omega}}_{t}=y)}{q_t(x^{\Omega}_{t},x^{\bar{\Omega}}_{t}=y)}. \tag*{(6)} s t ∣ y hard - clamp ( x ^ t , x t ) = q t ( x t Ω ∣ x ˉ t Ω ˉ = y ) q t ( x ^ t Ω ∣ x ˉ t Ω ˉ = y ) = q t ( x t Ω , x t Ω ˉ = y ) q t ( x ^ t Ω , x t Ω ˉ = y ) . (6)
Although this method always satisfies the observation constraints, it may introduce bias on the unobserved space. This is because the hard clamp condition is enforced on the diffusion intermediate state x t Ω ˉ = y x^{\bar{\Omega}}_t=y x t Ω ˉ = y , whereas the true condition is enforced on the clean data x 0 Ω ˉ = y x^{\bar{\Omega}}_0=y x 0 Ω ˉ = y . Indeed, the true conditional score function at time t t t should be
s t ∣ y ( x ^ t , x t ) = q t ( x ^ t Ω ∣ x 0 Ω ˉ = y ) q t ( x t Ω ∣ x 0 Ω ˉ = y ) . (7) s_{t|y}(\hat{x}_t,x_t)=\frac{q_t(\hat{x}^{\Omega}_t|x^{\bar{\Omega}}_0=y)}{q_t(x^{\Omega}_t|x^{\bar{\Omega}}_0=y)}. \tag*{(7)} s t ∣ y ( x ^ t , x t ) = q t ( x t Ω ∣ x 0 Ω ˉ = y ) q t ( x ^ t Ω ∣ x 0 Ω ˉ = y ) . (7)
We further provide an example in Appendix § 16 to illustrate the difference. From Definition 1, the score mismatch for this case is given as follows.
Definition 2. For a fixed prompt x 0 Ω ˉ = y x^{\bar{\Omega}}_0=y x 0 Ω ˉ = y , let x ^ ≠ x \hat{x}\ne x x ^ = x only at index k ∈ Ω k\in\Omega k ∈ Ω . Given the true conditional score s t ∣ y ( x ^ , x ) s_{t|y}(\hat{x},x) s t ∣ y ( x ^ , x ) in (7) , hard clamp score s t ∣ y h a r d - c l a m p ( x ^ , x ) s^{\mathrm{hard\text{-}clamp}}_{t|y}(\hat{x},x) s t ∣ y hard - clamp ( x ^ , x ) in (6) , the score mismatch Δ t ∣ y ( x ^ , x ) \Delta_{t|y}(\hat{x},x) Δ t ∣ y ( x ^ , x ) can be defined as
1 + Δ t ∣ y ( x ^ , x ) = s T − t ∣ y ( x ^ , x ) s T − t ∣ y h a r d - c l a m p ( x ^ , x ) . 1+\Delta_{t|y}(\hat{x},x)=\frac{s_{T-t|y}(\hat{x},x)}{s^{\mathrm{hard\text{-}clamp}}_{T-t|y}(\hat{x},x)}. 1 + Δ t ∣ y ( x ^ , x ) = s T − t ∣ y hard - clamp ( x ^ , x ) s T − t ∣ y ( x ^ , x ) .
We measure the conditional sampling error through the discrepancy between the true conditional target and generated distribution on the unobserved coordinates Ω \Omega Ω .
Conditional SEDD under Fixed Observations with Absorbing Rate
The following theorem characterizes the theoretical performance of the Conditional SEDD sampler with the absorbing-rate CTMC.
Theorem IV.1. Under Theorems III.1 and III.2 , taking the time step t k + 1 − t k = c min { 1 , T − t k } t_{k+1}-t_k=c\min\{1,T-t_k\} t k + 1 − t k = c min { 1 , T − t k } , with the absorbing-rate CTMC and using τ \tau τ -leaping sampler, Conditional SEDD achieves
KL ( q δ ∣ y Ω ∥ p T − δ ∣ y Ω ) ≲ E o r a c l e , \operatorname{KL}(q^{\Omega}_{\delta|y}\|p^{\Omega}_{T-\delta|y})\lesssim\mathcal{E}_{\mathrm{oracle}}, KL ( q δ ∣ y Ω ∥ p T − δ ∣ y Ω ) ≲ E oracle , where q δ ∣ y Ω q^{\Omega}_{\delta|y} q δ ∣ y Ω denotes the target distribution on Ω \Omega Ω given the condition x 0 Ω ˉ = y x^{\bar{\Omega}}_0=y x 0 Ω ˉ = y and p T − δ ∣ y Ω p^{\Omega}_{T-\delta|y} p T − δ ∣ y Ω denotes the generated distribution of the Conditional SEDD on Ω \Omega Ω .
Theorem IV.1 shows that Conditional SEDD does not introduce additional score-mismatch bias term in the convergence bound on the unobserved coordinates Ω \Omega Ω . This is due to the special structure of absorbing rate matrix. Given a fixed non-MASK observation y y y , observing x t Ω ˉ = y x^{\bar{\Omega}}_t=y x t Ω ˉ = y at time t t t implies that the initial constrained coordinates are equal to y y y at time 0 and remain unchanged. Therefore, the common factor regarding the transition over Ω ˉ \bar{\Omega} Ω ˉ will be canceled in the score ratio, and the hard clamp score coincides with the true conditional score, as established in (21) . Consequently, this KL upper bound only contains the oracle error E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle , which is introduced by initialization, score estimation, and time discretization. Under the stated assumptions, using unconditional score for conditional generation will achieve no extra score-mismatch bias. The proof is provided in Appendix § 13 .
In this section, we provide the convergence analysis for Conditional SEDD with the uniform rate in Theorem IV.3. Unlike absorbing rate, uniform-rate CTMC assigns non-zero probabilities between the different clean tokens. Thus, conditioning x t Ω ˉ = y x_t^{\bar{\Omega}}=y x t Ω ˉ = y at time t t t does not directly imply x 0 Ω ˉ = y x_0^{\bar{\Omega}}=y x 0 Ω ˉ = y . The hard clamp score used by Conditional SEDD will be influenced by the contributions of different clean observations. An example is provided in Appendix § 16 to illustrate this. This distinction can introduce score mismatch to the unobserved coordinates Ω \Omega Ω . Under the setting with the uniform rate, we first employ the following assumption to control this variation:
Assumption IV.2. For the fixed observation y ∈ [ S ] ∣ Ω ˉ ∣ y \in[S]^{|\bar{\Omega}|} y ∈ [ S ] ∣ Ω ˉ ∣ , there exists a constant 0 < γ < 1 0 < \gamma< 1 0 < γ < 1 such that
q 0 ( x 0 Ω ˉ = y ∣ x 0 Ω ) ≥ γ , ∀ x 0 Ω ∈ supp ( q 0 Ω ) q_0\left(x_0^{\bar{\Omega}}=y \mid x_0^\Omega\right) \ge\gamma,\qquad\forall x_0^\Omega\in\operatorname{supp}\left(q_0^\Omega\right) q 0 ( x 0 Ω ˉ = y ∣ x 0 Ω ) ≥ γ , ∀ x 0 Ω ∈ supp ( q 0 Ω )
Theorem IV.2 requires that, given any unobserved part x 0 Ω x_0^\Omega x 0 Ω , the likelihood of the fixed observation y y y always has a positive lower bound γ \gamma γ . Intuitively, this assumption quantifies the compatibility between the fixed observation y y y and all possible completions. Specifically, if there exists a completion x 0 Ω x_0^\Omega x 0 Ω such that q 0 ( x 0 Ω ˉ = y ∣ x 0 Ω ) = 0 q_0(x_0^{\bar{\Omega}}=y\mid x_0^\Omega)=0 q 0 ( x 0 Ω ˉ = y ∣ x 0 Ω ) = 0 , this completion has zero probability and is excluded from the target. In text generation tasks constrained by context, this assumption therefore allows the context to prefer some completions but requires other completions to remain possible. Such a uniform positive lower bound exists for a finite-state distribution with full support. For example, in structured text generation, y y y can represent the commonly used conventional expressions such that γ \gamma γ is non-negligible. With Theorem IV.2, we now provide the convergence result of Conditional SEDD with uniform-rate CTMC, as follows.
Theorem IV.3. Under Theorems III.1, III.2 and IV.2, taking the time step t k + 1 − t k = c min { 1 , T − t k } t_{k+1}-t_k=c\min\{1,T-t_k\} t k + 1 − t k = c min { 1 , T − t k } , with uniform rate and τ \tau τ -leaping sampler, Conditional SEDD achieves
KL ( q δ ∣ y Ω ∥ p T − δ ∣ y Ω ) ≲ E o r a c l e u n i \operatorname{KL}\left(q_{\delta\mid y}^{\Omega}\middle\|p_{T-\delta\mid y}^{\Omega}\right) \lesssim\mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}} KL ( q δ ∣ y Ω p T − δ ∣ y Ω ) ≲ E oracle uni + ∣ Ω ∣ S 2 ( 1 + log M S δ − 1 ) ( 1 γ − 1 ) ( log T + S γ 1 + S γ + 1 S γ log δ + S γ δ ( 1 + S γ ) ) , \qquad+|\Omega|S^2\left(1+\log MS\delta^{-1}\right)\left(\frac{1}{\gamma}-1\right)\left(\log\frac{T+S\gamma}{1+S\gamma}+\frac{1}{S\gamma}\log\frac{\delta+S\gamma}{\delta(1+S\gamma)}\right), + ∣Ω∣ S 2 ( 1 + log M S δ − 1 ) ( γ 1 − 1 ) ( log 1 + S γ T + S γ + S γ 1 log δ ( 1 + S γ ) δ + S γ ) , where ∣ Ω ∣ |\Omega| ∣Ω∣ is the number of unobserved coordinates.
Theorem IV.3 bounds the conditional sampling error in two parts. The first term is E o r a c l e u n i \mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}} E oracle uni , which again refers to the intrinsic error for the corresponding score-matched process. The second term refers to the additional bias induced by score mismatch, which reflects the cost of infilling. In contrast, in the absorbing rate case, Conditional SEDD achieves exact score matching on Ω \Omega Ω , as established in Theorem IV.1, whereas Theorem IV.3 indicates that the uniform-rate Conditional SEDD accumulates the score mismatch over the unobserved coordinates Ω \Omega Ω . Taken together, Theorems IV.1 and IV.3 suggest that the effect of the hard clamp mechanism depends on the choice of the rate matrix employed during the diffusion processes. The proof of Theorem IV.3 is given in Appendix VII.
For a fixed γ \gamma γ , the bias term is linearly dependent on the size of Ω \Omega Ω , which means that the conditional bias will increase by the number of positions to be completed. In contrast, when ∣ Ω ∣ |\Omega| ∣Ω∣ is small, the bias will concentrate only on a small number of incomplete indices. The parameter γ \gamma γ describes the compatibility of the context constraint according to the Bayes rule
q 0 ( x 0 Ω ˉ ∣ x 0 Ω = y ) = q 0 ( x 0 Ω ˉ = y ∣ x 0 Ω ) q 0 ( x 0 Ω ) q 0 ( x 0 Ω ˉ = y ) q_0(x_0^{\bar{\Omega}} \mid x_0^\Omega= y) = \frac{q_0(x_0^{\bar{\Omega}} = y \mid x_0^\Omega)q_0(x_0^\Omega)}{q_0(x_0^{\bar{\Omega}} = y)} q 0 ( x 0 Ω ˉ ∣ x 0 Ω = y ) = q 0 ( x 0 Ω ˉ = y ) q 0 ( x 0 Ω ˉ = y ∣ x 0 Ω ) q 0 ( x 0 Ω )
When γ → 1 \gamma\to1 γ → 1 , the bias term will disappear, which means that the specific context is applicable for any completion, and will not provide any additional information. In contrast, as γ → 0 \gamma\to0 γ → 0 , the upper bound of the entire error diverges, which may occur when the context almost determines the unique missing content.
It is notable that for a fixed sequence length, increasing or decreasing the number of observed coordinates will change ∣ Ω ∣ |\Omega| ∣Ω∣ while imposing different condition constraints and the corresponding compatibilities. Hence, the parameters ∣ Ω ∣ |\Omega| ∣Ω∣ and γ \gamma γ jointly determine the error deterioration from two distinct perspectives. ∣ Ω ∣ |\Omega| ∣Ω∣ characterizes the number of unknown contents to be generated, while γ \gamma γ quantifies the compatibility of the given observation with the unknown content by providing a uniform lower bound on the likelihood. Moreover, with the remaining parameters fixed, the additional score-mismatch term does not decrease as the number of reverse steps N N N increases. The experiments in Figure 2 and Figure 3 further illustrate the effects of ∣ Ω ∣ |\Omega| ∣Ω∣ and γ \gamma γ on the sampling accuracy.
Figure 2. Comparison of the Conditional SEDD and Oracle with fixed observation under uniform rate in terms of the final KL divergence between the target and sampling conditional distributions.
Figure 3. Comparison of Conditional SEDD with different numbers of free coordinates under the uniform rate in terms of the final KL divergence between the target and sampling conditional distributions. The different sizes of Ω \Omega Ω are 1, 2, 3.
Randomized Hard Clamping under Set Constraints
Section IV characterizes the convergence error induced by the score mismatch for the Conditional SEDD sampler under a specific constraint x 0 Ω ˉ = y x_0^{\bar{\Omega}} = y x 0 Ω ˉ = y . In this section, we turn to the more general set constraints introduced in Section II-D, where each constrained index is required to lie in an admissible set rather than to take a single fixed value. Such constraints support controlled text generation while maintaining the flexibility of text. Under this setting, Ω ˉ \bar{\Omega} Ω ˉ denotes the set of constrained coordinates. Different from the singleton constraint, the set constraint contains multiple feasible assignment values a ∈ A a \in A a ∈ A . Since we can generate the remaining coordinates while hard clamping the selected assignment a a a , the additional task is to select these assignments such that the target distribution satisfies the set constraints.
Assignment distribution and RHC Sampler
The key observation is that the corresponding target conditional distribution can be expressed by the mixture of the conditional distribution with distinct fixed observations. That is, for any time t t t , let v ( a ) : = q 0 ( x 0 Ω ˉ = a ∣ C ) v(a) := q_0(x_0^{\bar{\Omega}} = a \mid C) v ( a ) := q 0 ( x 0 Ω ˉ = a ∣ C ) denote the target assignment distribution over A A A , we have
q t ( x Ω ∣ C ) = ∑ a ∈ A v ( a ) q t ( x Ω ∣ x 0 Ω ˉ = a ) , a ∈ A . (8) q_t(x^{{\Omega}} \mid C) = \sum_{a \in A} v(a) q_t(x^{{\Omega}} \mid x_0^{\bar{\Omega}} = a), \qquad a \in A. \tag*{(8)} q t ( x Ω ∣ C ) = a ∈ A ∑ v ( a ) q t ( x Ω ∣ x 0 Ω ˉ = a ) , a ∈ A . (8)
Each mixture component corresponds to a fixed-observation problem. Thus, set-constrained sampling naturally involves two steps: selecting an assignment a ∼ v a \sim v a ∼ v and generating the remaining coordinates given by the assignment a a a .
To construct the assignment distribution using a pretrained unconditional model, we first show that v ( a ) v(a) v ( a ) admits an exact expression in terms of the unconditional score under the absorbing rate in the following proposition.
Proposition V.1. Let Ω ˉ = { m 1 , … , m ∣ Ω ˉ ∣ } \bar{\Omega} = \{m_1, \ldots, m_{|\bar{\Omega}|}\} Ω ˉ = { m 1 , … , m ∣ Ω ˉ ∣ } , 1 ≤ j ≤ ∣ Ω ˉ ∣ 1 \leq j \leq|\bar{\Omega}| 1 ≤ j ≤ ∣ Ω ˉ ∣ , then define an all-mask state z a ( 0 ) = [ M A S K ] d z_a^{(0)} = [\mathrm{MASK}]^d z a ( 0 ) = [ MASK ] d and z a ( j ) z_a^{(j)} z a ( j ) is obtained from z a ( j − 1 ) z_a^{(j-1)} z a ( j − 1 ) by changing the m j m_j m j -th coordinate from MASK to a m j a^{m_j} a m j . For each a ∈ A a \in A a ∈ A , with absorbing rate, and the unconditional score s t ( y , x ) s_t(y,x) s t ( y , x ) , then, for any t > 0 t > 0 t > 0 , we have
v ( a ) = q 0 ( x 0 Ω ˉ = a ∣ C ) = ∏ j = 1 ∣ Ω ˉ ∣ s t ( z a ( j ) , z a ( j − 1 ) ) ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s t ( z b ( j ) , z b ( j − 1 ) ) v(a) = q_0(x_0^{\bar{\Omega}} = a \mid C) = \frac{\prod_{j=1}^{|\bar{\Omega}|} s_t\left(z_a^{(j)},z_a^{(j-1)}\right)}{\sum_{b \in A}\prod_{j=1}^{|\bar{\Omega}|} s_t\left(z_b^{(j)},z_b^{(j-1)}\right)} v ( a ) = q 0 ( x 0 Ω ˉ = a ∣ C ) = ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s t ( z b ( j ) , z b ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s t ( z a ( j ) , z a ( j − 1 ) )
where ∣ Ω ˉ ∣ |\bar{\Omega}| ∣ Ω ˉ ∣ refers to the number of the constrained coordinates.
Proposition V.1 reveals the main mechanism of achieving zero-shot sampling for the setting of set constraints. Interestingly, although the definition of v v v is based on the unknown true data distribution q 0 q_0 q 0 , q 0 ( x 0 Ω ˉ = a ∣ C ) q_0(x_0^{\bar{\Omega}}=a\mid C) q 0 ( x 0 Ω ˉ = a ∣ C ) can be exactly recovered using the unconditional scores s t ( y , x ) s_t(y,x) s t ( y , x ) under the CTMC with absorbing rate. Moreover, although the individual scores depend on the diffusion time t t t , this identity holds for any t > 0 t>0 t > 0 . The proof is provided in Appendix XII. Under the uniform rate, the reconstruction of the assignments distribution requires additional marginalization and inversion of the forward transition kernels. We discuss the computational and numerical challenges in Appendix XI.
To obtain computable assignment probabilities, for any chosen time t t t , we replace the exact score in Theorem V.1 with the learned scores, yielding an approximation w w w to the target assignment distribution v v v :
w ( a ) = ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z a ( j ) , z a ( j − 1 ) ) ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z b ( j ) , z b ( j − 1 ) ) . (9) w(a)=\frac{\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_t(z_a^{(j)},z_a^{(j-1)})}{\sum_{b\in A}\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_t(z_b^{(j)},z_b^{(j-1)})}. \tag*{(9)} w ( a ) = ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z b ( j ) , z b ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z a ( j ) , z a ( j − 1 ) ) . (9)
Consequently, motivated by the mixture representation in (8), we propose Randomized Hard Clamping (RHC) method shown in Algorithm 1. In particular, RHC first samples one constraint value a a a from a specified assignment distribution w ( a ) w(a) w ( a ) , then hard clamps the constrained coordinates to a a a throughout the reverse sampling process and generates the remaining coordinates using pretrained unconditional scores. Therefore, let p T − t H C ( x Ω ∣ x 0 Ω ˉ = a ) p^{\mathrm{HC}}_{T-t}(x^\Omega\mid x_0^{\bar{\Omega}}=a) p T − t HC ( x Ω ∣ x 0 Ω ˉ = a ) denote the corresponding distribution on Ω \Omega Ω for one specific value a a a during the reverse process. We define
p T − t R H C ( x Ω ∣ C ) : = ∑ a ∈ A w ( a ) p T − t H C ( x Ω ∣ x 0 Ω ˉ = a ) , ∀ t ∈ [ 0 , T ] . (10) p^{\mathrm{RHC}}_{T-t}(x^\Omega\mid C):=\sum_{a\in A}w(a)p^{\mathrm{HC}}_{T-t}(x^\Omega\mid x_0^{\bar{\Omega}}=a),\quad\forall t\in[0,T]. \tag*{(10)} p T − t RHC ( x Ω ∣ C ) := a ∈ A ∑ w ( a ) p T − t HC ( x Ω ∣ x 0 Ω ˉ = a ) , ∀ t ∈ [ 0 , T ] . (10)
Figure 1. Algorithm 1: Randomized Hard Clamping (RHC) Sampler
Convergence Guarantee for RHC
To establish the convergence guarantee of RHC, we need to control both the assignment distribution error and the sampling error for each selected assignment (see Theorem VIII.1). For the latter, we can reuse the convergence analysis for the preceding fixed-observation sampler for each component in (10), since each assignment a ∈ A a \in A a ∈ A corresponds to a reverse sampling process with hard clamping. To control the assignment distribution error introduced by constructing w ( a ) w(a) w ( a ) from the estimated unconditional score, we employ the following assumption:
Assumption V.2. For any t ∈ [ δ , T ] t \in[\delta,T] t ∈ [ δ , T ] , let w w w be the assignment distribution constructed from (9). For ∀ a ∈ A \forall a \in A ∀ a ∈ A and 1 ≤ j ≤ ∣ Ω ˉ ∣ 1 \le j \le|\bar{\Omega}| 1 ≤ j ≤ ∣ Ω ˉ ∣ , the score estimation s ^ t \hat{s}_t s ^ t satisfies
1 2 ( E a ∼ v + E a ∼ w ) ∑ j = 1 ∣ Ω ˉ ∣ [ s ^ t ( z a ( j ) , z a ( j − 1 ) ) s t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s ^ t ( z a ( j ) , z a ( j − 1 ) ) s t ( z a ( j ) , z a ( j − 1 ) ) ] ≤ ε s c o r e p a t h . \frac{1}{2}\left(\mathbb{E}_{a\sim v}+\mathbb{E}_{a\sim w}\right)\sum_{j=1}^{|\bar{\Omega}|}\left[\frac{\hat{s}_t(z_a^{(j)},z_a^{(j-1)})}{s_t(z_a^{(j)},z_a^{(j-1)})}-1-\log\frac{\hat{s}_t(z_a^{(j)},z_a^{(j-1)})}{s_t(z_a^{(j)},z_a^{(j-1)})}\right]\le\varepsilon_{\mathrm{score}}^{\mathrm{path}}. 2 1 ( E a ∼ v + E a ∼ w ) j = 1 ∑ ∣ Ω ˉ ∣ [ s t ( z a ( j ) , z a ( j − 1 ) ) s ^ t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s t ( z a ( j ) , z a ( j − 1 ) ) s ^ t ( z a ( j ) , z a ( j − 1 ) ) ] ≤ ε score path .
This assumption controls the accuracy of the score estimation along the paths that construct the assignment distribution w w w . Since the assignment probabilities are calculated by the product of the scores, it is natural to measure the error by the ratios s ^ t s t \frac{\hat{s}_t}{s_t} s t s ^ t . The expectations under v v v and w w w measure the estimation error along the construction paths under the target assignment distribution and the estimated distribution, respectively. This assumption therefore complements Theorem III.1 regarding the required path. The averaging on both v v v and w w w is motivated by the symmetric KL used in the proof. Specifically, symmetric KL allows us to cancel the normalization terms in product of scores (see (27) ). Moreover, the loss achieves the optimum at the exact score, consistent with the consistency of the score entropy in [9 Proposition 3.2] . With exact unconditional scores, the error vanishes and the construction recovers v = w v=w v = w .
Combining the score representation in Theorem V.1 with the KL bound in Theorem VIII.1, we can now provide an upper bound on the KL divergence of the RHC sampling with the corresponding target distribution under the set constraints setting.
Theorem V.3. For any t ∈ [ δ , T ] t \in[\delta,T] t ∈ [ δ , T ] , let w ( a ) w(a) w ( a ) be constructed by estimated unconditional scores as (9). Under Theorems III.1, III.2 and V.2, taking the time step t k + 1 − t k = c min { 1 , T − t k } t_{k+1}-t_k=c\min\{1,T-t_k\} t k + 1 − t k = c min { 1 , T − t k } , with absorbing rate and τ \tau τ -leaping sampler, we have
KL ( q δ ∣ C Ω ∥ p T − δ ∣ C Ω , R H C ) ≲ E o r a c l e + ∣ Ω ˉ ∣ ε s c o r e p a t h . \operatorname{KL}\left(q_{\delta|C}^{\Omega}\middle\|p_{T-\delta|C}^{\Omega,\mathrm{RHC}}\right)\lesssim\mathcal{E}_{\mathrm{oracle}}+\sqrt{|\bar{\Omega}|}\varepsilon_{\mathrm{score}}^{\mathrm{path}}. KL ( q δ ∣ C Ω p T − δ ∣ C Ω , RHC ) ≲ E oracle + ∣ Ω ˉ ∣ ε score path . where E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle is a common upper bound on the initialization, score estimation, and discretization errors for the fixed-observation sampling for each a ∈ A a \in A a ∈ A and ∣ Ω ˉ ∣ |\bar{\Omega}| ∣ Ω ˉ ∣ refers to the number of the constrained coordinates.
Theorem V.3 indicates that extending a fixed observation to set constraints will not alter the primary form of the convergence results. The additional term is ∣ Ω ˉ ∣ ε s c o r e p a t h \sqrt{|\bar{\Omega}|}\varepsilon_{\mathrm{score}}^{\mathrm{path}} ∣ Ω ˉ ∣ ε score path , which is induced by approximating the distribution v v v by w w w based on the estimated score s ^ t \hat{s}_t s ^ t . Hence, we focus on the dependence on the score estimation error ε s c o r e p a t h \varepsilon_{\mathrm{score}}^{\mathrm{path}} ε score path . If the score is further trained, the additional bound will decrease and vanish as ε s c o r e p a t h → 0 \varepsilon_{\mathrm{score}}^{\mathrm{path}}\to0 ε score path → 0 . In particular, with exact unconditional scores, the construction yields w = v w=v w = v , and the assignment distribution error vanishes. Moreover, with other parameters fixed, this additional cost exhibits a square-root dependence on the number of constrained coordinates ∣ Ω ˉ ∣ |\bar{\Omega}| ∣ Ω ˉ ∣ and does not introduce an explicit dependence on the size of the feasible sequence set ∣ A ∣ = ∏ m ∈ Ω ˉ ∣ A m ∣ |A|=\prod_{m\in\bar{\Omega}}|A_m| ∣ A ∣ = ∏ m ∈ Ω ˉ ∣ A m ∣ , although the number of feasible sequences may grow combinatorially with the number of constrained values. The proof is given in Appendix VIII.
Experiment Results
In this section, we provide experiment results to validate the results obtained in this paper.
Conditional SEDD under Fixed Observation
In our simulation, we conduct numerical experiments on a finite data distribution q 0 q_0 q 0 under a fixed observation x 0 0 = y x_0^0 = y x 0 0 = y . The data distribution is constructed using normalized exponential weights, resulting in a non-uniform distribution with coordinate dependencies. Upon choosing a data distribution, we estimate the corresponding KL divergence between the target distribution and the sampling distribution from the samples. More details about our settings can be found in Appendix X-A.
To verify our theory, we first compare Conditional SEDD in [9 ] with the oracle sampler under absorbing and uniform rates. The oracle sampler uses the true conditional score s t ∣ y s_{t\mid y} s t ∣ y of the corresponding target distribution. Figures 1 and 2 show the comparison of the KL divergence of Conditional SEDD and the oracle sampler. Next, to further explore the effects of ∣ Ω ∣ |\Omega| ∣Ω∣ and γ \gamma γ for uniform-rate Conditional SEDD, we compare the performance of Conditional SEDD with different numbers of free coordinates. The results are reported in Figure 3.
Figure 1 shows that the Conditional SEDD is closely aligned with the oracle sampler under the absorbing rate. Both errors decrease as the number of reverse time steps increases. This observation is consistent with Theorem IV.1, where the hard-clamped score coincides with the true conditional score on Ω \Omega Ω . Thus, Conditional SEDD introduces no additional structural score-mismatch bias for the generated results.
Figure 1. Comparison of the Conditional SEDD and Oracle with fixed observation under absorbing rate in terms of the final KL divergence between the target and sampling conditional distributions.
Under the uniform rate, Figure 2 shows a different phenomenon. Although the KL divergences of both samplers gradually decrease, the Conditional SEDD is stuck on an irreducible plateau for a large number of steps, and the oracle sampler achieves a smaller KL divergence. This observation is consistent with the score mismatch issue in Theorem IV.3, where Conditional SEDD introduces an additional bias term. Thus, these results illustrate that the mismatch between Conditional SEDD and the oracle sampler will not be eliminated even with a finer time discretization.
Figure 3 illustrates the trends of the KL divergence of uniform-rate Conditional SEDD with different fixed observations and numbers of unobserved coordinates. For y = [ 0 ] y = [0] y = [ 0 ] , [ 0 , 2 ] [0, 2] [ 0 , 2 ] , and [ 0 , 2 , 2 ] [0, 2, 2] [ 0 , 2 , 2 ] , the KL divergence increases with the larger size of the unobserved set. However, with y = [ 0 , 2 , 1 ] y = [0, 2, 1] y = [ 0 , 2 , 1 ] , the KL divergence is the worst among the four settings. The different trends across these settings do not contradict the theoretical bound in Theorem IV.3, since the upper bound depends on both the number of free coordinates ∣ Ω ∣ |\Omega| ∣Ω∣ and the condition compatibility parameter $\gamma` in Theorem IV.2. As the condition changes from y = [ 0 , 2 , 2 ] y = [0, 2, 2] y = [ 0 , 2 , 2 ] to [ 0 , 2 , 1 ] [0, 2, 1] [ 0 , 2 , 1 ] , we observe a significant increase in KL divergence, which is consistent with Theorem IV.3 that a smaller γ \gamma γ will deteriorate the sampling error.
RHC under Set Constraints
a) Synthetic Experiments: For the synthetic experiments, we use the same distribution above and impose the set constraints. We compare our RHC in Algorithm 1 with the oracle sampler under absorbing-rate CTMC. The assignment probabilities w ( a ) w(a) w ( a ) are computed from the exact unconditional scores.
Figure 4 shows the comparison of the KL divergence of the oracle sampler and RHC. We evaluate the KL divergence on the generated coordinates without early stopping. In this experiment, since the assignment distribution can be calculated from the data distribution, there is no approximation error in the assignment distribution. In particular, w = v w = v w = v and ε s c o r e p a t h = 0 \varepsilon_{\mathrm{score}}^{\mathrm{path}} = 0 ε score path = 0 . Therefore, the bound in Theorem V.3 reduces to E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle . As shown in Figure 4 , the KL divergence of both methods decreases as the number of steps increases, and RHC achieves sampling errors comparable to those of the oracle sampler. This result demonstrates the performance of RHC with the ideal constructions of the assignment distribution and the exact unconditional scores, corroborating the results in Theorem V.3 . Moreover, hard clamping in RHC introduces no score mismatch for each assignment in this experiment with the absorbing rate. b) Text Experiments: Beyond synthetic data, we also conduct a series of text infilling experiments with coordinatewise set constraints to validate the effectiveness of our RHC sampler. In our experiments, several positions in the sequence are selected as the constrained coordinates, where multiple candidate tokens are included (see the detailed list in Table II ). The sampler is required to select a feasible assignment for these positions in the different scenarios and generate the remaining tokens.
Figure 4. Comparison of the RHC and Oracle in terms of the final KL divergence between the target and sampling conditional distributions.
Table II. Summary of scenarios.
We compare RHC with a uniform-assignment baseline. Different from RHC that selects assignments using the assignment distributions calculated from the trained unconditional scores, the baseline method samples the feasible assignments independently and uniformly. Detailed settings are shown in Appendix § 17 -B. We report the generative perplexity, which is widely used to evaluate the quality of the generated text [9 ] , [21 ] , [27 ] , [34 ] , of the proposed RHC sampler and the baseline sampler in Table I.
Table 1. SUMMARY OF PERPLEXITY IN TRANSPORTATION, STUDY, GAME, COOKING, PROJECT AND WEATHER. THE RESULTS INCLUDE THE MEAN ± STANDARD DEVIATION AND TOTAL GENERATION TIME OF FIVE INDEPENDENT TRIALS.
Table I summarizes the results of the perplexity in the six different constraint scenarios. The construction of the assignment distribution takes 50 ∼ 54 seconds per scenario, and the distribution can be reused among independent trials for each scenario. Compared with the uniform-assignment baseline, RHC consistently achieves lower perplexity across all evaluated scenarios. Meanwhile, the total generation time for RHC increases only by 3.1% ∼ 3.4%.
Hence, the experiments demonstrate that our RHC sampler can effectively satisfy the desired set constraints without compromising the fluency of conditional generation. Table III and Table IV provide several generated results for reference.
Table III. Examples of generated sentences. The bold text shows the selected constrained position.
Table IV. Examples of generated sentences. The bold text shows the selected constrained position.
Conclusion
In this paper, we have provided the convergence guarantees for the general score-mismatched discrete diffusion model. Based on the general results, we have further studied the zero-shot conditional generation. Our analysis characterizes the bias of Conditional SEDD under the fixed observations. We have shown that the hard clamp score coincides with the true conditional score under the absorbing rate case but not under the uniform rate case. We have derived an additional score-mismatched bias term in the KL upper bound under the uniform rate. To further extend conditional sampling to coordinate-wise set constraints, we have designed a novel Randomized Hard Clamping sampler with an absorbing rate. A natural direction for future work is to extend the current analysis and samplers to more general multimodal data and more complex constraint information.
Conditional Continuous Diffusion Model
There exists sufficient research that focuses on the conditional generation related to the continuous diffusion model. These studies are primarily divided into two fields. One field focuses mainly on the guidance mechanism. For example, [35 ] proposed classifier guidance, which utilized an external classifier to modify the score function to inject conditional information into the diffusion model. [36 ] introduced classifier-free guidance, which combined an unconditional diffusion and a conditional diffusion to achieve conditional generation and eliminate the classifier. [37 ] introduced the CLIP model to measure the similarity between images and text, which can therefore be used as external guidance in diffusion models. [38 ] further studied the guidance mechanism in text-to-image generation and compared CLIP guidance and classifier-free guidance. [39 ] modified the score function for the image editing area through the CLIP guidance and used the unconditional diffusion for the non-editing area.
Another field is based on the unconditional diffusion without extra training. SDEdit [40 ] realized the image synthesis and editing by noising and denoising the user input. This method was trained on unlabeled data without retraining on the new input or tasks. RePaint [41 ] fixed the noised pixels to constrain the sampling process and achieve conditional generation. [42 ] theoretically analyzed the RePaint [41 ] and proposed RePaint+ to correct the bias induced by RePaint [41 ] . [43 ] proposed the ILVR method to implement image generation given reference images. This method refined the latent variables in the unconditional process to approximate the conditional process. DDRM in [44 ] solved the linear inverse problem by the posterior sampling based on a pretrained diffusion model, and further DPS in [45 ] extended the posterior sampling method to the general inverse problem. DDNM and DDNM+ [46 ] are also well-known zero-shot frameworks that only rely on the pretrained diffusion model. For the theoretical works, [7 ] provided the theoretical guarantee of the zero-shot conditional diffusion model by introducing the score mismatch concept under the continuous state cases.
In addition, [47 , 48 , 49 ] designed the specialized conditional frameworks in the diffusion model to implement the conditional generation rather than to solely control the inference process.
Appendix II: Proof of Theorem III.3 {#sec:Appendix II}
First, we decompose the KL divergence according to [17 Theorem 1] , as
KL ( q ~ ← t N ∥ p t N ) ≤ KL ( q ~ ← 0 ∥ p 0 ) + ∑ k = 0 N − 1 ∫ t k t k + 1 E x t ∼ q ~ t [ ∑ y ≠ x t ( Q ^ t ( x t , y ) − Q ~ ← t ( x t , y ) + Q ~ ← t ( x t , y ) log Q ~ ← t ( x t , y ) Q ^ t ( x t , y ) ) ] d t . \operatorname{KL}\left(\overleftarrow{\widetilde{q}}_{t_N}\|p_{t_N}\right)
\leq\operatorname{KL}\left(\overleftarrow{\widetilde{q}}_0\|p_0\right)
+\sum_{k=0}^{N-1}\int_{t_k}^{t_{k+1}}\mathbb{E}_{x_t\sim\widetilde{q}_t}\left[\sum_{y\ne x_t}\left(\widehat{Q}_t(x_t,y)-\overleftarrow{\widetilde{Q}}_t(x_t,y)+\overleftarrow{\widetilde{Q}}_t(x_t,y)\log\frac{\overleftarrow{\widetilde{Q}}_t(x_t,y)}{\widehat{Q}_t(x_t,y)}\right)\right]\mathrm{d}t. KL ( q t N ∥ p t N ) ≤ KL ( q 0 ∥ p 0 ) + k = 0 ∑ N − 1 ∫ t k t k + 1 E x t ∼ q t y = x t ∑ Q t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q t ( x t , y ) Q t ( x t , y ) d t .
We define g ~ t ( x t ) : = ∑ y ≠ x t Q ^ t ( x t , y ) − Q ~ ← t ( x t , y ) + Q ~ ← t ( x t , y ) log Q ~ ← t ( x t , y ) Q ^ t ( x t , y ) \widetilde{g}_t(x_t):=\sum_{y\ne x_t}\widehat{Q}_t(x_t,y)-\overleftarrow{\widetilde{Q}}_t(x_t,y)+\overleftarrow{\widetilde{Q}}_t(x_t,y)\log\frac{\overleftarrow{\widetilde{Q}}_t(x_t,y)}{\widehat{Q}_t(x_t,y)} g t ( x t ) := ∑ y = x t Q t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q t ( x t , y ) Q t ( x t , y ) and we have Q ^ t ( x t k , y ) = Q ^ t k ( x t k , y ) \widehat{Q}_t(x_{t_k},y)=\widehat{Q}_{t_k}(x_{t_k},y) Q t ( x t k , y ) = Q t k ( x t k , y ) for τ \tau τ -leaping. Then, the KL divergence can be rewritten as
KL ( q ~ ← T ∥ p T ) ≤ KL ( q ~ ← 0 ∥ p 0 ) ⏟ Initialization error + ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] ⏟ Estimation error + ∑ k = 0 N − 1 ∫ t k t k + 1 ( E x t ∼ q ~ t , x t k ∼ q ~ t k [ g ~ t ( x t ) − g ~ t ( x t k ) ] + E x t k ∼ q ~ t k [ g ~ t ( x t k ) − g ~ t k ( x t k ) ] ) d t ⏟ Discretization error . (11) \begin{aligned}
\operatorname{KL}\left(\overleftarrow{\widetilde{q}}_T\|p_T\right)
&\leq\underbrace{\operatorname{KL}\left(\overleftarrow{\widetilde{q}}_0\|p_0\right)}_{\text{Initialization error}}+\underbrace{\sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\widetilde{g}_{t_k}(x_{t_k})\right]}_{\text{Estimation error}}\\
&\quad+\underbrace{\sum_{k=0}^{N-1}\int_{t_k}^{t_{k+1}}\left(\mathbb{E}_{x_t\sim\widetilde{q}_t,x_{t_k}\sim\widetilde{q}_{t_k}}\left[\widetilde{g}_t(x_t)-\widetilde{g}_t(x_{t_k})\right]+\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\widetilde{g}_t(x_{t_k})-\widetilde{g}_{t_k}(x_{t_k})\right]\right)\mathrm{d}t}_{\text{Discretization error}}. \tag*{(11)}
\end{aligned} KL ( q T ∥ p T ) ≤ Initialization error KL ( q 0 ∥ p 0 ) + Estimation error k = 0 ∑ N − 1 ( t k + 1 − t k ) E x t k ∼ q t k [ g t k ( x t k ) ] + Discretization error k = 0 ∑ N − 1 ∫ t k t k + 1 ( E x t ∼ q t , x t k ∼ q t k [ g t ( x t ) − g t ( x t k ) ] + E x t k ∼ q t k [ g t ( x t k ) − g t k ( x t k ) ] ) d t . (11)
Since q ~ t \widetilde{q}_t q t evolves under the same absorbing rate generator, the initialization error and the discretization error can be controlled by the existing convergence analyses for τ \tau τ -leaping (cf. [16 Theorem 2] ). These two errors, together with the score estimation error ε s c o r e \varepsilon_{\mathrm{score}} ε score controlled by Theorem III.1, constitute the oracle error E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle as follows:
E o r a c l e : = E i n i t + E d i s c + ε s c o r e , \mathcal{E}_{\mathrm{oracle}}:=\mathcal{E}_{\mathrm{init}}+\mathcal{E}_{\mathrm{disc}}+\varepsilon_{\mathrm{score}}, E oracle := E init + E disc + ε score ,
where E i n i t \mathcal{E}_{\mathrm{init}} E init and E d i s c \mathcal{E}_{\mathrm{disc}} E disc refer to the upper bounds of the initialization and discretization errors, respectively.
Substituting these contributions into (11) gives
KL ( q ~ δ ∥ p T − δ ) ≲ E i n i t + E d i s c + ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] = E o r a c l e + ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] − ε s c o r e . (12) \begin{aligned}
\operatorname{KL}(\tilde{q}_{\delta}\Vert p_{T-\delta}) &\lesssim\mathcal{E}_{\mathrm{init}}+\mathcal{E}_{\mathrm{disc}}+\sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\tilde{q}_{t_k}}\left[\tilde{g}_{t_k}(x_{t_k})\right] \\
&=\mathcal{E}_{\mathrm{oracle}}+\sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\tilde{q}_{t_k}}\left[\tilde{g}_{t_k}(x_{t_k})\right]-\varepsilon_{\mathrm{score}}. \tag*{(12)}
\end{aligned} KL ( q ~ δ ∥ p T − δ ) ≲ E init + E disc + k = 0 ∑ N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] = E oracle + k = 0 ∑ N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] − ε score . (12)
This representation isolates the oracle sampling error. Subtracting ε s c o r e \varepsilon_{\mathrm{score}} ε score is because the score estimation error is already included in E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle . It remains to quantify the contribution of the score mismatch by bounding the difference between the second term and the score estimation error controlled by Theorem III.1.
We now focus on ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] \sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\tilde{q}_{t_k}}\left[\tilde{g}_{t_k}(x_{t_k})\right] ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] . Here we note a useful relationship given Definition 1:
Q ← t k ( x t k , y ) = Q ← t k ( x t k , y ) ( 1 + Δ t k ( y , x t k ) ) . \overleftarrow{Q}_{t_k}(x_{t_k},y)=\overleftarrow{Q}_{t_k}(x_{t_k},y)(1+\Delta_{t_k}(y,x_{t_k})). Q t k ( x t k , y ) = Q t k ( x t k , y ) ( 1 + Δ t k ( y , x t k )) .
The substitution of the target distribution will result in the perturbation of the score function, consequently manifested as a multiplicative correction to the original rate matrix by the score mismatch. For notational simplicity, we write Δ t ( y , x ) \Delta_t(y,x) Δ t ( y , x ) as Δ t \Delta_t Δ t . Thus,
g ~ t k ( x t k ) = ∑ y ≠ x t k ( Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) ) = ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) ( 1 + Δ t k ) + Q ← t k ( x t k , y ) ( 1 + Δ t k ) log Q ← t k ( x t k , y ) ( 1 + Δ t k ) Q ^ t k ( x t k , y ) ] = ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) − Q ← t k ( x t k , y ) Δ t k + Q ← t k ( x t k , y ) ( 1 + Δ t k ) ( log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + log ( 1 + Δ t k ) ) ] = ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ← t k ( x t k , y ) ( ( 1 + Δ t k ) log ( 1 + Δ t k ) − Δ t k ) + Q ← t k ( x t k , y ) Δ t k log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) ] ≤ ( i ) ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) \begin{aligned}
\tilde{g}_{t_k}(x_{t_k})
&=\sum_{y\ne x_{t_k}}(\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)})\\
&=\sum_{y\ne x_{t_k}}[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)(1+\Delta_{t_k})\\
&\qquad+\overleftarrow{Q}_{t_k}(x_{t_k},y)(1+\Delta_{t_k})\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)(1+\Delta_{t_k})}{\widehat{Q}_{t_k}(x_{t_k},y)}]\\
&=\sum_{y\ne x_{t_k}}[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)\Delta_{t_k}\\
&\qquad+\overleftarrow{Q}_{t_k}(x_{t_k},y)(1+\Delta_{t_k})(\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}+\log(1+\Delta_{t_k}))]\\
&=\sum_{y\ne x_{t_k}}[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\\
&\qquad+\overleftarrow{Q}_{t_k}(x_{t_k},y)((1+\Delta_{t_k})\log(1+\Delta_{t_k})-\Delta_{t_k})\\
&\qquad+\overleftarrow{Q}_{t_k}(x_{t_k},y)\Delta_{t_k}\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}]\\
&\leq^{(i)}\sum_{y\ne x_{t_k}}[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}
\end{aligned} g ~ t k ( x t k ) = y = x t k ∑ ( Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) ) = y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) ( 1 + Δ t k ) + Q t k ( x t k , y ) ( 1 + Δ t k ) log Q t k ( x t k , y ) Q t k ( x t k , y ) ( 1 + Δ t k ) ] = y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) − Q t k ( x t k , y ) Δ t k + Q t k ( x t k , y ) ( 1 + Δ t k ) ( log Q t k ( x t k , y ) Q t k ( x t k , y ) + log ( 1 + Δ t k ))] = y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q t k ( x t k , y ) (( 1 + Δ t k ) log ( 1 + Δ t k ) − Δ t k ) + Q t k ( x t k , y ) Δ t k log Q t k ( x t k , y ) Q t k ( x t k , y ) ] ≤ ( i ) y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y )
+ Q ← t k ( x t k , y ) Δ t k 2 + Q ← t k ( x t k , y ) Δ t k log [ Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) ] = ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ( y , x t k ) ( s ~ T − t k ( y , x t k ) − s T − t k ( y , x t k ) ) Δ t k + Q ( y , x t k ) Δ t k s T − t k ( y , x t k ) log s T − t k ( y , x t k ) s ^ T − t k ( y , x t k ) ] \begin{aligned}
&+ \overleftarrow{Q}_{t_k}(x_{t_k},y)\Delta_{t_k}^{2}\\
&+ \overleftarrow{Q}_{t_k}(x_{t_k},y)\Delta_{t_k}\log\left[\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\right]\\
={}&\sum_{y\ne x_{t_k}}\left[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\right.\\
&\left.\qquad+Q(y,x_{t_k})\left(\widetilde{s}_{T-t_k}(y,x_{t_k})-s_{T-t_k}(y,x_{t_k})\right)\Delta_{t_k}\right.\\
&\left.\qquad+Q(y,x_{t_k})\Delta_{t_k}s_{T-t_k}(y,x_{t_k})\log\frac{s_{T-t_k}(y,x_{t_k})}{\widehat{s}_{T-t_k}(y,x_{t_k})}\right]
\end{aligned} = + Q t k ( x t k , y ) Δ t k 2 + Q t k ( x t k , y ) Δ t k log [ Q t k ( x t k , y ) Q t k ( x t k , y ) ] y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q ( y , x t k ) ( s T − t k ( y , x t k ) − s T − t k ( y , x t k ) ) Δ t k + Q ( y , x t k ) Δ t k s T − t k ( y , x t k ) log s T − t k ( y , x t k ) s T − t k ( y , x t k ) ]
≤ ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ ( T − t k ) − 1 + Q ( y , x t k ) ∣ Δ t k ∣ ∣ s T − t k ( y , x t k ) ∣ ∣ log s T − t k ( y , x t k ) s ^ T − t k ( y , x t k ) ∣ ] \begin{aligned}
&\leq\sum_{y\ne x_{t_k}}\left[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\right.\\
&\left.\qquad+Q(y,x_{t_k})|\Delta_{t_k}|(T-t_k)^{-1}\right.\\
&\left.\qquad+Q(y,x_{t_k})|\Delta_{t_k}||s_{T-t_k}(y,x_{t_k})|\left|\log\frac{s_{T-t_k}(y,x_{t_k})}{\widehat{s}_{T-t_k}(y,x_{t_k})}\right|\right]
\end{aligned} ≤ y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ ( T − t k ) − 1 + Q ( y , x t k ) ∣ Δ t k ∣∣ s T − t k ( y , x t k ) ∣ log s T − t k ( y , x t k ) s T − t k ( y , x t k ) ]
≲ ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ ( T − t k ) − 1 ( 1 + T + log M δ − 1 ) ] . \begin{aligned}
&\lesssim\sum_{y\ne x_{t_k}}\left[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\right.\\
&\left.\qquad+Q(y,x_{t_k})|\Delta_{t_k}|(T-t_k)^{-1}(1+T+\log M\delta^{-1})\right].
\end{aligned} ≲ y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ ( T − t k ) − 1 ( 1 + T + log M δ − 1 ) ] .
where ( i ) (i) ( i ) holds since ∀ x > − 1 \forall x>-1 ∀ x > − 1 , we have log ( 1 + x ) ≤ x \log(1+x)\leq x log ( 1 + x ) ≤ x and hence ( 1 + x ) log ( 1 + x ) − x ≤ x 2 (1+x)\log(1+x)-x\leq x^2 ( 1 + x ) log ( 1 + x ) − x ≤ x 2 .
( i i ) (ii) ( ii ) is because of the following. Since from [16 Lemma 1] , we have a general bound for all score functions under the absorbing rate when Q ( y , x ) > 0 Q(y,x)>0 Q ( y , x ) > 0 and q t ( y ) > 0 q_t(y)>0 q t ( y ) > 0 , which is 0 ≤ s T − t k ( y , x t k ) , s ~ T − t k ( y , x t k ) ≤ ( T − t k ) − 1 0\leq s_{T-t_k}(y,x_{t_k}),\widetilde{s}_{T-t_k}(y,x_{t_k})\leq(T-t_k)^{-1} 0 ≤ s T − t k ( y , x t k ) , s T − t k ( y , x t k ) ≤ ( T − t k ) − 1 , then ∣ s ~ T − t k ( y , x t k ) − s T − t k ( y , x t k ) ∣ ≤ ( T − t k ) − 1 |\widetilde{s}_{T-t_k}(y,x_{t_k})-s_{T-t_k}(y,x_{t_k})|\leq(T-t_k)^{-1} ∣ s T − t k ( y , x t k ) − s T − t k ( y , x t k ) ∣ ≤ ( T − t k ) − 1 . ( i i i ) (iii) ( iii ) holds since
s T − t k ( y , x t k ) ∣ log s T − t k ( y , x t k ) s ^ T − t k ( y , x t k ) ∣ = ( T − t k ) − 1 s T − t k ( y , x t k ) ( T − t k ) ∣ log ( s T − t k ( y , x t k ) ( T − t k ) ) − log ( T − t k ) − log s ^ T − t k ( y , x t k ) ∣ ≲ ( T − t k ) − 1 ( 1 + T + log M δ − 1 ) , s_{T-t_k}(y,x_{t_k})\left|\log\frac{s_{T-t_k}(y,x_{t_k})}{\widehat{s}_{T-t_k}(y,x_{t_k})}\right|
=(T-t_k)^{-1}s_{T-t_k}(y,x_{t_k})(T-t_k)\left|\log(s_{T-t_k}(y,x_{t_k})(T-t_k))-\log(T-t_k)-\log\widehat{s}_{T-t_k}(y,x_{t_k})\right|
\lesssim(T-t_k)^{-1}(1+T+\log M\delta^{-1}), s T − t k ( y , x t k ) log s T − t k ( y , x t k ) s T − t k ( y , x t k ) = ( T − t k ) − 1 s T − t k ( y , x t k ) ( T − t k ) ∣ log ( s T − t k ( y , x t k ) ( T − t k )) − log ( T − t k ) − log s T − t k ( y , x t k ) ∣ ≲ ( T − t k ) − 1 ( 1 + T + log M δ − 1 ) ,
where s T − t k ( y , x t k ) ( T − t k ) ∣ log ( s T − t k ( y , x t k ) ( T − t k ) ) ∣ ≲ 1 s_{T-t_k}(y,x_{t_k})(T-t_k)|\log(s_{T-t_k}(y,x_{t_k})(T-t_k))|\lesssim1 s T − t k ( y , x t k ) ( T − t k ) ∣ log ( s T − t k ( y , x t k ) ( T − t k )) ∣ ≲ 1 for 0 ≤ s T − t k ( y , x t k ) ( T − t k ) ≤ 1 0\leq s_{T-t_k}(y,x_{t_k})(T-t_k)\leq1 0 ≤ s T − t k ( y , x t k ) ( T − t k ) ≤ 1 . Hence, taking the expectation yields
E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] ≲ E x t k ∼ q ~ t k [ ∑ y ≠ x t k ( Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) ) ] + ( T − t k ) − 1 ( 1 + T + log M δ − 1 ) E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ∣ ] . (13) \begin{aligned}
\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}[\widetilde{g}_{t_k}(x_{t_k})]
\lesssim{}&\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}\left(\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\right)\right]\\
&+(T-t_k)^{-1}(1+T+\log M\delta^{-1})\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k}|\right]. \tag*{(13)}
\end{aligned} E x t k ∼ q t k [ g t k ( x t k )] ≲ E x t k ∼ q t k y = x t k ∑ ( Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) ) + ( T − t k ) − 1 ( 1 + T + log M δ − 1 ) E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ∣ . (13)
The first term is controlled directly by Theorem III.1:
∑ k = 0 N − 1 ( t k + 1 − t k ) ⋅ E x t k ∼ q ~ t k [ ∑ y ≠ x t k ( Q → t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q → t k ( x t k , y ) ) ] ≤ ε s c o r e . (14) \sum_{k=0}^{N-1}(t_{k+1}-t_k)\cdot
\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}\left(\overrightarrow{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\overrightarrow{Q}_{t_k}(x_{t_k},y)}\right)\right]\le\varepsilon_{\mathrm{score}}. \tag*{(14)} k = 0 ∑ N − 1 ( t k + 1 − t k ) ⋅ E x t k ∼ q t k y = x t k ∑ ( Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) ) ≤ ε score . (14)
Finally, combining the preceding difference ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] − ε s c o r e \sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}[\widetilde{g}_{t_k}(x_{t_k})]-\varepsilon_{\mathrm{score}} ∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q t k [ g t k ( x t k )] − ε score with (13) and (14), we obtain
∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] − ε s c o r e \sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}[\widetilde{g}_{t_k}(x_{t_k})]-\varepsilon_{\mathrm{score}} k = 0 ∑ N − 1 ( t k + 1 − t k ) E x t k ∼ q t k [ g t k ( x t k )] − ε score
≲ ( 1 + T + log M δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ∣ ] . (15) \lesssim(1+T+\log M\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)(T-t_k)^{-1}\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k}|\right]. \tag*{(15)} ≲ ( 1 + T + log M δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ∣ . (15)
Substituting (15) into (12) yields
KL ( q ~ δ ∥ p T − δ ) ≲ E o r a c l e + ( 1 + T + log M δ − 1 ) \operatorname{KL}(\widetilde{q}_{\delta}\|p_{T-\delta})\lesssim\mathcal{E}_{\mathrm{oracle}}+(1+T+\log M\delta^{-1}) KL ( q δ ∥ p T − δ ) ≲ E oracle + ( 1 + T + log M δ − 1 )
⋅ ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ∣ ] . \qquad\cdot\sum_{k=0}^{N-1}(t_{k+1}-t_k)(T-t_k)^{-1}\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k}|\right]. ⋅ k = 0 ∑ N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ∣ .
This completes the proof.
Appendix III: Proof of Corollary III.4
Starting from Definition 1, for all x t ≠ y x_t\ne y x t = y , we have
Δ t ( y , x t ) = s ~ T − t ( y , x t ) s T − t ( y , x t ) − 1 = ( q ~ T − t ( y ) q ~ T − t ( x t ) ) / ( q T − t ( y ) q T − t ( x t ) ) − 1 = ( q ~ T − t ( y ) q T − t ( y ) ) / ( q ~ T − t ( x t ) q T − t ( x t ) ) − 1. (16) \begin{aligned}
\Delta_t(y,x_t)=\frac{\widetilde{s}_{T-t}(y,x_t)}{s_{T-t}(y,x_t)}-1 \\
&=\left(\frac{\widetilde{q}_{T-t}(y)}{\widetilde{q}_{T-t}(x_t)}\right)\bigg/\left(\frac{q_{T-t}(y)}{q_{T-t}(x_t)}\right)-1 \\
&=\left(\frac{\widetilde{q}_{T-t}(y)}{q_{T-t}(y)}\right)\bigg/\left(\frac{\widetilde{q}_{T-t}(x_t)}{q_{T-t}(x_t)}\right)-1. \tag*{(16)}
\end{aligned} Δ t ( y , x t ) = s T − t ( y , x t ) s T − t ( y , x t ) − 1 = ( q T − t ( x t ) q T − t ( y ) ) / ( q T − t ( x t ) q T − t ( y ) ) − 1 = ( q T − t ( y ) q T − t ( y ) ) / ( q T − t ( x t ) q T − t ( x t ) ) − 1. (16)
Suppose that there exist two universal constants C 1 C_1 C 1 and C 2 C_2 C 2 satisfying 0 < C 1 ≤ C 2 < ∞ 0<C_1\le C_2<\infty 0 < C 1 ≤ C 2 < ∞ , such that C 1 ≤ q ~ 0 ( x 0 ) q 0 ( x 0 ) ≤ C 2 C_1\le\frac{\widetilde{q}_0(x_0)}{q_0(x_0)}\le C_2 C 1 ≤ q 0 ( x 0 ) q 0 ( x 0 ) ≤ C 2 for all x 0 x_0 x 0 , then we can have
q ~ t ( x ) = ∑ x 0 q ~ t ∣ 0 ( x ∣ x 0 ) q ~ 0 ( x 0 ) = ∑ x 0 q ~ t ∣ 0 ( x ∣ x 0 ) q 0 ( x 0 ) q ~ 0 ( x 0 ) q 0 ( x 0 ) . \widetilde{q}_t(x)=\sum_{x_0}\widetilde{q}_{t|0}(x|x_0)\widetilde{q}_0(x_0)=\sum_{x_0}\widetilde{q}_{t|0}(x|x_0)q_0(x_0)\frac{\widetilde{q}_0(x_0)}{q_0(x_0)}. q t ( x ) = x 0 ∑ q t ∣0 ( x ∣ x 0 ) q 0 ( x 0 ) = x 0 ∑ q t ∣0 ( x ∣ x 0 ) q 0 ( x 0 ) q 0 ( x 0 ) q 0 ( x 0 ) .
Hence,
C 1 ∑ x 0 q ~ t ∣ 0 ( x ∣ x 0 ) q 0 ( x 0 ) ≤ q ~ t ( x ) ≤ C 2 ∑ x 0 q ~ t ∣ 0 ( x ∣ x 0 ) q 0 ( x 0 ) . C_1\sum_{x_0}\widetilde{q}_{t|0}(x|x_0)q_0(x_0)\le\widetilde{q}_t(x)\le C_2\sum_{x_0}\widetilde{q}_{t|0}(x|x_0)q_0(x_0). C 1 x 0 ∑ q t ∣0 ( x ∣ x 0 ) q 0 ( x 0 ) ≤ q t ( x ) ≤ C 2 x 0 ∑ q t ∣0 ( x ∣ x 0 ) q 0 ( x 0 ) .
Since q 0 q_0 q 0 and q ~ 0 \widetilde{q}_0 q 0 share the same forward kernel, then
C 1 q t ( x ) ≤ q ~ t ( x ) ≤ C 2 q t ( x ) . C_1q_t(x) \le\widetilde{q}_t(x) \le C_2q_t(x). C 1 q t ( x ) ≤ q t ( x ) ≤ C 2 q t ( x ) .
Based on this, we can obtain
C 1 ≤ q ~ t ( x ) q t ( x ) ≤ C 2 . (17) C_1 \le\frac{\widetilde{q}_t(x)}{q_t(x)} \le C_2. \tag*{(17)} C 1 ≤ q t ( x ) q t ( x ) ≤ C 2 . (17)
Plugging (17) back to (16) , we have
∣ Δ t ∣ ≤ C 2 C 1 − 1 , |\Delta_t| \le\frac{C_2}{C_1}-1, ∣ Δ t ∣ ≤ C 1 C 2 − 1 ,
which implies that ∣ Δ t ∣ ≲ 1 |\Delta_t| \lesssim1 ∣ Δ t ∣ ≲ 1 . Thus, we further have
( 1 + T + log M δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ∣ ] ≲ ( i ) d ( S − 1 ) ( 1 + T + log M δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 ≲ ( i i ) d S ( 1 + T + log M δ − 1 ) ( T + log δ − 1 ) , \begin{aligned}
&(1+T+\log M\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)(T-t_k)^{-1}\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k}|\right]\\
&\mathrel{\mathop{\lesssim}^{(i)}}d(S-1)(1+T+\log M\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)(T-t_k)^{-1}\\
&\mathrel{\mathop{\lesssim}^{(ii)}}dS(1+T+\log M\delta^{-1})(T+\log\delta^{-1}),
\end{aligned} ( 1 + T + log M δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ∣ ≲ ( i ) d ( S − 1 ) ( 1 + T + log M δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 ≲ ( ii ) d S ( 1 + T + log M δ − 1 ) ( T + log δ − 1 ) ,
where ( i ) (i) ( i ) holds because we have ∑ y ≠ x Q ( y , x ) = m ( x ) ( S − 1 ) ≤ d ( S − 1 ) \sum_{y\ne x}Q(y,x)=m(x)(S-1)\le d(S-1) ∑ y = x Q ( y , x ) = m ( x ) ( S − 1 ) ≤ d ( S − 1 ) with the absorbing rate and m ( x ) m(x) m ( x ) is the number of tokens at MASK state in x x x . ( i i ) (ii) ( ii ) holds since ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 ≤ T + log δ − 1 \sum_{k=0}^{N-1}(t_{k+1}-t_k)(T-t_k)^{-1}\le T+\log\delta^{-1} ∑ k = 0 N − 1 ( t k + 1 − t k ) ( T − t k ) − 1 ≤ T + log δ − 1 with early stopping. Now, the proof is complete.
Appendix IV: Proof of Corollary III.5
With most of the proof similar to Theorem III.3, we use the corresponding score-matched convergence result for uniform-rate τ \tau τ -leaping to control E o r a c l e u n i \mathcal{E}_{\mathrm{oracle}}^{\mathrm{uni}} E oracle uni , thus it remains to replace the applicable bounds of the score function and rate matrix in the bias term (12) by the corresponding counterparts.
Starting from g ~ t k ( x t k ) \widetilde{g}_{t_k}(x_{t_k}) g t k ( x t k ) , we can bound it as follows:
g ~ t k ( x t k ) ≤ ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ( y , x t k ) ( s ~ T − t k ( y , x t k ) − s T − t k ( y , x t k ) ) Δ t k + Q ( y , x t k ) Δ t k s T − t k ( y , x t k ) log s T − t k ( y , x t k ) s ^ T − t k ( y , x t k ) ] ≲ ( i ) ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ S max { 1 , ( T − t k ) − 1 } ( 1 + ∣ log s T − t k ( y , x t k ) s ^ T − t k ( y , x t k ) ∣ ) ] \begin{aligned}
\widetilde{g}_{t_k}(x_{t_k})\le\sum_{y\ne x_{t_k}}\Bigg[&
\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\\
&+Q(y,x_{t_k})(\widetilde{s}_{T-t_k}(y,x_{t_k})-s_{T-t_k}(y,x_{t_k}))\Delta_{t_k}\\
&+Q(y,x_{t_k})\Delta_{t_k}s_{T-t_k}(y,x_{t_k})\log\frac{s_{T-t_k}(y,x_{t_k})}{\widehat{s}_{T-t_k}(y,x_{t_k})}\Bigg]\\
\mathrel{\mathop{\lesssim}^{(i)}}\sum_{y\ne x_{t_k}}\Bigg[&
\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}\\
&+Q(y,x_{t_k})|\Delta_{t_k}|S\max\{1,(T-t_k)^{-1}\}\left(1+\left|\log\frac{s_{T-t_k}(y,x_{t_k})}{\widehat{s}_{T-t_k}(y,x_{t_k})}\right|\right)\Bigg]
\end{aligned} g t k ( x t k ) ≤ y = x t k ∑ [ ≲ ( i ) y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q ( y , x t k ) ( s T − t k ( y , x t k ) − s T − t k ( y , x t k )) Δ t k + Q ( y , x t k ) Δ t k s T − t k ( y , x t k ) log s T − t k ( y , x t k ) s T − t k ( y , x t k ) ] Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ S max { 1 , ( T − t k ) − 1 } ( 1 + log s T − t k ( y , x t k ) s T − t k ( y , x t k ) ) ]
≲ ∑ y ≠ x t k [ Q ^ t k ( x t k , y ) − Q ← t k ( x t k , y ) + Q ← t k ( x t k , y ) log Q ← t k ( x t k , y ) Q ^ t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ S max { 1 , ( T − t k ) − 1 } ( 1 + log M S δ − 1 ) ] \lesssim\sum_{y\ne x_{t_k}}\left[\widehat{Q}_{t_k}(x_{t_k},y)-\overleftarrow{Q}_{t_k}(x_{t_k},y)+\overleftarrow{Q}_{t_k}(x_{t_k},y)\log\frac{\overleftarrow{Q}_{t_k}(x_{t_k},y)}{\widehat{Q}_{t_k}(x_{t_k},y)}+Q(y,x_{t_k})|\Delta_{t_k}|S\max\{1,(T-t_k)^{-1}\}(1+\log MS\delta^{-1})\right] ≲ y = x t k ∑ [ Q t k ( x t k , y ) − Q t k ( x t k , y ) + Q t k ( x t k , y ) log Q t k ( x t k , y ) Q t k ( x t k , y ) + Q ( y , x t k ) ∣ Δ t k ∣ S max { 1 , ( T − t k ) − 1 } ( 1 + log M S δ − 1 ) ]
where ( i ) (i) ( i ) follows from 1 S max { 1 , ( T − t k ) − 1 } ≲ s T − t k ( y , x t k ) , s ~ T − t k ( y , x t k ) ≲ S max { 1 , ( T − t k ) − 1 } \frac{1}{S\max\{1,(T-t_k)^{-1}\}}\lesssim s_{T-t_k}(y,x_{t_k}),\widetilde{s}_{T-t_k}(y,x_{t_k})\lesssim S\max\{1,(T-t_k)^{-1}\} S m a x { 1 , ( T − t k ) − 1 } 1 ≲ s T − t k ( y , x t k ) , s T − t k ( y , x t k ) ≲ S max { 1 , ( T − t k ) − 1 } given in [17 Lemma 2] . ( i i ) (ii) ( ii ) holds since ∣ log s T − t k ( y , x t k ) s ^ T − t k ( y , x t k ) ∣ ≲ log S + log δ − 1 + log M \left|\log\frac{s_{T-t_k}(y,x_{t_k})}{\widehat{s}_{T-t_k}(y,x_{t_k})}\right|\lesssim\log S+\log\delta^{-1}+\log M log s T − t k ( y , x t k ) s T − t k ( y , x t k ) ≲ log S + log δ − 1 + log M with M − 1 ≤ s ^ T − t k ( y , x t k ) ≤ M M^{-1}\leq\widehat{s}_{T-t_k}(y,x_{t_k})\leq M M − 1 ≤ s T − t k ( y , x t k ) ≤ M from Theorem III.2.
Hence, with Theorem III.1, taking the expectation and summing over the time steps, we can derive the bias term as follows:
∑ k = 0 N − 1 ( t k + 1 − t k ) E x t k ∼ q ~ t k [ g ~ t k ( x t k ) ] − ε s c o r e \sum_{k=0}^{N-1}(t_{k+1}-t_k)\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\widetilde{g}_{t_k}(x_{t_k})\right]-\varepsilon_{\mathrm{score}} k = 0 ∑ N − 1 ( t k + 1 − t k ) E x t k ∼ q t k [ g t k ( x t k ) ] − ε score
≲ S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } E x t k ∼ q ~ t k [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ∣ ] . \lesssim S(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\mathbb{E}_{x_{t_k}\sim\widetilde{q}_{t_k}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k}|\right]. ≲ S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } E x t k ∼ q t k y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ∣ .
Now, the proof is complete.
Proof of Corollary III.7
The uniformization sampler has been proved to achieve no discretization error [18 ] . According to [17 Corollary 1] and [16 Theorem 3] , the KL divergence can be decomposed into
KL ( q ~ ← T − δ ∥ p T − δ ) ≤ KL ( q ~ ← 0 ∥ p 0 ) + E x 0 : T − δ ∼ q ~ 0 : T − δ [ ∫ 0 T − δ ∑ y ≠ x t ( Q ^ t ( x t , y ) − Q ~ t ( x t , y ) + Q ~ t ( x t , y ) log Q ~ ← t ( x t , y ) Q ^ t ( x t , y ) ) d t ] . \operatorname{KL}(\overleftarrow{\widetilde{q}}_{T-\delta}\Vert p_{T-\delta})\leq\operatorname{KL}(\overleftarrow{\widetilde{q}}_0\Vert p_0)
+\mathbb{E}_{x_{0:T-\delta}\sim\widetilde{q}_{0:T-\delta}}\left[\int_0^{T-\delta}\sum_{y\ne x_t}\left(\widehat{Q}_t(x_t,y)-\widetilde{Q}_t(x_t,y)+\widetilde{Q}_t(x_t,y)\log\frac{\overleftarrow{\widetilde{Q}}_t(x_t,y)}{\widehat{Q}_t(x_t,y)}\right)\mathrm{d}t\right]. KL ( q T − δ ∥ p T − δ ) ≤ KL ( q 0 ∥ p 0 ) + E x 0 : T − δ ∼ q 0 : T − δ ∫ 0 T − δ y = x t ∑ Q t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q t ( x t , y ) Q t ( x t , y ) d t .
Also, we define g ~ t ( x t ) = ∑ y ≠ x t Q ^ t ( x t , y ) − Q ← t ( x t , y ) + Q ← t ( x t , y ) log Q ← t ( x t , y ) Q ^ t ( x t , y ) \widetilde{g}_t(x_t)=\sum_{y\ne x_t}\widehat{Q}_t(x_t,y)-\overleftarrow{Q}_t(x_t,y)+\overleftarrow{Q}_t(x_t,y)\log\frac{\overleftarrow{Q}_t(x_t,y)}{\widehat{Q}_t(x_t,y)} g t ( x t ) = ∑ y = x t Q t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q t ( x t , y ) Q t ( x t , y ) and similarly have
g ~ t ( x t ) ≲ ∑ y ≠ x t [ Q ^ t ( x t , y ) − Q ← t ( x t , y ) + Q ← t ( x t , y ) log Q ← t ( x t , y ) Q ^ t ( x t , y ) + Q ( y , x t ) ∣ Δ t ∣ ( T − t ) − 1 ( 1 + T + log M δ − 1 ) ] . \widetilde{g}_t(x_t)\lesssim\sum_{y\ne x_t}\left[\widehat{Q}_t(x_t,y)-\overleftarrow{Q}_t(x_t,y)+\overleftarrow{Q}_t(x_t,y)\log\frac{\overleftarrow{Q}_t(x_t,y)}{\widehat{Q}_t(x_t,y)}+Q(y,x_t)|\Delta_t|(T-t)^{-1}(1+T+\log M\delta^{-1})\right]. g t ( x t ) ≲ y = x t ∑ [ Q t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q t ( x t , y ) Q t ( x t , y ) + Q ( y , x t ) ∣ Δ t ∣ ( T − t ) − 1 ( 1 + T + log M δ − 1 ) ] .
Given Theorem III.6, the estimation error can be upper-bounded by
E x 0 : T − δ ∼ q ~ 0 : T − δ [ ∫ 0 T − δ ∑ y ≠ x t ( Q ^ t ( x t , y ) − Q ← t ( x t , y ) + Q ← t ( x t , y ) log Q ← t ( x t , y ) Q ^ t ( x t , y ) ) d t ] ≲ ε s c o r e ′ . (18) \mathbb{E}_{x_{0:T-\delta}\sim\widetilde{q}_{0:T-\delta}}\left[\int_0^{T-\delta}\sum_{y\ne x_t}\left(\widehat{Q}_t(x_t,y)-\overleftarrow{Q}_t(x_t,y)+\overleftarrow{Q}_t(x_t,y)\log\frac{\overleftarrow{Q}_t(x_t,y)}{\widehat{Q}_t(x_t,y)}\right)\mathrm{d}t\right]\lesssim\varepsilon'_{\mathrm{score}}. \tag*{(18)} E x 0 : T − δ ∼ q 0 : T − δ ∫ 0 T − δ y = x t ∑ ( Q t ( x t , y ) − Q t ( x t , y ) + Q t ( x t , y ) log Q t ( x t , y ) Q t ( x t , y ) ) d t ≲ ε score ′ . (18)
Next, we consider the bias term. According to Fubini’s theorem, we can exchange the integral and expectation, then under the absorbing rate,
∫ 0 T − δ E x t ∼ q ~ t [ ∑ y ≠ x t Q ( y , x t ) ∣ Δ t ∣ ( T − t ) − 1 ( 1 + T + log M δ − 1 ) ] d t = ( 1 + T + log M δ − 1 ) ∫ 0 T − δ ( T − t ) − 1 E x t ∼ q ~ t [ ∑ y ≠ x t Q ( y , x t ) ∣ Δ t ∣ ] d t . \begin{aligned}
\int_{0}^{T-\delta} \mathbb{E}_{x_t\sim\tilde{q}_t}\left[\sum_{y\ne x_t} Q(y,x_t)|\Delta_t|(T-t)^{-1}(1+T+\log M\delta^{-1})\right]\,dt \\
&=(1+T+\log M\delta^{-1})\int_{0}^{T-\delta}(T-t)^{-1}\mathbb{E}_{x_t\sim\tilde{q}_t}\left[\sum_{y\ne x_t}Q(y,x_t)|\Delta_t|\right]\,dt.
\end{aligned} ∫ 0 T − δ E x t ∼ q ~ t y = x t ∑ Q ( y , x t ) ∣ Δ t ∣ ( T − t ) − 1 ( 1 + T + log M δ − 1 ) d t = ( 1 + T + log M δ − 1 ) ∫ 0 T − δ ( T − t ) − 1 E x t ∼ q ~ t y = x t ∑ Q ( y , x t ) ∣ Δ t ∣ d t .
Now, combining the initialization error and the estimation error in (18) as E o r a c l e ′ \mathcal{E}^{\prime}_{\mathrm{oracle}} E oracle ′ , we complete the proof of Theorem III.7.
Proof of Theorem IV.1
We first begin with the true conditional score. Given x 0 Ω ˉ = y x^{\bar{\Omega}}_0=y x 0 Ω ˉ = y , we have
q t ( x t Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 Ω q t ( x t Ω , x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 Ω q t ∣ 0 ( x t Ω ∣ x 0 Ω ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 Ω q t ∣ 0 ( x t Ω ∣ x 0 Ω ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 Ω ∏ i ∈ Ω q t ∣ 0 ( x t i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . (19) \begin{aligned}
q_t(x_t^{\Omega}\mid x_0^{\bar{\Omega}}=y)=\sum_{x_0^{\Omega}}q_t(x_t^{\Omega},x_0^{\Omega}\mid x_0^{\bar{\Omega}}=y) \\
&=\sum_{x_0^{\Omega}}q_{t\mid0}(x_t^{\Omega}\mid x_0^{\Omega})q_0(x_0^{\Omega}\mid x_0^{\bar{\Omega}}=y) \\
&=\sum_{x_0^{\Omega}}q_{t\mid0}(x_t^{\Omega}\mid x_0^{\Omega})q_0(x_0^{\Omega}\mid x_0^{\bar{\Omega}}=y) \\
&=\sum_{x_0^{\Omega}}\prod_{i\in\Omega}q_{t\mid0}(x_t^i\mid x_0^i)q_0(x_0^{\Omega}\mid x_0^{\bar{\Omega}}=y). \tag*{(19)}
\end{aligned} q t ( x t Ω ∣ x 0 Ω ˉ = y ) = x 0 Ω ∑ q t ( x t Ω , x 0 Ω ∣ x 0 Ω ˉ = y ) = x 0 Ω ∑ q t ∣ 0 ( x t Ω ∣ x 0 Ω ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = x 0 Ω ∑ q t ∣ 0 ( x t Ω ∣ x 0 Ω ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = x 0 Ω ∑ i ∈ Ω ∏ q t ∣ 0 ( x t i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . (19)
Recall that Ω \Omega Ω refers to the set of unobserved indices that need to be filled and Ω ˉ \bar{\Omega} Ω ˉ refers to the observed indices. Given x ^ t ≠ x t \hat{x}_t\ne x_t x ^ t = x t only at index k k k , we only need to discuss the case where k ∈ Ω k\in\Omega k ∈ Ω . If k ∈ Ω k\in\Omega k ∈ Ω , with (19), the true conditional score can be expressed as
s T − t ∣ y ( x ^ , x ) = ∑ x 0 Ω q T − t ∣ 0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∑ x 0 Ω q T − t ∣ 0 ( x k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . (20) s_{T-t\mid y}(\hat{x},x)=\frac{\sum_{x_0^{\Omega}}q_{T-t\mid0}(\hat{x}^k\mid x_0^k)\prod_{i\in\Omega\setminus\{k\}}q_{T-t\mid0}(x^i\mid x_0^i)q_0(x_0^{\Omega}\mid x_0^{\bar{\Omega}}=y)}{\sum_{x_0^{\Omega}}q_{T-t\mid0}(x^k\mid x_0^k)\prod_{i\in\Omega\setminus\{k\}}q_{T-t\mid0}(x^i\mid x_0^i)q_0(x_0^{\Omega}\mid x_0^{\bar{\Omega}}=y)}. \tag*{(20)} s T − t ∣ y ( x ^ , x ) = ∑ x 0 Ω q T − t ∣ 0 ( x k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∑ x 0 Ω q T − t ∣ 0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . (20)
Recall that in (6), since we have q T − t ( x Ω ∣ x Ω ˉ = y ) = q T − t ( x Ω , x Ω ˉ = y ) q T − t ( x Ω ˉ = y ) q_{T-t}(x^{\Omega}\mid x^{\bar{\Omega}}=y)=\frac{q_{T-t}(x^{\Omega},x^{\bar{\Omega}}=y)}{q_{T-t}(x^{\bar{\Omega}}=y)} q T − t ( x Ω ∣ x Ω ˉ = y ) = q T − t ( x Ω ˉ = y ) q T − t ( x Ω , x Ω ˉ = y ) , the hard clamp score can be rewritten as q T − t ( x ^ Ω , x Ω ˉ = y ) q T − t ( x Ω , x Ω ˉ = y ) \frac{q_{T-t}(\hat{x}^{\Omega},x^{\bar{\Omega}}=y)}{q_{T-t}(x^{\Omega},x^{\bar{\Omega}}=y)} q T − t ( x Ω , x Ω ˉ = y ) q T − t ( x ^ Ω , x Ω ˉ = y ) by Bayes’ rule. Also, from Definition 2, the score mismatch is
1 + Δ t ∣ y = q T − t ( x ^ Ω ∣ x 0 Ω ˉ = y ) q T − t ( x Ω ∣ x 0 Ω ˉ = y ) / q T − t ( x ^ Ω , x Ω ˉ = y ) q T − t ( x Ω , x Ω ˉ = y ) . 1+\Delta_{t\mid y}=\frac{q_{T-t}(\hat{x}^{\Omega}\mid x_0^{\bar{\Omega}}=y)}{q_{T-t}(x^{\Omega}\mid x_0^{\bar{\Omega}}=y)}\bigg/\frac{q_{T-t}(\hat{x}^{\Omega},x^{\bar{\Omega}}=y)}{q_{T-t}(x^{\Omega},x^{\bar{\Omega}}=y)}. 1 + Δ t ∣ y = q T − t ( x Ω ∣ x 0 Ω ˉ = y ) q T − t ( x ^ Ω ∣ x 0 Ω ˉ = y ) / q T − t ( x Ω , x Ω ˉ = y ) q T − t ( x ^ Ω , x Ω ˉ = y ) .
Here, for simplicity of notation, we write Δ t ∣ y ( x ^ , x ) \Delta_{t\mid y}(\hat{x},x) Δ t ∣ y ( x ^ , x ) as Δ t ∣ y \Delta_{t\mid y} Δ t ∣ y in the following. To bound the above score mismatch, we first rewrite the joint distribution,
q T − t ( x Ω , x Ω ˉ = y ) = ∑ x 0 q T − t ∣ 0 ( x Ω , x Ω ˉ = y ∣ x 0 ) q 0 ( x 0 ) = ∑ x 0 ∏ i ∈ Ω q T − t ∣ 0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 ) = ∑ x 0 Ω ∑ x 0 Ω ˉ ∏ i ∈ Ω q T − t ∣ 0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = ( i ) ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣ 0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ = y ) = ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣ 0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) q 0 ( x 0 Ω ˉ = y ) = ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ y j ) q 0 ( x 0 Ω ˉ = y ) ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . \begin{aligned}
q_{T-t}(x^{\Omega},x^{\bar{\Omega}}=y) \\
&=\sum_{x_0}q_{T-t\mid0}(x^{\Omega},x^{\bar{\Omega}}=y\mid x_0)q_0(x_0) \\
&=\sum_{x_0}\prod_{i\in\Omega}q_{T-t\mid0}(x^i\mid x_0^i)\prod_{j\in\bar{\Omega}}q_{T-t\mid0}(y^j\mid x_0^j)q_0(x_0) \\
&= \sum_{x_0^\Omega} \sum_{x_0^{\bar{\Omega}}} \prod_{i\in\Omega} q_{T-t|0}(x^i|x_0^i) \prod_{j\in\bar{\Omega}} q_{T-t|0}(y^j|y_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}})
\\
\overset{(i)}{=} \sum_{x_0^\Omega} \prod_{i\in\Omega} q_{T-t|0}(x^i|x_0^i) \prod_{j\in\bar{\Omega}} q_{T-t|0}(y^j|y_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}}=y)
\\
= \sum_{x_0^\Omega} \prod_{i\in\Omega} q_{T-t|0}(x^i|x_0^i) \prod_{j\in\bar{\Omega}} q_{T-t|0}(y^j|y_0^j)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)q_0(x_0^{\bar{\Omega}}=y)
\\
= \prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|y^j)q_0(x_0^{\bar{\Omega}}=y)\sum_{x_0^\Omega}\prod_{i\in\Omega}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y).
\end{aligned} q T − t ( x Ω , x Ω ˉ = y ) = ( i ) x 0 Ω ∑ i ∈ Ω ∏ q T − t ∣0 ( x i ∣ x 0 i ) j ∈ Ω ˉ ∏ q T − t ∣0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ = y ) = x 0 Ω ∑ i ∈ Ω ∏ q T − t ∣0 ( x i ∣ x 0 i ) j ∈ Ω ˉ ∏ q T − t ∣0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) q 0 ( x 0 Ω ˉ = y ) = j ∈ Ω ˉ ∏ q T − t ∣0 ( y j ∣ y j ) q 0 ( x 0 Ω ˉ = y ) x 0 Ω ∑ i ∈ Ω ∏ q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) . = x 0 ∑ q T − t ∣ 0 ( x Ω , x Ω ˉ = y ∣ x 0 ) q 0 ( x 0 ) = x 0 ∑ i ∈ Ω ∏ q T − t ∣ 0 ( x i ∣ x 0 i ) j ∈ Ω ˉ ∏ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 ) = x 0 Ω ∑ x 0 Ω ˉ ∑ i ∈ Ω ∏ q T − t ∣0 ( x i ∣ x 0 i ) j ∈ Ω ˉ ∏ q T − t ∣0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ )
Here, we explain (i) as follows: in a forward CTMC with absorbing rate, the state transitions are accepted only from non-MASK to MASK. Since there is no mask in the data and the state x T − t Ω ˉ = y x_{T-t}^{\bar{\Omega}}=y x T − t Ω ˉ = y contains no mask tokens, the state x 0 Ω ˉ x_0^{\bar{\Omega}} x 0 Ω ˉ must also be y y y .
Then, the hard clamp score in (6) will be
s T − t ∣ y h a r d − c l a m p ( x ^ , x ) = q T − t ( x ^ Ω ∣ x Ω ˉ = y ) q T − t ( x Ω ∣ x Ω ˉ = y ) = q T − t ( x ^ Ω , x Ω ˉ = y ) q T − t ( x Ω , x Ω ˉ = y ) = ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω ˉ = y ) ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣ 0 ( x ^ i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω ˉ = y ) ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 k q T − t ∣ 0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∑ x 0 k q T − t ∣ 0 ( x k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ( i ) s T − t ∣ y ( x ^ , x ) . (21) \begin{aligned}
s_{T-t|y}^{\mathrm{hard-clamp}}(\hat{x},x)=\frac{q_{T-t}(\hat{x}^{\Omega}|x^{\bar{\Omega}}=y)}{q_{T-t}(x^{\Omega}|x^{\bar{\Omega}}=y)} \\
&=\frac{q_{T-t}(\hat{x}^{\Omega},x^{\bar{\Omega}}=y)}{q_{T-t}(x^{\Omega},x^{\bar{\Omega}}=y)} \\
&=\frac{\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|y_0^j)q_0(x_0^{\bar{\Omega}}=y)\sum_{x_0^\Omega}\prod_{i\in\Omega}q_{T-t|0}(\hat{x}^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)}{\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|y_0^j)q_0(x_0^{\bar{\Omega}}=y)\sum_{x_0^\Omega}\prod_{i\in\Omega}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)} \\
&=\frac{\sum_{x_0^k}q_{T-t|0}(\hat{x}^k|x_0^k)\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)}{\sum_{x_0^k}q_{T-t|0}(x^k|x_0^k)\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)}
\overset{(i)}{=}s_{T-t|y}(\hat{x},x). \tag*{(21)}
\end{aligned} s T − t ∣ y hard − clamp ( x ^ , x ) = q T − t ( x Ω ∣ x Ω ˉ = y ) q T − t ( x ^ Ω ∣ x Ω ˉ = y ) = q T − t ( x Ω , x Ω ˉ = y ) q T − t ( x ^ Ω , x Ω ˉ = y ) = ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω ˉ = y ) ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ y 0 j ) q 0 ( x 0 Ω ˉ = y ) ∑ x 0 Ω ∏ i ∈ Ω q T − t ∣0 ( x ^ i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 k q T − t ∣0 ( x k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∑ x 0 k q T − t ∣0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ( i ) s T − t ∣ y ( x ^ , x ) . (21)
(i) holds since we have already derived the true score in (20) . The hard clamp score is identical to the true conditional score, and thus we conclude that for k ∈ Ω k\in\Omega k ∈ Ω ,
Δ t ∣ y = 0. (22) \Delta_{t|y}=0. \tag*{(22)} Δ t ∣ y = 0. (22)
Applying Theorem III.3 yields the following claimed bound:
KL ( q δ ∣ y Ω ∥ p T − δ ∣ y Ω ) ≲ E o r a c l e . \operatorname{KL}(q_{\delta|y}^{\Omega}\|p_{T-\delta|y}^{\Omega})\lesssim\mathcal{E}_{\mathrm{oracle}}. KL ( q δ ∣ y Ω ∥ p T − δ ∣ y Ω ) ≲ E oracle .
Proof of Theorem IV.3
In this section, we present the proof of Theorem IV.3. If k ∈ Ω k\in\Omega k ∈ Ω , the hard clamp score with the uniform rate is
s T − t ∣ y h a r d − c l a m p ( x ^ , x ) = q T − t ( x ^ Ω ∣ x Ω ˉ = y ) q T − t ( x Ω ∣ x Ω ˉ = y ) = ∑ x 0 Ω ∑ x 0 Ω ˉ q T − t ∣ 0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) ∑ x 0 Ω ∑ x 0 Ω ˉ q T − t ∣ 0 ( x k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) \begin{aligned}
s_{T-t|y}^{\mathrm{hard-clamp}}(\hat{x},x)=\frac{q_{T-t}(\hat{x}^{\Omega}|x^{\bar{\Omega}}=y)}{q_{T-t}(x^{\Omega}|x^{\bar{\Omega}}=y)} \\
&=\frac{\sum_{x_0^\Omega}\sum_{x_0^{\bar{\Omega}}}q_{T-t|0}(\hat{x}^k|x_0^k)\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}})}{\sum_{x_0^\Omega}\sum_{x_0^{\bar{\Omega}}}q_{T-t|0}(x^k|x_0^k)\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}})}
\end{aligned} s T − t ∣ y hard − clamp ( x ^ , x ) = q T − t ( x Ω ∣ x Ω ˉ = y ) q T − t ( x ^ Ω ∣ x Ω ˉ = y ) = ∑ x 0 Ω ∑ x 0 Ω ˉ q T − t ∣0 ( x k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) ∑ x 0 Ω ∑ x 0 Ω ˉ q T − t ∣0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω ∖ { k } q T − t ∣0 ( x i ∣ x 0 i ) ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ )
∑ x 0 k q T − t ∣ 0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω \ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) ∑ x 0 k q T − t ∣ 0 ( x k ∣ x 0 k ) ∏ i ∈ Ω \ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) \frac{\sum_{x_0^k}q_{T-t|0}(\hat{x}^k|x_0^k)\prod_{i\in\Omega\backslash\{k\}}q_{T-t|0}(x^i|x_0^i)\sum_{x_0^{\bar{\Omega}}}\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}})}{\sum_{x_0^k}q_{T-t|0}(x^k|x_0^k)\prod_{i\in\Omega\backslash\{k\}}q_{T-t|0}(x^i|x_0^i)\sum_{x_0^{\bar{\Omega}}}\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}})} ∑ x 0 k q T − t ∣0 ( x k ∣ x 0 k ) ∏ i ∈ Ω\ { k } q T − t ∣0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) ∑ x 0 k q T − t ∣0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω\ { k } q T − t ∣0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ )
= ( i ) ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k ≠ x ^ k π ( x 0 Ω ) + ( 1 S + S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) ( 1 S + S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) + ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k ≠ x k π ( x 0 Ω ) = ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω π ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω π ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) ∑ x 0 Ω π ( x 0 Ω ) ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ∑ x 0 Ω π ( x 0 Ω ) , \begin{aligned}
\overset{(i)}{=}\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k\ne\hat{x}^k}\pi(x_0^\Omega)+\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi(x_0^\Omega)}{\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k=x^k}\pi(x_0^\Omega)+\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k\ne x^k}\pi(x_0^\Omega)} \\
&=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega}\pi(x_0^\Omega)+e^{-(T-t)}\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi(x_0^\Omega)}{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega}\pi(x_0^\Omega)+e^{-(T-t)}\sum_{x_0^\Omega:x_0^k=x^k}\pi(x_0^\Omega)} \\
&=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi(x_0^\Omega)}{\sum_{x_0^\Omega}\pi(x_0^\Omega)}}{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi(x_0^\Omega)}{\sum_{x_0^\Omega}\pi(x_0^\Omega)}},
\end{aligned} = ( i ) ( S 1 + S S − 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) + ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) + ( S 1 + S S − 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) = ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω π ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω π ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω π ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω π ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) ,
where π ( x 0 Ω ) : = ∏ i ∈ Ω \ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) \pi(x_0^\Omega):=\prod_{i\in\Omega\backslash\{k\}}q_{T-t|0}(x^i|x_0^i)\sum_{x_0^{\bar{\Omega}}}\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}}) π ( x 0 Ω ) := ∏ i ∈ Ω\ { k } q T − t ∣0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) , and (i) holds because the transition kernel is given by q t ∣ 0 ( x i ∣ x 0 i ) = ( 1 − e − t ) / S q_{t|0}(x^i|x_0^i)=(1-e^{-t})/S q t ∣0 ( x i ∣ x 0 i ) = ( 1 − e − t ) / S when x i ≠ x 0 i x^i\ne x_0^i x i = x 0 i ; ( 1 + ( S − 1 ) e − t ) / S (1+(S-1)e^{-t})/S ( 1 + ( S − 1 ) e − t ) / S , otherwise.
With (20), the true conditional score is
s T − t ∣ y ( x ^ , x ) = ∑ x 0 k q T − t ∣ 0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω \ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∑ x 0 k q T − t ∣ 0 ( x k ∣ x 0 k ) ∏ i ∈ Ω \ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 Ω : x 0 k ≠ x ^ k ( 1 S − 1 S e − ( T − t ) ) π t r u e ( x 0 Ω ) + ∑ x 0 Ω : x 0 k = x ^ k ( 1 S + S − 1 S e − ( T − t ) ) π t r u e ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k ( 1 S + S − 1 S e − ( T − t ) ) π t r u e ( x 0 Ω ) + ∑ x 0 Ω : x 0 k ≠ x k ( 1 S − 1 S e − ( T − t ) ) π t r u e ( x 0 Ω ) = ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k ≠ x ^ k π t r u e ( x 0 Ω ) + ( 1 S + S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x ^ k π t r u e ( x 0 Ω ) ( 1 S + S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) + ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω : x 0 k ≠ x k π t r u e ( x 0 Ω ) = ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω π t r u e ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x ^ k π t r u e ( x 0 Ω ) ( 1 S − 1 S e − ( T − t ) ) ∑ x 0 Ω π t r u e ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x ^ k π t r u e ( x 0 Ω ) ∑ x 0 Ω π t r u e ( x 0 Ω ) ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) ∑ x 0 Ω π t r u e ( x 0 Ω ) \begin{aligned}
s_{T-t|y}(\hat{x},x) \\
&=\frac{\sum_{x_0^k}q_{T-t|0}(\hat{x}^k|x_0^k)\prod_{i\in\Omega\backslash\{k\}}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)}{\sum_{x_0^k}q_{T-t|0}(x^k|x_0^k)\prod_{i\in\Omega\backslash\{k\}}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega|x_0^{\bar{\Omega}}=y)} \\
&=\frac{\sum_{x_0^\Omega:x_0^k\ne\hat{x}^k}\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\pi_{\mathrm{true}}(x_0^\Omega)+\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)\pi_{\mathrm{true}}(x_0^\Omega)}{\sum_{x_0^\Omega:x_0^k=x^k}\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)\pi_{\mathrm{true}}(x_0^\Omega)+\sum_{x_0^\Omega:x_0^k\ne x^k}\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\pi_{\mathrm{true}}(x_0^\Omega)} \\
&=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k\ne\hat{x}^k}\pi_{\mathrm{true}}(x_0^\Omega)+\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi_{\mathrm{true}}(x_0^\Omega)}{\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)+\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega:x_0^k\ne x^k}\pi_{\mathrm{true}}(x_0^\Omega)} \\
&=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)+e^{-(T-t)}\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi_{\mathrm{true}}(x_0^\Omega)}{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)+e^{-(T-t)}\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)} \\
&=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi_{\mathrm{true}}(x_0^\Omega)}{\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)}}{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)}{\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)}}
\end{aligned} s T − t ∣ y ( x ^ , x ) = ∑ x 0 k q T − t ∣0 ( x k ∣ x 0 k ) ∏ i ∈ Ω\ { k } q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) ∑ x 0 k q T − t ∣0 ( x ^ k ∣ x 0 k ) ∏ i ∈ Ω\ { k } q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω ∣ x 0 Ω ˉ = y ) = ∑ x 0 Ω : x 0 k = x k ( S 1 + S S − 1 e − ( T − t ) ) π true ( x 0 Ω ) + ∑ x 0 Ω : x 0 k = x k ( S 1 − S 1 e − ( T − t ) ) π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x ^ k ( S 1 − S 1 e − ( T − t ) ) π true ( x 0 Ω ) + ∑ x 0 Ω : x 0 k = x ^ k ( S 1 + S S − 1 e − ( T − t ) ) π true ( x 0 Ω ) = ( S 1 + S S − 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) + ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x ^ k π true ( x 0 Ω ) + ( S 1 + S S − 1 e − ( T − t ) ) ∑ x 0 Ω : x 0 k = x ^ k π true ( x 0 Ω ) = ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω π true ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) ( S 1 − S 1 e − ( T − t ) ) ∑ x 0 Ω π true ( x 0 Ω ) + e − ( T − t ) ∑ x 0 Ω : x 0 k = x ^ k π true ( x 0 Ω ) = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) ∑ x 0 Ω π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x ^ k π true ( x 0 Ω )
where we define π t r u e ( x 0 Ω ) : = ∏ i ∈ Ω \ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω , x 0 Ω ˉ = y ) \pi_{\mathrm{true}}(x_0^\Omega):=\prod_{i\in\Omega\backslash\{k\}}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega,x_0^{\bar{\Omega}}=y) π true ( x 0 Ω ) := ∏ i ∈ Ω\ { k } q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω , x 0 Ω ˉ = y ) .
The above two expressions show that the hard clamp score and the true conditional score can be reformulated in the same form using π ( x 0 Ω ) \pi(x_0^\Omega) π ( x 0 Ω ) and π t r u e ( x 0 Ω ) \pi_{\mathrm{true}}(x_0^\Omega) π true ( x 0 Ω ) , respectively. To upper bound the score mismatch, we first establish a comparison between π ( x 0 Ω ) \pi(x_0^\Omega) π ( x 0 Ω ) and π t r u e ( x 0 Ω ) \pi_{\mathrm{true}}(x_0^\Omega) π true ( x 0 Ω ) in the following lemma.
Lemma VII.1. With Theorem IV.2, we have
( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ π t r u e ( x 0 Ω ) ≤ π ( x 0 Ω ) ≤ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ 1 γ π t r u e ( x 0 Ω ) . \left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\pi_{\mathrm{true}}(x_0^\Omega)\le\pi(x_0^\Omega)\le\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\frac{1}{\gamma}\pi_{\mathrm{true}}(x_0^\Omega). ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ π true ( x 0 Ω ) ≤ π ( x 0 Ω ) ≤ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ γ 1 π true ( x 0 Ω ) .
Proof. See Appendix XIV-A.
Thus, with Theorem VII.1, for x 0 Ω x_0^\Omega x 0 Ω with x 0 k = x k x_0^k=x^k x 0 k = x k , we can derive
( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) ≤ ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ≤ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ 1 γ ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) . (23) \begin{aligned}
\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}
\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)
\leq
\sum_{x_0^\Omega:x_0^k=x^k}\pi(x_0^\Omega) \\
&\leq
\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}
\frac{1}{\gamma}
\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega). \tag*{(23)}
\end{aligned} ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ x 0 Ω : x 0 k = x k ∑ π true ( x 0 Ω ) ≤ x 0 Ω : x 0 k = x k ∑ π ( x 0 Ω ) ≤ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ γ 1 x 0 Ω : x 0 k = x k ∑ π true ( x 0 Ω ) . (23)
Similarly, for all x 0 Ω x_0^\Omega x 0 Ω , we can derive
( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ∑ x 0 Ω π t r u e ( x 0 Ω ) ≤ ∑ x 0 Ω π ( x 0 Ω ) ≤ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ 1 γ ∑ x 0 Ω π t r u e ( x 0 Ω ) . (24) \begin{aligned}
\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}
\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)
\leq
\sum_{x_0^\Omega}\pi(x_0^\Omega) \\
&\leq
\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}
\frac{1}{\gamma}
\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega). \tag*{(24)}
\end{aligned} ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ x 0 Ω ∑ π true ( x 0 Ω ) ≤ x 0 Ω ∑ π ( x 0 Ω ) ≤ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ γ 1 x 0 Ω ∑ π true ( x 0 Ω ) . (24)
Taking the ratio of (23) and (24), we have
γ ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) ∑ x 0 Ω π t r u e ( x 0 Ω ) ≤ ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ∑ x 0 Ω π ( x 0 Ω ) ≤ 1 γ ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) ∑ x 0 Ω π t r u e ( x 0 Ω ) . (25) \gamma\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)}
\leq
\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi(x_0^\Omega)}
\leq
\frac{1}{\gamma}
\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)}. \tag*{(25)} γ ∑ x 0 Ω π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) ≤ ∑ x 0 Ω π ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ≤ γ 1 ∑ x 0 Ω π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) . (25)
Define
f ^ t r u e : = ∑ x 0 Ω : x 0 k = x ^ k π t r u e ( x 0 Ω ) ∑ x 0 Ω π t r u e ( x 0 Ω ) , f t r u e : = ∑ x 0 Ω : x 0 k = x k π t r u e ( x 0 Ω ) ∑ x 0 Ω π t r u e ( x 0 Ω ) , \hat{f}_{\mathrm{true}}:=\frac{\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi_{\mathrm{true}}(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)},\qquad
f_{\mathrm{true}}:=\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi_{\mathrm{true}}(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi_{\mathrm{true}}(x_0^\Omega)}, f ^ true := ∑ x 0 Ω π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x ^ k π true ( x 0 Ω ) , f true := ∑ x 0 Ω π true ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π true ( x 0 Ω ) ,
and
f ^ : = ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) ∑ x 0 Ω π ( x 0 Ω ) , f : = ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) ∑ x 0 Ω π ( x 0 Ω ) . \hat{f}:=\frac{\sum_{x_0^\Omega:x_0^k=\hat{x}^k}\pi(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi(x_0^\Omega)},\qquad
f:=\frac{\sum_{x_0^\Omega:x_0^k=x^k}\pi(x_0^\Omega)}
{\sum_{x_0^\Omega}\pi(x_0^\Omega)}. f ^ := ∑ x 0 Ω π ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x ^ k π ( x 0 Ω ) , f := ∑ x 0 Ω π ( x 0 Ω ) ∑ x 0 Ω : x 0 k = x k π ( x 0 Ω ) .
Then, with Definition 2 and (25), we have
1 + Δ t ∣ y = s T − t ∣ y ( x ^ , x ) s T − t ∣ y h a r d − c l a m p ( x ^ , x ) = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f ^ t r u e ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f t r u e ⋅ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f ^ ≤ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f ^ t r u e ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f t r u e ⋅ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) 1 γ f t r u e ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) γ f ^ t r u e = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f ^ t r u e ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) γ f ^ t r u e ⋅ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) 1 γ f t r u e ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) f t r u e \begin{aligned}
1+\Delta_{t|y}=
\frac{s_{T-t|y}(\hat{x},x)}
{s^{\mathrm{hard-clamp}}_{T-t|y}(\hat{x},x)} \\
&=
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\hat{f}_{\mathrm{true}}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}f_{\mathrm{true}}}
\cdot
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}f}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\hat{f}} \\
&\leq
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\hat{f}_{\mathrm{true}}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}f_{\mathrm{true}}}
\cdot
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{1}{\gamma}f_{\mathrm{true}}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\gamma\hat{f}_{\mathrm{true}}} \\
&=
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\hat{f}_{\mathrm{true}}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\gamma\hat{f}_{\mathrm{true}}}
\cdot
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{1}{\gamma}f_{\mathrm{true}}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}f_{\mathrm{true}}}
\end{aligned} 1 + Δ t ∣ y = s T − t ∣ y hard − clamp ( x ^ , x ) s T − t ∣ y ( x ^ , x ) = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f true ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f ^ true ⋅ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f ^ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f ≤ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f true ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f ^ true ⋅ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ f ^ true ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ 1 f true = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ f ^ true ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f ^ true ⋅ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) f true ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ 1 f true
≤ ( i ) ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) γ ⋅ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) 1 γ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) 1 γ ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) γ = 1 + S e T − t − 1 1 γ 1 + S e T − t − 1 γ , \begin{aligned}
\overset{(i)}{\leq}
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\gamma}
\cdot
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{1}{\gamma}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}} \\
&=
\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{1}{\gamma}}
{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\gamma} \\
&=\frac{1+\frac{S}{e^{T-t}-1}\frac{1}{\gamma}}{1+\frac{S}{e^{T-t}-1}\gamma},
\end{aligned} ≤ ( i ) ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) ⋅ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ 1 = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ 1 = 1 + e T − t − 1 S γ 1 + e T − t − 1 S γ 1 ,
where ( i ) (i) ( i ) holds since 0 ≤ f ^ t r u e , f t r u e ≤ 1 0\le\hat{f}_{\mathrm{true}},f_{\mathrm{true}}\le1 0 ≤ f ^ true , f true ≤ 1 and G ( u ) = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) u ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) γ u G(u)=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}u}{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\gamma u} G ( u ) = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ u ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) u , H ( v ) = ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) 1 γ v ( 1 S − 1 S e − ( T − t ) ) + e − ( T − t ) v H(v)=\frac{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}\frac{1}{\gamma}v}{\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)+e^{-(T-t)}v} H ( v ) = ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) v ( S 1 − S 1 e − ( T − t ) ) + e − ( T − t ) γ 1 v are monotonically increasing on [ 0 , 1 ] [0,1] [ 0 , 1 ] .
Applying Theorem III.5, we obtain
S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } E x t k ∼ q t k ∣ y Ω [ ∑ y ≠ x t k Q ( y , x t k ) ∣ Δ t k ∣ y ∣ ] ≲ ( i ) d S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } ∣ Ω ∣ d ( 1 + S e T − t k − 1 1 γ 1 + S e T − t k − 1 γ − 1 ) = ∣ Ω ∣ S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } S e T − t k − 1 ( 1 γ − γ ) 1 + S e T − t k − 1 γ ≤ ∣ Ω ∣ S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } S T − t k ( 1 γ − γ ) 1 + S T − t k γ = ∣ Ω ∣ S ( 1 + log M S δ − 1 ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } S ( 1 γ − γ ) T − t k + S γ = ∣ Ω ∣ S ( 1 + log M S δ − 1 ) S ( 1 γ − γ ) ∑ k = 0 N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } 1 T − t k + S γ ≲ ∣ Ω ∣ S 2 ( 1 + log M S δ − 1 ) ( 1 γ − γ ) ( log T + S γ 1 + S γ + 1 S γ log δ + S γ δ ( 1 + S γ ) ) . (26) \begin{aligned}
&S(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\mathbb{E}_{x_{t_k}\sim q^\Omega_{t_k|y}}\left[\sum_{y\ne x_{t_k}}Q(y,x_{t_k})|\Delta_{t_k|y}|\right]\\
&\mathrel{\overset{(i)}{\lesssim}}dS(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\frac{|\Omega|}{d}\left(\frac{1+\frac{S}{e^{T-t_k}-1}\frac{1}{\gamma}}{1+\frac{S}{e^{T-t_k}-1}\gamma}-1\right)\\
&=|\Omega|S(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\frac{\frac{S}{e^{T-t_k}-1}\left(\frac{1}{\gamma}-\gamma\right)}{1+\frac{S}{e^{T-t_k}-1}\gamma}\\
&\le|\Omega|S(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\frac{\frac{S}{T-t_k}\left(\frac{1}{\gamma}-\gamma\right)}{1+\frac{S}{T-t_k}\gamma}\\
&=|\Omega|S(1+\log MS\delta^{-1})\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\frac{S\left(\frac{1}{\gamma}-\gamma\right)}{T-t_k+S\gamma}\\
&=|\Omega|S(1+\log MS\delta^{-1})S\left(\frac{1}{\gamma}-\gamma\right)\sum_{k=0}^{N-1}(t_{k+1}-t_k)\max\{1,(T-t_k)^{-1}\}\frac{1}{T-t_k+S\gamma}\\
&\lesssim|\Omega|S^2(1+\log MS\delta^{-1})\left(\frac{1}{\gamma}-\gamma\right)\left(\log\frac{T+S\gamma}{1+S\gamma}+\frac{1}{S\gamma}\log\frac{\delta+S\gamma}{\delta(1+S\gamma)}\right). \tag*{(26)}
\end{aligned} S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } E x t k ∼ q t k ∣ y Ω y = x t k ∑ Q ( y , x t k ) ∣ Δ t k ∣ y ∣ ≲ ( i ) d S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } d ∣Ω∣ ( 1 + e T − t k − 1 S γ 1 + e T − t k − 1 S γ 1 − 1 ) = ∣Ω∣ S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } 1 + e T − t k − 1 S γ e T − t k − 1 S ( γ 1 − γ ) ≤ ∣Ω∣ S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } 1 + T − t k S γ T − t k S ( γ 1 − γ ) = ∣Ω∣ S ( 1 + log M S δ − 1 ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } T − t k + S γ S ( γ 1 − γ ) = ∣Ω∣ S ( 1 + log M S δ − 1 ) S ( γ 1 − γ ) k = 0 ∑ N − 1 ( t k + 1 − t k ) max { 1 , ( T − t k ) − 1 } T − t k + S γ 1 ≲ ∣Ω∣ S 2 ( 1 + log M S δ − 1 ) ( γ 1 − γ ) ( log 1 + S γ T + S γ + S γ 1 log δ ( 1 + S γ ) δ + S γ ) . (26)
where ( i ) (i) ( i ) holds, since the symmetry yields the corresponding upper bound of ∣ Δ t k ∣ y ∣ |\Delta_{t_k|y}| ∣ Δ t k ∣ y ∣ and this part of the score mismatch only occurs when k ∈ Ω k\in\Omega k ∈ Ω .
Hence, combining (26) and Theorem III.5, the proof is now complete.
Appendix VIII: Proof of Theorem V.3
To perform the convergence analysis, we first provide the following lemma to decompose the total error into the error of distribution of assignment a a a and the error of the hard clamping reverse process.
Lemma VIII.1. Let v ( a ) : = q 0 ( x 0 Ω = a ∣ C ) v(a):=q_0(x^\Omega_0=a\mid C) v ( a ) := q 0 ( x 0 Ω = a ∣ C ) , a ∈ A a\in A a ∈ A be the target assignment distribution and w w w be any probability distribution on A A A . With the definition of p Ω , T − t R H C ( x Ω ∣ C ) p^{\mathrm{RHC}}_{\Omega,T-t}(x^\Omega\mid C) p Ω , T − t RHC ( x Ω ∣ C ) in (10), we have
KL ( q δ ∣ C Ω ∥ p T − δ ∣ C Ω , R H C ) ≤ KL ( v ∥ w ) + E a ∼ v [ KL ( q δ ∣ a Ω ∥ p T − δ ∣ a Ω , H C ) ] . \operatorname{KL}(q^\Omega_{\delta\mid C}\|p^{\Omega,\mathrm{RHC}}_{T-\delta\mid C})\le\operatorname{KL}(v\|w)+\mathbb{E}_{a\sim v}\left[\operatorname{KL}(q^\Omega_{\delta\mid a}\|p^{\Omega,\mathrm{HC}}_{T-\delta\mid a})\right]. KL ( q δ ∣ C Ω ∥ p T − δ ∣ C Ω , RHC ) ≤ KL ( v ∥ w ) + E a ∼ v [ KL ( q δ ∣ a Ω ∥ p T − δ ∣ a Ω , HC ) ] . where p T − δ ∣ C Ω , R H C : = p T − δ R H C ( x Ω ∣ C ) p^{\Omega,\mathrm{RHC}}_{T-\delta\mid C}:=p^{\mathrm{RHC}}_{T-\delta}(x^\Omega\mid C) p T − δ ∣ C Ω , RHC := p T − δ RHC ( x Ω ∣ C ) refers to the distribution of RHC with set constraints and p T − δ ∣ a Ω , H C : = p T − δ H C ( x Ω ∣ x 0 Ω ˉ = a ) p^{\Omega,\mathrm{HC}}_{T-\delta\mid a}:=p^{\mathrm{HC}}_{T-\delta}(x^\Omega\mid x^{\bar{\Omega}}_0=a) p T − δ ∣ a Ω , HC := p T − δ HC ( x Ω ∣ x 0 Ω ˉ = a ) refers to the distribution that hard clamps the fixed observation to a a a .
Proof. See Appendix XIV-B.
Theorem VIII.1 separates the total KL divergence under the set constraints setting into two parts. The second term is controlled by the fixed-observation convergence results provided in § 11 -A, while the first term KL ( v ∥ w ) \operatorname{KL}(v\|w) KL ( v ∥ w ) quantifies the deviation between the alternative assignment distribution w ( a ) w(a) w ( a ) and the target assignment distribution v ( a ) v(a) v ( a ) . Note that the mixture decomposition does not require an absorbing rate.
To bound KL ( v ∥ w ) \operatorname{KL}(v\|w) KL ( v ∥ w ) , we start with KL ( v ∥ w ) + KL ( w ∥ v ) \operatorname{KL}(v\|w)+\operatorname{KL}(w\|v) KL ( v ∥ w ) + KL ( w ∥ v ) ,
KL ( v ∥ w ) + KL ( w ∥ v ) = ∑ a v ( a ) log v ( a ) w ( a ) + ∑ a w ( a ) log w ( a ) v ( a ) = ∑ a ( w ( a ) − v ( a ) ) log w ( a ) v ( a ) = ∑ a ( w ( a ) − v ( a ) ) log ∏ j = 1 ∣ Ω ˉ ∣ s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s T − t ( z a ( j ) , z a ( j − 1 ) ) + ∑ a ( w ( a ) − v ( a ) ) log ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s T − t ( z b ( j ) , z b ( j − 1 ) ) ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s ^ T − t ( z b ( j ) , z b ( j − 1 ) ) = ( i ) ∑ a ( w ( a ) − v ( a ) ) log ∏ j = 1 ∣ Ω ˉ ∣ s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s T − t ( z a ( j ) , z a ( j − 1 ) ) = ∑ a ( w ( a ) − v ( a ) ) ∑ j = 1 ∣ Ω ˉ ∣ log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ≤ ∑ a ( w ( a ) + v ( a ) ) ∑ j = 1 ∣ Ω ˉ ∣ ∣ log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ∣ , (27) \begin{aligned}
\operatorname{KL}(v\|w)+\operatorname{KL}(w\|v)
&= \sum_a v(a)\log\frac{v(a)}{w(a)}+\sum_a w(a)\log\frac{w(a)}{v(a)}\\
&= \sum_a (w(a)-v(a))\log\frac{w(a)}{v(a)}\\
&= \sum_a (w(a)-v(a))\log\frac{\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{\prod_{j=1}^{|\bar{\Omega}|}s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\\
&\quad+\sum_a (w(a)-v(a))\log\frac{\sum_{b\in A}\prod_{j=1}^{|\bar{\Omega}|}s_{T-t}(z_b^{(j)},z_b^{(j-1)})}{\sum_{b\in A}\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_{T-t}(z_b^{(j)},z_b^{(j-1)})}\\
&\overset{(i)}{=} \sum_a (w(a)-v(a))\log\frac{\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{\prod_{j=1}^{|\bar{\Omega}|}s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\\
&= \sum_a (w(a)-v(a))\sum_{j=1}^{|\bar{\Omega}|}\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\\
&\leq\sum_a (w(a)+v(a))\sum_{j=1}^{|\bar{\Omega}|}\left|\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\right|, \tag*{(27)}
\end{aligned} KL ( v ∥ w ) + KL ( w ∥ v ) = a ∑ v ( a ) log w ( a ) v ( a ) + a ∑ w ( a ) log v ( a ) w ( a ) = a ∑ ( w ( a ) − v ( a )) log v ( a ) w ( a ) = a ∑ ( w ( a ) − v ( a )) log ∏ j = 1 ∣ Ω ˉ ∣ s T − t ( z a ( j ) , z a ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) + a ∑ ( w ( a ) − v ( a )) log ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s ^ T − t ( z b ( j ) , z b ( j − 1 ) ) ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s T − t ( z b ( j ) , z b ( j − 1 ) ) = ( i ) a ∑ ( w ( a ) − v ( a )) log ∏ j = 1 ∣ Ω ˉ ∣ s T − t ( z a ( j ) , z a ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) = a ∑ ( w ( a ) − v ( a )) j = 1 ∑ ∣ Ω ˉ ∣ log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ≤ a ∑ ( w ( a ) + v ( a )) j = 1 ∑ ∣ Ω ˉ ∣ log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) , (27)
where ( i ) (i) ( i ) holds since ∑ a ( w ( a ) − v ( a ) ) = 0 \sum_a(w(a)-v(a))=0 ∑ a ( w ( a ) − v ( a )) = 0 .
When x ≥ 1 x\geq1 x ≥ 1 , let y = log x ≥ 0 y=\log x\geq0 y = log x ≥ 0 . By the Taylor expansion for f ( y ) = e y f(y)=e^y f ( y ) = e y , we have e y ≥ 1 + y + 1 2 y 2 e^y\geq1+y+\frac{1}{2}y^2 e y ≥ 1 + y + 2 1 y 2 . Then x ≥ 1 + log x + 1 2 ( log x ) 2 x\geq1+\log x+\frac{1}{2}(\log x)^2 x ≥ 1 + log x + 2 1 ( log x ) 2 , and thus ∣ log x ∣ ≤ 2 ( x − 1 − log x ) |\log x|\leq\sqrt{2(x-1-\log x)} ∣ log x ∣ ≤ 2 ( x − 1 − log x ) .
When 0 < x < 1 0<x<1 0 < x < 1 , by the Taylor expansion for f ( x ) = − log x f(x)=-\log x f ( x ) = − log x , we have − log x ≥ 1 − x + 1 2 ( x − 1 ) 2 -\log x\geq1-x+\frac{1}{2}(x-1)^2 − log x ≥ 1 − x + 2 1 ( x − 1 ) 2 and then ∣ log x ∣ = − log x = x − 1 − log x + ( 1 − x ) ≤ x − 1 − log x + 2 ( x − 1 − log x ) |\log x|=-\log x=x-1-\log x+(1-x)\leq x-1-\log x+\sqrt{2(x-1-\log x)} ∣ log x ∣ = − log x = x − 1 − log x + ( 1 − x ) ≤ x − 1 − log x + 2 ( x − 1 − log x ) .
Hence, ∀ x > 0 \forall x>0 ∀ x > 0 , we have ∣ log x ∣ ≤ 2 ( x − 1 − log x ) + ( x − 1 − log x ) |\log x|\leq\sqrt{2(x-1-\log x)}+(x-1-\log x) ∣ log x ∣ ≤ 2 ( x − 1 − log x ) + ( x − 1 − log x ) , then
∣ log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ∣ ≤ 2 ( s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ) + ( s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ) . \left|\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\right|
\leq
\sqrt{
2\left(
\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}
-1
-\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}
\right)}
+
\left(
\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}
-1
-\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}
\right). log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ≤ 2 ( s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ) + ( s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ) .
Thus, we can obtain
KL ( v ∥ w ) + KL ( w ∥ v ) ≤ ∑ a ( w ( a ) + v ( a ) ) ∑ j = 1 ∣ Ω ˉ ∣ 2 ( s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ) + 2 ε s c o r e p a t h ≤ ∑ a ∑ j = 1 ∣ Ω ˉ ∣ ( w ( a ) + v ( a ) ) ⋅ ∑ a ∑ j = 1 ∣ Ω ˉ ∣ 2 ( w ( a ) + v ( a ) ) ( s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) s T − t ( z a ( j ) , z a ( j − 1 ) ) ) + 2 ε s c o r e p a t h \begin{aligned}
\operatorname{KL}(v\|w)+\operatorname{KL}(w\|v) \\
&\leq\sum_a (w(a)+v(a))\sum_{j=1}^{|\bar{\Omega}|}\sqrt{2\left(\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}-1-\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\right)+2\varepsilon_{\mathrm{score}}^{\mathrm{path}}} \\
&\leq\sqrt{\sum_a\sum_{j=1}^{|\bar{\Omega}|}(w(a)+v(a))}\cdot\sqrt{\sum_a\sum_{j=1}^{|\bar{\Omega}|}2(w(a)+v(a))\left(\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}-1-\log\frac{\hat{s}_{T-t}(z_a^{(j)},z_a^{(j-1)})}{s_{T-t}(z_a^{(j)},z_a^{(j-1)})}\right)+2\varepsilon_{\mathrm{score}}^{\mathrm{path}}}
\end{aligned} KL ( v ∥ w ) + KL ( w ∥ v ) ≤ a ∑ ( w ( a ) + v ( a )) j = 1 ∑ ∣ Ω ˉ ∣ 2 ( s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ) + 2 ε score path ≤ a ∑ j = 1 ∑ ∣ Ω ˉ ∣ ( w ( a ) + v ( a )) ⋅ a ∑ j = 1 ∑ ∣ Ω ˉ ∣ 2 ( w ( a ) + v ( a )) ( s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) − 1 − log s T − t ( z a ( j ) , z a ( j − 1 ) ) s ^ T − t ( z a ( j ) , z a ( j − 1 ) ) ) + 2 ε score path
≤ 2 2 ∣ Ω ˉ ∣ ε s c o r e p a t h + 2 ε s c o r e p a t h , \leq2\sqrt{2|\bar{\Omega}|}\varepsilon_{\mathrm{score}}^{\mathrm{path}}+2\varepsilon_{\mathrm{score}}^{\mathrm{path}}, ≤ 2 2∣ Ω ˉ ∣ ε score path + 2 ε score path ,
where (ii) holds by Theorem V.2 and (iii) holds by the Cauchy-Schwarz inequality.
Due to the non-negativity of KL divergence, we have
KL ( v ∥ w ) ≤ KL ( v ∥ w ) + KL ( w ∥ v ) \operatorname{KL}(v\|w)\leq\operatorname{KL}(v\|w)+\operatorname{KL}(w\|v) KL ( v ∥ w ) ≤ KL ( v ∥ w ) + KL ( w ∥ v )
≤ 2 2 ∣ Ω ˉ ∣ ε s c o r e p a t h + 2 ε s c o r e p a t h ≤ ∣ Ω ˉ ∣ ε s c o r e p a t h , \begin{aligned}
\leq2\sqrt{2|\bar{\Omega}|}\varepsilon_{\mathrm{score}}^{\mathrm{path}}+2\varepsilon_{\mathrm{score}}^{\mathrm{path}} \\
&\leq\sqrt{|\bar{\Omega}|}\varepsilon_{\mathrm{score}}^{\mathrm{path}},
\end{aligned} ≤ 2 2∣ Ω ˉ ∣ ε score path + 2 ε score path ≤ ∣ Ω ˉ ∣ ε score path ,
where the last inequality holds since 0 ≤ ε s c o r e p a t h ≤ 1 0\leq\varepsilon_{\mathrm{score}}^{\mathrm{path}}\leq1 0 ≤ ε score path ≤ 1 .
From Theorem IV.1 with absorbing rate and τ \tau τ -leaping, given one constraint value a ∈ A a\in A a ∈ A , we can have
KL ( q δ ∣ a Ω ∥ p T − δ ∣ a Ω , H C ) ≲ E o r a c l e , \operatorname{KL}(q_{\delta|a}^{\Omega}\|p_{T-\delta|a}^{\Omega,\mathrm{HC}})\lesssim\mathcal{E}_{\mathrm{oracle}}, KL ( q δ ∣ a Ω ∥ p T − δ ∣ a Ω , HC ) ≲ E oracle ,
where we take E o r a c l e \mathcal{E}_{\mathrm{oracle}} E oracle as the common bound for the fixed-observation sampling on a ∈ A a\in A a ∈ A .
Finally, combining all above together with Theorem VIII.1, we have
KL ( q δ ∣ C Ω ∥ p T − δ ∣ C Ω , R H C ) ≲ ∣ Ω ˉ ∣ ε s c o r e p a t h + E o r a c l e . \operatorname{KL}(q_{\delta|C}^{\Omega}\|p_{T-\delta|C}^{\Omega,\mathrm{RHC}})\lesssim\sqrt{|\bar{\Omega}|}\varepsilon_{\mathrm{score}}^{\mathrm{path}}+\mathcal{E}_{\mathrm{oracle}}. KL ( q δ ∣ C Ω ∥ p T − δ ∣ C Ω , RHC ) ≲ ∣ Ω ˉ ∣ ε score path + E oracle .
Difference between Hard Clamp Score and True Conditional Score
The following binary example illustrates the difference between the hard clamp score and true conditional score. Consider a binary state space [ 0 , 1 ] 2 [0,1]^2 [ 0 , 1 ] 2 with Ω = { 1 } \Omega=\{1\} Ω = { 1 } and Ω ˉ = { 2 } \bar{\Omega}=\{2\} Ω ˉ = { 2 } . Let the clean data distribution be
q 0 ( x 1 = 0 , x 2 = 0 ) = 0.4 , q 0 ( x 1 = 1 , x 2 = 1 ) = 0.4 q_0(x^1=0,x^2=0)=0.4,\quad q_0(x^1=1,x^2=1)=0.4 q 0 ( x 1 = 0 , x 2 = 0 ) = 0.4 , q 0 ( x 1 = 1 , x 2 = 1 ) = 0.4
q 0 ( x 1 = 0 , x 2 = 1 ) = 0.1 , q 0 ( x 1 = 1 , x 2 = 0 ) = 0.1. q_0(x^1=0,x^2=1)=0.1,\quad q_0(x^1=1,x^2=0)=0.1. q 0 ( x 1 = 0 , x 2 = 1 ) = 0.1 , q 0 ( x 1 = 1 , x 2 = 0 ) = 0.1.
Let the transition probabilities be q t ∣ 0 ( x t i = 0 ∣ x 0 i = 0 ) = α t q_{t|0}(x_t^i=0|x_0^i=0)=\alpha_t q t ∣0 ( x t i = 0∣ x 0 i = 0 ) = α t and q t ∣ 0 ( x t i = 0 ∣ x 0 i = 1 ) = β t q_{t|0}(x_t^i=0|x_0^i=1)=\beta_t q t ∣0 ( x t i = 0∣ x 0 i = 1 ) = β t , i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } . Fix the condition x 0 2 = 0 x_0^2=0 x 0 2 = 0 , then
q t ( x t 1 = 0 ∣ x 0 2 = 0 ) = ∑ x 0 1 q t ( x t 1 = 0 , x 0 1 ∣ x 0 2 = 0 ) = ∑ x 0 1 q t ∣ 0 ( x t 1 = 0 ∣ x 0 1 , x 0 2 = 0 ) q 0 ( x 0 1 ∣ x 0 2 = 0 ) \begin{aligned}
q_t(x_t^1=0|x_0^2=0)=\sum_{x_0^1}q_t(x_t^1=0,x_0^1|x_0^2=0) \\
&=\sum_{x_0^1}q_{t|0}(x_t^1=0|x_0^1,x_0^2=0)q_0(x_0^1|x_0^2=0)
\end{aligned} q t ( x t 1 = 0∣ x 0 2 = 0 ) = x 0 1 ∑ q t ( x t 1 = 0 , x 0 1 ∣ x 0 2 = 0 ) = x 0 1 ∑ q t ∣0 ( x t 1 = 0∣ x 0 1 , x 0 2 = 0 ) q 0 ( x 0 1 ∣ x 0 2 = 0 )
Algorithm 2: Conditional SEDD [9 ]
Input: Initial sample x 0 ∼ p 0 x_0 \sim p_0 x 0 ∼ p 0 , prompt coordinates Ω ˉ \bar{\Omega} Ω ˉ , observed value y y y on Ω ˉ \bar{\Omega} Ω ˉ , time grid 0 = t 0 < t 1 < … < t N = T − δ 0=t_0<t_1<\ldots<t_N=T-\delta 0 = t 0 < t 1 < … < t N = T − δ , a learned unconditional score s ^ T − t n \hat{s}_{T-t_n} s ^ T − t n
for n = 0 n=0 n = 0 to N − 1 N-1 N − 1 do
for x ^ ≠ x \hat{x}\ne x x ^ = x only at index k k k do
if k ∈ Ω k\in\Omega k ∈ Ω then
Q ^ t n ∣ y ( x , x ^ ) = Q T − t n ( x ^ , x ) s ^ T − t n ( [ x ^ Ω , y ] , [ x Ω , y ] ) , \hat{Q}_{t_n|y}(x,\hat{x})=Q_{T-t_n}(\hat{x},x)\hat{s}_{T-t_n}\left([\hat{x}^{\Omega},y],[x^{\Omega},y]\right), Q ^ t n ∣ y ( x , x ^ ) = Q T − t n ( x ^ , x ) s ^ T − t n ( [ x ^ Ω , y ] , [ x Ω , y ] ) ,
where [ ⋅ , y ] [\cdot,y] [ ⋅ , y ] refers to the whole sequence with x ˉ Ω ˉ = y \bar{x}^{\bar{\Omega}}=y x ˉ Ω ˉ = y .
else
Q ^ t n ∣ y ( x , x ^ ) = 0 \hat{Q}_{t_n|y}(x,\hat{x})=0 Q ^ t n ∣ y ( x , x ^ ) = 0
end
end
Draw x t n + 1 x_{t_{n+1}} x t n + 1 using Q ^ t n ∣ y \hat{Q}_{t_n|y} Q ^ t n ∣ y (e.g., with τ \tau τ -leaping in (5) ).
Set x t n + 1 Ω ˉ = y x_{t_{n+1}}^{\bar{\Omega}}=y x t n + 1 Ω ˉ = y .
end
= ∑ x 0 1 q t ∣ 0 ( x t 1 = 0 ∣ x 0 1 ) q 0 1 ( x 0 1 ∣ x 0 2 = 0 ) = 0.8 α t + 0.2 β t . \begin{aligned}
= \sum_{x_0^1}q_{t|0}(x_t^1=0\mid x_0^1)q_0^1(x_0^1\mid x_0^2=0) \\
&=0.8\alpha_t+0.2\beta_t.
\end{aligned} = x 0 1 ∑ q t ∣0 ( x t 1 = 0 ∣ x 0 1 ) q 0 1 ( x 0 1 ∣ x 0 2 = 0 ) = 0.8 α t + 0.2 β t .
Similarly,
q t ( x t 1 = 1 ∣ x 0 2 = 0 ) = ∑ x 0 1 q t ∣ 0 ( x t 1 = 1 ∣ x 0 1 ) q 0 1 ( x 0 1 ∣ x 0 2 = 0 ) = 1 − 0.8 α t − 0.2 β t . \begin{aligned}
q_t(x_t^1=1\mid x_0^2=0)=\sum_{x_0^1}q_{t|0}(x_t^1=1\mid x_0^1)q_0^1(x_0^1\mid x_0^2=0) \\
&=1-0.8\alpha_t-0.2\beta_t.
\end{aligned} q t ( x t 1 = 1 ∣ x 0 2 = 0 ) = x 0 1 ∑ q t ∣0 ( x t 1 = 1 ∣ x 0 1 ) q 0 1 ( x 0 1 ∣ x 0 2 = 0 ) = 1 − 0.8 α t − 0.2 β t .
Now, consider conditioning at the intermediate time t t t ,
q t ( x t 1 = 0 ∣ x t 2 = 0 ) = q t ( x = { 0 , 0 } ) q t ( x t 2 = 0 ) = 0.4 q t ∣ 0 ( x t 1 = 0 ∣ x 0 1 = 0 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 0.1 q t ∣ 0 ( x t 1 = 0 ∣ x 0 1 = 0 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) + 0.1 q t ∣ 0 ( x t 1 = 0 ∣ x 0 1 = 1 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 0.4 q t ∣ 0 ( x t 1 = 0 ∣ x 0 1 = 1 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) = 0.8 ( α t 2 + β t 2 ) + 0.4 α t β t α t + β t . \begin{aligned}
q_t(x_t^1=0\mid x_t^2=0) \\
&=\frac{q_t(x=\{0,0\})}{q_t(x_t^2=0)} \\
&=\frac{0.4q_{t|0}(x_t^1=0\mid x_0^1=0)q_{t|0}(x_t^2=0\mid x_0^2=0)+0.1q_{t|0}(x_t^1=0\mid x_0^1=0)q_{t|0}(x_t^2=0\mid x_0^2=1)}{\frac{1}{2}q_{t|0}(x_t^2=0\mid x_0^2=0)+\frac{1}{2}q_{t|0}(x_t^2=0\mid x_0^2=1)} \\
&+\frac{0.1q_{t|0}(x_t^1=0\mid x_0^1=1)q_{t|0}(x_t^2=0\mid x_0^2=0)+0.4q_{t|0}(x_t^1=0\mid x_0^1=1)q_{t|0}(x_t^2=0\mid x_0^2=1)}{\frac{1}{2}q_{t|0}(x_t^2=0\mid x_0^2=0)+\frac{1}{2}q_{t|0}(x_t^2=0\mid x_0^2=1)} \\
&=\frac{0.8(\alpha_t^2+\beta_t^2)+0.4\alpha_t\beta_t}{\alpha_t+\beta_t}.
\end{aligned} q t ( x t 1 = 0 ∣ x t 2 = 0 ) = q t ( x t 2 = 0 ) q t ( x = { 0 , 0 }) = 2 1 q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 2 1 q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 1 ) 0.4 q t ∣0 ( x t 1 = 0 ∣ x 0 1 = 0 ) q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 0.1 q t ∣0 ( x t 1 = 0 ∣ x 0 1 = 0 ) q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 1 ) + 2 1 q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 2 1 q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 1 ) 0.1 q t ∣0 ( x t 1 = 0 ∣ x 0 1 = 1 ) q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 0.4 q t ∣0 ( x t 1 = 0 ∣ x 0 1 = 1 ) q t ∣0 ( x t 2 = 0 ∣ x 0 2 = 1 ) = α t + β t 0.8 ( α t 2 + β t 2 ) + 0.4 α t β t .
Similarly,
q t ( x t 1 = 1 ∣ x t 2 = 0 ) = q t ( x = { 1 , 0 } ) q t ( x t 2 = 0 ) (28) \begin{aligned}
q_t(x_t^1=1\mid x_t^2=0) \\
&=\frac{q_t(x=\{1,0\})}{q_t(x_t^2=0)} \tag*{(28)}
\end{aligned} q t ( x t 1 = 1 ∣ x t 2 = 0 ) = q t ( x t 2 = 0 ) q t ( x = { 1 , 0 }) (28)
= 0.4 q t ∣ 0 ( x t 1 = 1 ∣ x 0 1 = 0 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 0.1 q t ∣ 0 ( x t 1 = 1 ∣ x 0 1 = 0 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) + 0.1 q t ∣ 0 ( x t 1 = 1 ∣ x 0 1 = 1 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 0.4 q t ∣ 0 ( x t 1 = 1 ∣ x 0 1 = 1 ) q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 0 ) + 1 2 q t ∣ 0 ( x t 2 = 0 ∣ x 0 2 = 1 ) = α t + β t − 0.8 ( α t 2 + β t 2 ) − 0.4 α t β t α t + β t . \begin{aligned}
&=\frac{0.4q_{t|0}(x_t^1=1|x_0^1=0)q_{t|0}(x_t^2=0|x_0^2=0)+0.1q_{t|0}(x_t^1=1|x_0^1=0)q_{t|0}(x_t^2=0|x_0^2=1)}{\frac{1}{2}q_{t|0}(x_t^2=0|x_0^2=0)+\frac{1}{2}q_{t|0}(x_t^2=0|x_0^2=1)}\\
&\quad+\frac{0.1q_{t|0}(x_t^1=1|x_0^1=1)q_{t|0}(x_t^2=0|x_0^2=0)+0.4q_{t|0}(x_t^1=1|x_0^1=1)q_{t|0}(x_t^2=0|x_0^2=1)}{\frac{1}{2}q_{t|0}(x_t^2=0|x_0^2=0)+\frac{1}{2}q_{t|0}(x_t^2=0|x_0^2=1)}\\
&=\frac{\alpha_t+\beta_t-0.8(\alpha_t^2+\beta_t^2)-0.4\alpha_t\beta_t}{\alpha_t+\beta_t}.
\end{aligned} = 2 1 q t ∣0 ( x t 2 = 0∣ x 0 2 = 0 ) + 2 1 q t ∣0 ( x t 2 = 0∣ x 0 2 = 1 ) 0.4 q t ∣0 ( x t 1 = 1∣ x 0 1 = 0 ) q t ∣0 ( x t 2 = 0∣ x 0 2 = 0 ) + 0.1 q t ∣0 ( x t 1 = 1∣ x 0 1 = 0 ) q t ∣0 ( x t 2 = 0∣ x 0 2 = 1 ) + 2 1 q t ∣0 ( x t 2 = 0∣ x 0 2 = 0 ) + 2 1 q t ∣0 ( x t 2 = 0∣ x 0 2 = 1 ) 0.1 q t ∣0 ( x t 1 = 1∣ x 0 1 = 1 ) q t ∣0 ( x t 2 = 0∣ x 0 2 = 0 ) + 0.4 q t ∣0 ( x t 1 = 1∣ x 0 1 = 1 ) q t ∣0 ( x t 2 = 0∣ x 0 2 = 1 ) = α t + β t α t + β t − 0.8 ( α t 2 + β t 2 ) − 0.4 α t β t .
Choosing x = { 0 , 0 } x=\{0,0\} x = { 0 , 0 } and x ^ = { 1 , 0 } \hat{x}=\{1,0\} x ^ = { 1 , 0 } , with uniform rate, we can obtain
s t ∣ y ( x ^ , x ) = q t ( x t 1 = 1 ∣ x 0 2 = 0 ) q t ( x t 1 = 0 ∣ x 0 2 = 0 ) = 1 − 0.8 α t − 0.2 β t 0.8 α t + 0.2 β t = 1 − 0.6 e − t 1 + 0.6 e − t , s_{t|y}(\hat{x},x)=\frac{q_t(x_t^1=1|x_0^2=0)}{q_t(x_t^1=0|x_0^2=0)}=\frac{1-0.8\alpha_t-0.2\beta_t}{0.8\alpha_t+0.2\beta_t}=\frac{1-0.6e^{-t}}{1+0.6e^{-t}}, s t ∣ y ( x ^ , x ) = q t ( x t 1 = 0∣ x 0 2 = 0 ) q t ( x t 1 = 1∣ x 0 2 = 0 ) = 0.8 α t + 0.2 β t 1 − 0.8 α t − 0.2 β t = 1 + 0.6 e − t 1 − 0.6 e − t ,
s t ∣ y h a r d c l a m p ( x ^ , x ) = q t ( x t 1 = 1 ∣ x 2 = 0 ) q t ( x t 1 = 0 ∣ x 2 = 0 ) = α t + β t − 0.8 ( α t 2 + β t 2 ) − 0.4 α t β t 0.8 ( α t 2 + β t 2 ) + 0.4 α t β t = 1 − 0.6 e − 2 t 1 + 0.6 e − 2 t , s_{t|y}^{\mathrm{hard\ clamp}}(\hat{x},x)=\frac{q_t(x_t^1=1|x^2=0)}{q_t(x_t^1=0|x^2=0)}=\frac{\alpha_t+\beta_t-0.8(\alpha_t^2+\beta_t^2)-0.4\alpha_t\beta_t}{0.8(\alpha_t^2+\beta_t^2)+0.4\alpha_t\beta_t}=\frac{1-0.6e^{-2t}}{1+0.6e^{-2t}}, s t ∣ y hard clamp ( x ^ , x ) = q t ( x t 1 = 0∣ x 2 = 0 ) q t ( x t 1 = 1∣ x 2 = 0 ) = 0.8 ( α t 2 + β t 2 ) + 0.4 α t β t α t + β t − 0.8 ( α t 2 + β t 2 ) − 0.4 α t β t = 1 + 0.6 e − 2 t 1 − 0.6 e − 2 t ,
since the transition probability α t = 1 + e − t 2 \alpha_t=\frac{1+e^{-t}}{2} α t = 2 1 + e − t and β t = 1 − e − t 2 \beta_t=\frac{1-e^{-t}}{2} β t = 2 1 − e − t for uniform rate. Obviously, the hard clamp score does not coincide with the true conditional score.
Detailed Settings of Experiments
In this section, we provide the detailed settings of the experiments in § 13 .
Conditional SEDD under Fixed Observations
For synthetic data in § 13 -A, we consider a finite discrete state space [ S ] d [S]^d [ S ] d and construct a data distribution q 0 q_0 q 0 with d = 4 d=4 d = 4 , S = 4 S=4 S = 4 , where the alphabet is { 0 , 1 , 2 , 3 } \{0,1,2,3\} { 0 , 1 , 2 , 3 } . In detail, q 0 q_0 q 0 is constructed as a Gibbs distribution with token preferences sampled from the Gaussian distribution N ( 0 , 0.35 2 ) \mathcal{N}(0,0.35^2) N ( 0 , 0.3 5 2 ) for each position. We also consider neighbor interactions, which include a 0.9 reward for identical adjacent symbols and a 0.25 reward for consecutive adjacent symbols. In absorbing rate simulations, we extend the state space with an additional MASK state and thus S = 5 S=5 S = 5 .
We label the coordinates as { 1 , 2 , 3 , 4 } \{1,2,3,4\} { 1 , 2 , 3 , 4 } . The observed subset is Ω ˉ = { 1 , 2 } \bar{\Omega}=\{1,2\} Ω ˉ = { 1 , 2 } , and the unobserved subset is Ω = { 3 , 4 } \Omega=\{3,4\} Ω = { 3 , 4 } for the fixed observation in Figures 1 and Figure 2 . The observation of the first two coordinates is fixed to y = [ 0 , 2 ] y=[0,2] y = [ 0 , 2 ] . For the different fixed observations and sizes of free coordinates in Figure 3 , the observations are fixed to x 1 = 0 x_1=0 x 1 = 0 , [ x 1 , x 2 ] = [ 0 , 2 ] [x_1,x_2]=[0,2] [ x 1 , x 2 ] = [ 0 , 2 ] , and [ x 1 , x 2 , x 3 ] = [ 0 , 2 , 2 ] [x_1,x_2,x_3]=[0,2,2] [ x 1 , x 2 , x 3 ] = [ 0 , 2 , 2 ] . As a comparison, we also evaluate the observation [ x 1 , x 2 , x 3 ] = [ 0 , 2 , 1 ] [x_1,x_2,x_3]=[0,2,1] [ x 1 , x 2 , x 3 ] = [ 0 , 2 , 1 ] . Changing the observed vector from [ 0 , 2 , 2 ] [0,2,2] [ 0 , 2 , 2 ] to [ 0 , 2 , 1 ] [0,2,1] [ 0 , 2 , 1 ] results in γ \gamma γ decreasing from approximately 0.02 to 0.004.
The early stopping is not applied in all numerical experiments, and the time grid is set as 0 = t 0 < ⋯ < t N = T 0=t_0<\cdots<t_N=T 0 = t 0 < ⋯ < t N = T , where
N ∈ { 16 , 32 , 64 , 128 , 256 , 512 , 1024 , 2048 } , T = 5. N\in\{16,32,64,128,256,512,1024,2048\},\qquad T=5. N ∈ { 16 , 32 , 64 , 128 , 256 , 512 , 1024 , 2048 } , T = 5.
We compare Conditional SEDD with the oracle conditional score baseline based on Monte-Carlo. At each time step and in each independent trial, we draw 10000 samples and calculate the score ratios from the estimated probabilities.
RHC under Set Constraints
a) Synthetic Experiments: For synthetic experiments in § 13 -B, we employ the same distribution, time grid, and sampling setting as those in Appendix § 17 -A. In Figure 4 , we use A 1 = { 0 , 1 } A_1=\{0,1\} A 1 = { 0 , 1 } and A 2 = { 2 , 3 } A_2=\{2,3\} A 2 = { 2 , 3 } so that A = A 1 × A 2 A=A_1\times A_2 A = A 1 × A 2 and C = { x 1 ∈ A 1 , x 2 ∈ A 2 } C=\{x_1\in A_1,x_2\in A_2\} C = { x 1 ∈ A 1 , x 2 ∈ A 2 } . The assignment probability of each assignment is calculated by the unconditional scores based on Theorem V.1.
b) Text Experiments: For real-data experiments in § 13 -B, perplexity is selected as the major evaluation metric to measure the fluency and rationality of the generation results. A lower perplexity indicates that the generation results align more closely with the natural language, thereby achieving a better generation quality. We evaluate the perplexity of the full sequences using the pretrained GPT-2-large [50 ] .
In detail, we use the pretrained discrete diffusion model SEDD-small in [9 ] and tokenizer GPT-2 [50 ] . The sampler used is Tweedie τ \tau τ -leaping with 1024 reverse sampling steps on a time grid from t = 1 t=1 t = 1 to 10 − 5 10^{-5} 1 0 − 5 . The sequence length is d = 50 d=50 d = 50 , and the six manually constructed scenarios include transportation, study, game, cooking, project, and weather. Each scenario contains six constrained token positions. For each position, the sampler must select one token from the given feasible set. The feasible constraint sets are given in Table II . Moreover, to ensure completeness for generated sentences, we fix the prefix to “We” for transportation, cooking, and weather; “The team” for game and project; and “The student” for study. The suffix is fixed to a period (“.”) in all scenarios.
We also compare our RHC with a uniform-assignment baseline. For RHC, we use the pretrained unconditional scores to construct weights
w ( a ) = ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z a ( j ) , z a ( j − 1 ) ) ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z b ( j ) , z b ( j − 1 ) ) . w(a)=\frac{\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_t(z_a^{(j)},z_a^{(j-1)})}{\sum_{b\in A}\prod_{j=1}^{|\bar{\Omega}|}\hat{s}_t(z_b^{(j)},z_b^{(j-1)})}. w ( a ) = ∑ b ∈ A ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z b ( j ) , z b ( j − 1 ) ) ∏ j = 1 ∣ Ω ˉ ∣ s ^ t ( z a ( j ) , z a ( j − 1 ) ) .
at time t = 1 t=1 t = 1 . And the uniform-assignment baseline uses
w u n i ( a ) = 1 ∣ A ∣ = ∏ m ∈ Ω ˉ 1 ∣ A m ∣ , a ∈ A . w_{\mathrm{uni}}(a)=\frac{1}{|A|}=\prod_{m\in\bar{\Omega}}\frac{1}{|A_m|},\quad a\in A. w uni ( a ) = ∣ A ∣ 1 = m ∈ Ω ˉ ∏ ∣ A m ∣ 1 , a ∈ A .
For each scenario and method, we generate 1000 sequences per trial and perform 5 independent trials. All experiments are conducted on an NVIDIA A100 GPU.
In § 5 , we discuss the convergence analysis of RHC with absorbing rate. In this section, we introduce how to construct v ( a ) v(a) v ( a ) with uniform rate. We demonstrate that the exact reconstruction of v ( a ) v(a) v ( a ) still holds by the marginalization and forward transition kernel, but this construction introduces complicated computational and numerical challenges.
Recall that for uniform rate, the transition kernel is given by q t ∣ 0 ( x i ∣ x 0 i ) = ( 1 − e − t ) / S q_{t|0}(x^i\mid x_0^i)=(1-e^{-t})/S q t ∣0 ( x i ∣ x 0 i ) = ( 1 − e − t ) / S when x i ≠ x 0 i x^i\ne x_0^i x i = x 0 i ; ( 1 + ( S − 1 ) e − t ) / S (1+(S-1)e^{-t})/S ( 1 + ( S − 1 ) e − t ) / S , otherwise. Hence, the forward transition kernel is invertible.
Given a reference state x r e f ∈ [ S ] d x^{\mathrm{ref}}\in[S]^d x ref ∈ [ S ] d , let 1 ≤ j ≤ L x 1\le j\le L_x 1 ≤ j ≤ L x , then define a starting state z x ( 0 ) = x r e f z_x^{(0)}=x^{\mathrm{ref}} z x ( 0 ) = x ref and z x ( j ) z_x^{(j)} z x ( j ) is obtained from z x ( j − 1 ) z_x^{(j-1)} z x ( j − 1 ) by changing the m j m_j m j -th coordinate. Here, L x L_x L x is the length of the chosen path from z x ( 0 ) z_x^{(0)} z x ( 0 ) to z x L x z_x^{L_x} z x L x . For notational simplicity, we write z ( x Ω , x Ω ˉ ) ( j ) z_{(x^\Omega,x^{\bar{\Omega}})}^{(j)} z ( x Ω , x Ω ˉ ) ( j ) as z x Ω ( j ) z_{x^\Omega}^{(j)} z x Ω ( j ) and L ( x Ω , x Ω ˉ ) L_{(x^\Omega,x^{\bar{\Omega}})} L ( x Ω , x Ω ˉ ) as L x Ω L_{x^\Omega} L x Ω . We can have the following proposition.
Proposition XI.1. For each a ∈ A a \in A a ∈ A , with uniform rate , and the unconditional score s t ( y , x ) s_t(y,x) s t ( y , x ) , then, for any t > 0 t > 0 t > 0 , we can have
v ( a ) = q 0 ( x 0 Ω ‾ = a ∣ C ) = ∑ x 0 Ω ‾ [ ∑ x 0 Ω ∏ j = 1 L x 0 Ω ‾ s t ( z x 0 Ω ‾ ( j ) , z x 0 Ω ‾ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ∣ ] x 0 Ω ‾ , a ∑ b ∈ A ∑ x 0 Ω ‾ [ ∑ x 0 Ω ∏ j = 1 L x 0 Ω ‾ s t ( z x 0 Ω ‾ ( j ) , z x 0 Ω ‾ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ∣ ] x 0 Ω ‾ , b . v(a)=q_0(x_0^{\overline{\Omega}}=a\mid C)=\frac{\sum_{x_0^{\overline{\Omega}}}\left[\sum_{x_0^{\Omega}}\prod_{j=1}^{L_{x_0^{\overline{\Omega}}}}s_t\left(z_{x_0^{\overline{\Omega}}}^{(j)},z_{x_0^{\overline{\Omega}}}^{(j-1)}\right)\right]\left[(P_t^{-1})^{\otimes|\Omega|}\right]_{x_0^{\overline{\Omega}},a}}{\sum_{b\in A}\sum_{x_0^{\overline{\Omega}}}\left[\sum_{x_0^{\Omega}}\prod_{j=1}^{L_{x_0^{\overline{\Omega}}}}s_t\left(z_{x_0^{\overline{\Omega}}}^{(j)},z_{x_0^{\overline{\Omega}}}^{(j-1)}\right)\right]\left[(P_t^{-1})^{\otimes|\Omega|}\right]_{x_0^{\overline{\Omega}},b}}. v ( a ) = q 0 ( x 0 Ω = a ∣ C ) = ∑ b ∈ A ∑ x 0 Ω [ ∑ x 0 Ω ∏ j = 1 L x 0 Ω s t ( z x 0 Ω ( j ) , z x 0 Ω ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣Ω∣ ] x 0 Ω , b ∑ x 0 Ω [ ∑ x 0 Ω ∏ j = 1 L x 0 Ω s t ( z x 0 Ω ( j ) , z x 0 Ω ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣Ω∣ ] x 0 Ω , a . Here, P t P_t P t is the forward transition kernel for one coordinate.
Although Theorem XI.1 provides the expression of the exact distribution v ( a ) v(a) v ( a ) , the computational cost of direct implementation may be significantly higher than that of absorbing rate. The proof is given in Appendix XIII. This reconstruction requires the summation over all states in [ S ] d [S]^d [ S ] d and the matrix inversion uses the marginal over the entire constrained space [ S ] Ω ‾ [S]^{\overline{\Omega}} [ S ] Ω . Thus, it is impractical to enumerate these vectors. By comparison, although absorbing rate may still suffer from the high computational cost caused by the feasible set A A A , it avoids additional marginal and matrix inversion steps.
Appendix XII: Proof of Proposition V.1
We begin with the transition probabilities with the absorbing rate. Recall that for one coordinate k k k , we have
q t ∣ 0 ( x t k ∣ y k ) = { 1 − e − t if x k = M A S K , y k ≠ M A S K e − t if x k = y k ≠ M A S K 0 otherwise (29) q_{t\mid0}(x_t^k\mid y^k)=
\begin{cases}
1-e^{-t} & \text{if }x^k=\mathrm{MASK},\ y^k\ne\mathrm{MASK}\\
e^{-t} & \text{if }x^k=y^k\ne\mathrm{MASK}\\
0 & \text{otherwise}
\end{cases} \tag*{(29)} q t ∣ 0 ( x t k ∣ y k ) = ⎩ ⎨ ⎧ 1 − e − t e − t 0 if x k = MASK , y k = MASK if x k = y k = MASK otherwise (29)
Then, for a specific constraint value a ∈ A a \in A a ∈ A , we have
q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = a ) = e − t ∣ Ω ‾ ∣ ( 1 − e − t ) ∣ Ω ∣ ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω ‾ = a ) . q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=a\right)=e^{-t|\overline{\Omega}|}(1-e^{-t})^{|\Omega|}\sum_{x_0^{\Omega}}q_0\left(x_0^{\Omega},x_0^{\overline{\Omega}}=a\right). q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = a ) = e − t ∣ Ω ∣ ( 1 − e − t ) ∣Ω∣ x 0 Ω ∑ q 0 ( x 0 Ω , x 0 Ω = a ) .
Therefore,
q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = a ) ∑ b ∈ A q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = b ) = e − t ∣ Ω ‾ ∣ ( 1 − e − t ) ∣ Ω ∣ ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω ‾ = a ) ∑ b ∈ A e − t ∣ Ω ‾ ∣ ( 1 − e − t ) ∣ Ω ∣ ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω ‾ = b ) = ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω ‾ = a ) ∑ b ∈ A ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω ‾ = b ) = q 0 ( x 0 Ω ‾ = a ∣ C ) . \frac{q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=a\right)}{\sum_{b\in A}q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=b\right)}
=
\frac{e^{-t|\overline{\Omega}|}(1-e^{-t})^{|\Omega|}\sum_{x_0^{\Omega}}q_0\left(x_0^{\Omega},x_0^{\overline{\Omega}}=a\right)}
{\sum_{b\in A}e^{-t|\overline{\Omega}|}(1-e^{-t})^{|\Omega|}\sum_{x_0^{\Omega}}q_0\left(x_0^{\Omega},x_0^{\overline{\Omega}}=b\right)}
=
\frac{\sum_{x_0^{\Omega}}q_0\left(x_0^{\Omega},x_0^{\overline{\Omega}}=a\right)}
{\sum_{b\in A}\sum_{x_0^{\Omega}}q_0\left(x_0^{\Omega},x_0^{\overline{\Omega}}=b\right)}
=q_0\left(x_0^{\overline{\Omega}}=a\mid C\right). ∑ b ∈ A q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = b ) q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = a ) = ∑ b ∈ A e − t ∣ Ω ∣ ( 1 − e − t ) ∣Ω∣ ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω = b ) e − t ∣ Ω ∣ ( 1 − e − t ) ∣Ω∣ ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω = a ) = ∑ b ∈ A ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω = b ) ∑ x 0 Ω q 0 ( x 0 Ω , x 0 Ω = a ) = q 0 ( x 0 Ω = a ∣ C ) .
Recall that the unconditional score is defined as s t ( y , x ) : = q t ( y ) q t ( x ) s_t(y,x):=\frac{q_t(y)}{q_t(x)} s t ( y , x ) := q t ( x ) q t ( y ) , then
q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = a ) ∑ b ∈ A q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = b ) = q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = a ) q t ( x t = [ M A S K ] d ) ∑ b ∈ A q t ( x t Ω = [ M A S K ] ∣ Ω ∣ , x t Ω ‾ = b ) q t ( x t = [ M A S K ] d ) = ∏ j = 1 ∣ Ω ‾ ∣ s t ( z a ( j ) , z a ( j − 1 ) ) ∑ b ∈ A ∏ j = 1 ∣ Ω ‾ ∣ s t ( z b ( j ) , z b ( j − 1 ) ) = q 0 ( x 0 Ω ‾ = a ∣ C ) . \frac{q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=a\right)}
{\sum_{b\in A}q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=b\right)}
=
\frac{\frac{q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=a\right)}{q_t\left(x_t=[\mathrm{MASK}]^d\right)}}
{\sum_{b\in A}\frac{q_t\left(x_t^{\Omega}=[\mathrm{MASK}]^{|\Omega|},x_t^{\overline{\Omega}}=b\right)}{q_t\left(x_t=[\mathrm{MASK}]^d\right)}}
=
\frac{\prod_{j=1}^{|\overline{\Omega}|}s_t\left(z_a^{(j)},z_a^{(j-1)}\right)}
{\sum_{b\in A}\prod_{j=1}^{|\overline{\Omega}|}s_t\left(z_b^{(j)},z_b^{(j-1)}\right)}
=q_0\left(x_0^{\overline{\Omega}}=a\mid C\right). ∑ b ∈ A q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = b ) q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = a ) = ∑ b ∈ A q t ( x t = [ MASK ] d ) q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = b ) q t ( x t = [ MASK ] d ) q t ( x t Ω = [ MASK ] ∣Ω∣ , x t Ω = a ) = ∑ b ∈ A ∏ j = 1 ∣ Ω ∣ s t ( z b ( j ) , z b ( j − 1 ) ) ∏ j = 1 ∣ Ω ∣ s t ( z a ( j ) , z a ( j − 1 ) ) = q 0 ( x 0 Ω = a ∣ C ) .
= v ( a ) =v(a) = v ( a ) ,
where for any a ∈ A a \in A a ∈ A , z a ( 0 ) = [ M A S K ] d z_a^{(0)} = [\mathrm{MASK}]^d z a ( 0 ) = [ MASK ] d and z a ( j ) z_a^{(j)} z a ( j ) is obtained from z a ( j − 1 ) z_a^{(j-1)} z a ( j − 1 ) by changing the m j m_j m j -th coordinate from MASK to a m j a^{m_j} a m j . Now, we complete the proof.
Appendix XIII: Proof of Proposition XI.1
We begin with the q t ( x t Ω ˉ = b ) q_t(x_t^{\bar{\Omega}} = b) q t ( x t Ω ˉ = b ) . For each b ∈ [ S ] ∣ Ω ˉ ∣ b \in[S]^{|\bar{\Omega}|} b ∈ [ S ] ∣ Ω ˉ ∣ , we have
q t ( x t Ω ˉ = b ) = ∑ x t Ω q t ( x t Ω , x t Ω ˉ = b ) = ∑ x t Ω ∑ x 0 Ω ∑ x 0 Ω ˉ q t ∣ 0 ( x t Ω , x t Ω ˉ = b ∣ x 0 Ω , x 0 Ω ˉ ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = ∑ x t Ω ∑ x 0 Ω ∑ x 0 Ω ˉ q t ∣ 0 ( x t Ω ∣ x 0 Ω ) q t ∣ 0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = ∑ x 0 Ω ∑ x 0 Ω ˉ q t ∣ 0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = ∑ x 0 Ω ˉ q t ∣ 0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω ˉ ) . \begin{aligned}
q_t(x_t^{\bar{\Omega}} = b) = \sum_{x_t^{\Omega}} q_t(x_t^{\Omega}, x_t^{\bar{\Omega}} = b) \\
&= \sum_{x_t^{\Omega}} \sum_{x_0^{\Omega}} \sum_{x_0^{\bar{\Omega}}} q_{t|0}(x_t^{\Omega}, x_t^{\bar{\Omega}} = b \mid x_0^{\Omega}, x_0^{\bar{\Omega}})q_0(x_0^{\Omega}, x_0^{\bar{\Omega}}) \\
&= \sum_{x_t^{\Omega}} \sum_{x_0^{\Omega}} \sum_{x_0^{\bar{\Omega}}} q_{t|0}(x_t^{\Omega} \mid x_0^{\Omega})q_{t|0}(x_t^{\bar{\Omega}} = b \mid x_0^{\bar{\Omega}})q_0(x_0^{\Omega}, x_0^{\bar{\Omega}}) \\
&= \sum_{x_0^{\Omega}} \sum_{x_0^{\bar{\Omega}}} q_{t|0}(x_t^{\bar{\Omega}} = b \mid x_0^{\bar{\Omega}})q_0(x_0^{\Omega}, x_0^{\bar{\Omega}}) \\
&= \sum_{x_0^{\bar{\Omega}}} q_{t|0}(x_t^{\bar{\Omega}} = b \mid x_0^{\bar{\Omega}})q_0(x_0^{\bar{\Omega}}).
\end{aligned} q t ( x t Ω ˉ = b ) = x t Ω ∑ q t ( x t Ω , x t Ω ˉ = b ) = x t Ω ∑ x 0 Ω ∑ x 0 Ω ˉ ∑ q t ∣0 ( x t Ω , x t Ω ˉ = b ∣ x 0 Ω , x 0 Ω ˉ ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = x t Ω ∑ x 0 Ω ∑ x 0 Ω ˉ ∑ q t ∣0 ( x t Ω ∣ x 0 Ω ) q t ∣0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = x 0 Ω ∑ x 0 Ω ˉ ∑ q t ∣0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = x 0 Ω ˉ ∑ q t ∣0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω ˉ ) .
Rewriting the above equation in matrix form, we have q t Ω ˉ = q 0 Ω ˉ P t ⊗ ∣ Ω ˉ ∣ q_t^{\bar{\Omega}} = q_0^{\bar{\Omega}}P_t^{\otimes|\bar{\Omega}|} q t Ω ˉ = q 0 Ω ˉ P t ⊗ ∣ Ω ˉ ∣ and thus q 0 Ω ˉ = q t Ω ˉ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ q_0^{\bar{\Omega}} = q_t^{\bar{\Omega}}(P_t^{-1})^{\otimes|\bar{\Omega}|} q 0 Ω ˉ = q t Ω ˉ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ , since P t P_t P t is the forward transition kernel and invertible.
Now, given a reference state x r e f x^{\mathrm{ref}} x ref , we denote S t ( x ) : = ∑ x Ω ∏ j = 1 L x s t ( z x ( j ) , z x ( j − 1 ) ) S_t(x) := \sum_{x^{\Omega}} \prod_{j=1}^{L_x} s_t(z_x^{(j)}, z_x^{(j-1)}) S t ( x ) := ∑ x Ω ∏ j = 1 L x s t ( z x ( j ) , z x ( j − 1 ) ) , then
S t ( b ) = ∑ x Ω ˉ ∏ j = 1 L b s t ( z b ( j ) , z b ( j − 1 ) ) = ∑ x Ω q t ( x Ω , x t Ω ˉ = b ) q t ( x r e f ) = q t ( x t Ω ˉ = b ) q t ( x r e f ) = ∑ x 0 Ω ˉ q t ∣ 0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω ˉ ) q t ( x r e f ) . \begin{aligned}
S_t(b) = \sum_{x^{\bar{\Omega}}} \prod_{j=1}^{L_b} s_t(z_b^{(j)}, z_b^{(j-1)}) \\
&= \sum_{x^{\Omega}} \frac{q_t(x^{\Omega}, x_t^{\bar{\Omega}} = b)}{q_t(x^{\mathrm{ref}})} \\
&= \frac{q_t(x_t^{\bar{\Omega}} = b)}{q_t(x^{\mathrm{ref}})} \\
&= \frac{\sum_{x_0^{\bar{\Omega}}}q_{t|0}(x_t^{\bar{\Omega}} = b \mid x_0^{\bar{\Omega}})q_0(x_0^{\bar{\Omega}})}{q_t(x^{\mathrm{ref}})}.
\end{aligned} S t ( b ) = x Ω ˉ ∑ j = 1 ∏ L b s t ( z b ( j ) , z b ( j − 1 ) ) = x Ω ∑ q t ( x ref ) q t ( x Ω , x t Ω ˉ = b ) = q t ( x ref ) q t ( x t Ω ˉ = b ) = q t ( x ref ) ∑ x 0 Ω ˉ q t ∣0 ( x t Ω ˉ = b ∣ x 0 Ω ˉ ) q 0 ( x 0 Ω ˉ ) .
Again, in matrix form, we can have S t = q t Ω ˉ q t ( x r e f ) = q 0 Ω ˉ P t ⊗ ∣ Ω ˉ ∣ q t ( x r e f ) S_t = \frac{q_t^{\bar{\Omega}}}{q_t(x^{\mathrm{ref}})} = \frac{q_0^{\bar{\Omega}}P_t^{\otimes|\bar{\Omega}|}}{q_t(x^{\mathrm{ref}})} S t = q t ( x ref ) q t Ω ˉ = q t ( x ref ) q 0 Ω ˉ P t ⊗ ∣ Ω ˉ ∣ , and thus S t ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ = q 0 Ω ˉ q t ( x r e f ) S_t(P_t^{-1})^{\otimes|\bar{\Omega}|} = \frac{q_0^{\bar{\Omega}}}{q_t(x^{\mathrm{ref}})} S t ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ = q t ( x ref ) q 0 Ω ˉ .
Now, for a given a ∈ A a \in A a ∈ A ,
q 0 ( x 0 Ω ˉ = a ) q t ( x r e f ) = ∑ x Ω ˉ S t ( x Ω ˉ ) [ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x Ω ˉ , a = ∑ x Ω ˉ [ ∑ x Ω ∏ j = 1 L x Ω ˉ s t ( z x Ω ˉ ( j ) , z x Ω ˉ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x Ω ˉ , a . \frac{q_0(x_0^{\bar{\Omega}} = a)}{q_t(x^{\mathrm{ref}})} = \sum_{x^{\bar{\Omega}}} S_t(x^{\bar{\Omega}})[(P_t^{-1})^{\otimes|\bar{\Omega}|}]_{x^{\bar{\Omega}},a} = \sum_{x^{\bar{\Omega}}} \left[\sum_{x^{\Omega}} \prod_{j=1}^{L_{x^{\bar{\Omega}}}}s_t(z_{x^{\bar{\Omega}}}^{(j)},z_{x^{\bar{\Omega}}}^{(j-1)})\right][(P_t^{-1})^{\otimes|\bar{\Omega}|}]_{x^{\bar{\Omega}},a}. q t ( x ref ) q 0 ( x 0 Ω ˉ = a ) = x Ω ˉ ∑ S t ( x Ω ˉ ) [( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x Ω ˉ , a = x Ω ˉ ∑ x Ω ∑ j = 1 ∏ L x Ω ˉ s t ( z x Ω ˉ ( j ) , z x Ω ˉ ( j − 1 ) ) [( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x Ω ˉ , a .
Eventually, we can conclude that
v ( a ) = q 0 ( x 0 Ω ˉ = a ∣ C ) v(a) = q_0(x_0^{\bar{\Omega}} = a \mid C) v ( a ) = q 0 ( x 0 Ω ˉ = a ∣ C )
q 0 ( x 0 Ω ˉ = a ) ∑ b ∈ A q 0 ( x 0 Ω ˉ = b ) = ∑ x Ω ˉ [ ∑ x 0 Ω ˉ ∏ j = 1 L x Ω ˉ s t ( z x Ω ˉ ( j ) , z x Ω ˉ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x 0 Ω ˉ , a ∑ b ∈ A ∑ x Ω ˉ [ ∑ x 0 Ω ˉ ∏ j = 1 L x Ω ˉ s t ( z x Ω ˉ ( j ) , z x Ω ˉ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x 0 Ω ˉ , b . \frac{q_0(x_0^{\bar{\Omega}}=a)}{\sum_{b\in A}q_0(x_0^{\bar{\Omega}}=b)}
=
\frac{\sum_{x^{\bar{\Omega}}}\left[\sum_{x_0^{\bar{\Omega}}}\prod_{j=1}^{L_{x^{\bar{\Omega}}}}s_t\left(z_{x^{\bar{\Omega}}}^{(j)},z_{x^{\bar{\Omega}}}^{(j-1)}\right)\right]\left[(P_t^{-1})^{\otimes|\bar{\Omega}|}\right]_{x_0^{\bar{\Omega}},a}}
{\sum_{b\in A}\sum_{x^{\bar{\Omega}}}\left[\sum_{x_0^{\bar{\Omega}}}\prod_{j=1}^{L_{x^{\bar{\Omega}}}}s_t\left(z_{x^{\bar{\Omega}}}^{(j)},z_{x^{\bar{\Omega}}}^{(j-1)}\right)\right]\left[(P_t^{-1})^{\otimes|\bar{\Omega}|}\right]_{x_0^{\bar{\Omega}},b}}. ∑ b ∈ A q 0 ( x 0 Ω ˉ = b ) q 0 ( x 0 Ω ˉ = a ) = ∑ b ∈ A ∑ x Ω ˉ [ ∑ x 0 Ω ˉ ∏ j = 1 L x Ω ˉ s t ( z x Ω ˉ ( j ) , z x Ω ˉ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x 0 Ω ˉ , b ∑ x Ω ˉ [ ∑ x 0 Ω ˉ ∏ j = 1 L x Ω ˉ s t ( z x Ω ˉ ( j ) , z x Ω ˉ ( j − 1 ) ) ] [ ( P t − 1 ) ⊗ ∣ Ω ˉ ∣ ] x 0 Ω ˉ , a .
Appendix XIV: Proof of Supporting Lemmas
Proof of Lemma VII.1
We begin with π ( x 0 Ω ) = ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) \pi(x_0^\Omega)=\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\sum_{x_0^{\bar{\Omega}}}\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}}) π ( x 0 Ω ) = ∏ i ∈ Ω ∖ { k } q T − t ∣0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) .
π ( x 0 Ω ) = ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ∏ j ∈ Ω ˉ q T − t ∣ 0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ ) \pi(x_0^\Omega)=\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\sum_{x_0^{\bar{\Omega}}}\prod_{j\in\bar{\Omega}}q_{T-t|0}(y^j|x_0^j)q_0(x_0^\Omega,x_0^{\bar{\Omega}}) π ( x 0 Ω ) = i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) x 0 Ω ˉ ∑ j ∈ Ω ˉ ∏ q T − t ∣0 ( y j ∣ x 0 j ) q 0 ( x 0 Ω , x 0 Ω ˉ )
= ( i ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ∑ x 0 Ω ˉ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ − U ( 1 S − 1 S e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) = ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ ∑ x 0 Ω ˉ ( 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) \begin{aligned}
&\overset{(i)}{=}\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\sum_{x_0^{\bar{\Omega}}}\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|-U}\left(\frac{1}{S}-\frac{1}{S}e^{-(T-t)}\right)^Uq_0(x_0^\Omega,x_0^{\bar{\Omega}})\\
&=\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\\
&\qquad\cdot\sum_{x_0^{\bar{\Omega}}}\left(\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\right)^Uq_0(x_0^\Omega,x_0^{\bar{\Omega}})
\end{aligned} = ( i ) i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) x 0 Ω ˉ ∑ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ − U ( S 1 − S 1 e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) = i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ x 0 Ω ˉ ∑ ( 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ )
= ( i i ) ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ [ q 0 ( x 0 Ω , y ) + ∑ x 0 Ω ˉ ≠ y ( 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) ] ( U ≥ 1 ) (30) \begin{aligned}
&\overset{(ii)}{=}\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\\
&\qquad\cdot\left[q_0(x_0^\Omega,y)+\sum_{x_0^{\bar{\Omega}}\ne y}\left(\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\right)^Uq_0(x_0^\Omega,x_0^{\bar{\Omega}})\right]\quad(U\ge1) \tag*{(30)}
\end{aligned} = ( ii ) i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ q 0 ( x 0 Ω , y ) + x 0 Ω ˉ = y ∑ ( 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) ( U ≥ 1 ) (30)
≤ ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ [ q 0 ( x 0 Ω , y ) + ∑ x 0 Ω ˉ ≠ y ( 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ) q 0 ( x 0 Ω , x 0 Ω ˉ ) ] = ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ [ q 0 ( x 0 Ω , y ) + 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ( q 0 ( x 0 Ω ) − q 0 ( x 0 Ω , y ) ) ] = ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω , y ) ⋅ [ 1 + 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ⋅ q 0 ( x 0 Ω ) − q 0 ( x 0 Ω , y ) q 0 ( x 0 Ω , y ) ] \begin{aligned}
&\le\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\\
&\qquad\cdot\left[q_0(x_0^\Omega,y)+\sum_{x_0^{\bar{\Omega}}\ne y}\left(\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\right)q_0(x_0^\Omega,x_0^{\bar{\Omega}})\right]\\
&=\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\\
&\qquad\cdot\left[q_0(x_0^\Omega,y)+\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\left(q_0(x_0^\Omega)-q_0(x_0^\Omega,y)\right)\right]\\
&=\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\prod_{i\in\Omega\setminus\{k\}}q_{T-t|0}(x^i|x_0^i)q_0(x_0^\Omega,y) \\
&\cdot\left[1+\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\cdot\frac{q_0(x_0^\Omega)-q_0(x_0^\Omega,y)}{q_0(x_0^\Omega,y)}\right]
\end{aligned} ≤ i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ q 0 ( x 0 Ω , y ) + x 0 Ω ˉ = y ∑ ( 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ) q 0 ( x 0 Ω , x 0 Ω ˉ ) = i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ ⋅ [ q 0 ( x 0 Ω , y ) + 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ( q 0 ( x 0 Ω ) − q 0 ( x 0 Ω , y ) ) ] = ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ i ∈ Ω ∖ { k } ∏ q T − t ∣0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω , y ) ⋅ [ 1 + 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ⋅ q 0 ( x 0 Ω , y ) q 0 ( x 0 Ω ) − q 0 ( x 0 Ω , y ) ]
( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ π t r u e ( x 0 Ω ) [ 1 + 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ⋅ q 0 ( x 0 Ω ) − q 0 ( x 0 Ω , y ) q 0 ( x 0 Ω , y ) ] = ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ π t r u e ( x 0 Ω ) [ 1 + 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ( 1 q 0 ( y ∣ x 0 Ω ) − 1 ) ] . (31) \begin{aligned}
\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\pi_{\mathrm{true}}(x_0^\Omega)\left[1+\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\cdot\frac{q_0(x_0^\Omega)-q_0(x_0^\Omega,y)}{q_0(x_0^\Omega,y)}\right] \\
&=\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\pi_{\mathrm{true}}(x_0^\Omega)\left[1+\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\left(\frac{1}{q_0(y\mid x_0^\Omega)}-1\right)\right]. \tag*{(31)}
\end{aligned} ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ π true ( x 0 Ω ) [ 1 + 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ⋅ q 0 ( x 0 Ω , y ) q 0 ( x 0 Ω ) − q 0 ( x 0 Ω , y ) ] = ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ π true ( x 0 Ω ) [ 1 + 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ( q 0 ( y ∣ x 0 Ω ) 1 − 1 ) ] . (31)
Here, for ( i ) (i) ( i ) , ∣ Ω ˉ ∣ |\bar{\Omega}| ∣ Ω ˉ ∣ refers to the size of the observed set Ω ˉ \bar{\Omega} Ω ˉ and U U U refers to the number of unmatched tokens between y y y and x 0 Ω ˉ x_0^{\bar{\Omega}} x 0 Ω ˉ . For ( i i ) (ii) ( ii ) , we extract the case x 0 Ω ˉ = y x_0^{\bar{\Omega}}=y x 0 Ω ˉ = y , and thus U U U in the remaining terms is at least 1. ( i i i ) (iii) ( iii ) holds since we have π t r u e ( x 0 Ω ) : = ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω , x 0 Ω ˉ = y ) \pi_{\mathrm{true}}(x_0^\Omega):=\prod_{i\in\Omega\setminus\{k\}}q_{T-t\mid0}(x^i\mid x^i_0)q_0(x_0^\Omega,x_0^{\bar{\Omega}}=y) π true ( x 0 Ω ) := ∏ i ∈ Ω ∖ { k } q T − t ∣ 0 ( x i ∣ x 0 i ) q 0 ( x 0 Ω , x 0 Ω ˉ = y ) .
With Theorem IV.2, we can immediately have
π ( x 0 Ω ) ≤ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ [ 1 + min { 1 , T − t } ( 1 γ − 1 ) ] π t r u e ( x 0 Ω ) ≤ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ 1 γ π t r u e ( x 0 Ω ) , \begin{aligned}
\pi(x_0^\Omega)\leq\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\left[1+\min\{1,T-t\}\left(\frac{1}{\gamma}-1\right)\right]\pi_{\mathrm{true}}(x_0^\Omega) \\
&\leq\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\frac{1}{\gamma}\pi_{\mathrm{true}}(x_0^\Omega),
\end{aligned} π ( x 0 Ω ) ≤ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ [ 1 + min { 1 , T − t } ( γ 1 − 1 ) ] π true ( x 0 Ω ) ≤ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ γ 1 π true ( x 0 Ω ) ,
meanwhile, from (29) with ( 1 − e − ( T − t ) 1 + ( S − 1 ) e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) \left(\frac{1-e^{-(T-t)}}{1+(S-1)e^{-(T-t)}}\right)^Uq_0(x_0^\Omega,x_0^{\bar{\Omega}}) ( 1 + ( S − 1 ) e − ( T − t ) 1 − e − ( T − t ) ) U q 0 ( x 0 Ω , x 0 Ω ˉ ) nonnegative,
π ( x 0 Ω ) ≥ ( 1 S + S − 1 S e − ( T − t ) ) ∣ Ω ˉ ∣ π t r u e ( x 0 Ω ) . \pi(x_0^\Omega)\geq\left(\frac{1}{S}+\frac{S-1}{S}e^{-(T-t)}\right)^{|\bar{\Omega}|}\pi_{\mathrm{true}}(x_0^\Omega). π ( x 0 Ω ) ≥ ( S 1 + S S − 1 e − ( T − t ) ) ∣ Ω ˉ ∣ π true ( x 0 Ω ) .
The proof is now complete.
Proof of Theorem VIII.1
First, we rewrite the distribution q t ( x Ω ∣ C ) q_t(x^\Omega\mid C) q t ( x Ω ∣ C ) as follows:
q t ( x Ω ∣ C ) = ∑ a ∈ A q t ( x Ω , x 0 Ω ˉ = a ∣ C ) = ∑ a ∈ A q t ( x Ω ∣ x 0 Ω ˉ = a , C ) q 0 ( x 0 Ω ˉ = a ∣ C ) \begin{aligned}
q_t(x^\Omega\mid C)=\sum_{a\in A}q_t(x^\Omega,x_0^{\bar{\Omega}}=a\mid C) \\
&=\sum_{a\in A}q_t(x^\Omega\mid x_0^{\bar{\Omega}}=a,C)q_0(x_0^{\bar{\Omega}}=a\mid C)
\end{aligned} q t ( x Ω ∣ C ) = a ∈ A ∑ q t ( x Ω , x 0 Ω ˉ = a ∣ C ) = a ∈ A ∑ q t ( x Ω ∣ x 0 Ω ˉ = a , C ) q 0 ( x 0 Ω ˉ = a ∣ C )
= ( i ) ∑ a ∈ A q t ( x Ω ∣ x 0 Ω ˉ = a ) q 0 ( x 0 Ω ˉ = a ∣ C ) = ∑ a ∈ A v ( a ) q t ( x Ω ∣ x 0 Ω ˉ = a ) , \begin{aligned}
\overset{(i)}{=}\sum_{a\in A}q_t(x^\Omega\mid x_0^{\bar{\Omega}}=a)q_0(x_0^{\bar{\Omega}}=a\mid C) \\
&=\sum_{a\in A}v(a)q_t(x^\Omega\mid x_0^{\bar{\Omega}}=a),
\end{aligned} = ( i ) a ∈ A ∑ q t ( x Ω ∣ x 0 Ω ˉ = a ) q 0 ( x 0 Ω ˉ = a ∣ C ) = a ∈ A ∑ v ( a ) q t ( x Ω ∣ x 0 Ω ˉ = a ) ,
where ( i ) (i) ( i ) holds since { x 0 : x 0 Ω ˉ = a } ⊆ C \{x_0:x_0^{\bar{\Omega}}=a\}\subseteq C { x 0 : x 0 Ω ˉ = a } ⊆ C for every a ∈ A a\in A a ∈ A .
Then recall that p T − δ R H C ( x Ω ∣ C ) = ∑ a ∈ A w ( a ) p T − δ H C ( x Ω ∣ x 0 Ω ˉ = a ) p^{\mathrm{RHC}}_{T-\delta}(x^\Omega\mid C)=\sum_{a\in A}w(a)p^{\mathrm{HC}}_{T-\delta}(x^\Omega\mid x_0^{\bar{\Omega}}=a) p T − δ RHC ( x Ω ∣ C ) = ∑ a ∈ A w ( a ) p T − δ HC ( x Ω ∣ x 0 Ω ˉ = a ) , and we have
KL ( q δ Ω ∥ p T − δ ∣ C Ω , R H C ) = ∑ x Ω ∈ [ S ] ∣ Ω ∣ q δ ( x Ω ∣ C ) log q δ ( x Ω ∣ C ) p T − δ R H C ( x Ω ∣ C ) = ∑ x Ω ∈ [ S ] ∣ Ω ∣ ∑ a ∈ A v ( a ) q δ ( x Ω ∣ x 0 Ω ˉ = a ) log ∑ b ∈ A v ( b ) q δ ( x Ω ∣ x 0 Ω ˉ = b ) ∑ b ∈ A w ( b ) p T − δ H C ( x Ω ∣ x 0 Ω ˉ = b ) \begin{aligned}
\operatorname{KL}(q_\delta^\Omega\|p^{\Omega,\mathrm{RHC}}_{T-\delta\mid C})=\sum_{x^\Omega\in[S]^{|\Omega|}}q_\delta(x^\Omega\mid C)\log\frac{q_\delta(x^\Omega\mid C)}{p^{\mathrm{RHC}}_{T-\delta}(x^\Omega\mid C)} \\
&=\sum_{x^\Omega\in[S]^{|\Omega|}}\sum_{a\in A}v(a)q_\delta(x^\Omega\mid x_0^{\bar{\Omega}}=a)\log\frac{\sum_{b\in A}v(b)q_\delta(x^\Omega\mid x_0^{\bar{\Omega}}=b)}{\sum_{b\in A}w(b)p^{\mathrm{HC}}_{T-\delta}(x^\Omega\mid x_0^{\bar{\Omega}}=b)}
\end{aligned} KL ( q δ Ω ∥ p T − δ ∣ C Ω , RHC ) = x Ω ∈ [ S ] ∣Ω∣ ∑ q δ ( x Ω ∣ C ) log p T − δ RHC ( x Ω ∣ C ) q δ ( x Ω ∣ C ) = x Ω ∈ [ S ] ∣Ω∣ ∑ a ∈ A ∑ v ( a ) q δ ( x Ω ∣ x 0 Ω ˉ = a ) log ∑ b ∈ A w ( b ) p T − δ HC ( x Ω ∣ x 0 Ω ˉ = b ) ∑ b ∈ A v ( b ) q δ ( x Ω ∣ x 0 Ω ˉ = b )
≤ ( i i ) ∑ a ∈ A ∑ x Ω ∈ [ S ] ∣ Ω ∣ v ( a ) q δ ( x Ω ∣ x 0 Ω ˉ = a ) ( log v ( a ) w ( a ) + log q δ ( x Ω ∣ x 0 Ω ˉ = a ) p T − δ Ω , H C ( x Ω ∣ x 0 Ω ˉ = a ) ) = ( i i i ) ∑ a ∈ A v ( a ) log v ( a ) w ( a ) + ∑ a ∈ A v ( a ) ∑ x Ω ∈ [ S ] ∣ Ω ∣ q δ ( x Ω ∣ x 0 Ω ˉ = a ) log q δ ( x Ω ∣ x 0 Ω ˉ = a ) p T − δ Ω , H C ( x Ω ∣ x 0 Ω ˉ = a ) = KL ( v ∥ w ) + ∑ a ∈ A v ( a ) KL ( q δ Ω ∥ p T − δ ∣ a Ω , H C ) = KL ( v ∥ w ) + E a ∼ v [ KL ( q δ Ω ∥ p T − δ ∣ a Ω , H C ) ] , \begin{aligned}
\overset{(ii)}{\leq}\ &\sum_{a\in A}\sum_{x^\Omega\in[S]^{|\Omega|}}v(a)q_\delta(x^\Omega\mid x_0^{\bar\Omega}=a)\left(\log\frac{v(a)}{w(a)}+\log\frac{q_\delta(x^\Omega\mid x_0^{\bar\Omega}=a)}{p^{\Omega,\mathrm{HC}}_{T-\delta}(x^\Omega\mid x_0^{\bar\Omega}=a)}\right)\\
\overset{(iii)}{=}\ &\sum_{a\in A}v(a)\log\frac{v(a)}{w(a)}+\sum_{a\in A}v(a)\sum_{x^\Omega\in[S]^{|\Omega|}}q_\delta(x^\Omega\mid x_0^{\bar\Omega}=a)\log\frac{q_\delta(x^\Omega\mid x_0^{\bar\Omega}=a)}{p^{\Omega,\mathrm{HC}}_{T-\delta}(x^\Omega\mid x_0^{\bar\Omega}=a)}\\
=\ &\operatorname{KL}(v\|w)+\sum_{a\in A}v(a)\operatorname{KL}\left(q_\delta^\Omega\middle\|p^{\Omega,\mathrm{HC}}_{T-\delta\mid a}\right)\\
=\ &\operatorname{KL}(v\|w)+\mathbb{E}_{a\sim v}\left[\operatorname{KL}\left(q_\delta^\Omega\middle\|p^{\Omega,\mathrm{HC}}_{T-\delta\mid a}\right)\right],
\end{aligned} ≤ ( ii ) = ( iii ) = = a ∈ A ∑ x Ω ∈ [ S ] ∣Ω∣ ∑ v ( a ) q δ ( x Ω ∣ x 0 Ω ˉ = a ) ( log w ( a ) v ( a ) + log p T − δ Ω , HC ( x Ω ∣ x 0 Ω ˉ = a ) q δ ( x Ω ∣ x 0 Ω ˉ = a ) ) a ∈ A ∑ v ( a ) log w ( a ) v ( a ) + a ∈ A ∑ v ( a ) x Ω ∈ [ S ] ∣Ω∣ ∑ q δ ( x Ω ∣ x 0 Ω ˉ = a ) log p T − δ Ω , HC ( x Ω ∣ x 0 Ω ˉ = a ) q δ ( x Ω ∣ x 0 Ω ˉ = a ) KL ( v ∥ w ) + a ∈ A ∑ v ( a ) KL ( q δ Ω p T − δ ∣ a Ω , HC ) KL ( v ∥ w ) + E a ∼ v [ KL ( q δ Ω p T − δ ∣ a Ω , HC ) ] ,
where ( i i ) (ii) ( ii ) is from the log-sum inequality over the assignments a , b ∈ A a,b\in A a , b ∈ A , and the following ( i i i ) (iii) ( iii ) holds since ∑ x Ω ∈ [ S ] ∣ Ω ∣ q δ ( x Ω ∣ x 0 Ω ˉ = a ) = 1 \sum_{x^\Omega\in[S]^{|\Omega|}}q_\delta(x^\Omega\mid x_0^{\bar\Omega}=a)=1 ∑ x Ω ∈ [ S ] ∣Ω∣ q δ ( x Ω ∣ x 0 Ω ˉ = a ) = 1 . Now, we complete the proof.