What Gets Unmasked First? Trajectory Analysis of Diffusion Models for Graph-to-Text Generation

Qing Wang1, Jacob Devasier, Chengkai Li
The University of Texas at Arlington
{qxw5305, jacob.devasier}mavs.uta.edu?, cli@uta.edu


Abstract

We present the first systematic study of masked diffusion language models (MDLMs) for graph-to-text generation. We analyze MDLM generation trajectories—the order in which tokens are unmasked during iterative decoding—and find that, unlike autoregressive LLMs which generate text linearly, MDLMs naturally prioritize entities first, followed by relational and function words, with structural tokens resolved last. We further identify a previously undocumented failure mode of supervised fine-tuning: SFT disrupts this strategy by prematurely anchoring structural sentence-ending tokens early in the decoding trajectory, effectively fixing the output length which can lead to omitted or hallucinated information. To address this, we propose \(\lambda\)-scaled structural decoding, a training-free inference-time modification that downweights structural token confidence and recovers +9.4 BLEU-4. Finally, we introduce Graph-LLaDA, which integrates a Graph Transformer encoder into LLaDA’s decoding process to explicitly incorporate relational graph structure. Cross-dataset evaluation on LAGRANGE reveals that previous baselines overfit to dataset-specific patterns, while LLM- and MDLM-based approaches generalize significantly better.

1 Introduction↩︎

Knowledge graphs encode information as structured networks of entities and their relations. Generating natural language descriptions from such graphs requires a model to interpret this relational structure and render it as fluent, faithful text. Autoregressive large language models (LLMs) have demonstrated strong performance across many natural language generation tasks and have become the dominant approach for graph-to-text generation, achieving strong results on benchmarks such as WebNLG [1][3]. However, text-only autoregressive models struggle to fully capture the structure of graphs, often leading to information omission or hallucination [4].

These models generate text one token at a time in a fixed left-to-right order, meaning they must commit to a linearization of the graph structure from the very first token, without the ability to revisit or revise earlier choices. Furthermore, prior work has shown that autoregressive LLMs frequently struggle with complex graph planning, triplet ordering, and factual grounding, especially when the number of graph triplets increases [5], [6]. Whether this sequential constraint is merely an inconvenience or a fundamental limitation for graph-to-text generation remains an open question.

Masked diffusion language models (MDLMs) [7], [8] offer a fundamentally different generation process. Rather than producing tokens sequentially, MDLMs such as LLaDA [9] and Dream-7B [10] begin with a fully masked sequence and iteratively unmask tokens over multiple refinement steps. Unlike autoregressive models, MDLMs select which positions to resolve at each step, making irreversible commitments in a flexible, content-dependent order rather than a predetermined sequential one. This flexibility is intuitively well aligned with how humans approach the same task: when translating a graph into text, we typically first identifies which entities are present and how they relate before composing full sentences. In principle, an MDLM could mirror this process, first establishing which entities to mention and then filling in the relational language connecting them.

Despite this potential, MDLMs remain largely unexplored in the graph-to-text generation literature. It is unclear how they construct text from graph-structured inputs, whether their generation trajectories exhibit systematic patterns, and whether they offer practical advantages over autoregressive LLMs on this task. To address these questions, we apply LLaDA to the WebNLG [11] and LAGRANGE [12] benchmarks and conduct a detailed analysis of its generation trajectory—the order in which tokens are predicted over the course of iterative unmasking. Our analysis reveals that LLaDA follows a clear content-first generation pattern: it first predicts entity tokens, then resolves relational and function-word tokens together, and finally commits structural tokens such as punctuation. The entity-first behavior replicates across both benchmarks and on another MDLM, Dream-7B [10], indicating that it is a property of masked diffusion rather than of a particular backbone or benchmark.

Our trajectory analysis also uncovers a previously unidentified failure mode: after supervised fine-tuning (SFT), LLaDA tends to commit structural tokens, such as the period token (“.”) and the end-of-sentence (EOS) token, very early in the denoising process, before substantive content has been resolved. To mitigate premature structural commitment, we propose \(\lambda\)-scaled structural decoding, a training-free inference-time modification that downweights the confidence of structural tokens, delaying their commitment and substantially improving generation quality.

Motivated by these findings, we propose Graph-LLaDA, which augments the LLaDA generation pipeline with a Graph Transformer [13] encoder that explicitly incorporates graph structure into the diffusion process. The encoder produces structure-aware node representations that are injected into LLaDA’s input sequence alongside the linearized triples, enabling the model to attend to both the relational topology and the lexical content of the input graph.

Our main contributions are as follows:

  • We present the first systematic study of masked diffusion language models (MDLMs) for graph-to-text generation and establish strong baselines on WebNLG and LAGRANGE.

  • We conduct a detailed analysis of MDLM generation trajectories on graph-to-text, characterizing the order in which the denoising process commits to entities, relations, and structural tokens.

  • We identify premature structural commitment as a failure mode of SFT-trained MDLMs and propose \(\lambda\)-scaled structural decoding to mitigate it.

  • We propose Graph-LLaDA, which augments the LLaDA generation pipeline with a Graph Transformer encoder that explicitly incorporates graph structure into the decoding process.

2 Methodology↩︎

We first define the graph-to-text generation task, then present our methodology for analyzing the generation trajectories of masked diffusion models, propose a decoding modification motivated by this analysis, and finally describe how we extend LLaDA with a graph encoder to incorporate structural information from knowledge graphs.

2.1 Problem Formulation↩︎

Graph-to-text generation is the task of automatically generating fluent and faithful natural language text from structured graph inputs. Formally, each triple \(t = (s_i, r_i, o_i)\) represents a directed edge in the graph, where \(s_i\), \(r_i\), \(o_i\) denote the subject, relation, and object, respectively. A set of such triples \(S = \{t_1,t_2,\ldots,t_n\}\) forms a directed graph that encodes structured factual knowledge. Given \(S\) as input, the goal is to generate a natural language description \(D\) that accurately and completely conveys the semantic information encoded in the graph.

Figure 1: An overview of Graph-LLaDA. Trained and frozen modules of our two-stage training process are indicated along with their associated stage.

2.2 Generation Trajectory Analysis↩︎

LLaDA is a masked diffusion language model that generates text by iteratively unmasking a fully masked sequence, treating mask tokens as the noise to be removed. At each denoising step, the model predicts all masked positions simultaneously using bidirectional attention and commits the most confident predictions. This process repeats until every token is unmasked. A central question of this work is whether masked diffusion models follow systematic patterns when constructing text from graph-structured inputs—specifically, whether core elements such as entities and relations are resolved at particular stages of the diffusion trajectory. To answer this question, we record the complete unmasking trajectory of LLaDA and Dream-7B during inference.

2.2.0.1 Trajectory Recording.

We record each committed token along with its position in the output sequence and the denoising timestep at which it was committed. We normalize each token’s commitment timestep to \([0, 1]\), where \(0\) corresponds to the first denoising step and \(1\) to the final step. This allows trajectory statistics to be compared across generations of different lengths and across models that use different numbers of denoising steps. The resulting trajectory provides a complete temporal record of the generation process, capturing when each output token was decided.

2.2.0.2 Token Classification.

To analyze whether the generation trajectory reflects the structure of the input graph, each generated token is classified into one of five categories: entity, relation, stop word, punctuation, or other. Entity and relation tokens correspond to content derived from the input triples, stop words capture function words, punctuation captures sentence-level delimiters, and the other category contains tokens — typically connective phrasing or paraphrastic content — that could not be mapped into any of the preceding categories. In practice, other tokens constitute a small minority of all generated tokens and are heavily concentrated at the end of the trajectory, so they do not undermine our analysis (see Table 1). We apply a priority-based procedure in which each token is tested against a sequence of classification criteria, and the first match determines its label. Details of this procedure can be found in Appendix 7.2.

2.3 \(\lambda\)-Scaled Structural Decoding↩︎

A second observation from our trajectory analysis motivates an inference-time intervention. After supervised fine-tuning, LLaDA shifts toward committing structural tokens—sentence-terminating punctuation, end-of-sequence, and end-of-turn markers—very early in the denoising process, before the bulk of the content has been resolved. This premature commitment effectively fixes the length and segmentation of the output in advance, producing generations that are either padded with redundant content or truncated. We defer the supporting quantitative evidence—first-period timing, content-before-period proportions, and per-\(\lambda\) recovery curves—to Section 4.1.0.1. To the best of our knowledge, this failure mode has not been previously identified, and we view its diagnosis as one of the main contributions of this work: it isolates a concrete mechanism by which SFT can degrade generation quality in MDLMs despite improving token-level accuracy.

To address this premature structural commitment, we introduce a simple inference-time modification that downweights the confidence of structural tokens. At each denoising step, before tokens are committed, we multiply the predicted confidence of any structural token by a scalar \(\lambda \in (0, 1]\). This causes structural tokens to require higher raw confidence before being selected (or rather it requires that all other tokens have sufficiently low confidence), delaying their commitment relative to content tokens and reducing the risk of premature sequence termination. A potential alternative is using an MDLM supporting flexible-length generation [14]; however, their approach requires significant additional training, while our modification requires no retraining and can be applied to any MDLM at inference time.

2.4 Graph-Augmented LLaDA↩︎

Orthogonal to the decoding modification above, we also investigate whether explicitly encoding graph structure improves generation quality. We propose Graph-LLaDA, which extends LLaDA with a Graph Neural Network (GNN) encoder that provides structural information during generation. We chose LLaDA as the base model because it was the first masked diffusion language model scaled to competitive performance with many autoregressive models. Dream-7B [10] was another candidate for this work; however, as shown in Table 3, its zero-shot performance was significantly lower than LLaDA. LLaDA 2 [15] was also considered but was not chosen due to its significantly larger compute requirements. Our approach does not place any constraints on model architecture or selection and can in principle be extended to other MDLM backbones.

As illustrated in Figure 1, the model receives two parallel representations of the input knowledge graph: a graph stream that encodes relational topology through learned embeddings, and a text stream that includes the raw triples as linearized text for lexical grounding. This dual representation allows the GNN to capture graph structure while ensuring that entities and relations remain directly accessible to the language model.

2.4.0.1 Graph Encoding.

The input triples are parsed into a directed graph where entities are nodes and relations are edges. Node and edge features are initialized by tokenizing each entity or relation with LLaDA’s tokenizer, retrieving the corresponding pretrained token embeddings, and mean-pooling over the token sequence. This produces a semantically meaningful initialization grounded in LLaDA’s representations. Since LLaDA’s embedding dimension is larger than what the GNN requires, a learned linear projection maps the pooled embeddings down to the GNN’s hidden size \(d_g\). Edge features are derived the same way through an analogous projection.

The resulting graph is then encoded using a Graph Transformer, which updates node representations by attending over their neighborhoods. Crucially, edge features participate in this attention mechanism: relation embeddings are used to modulate the attention weights between connected nodes, so that the model can distinguish, for example, a birthPlace edge from a nationality edge between the same pair of entities. This is particularly important for graph-to-text generation, where relations often correspond to the main verbs or predicative content of the target sentence, and faithfully preserving their semantics is essential for factual accuracy. Finally, a learned MLP projects the GNN’s output embeddings back into LLaDA’s embedding space, so that the structure-aware node representations are semantically aligned and dimensionally consistent with LLaDA’s token embeddings and can be directly inserted into the sequence.

2.4.0.2 Embedding Injection.

The text prompt includes a <graph> marker that expands into a sequence of \(N\) placeholder tokens (one per node in the input graph), delimited by <g_start> and <g_end> markers. After tokenization, each placeholder position is replaced with the corresponding projected node embedding from the GNN.

We adopt this per-node injection strategy, following GraphGPT [16], rather than compressing the entire graph into a single token as in G-Retriever [17]. Per-node tokens allow the model to attend to individual entity representations, which is particularly important for multi-hop reasoning over knowledge graphs. Recent work [18] has confirmed that single-token pooling creates an information bottleneck and that increasing the number of graph tokens recovers the lost performance.

The prompt additionally contains the raw triples rendered as bracketed tuples (e.g., [subject, relation, object]), providing lexical grounding alongside the structural signal. During both training and inference, the graph token positions are never masked by LLaDA’s forward diffusion process and are excluded from the diffusion loss.

2.4.0.3 Training.

We follow a two-stage training strategy similar to the approach of [16]. In stage (1), we freeze the LLM and train only the GNN and the projection layers. This forces the projector to learn a mapping from the GNN’s output space into LLaDA’s embedding space, aligning the two representations. In stage (2), we freeze the GNN and train the projection layer alongside LoRA [19] weights on the LLM, allowing the language model to adapt to the graph-conditioned inputs.

3 Experimental Setup↩︎

3.0.0.1 Datasets.

We evaluate on two benchmarks. Our primary benchmark is WebNLG v3.0 [1], a manually curated dataset for graph-to-text generation. Each input consists of 1–7 RDF triples extracted from DBpedia, paired with one or more reference descriptions. We train on the WebNLG training split and evaluate on the English test set, which contains 1,779 input triple sets. All results are reported using multi-reference evaluation. Although WebNLG is a high-quality benchmark, its ontology coverage is limited and its graph structures are relatively constrained [4].

To assess generalization beyond WebNLG’s domain, we additionally evaluate on LAGRANGE [12], a large-scale graph-text aligned corpus created by aligning Wikipedia sentences with Wikidata. Models are not trained on LAGRANGE; we evaluate using either zero-shot inference or models already trained on WebNLG. The one exception is GAP, which we also train on LAGRANGE to examine whether its strong in-domain performance transfers out of domain on WebNLG.

3.0.0.2 Models.

We adopt LLaDA-8B as our primary model to investigate how masked diffusion language models handle entities and relational structures in graph-to-text generation. For MDLMs, we also evaluate Dream-7B [10] in a zero-shot setting. For autoregressive baselines, we evaluate Qwen3-8B [20], LLaMA 3.1-8B [21], and LLaMA 3.3-70B under both zero-shot and LoRA-based supervised fine-tuning. For supervised baselines, we compare against GAP [22], JointGT [23], and MGSA [24]. We retrain GAP ourselves to ensure a fair comparison; results for the remaining supervised baselines are taken from published numbers.

3.0.0.3 Implementation.

All models are fine-tuned with LoRA; full hyperparameters and training details are provided in Appendix 7.1. Graph-LLaDA uses a Graph Transformer encoder followed by a 2-layer MLP projector, trained in two stages as described in Section 2.4. Unless otherwise noted, we apply \(\lambda\)-scaled structural decoding with \(\lambda=0.25\) at inference time. This is chosen as it offered the best performance, as shown in Table 2. We use a shared prompt template across all models without per-model tuning (Appendix 7.3).

3.1 Evaluation.↩︎

3.1.0.1 Metrics.

We report four automatic metrics: BLEU [25], METEOR [26], ROUGE-L [27], and CIDEr [24]. These capture lexical overlap with the reference descriptions but cannot fully reflect semantic quality or detect hallucinations, so we complement them with two preference-based evaluations.

3.1.0.2 Human Evaluation.

First, we conduct a human evaluation on a random sample of 50 WebNLG outputs from our best model. Two English speakers independently rate each output on three dimensions: fluency, hallucinations, and omissions. The samples are uniformly distributed by KG size to allow comparison across input complexity. We additionally ask Claude Sonnet 4.6 and GPT 5.5 to perform the same annotation for comparison with the human judgments. Results are reported in Table 12.

3.1.0.3 LLM-Judge Evaluation.

Second, we scale the preference evaluation across all analyzed models using an LLM judge in a pairwise head-to-head setup. For each model pair, the judge evaluates 1,000 outputs drawn from both WebNLG and LAGRANGE, rating each comparison on the same three dimensions. We use two judges: Gemma 4 31B [28] and Qwen 3.6 [29]. To mitigate positional bias, we evaluate each pair twice with the output order reversed, with preference retained only when the judge’s decision is consistent across both orderings, and inconsistent judgments are treated as ties.

The resulting pairwise preferences are converted into Elo ratings. We compute separate Elo ratings for fluency, hallucinations, and omissions. Because Elo scores can be sensitive to the order in which comparisons are processed, we repeat the computation over 1,000 random permutations of the comparison sequence and report the mean score across permutations.

a
b

Figure 2: Trajectory comparison of LLaMA and LLaDA. An expanded comparison can be found in Figure 4. LLaMA’s trajectory is taken from its generation where it “unmasks” tokens left-to-right.. a — LLaMA, b — LLaDA

4 Results and Analysis↩︎

We organize our results around three questions: how MDLMs construct text from graph-structured inputs, whether their generation trajectories exhibit exploitable patterns, and whether they offer practical advantages over autoregressive LLMs. We first analyze the generation trajectories of LLaDA and Dream-7B, showing that \(\lambda\)-scaled structural decoding corrects the premature structural commitment induced by SFT. We then benchmark Graph-LLaDA against autoregressive and supervised baselines under both in-domain and out-of-domain conditions. Finally, we complement automatic metrics with human and LLM-based preference evaluations, which reveal that surface-level overlap metrics substantially understate MDLM generation quality and obscure meaningful differences in hallucination and omission rates.

4.1 Analysis of Generation Trajectories↩︎

Table 1: Token trajectory by token type. Trend refers to the slope of a line fit to its histogram density estimate.
LLaMA 3.3 LLaDA
2-3 (lr)4-5 Type Mean Slope Mean Slope
Entity 0.474 \(-0.308\) 0.385 \(-1.352\)
Stop 0.501 \(-0.023\) 0.576 \(+0.933\)
Relation 0.508 \(-0.105\) 0.597 \(+1.181\)
Punct. 0.609 \(+1.309\) 0.631 \(+1.591\)
Other 0.656 \(+1.876\) 0.633 \(+1.620\)

4.1.0.1 MDLMs exhibit strong entity-first generation.

As shown in Table 1 (and visually in Figure 2), ARLMs left-to-right decoding process naturally follows the compositional structure of the target text, such as entity–relation–entity, with punctuation and boundary markers typically produced near the end of the sequence. In contrast, MDLMs are not constrained by this sequential decoding order. On both WebNLG and LAGRANGE, LLaDA and Dream consistently exhibit an entity-first unmasking pattern. Rather than constructing the output strictly from left to right, they preferentially recover high-confidence entity tokens at early denoising steps, and subsequently fill the remaining masked positions with relational, punctuation, and auxiliary content.

4.1.0.2 SFT induces premature structural commitment.

When compared with base LLaDA (Table 8), SFT predicts structural tokens significantly earlier in the generation trajectory. Because the structure tokens are predicted early, it effectively fixes the output length before filling the content tokens. This leads to omitted or hallucinated outputs if the prematurely fixed length is too short or long. After SFT, the proportion of content tokens generated before the first period drop sharply from 60.9% to 17.8% and the mean and median first period tokens are generated significantly earlier (0.720 \(\rightarrow\) 0.385). Furthermore, the number of period tokens doubles from 1.22 to 2.44 (due to the misplaced initial period) and the effective length of the sentence drops from 21.8 tokens to 20.3.

Table 2: Effect of \(\lambda\)-scaled structural decoding across configurations on WebNLG. Lower \(\lambda\) delays the commitment of structural tokens. \(\lambda=1.0\) corresponds to standard confidence-based remasking.
\({\lambda}\) BLEU-4 METEOR ROUGE_L CIDEr
1.00 44.3 41.5 63.5 2.17
0.75 45.6 41.8 65.1 2.38
0.50 47.2 42.1 66.2 2.56
0.25 45.0 41.8 65.5 2.41
1.00 31.5 28.7 57.8 2.22
0.50 49.1 37.6 65.5 2.86
0.25 48.8 42.3 67.2 3.09
0.50 51.8 39.5 67.7 3.03
0.25 55.4 43.4 69.5 3.37

4.1.0.3 \(\lambda\)-scaled structural decoding mitigates premature commitment.

Applying \(\lambda\)-scaled structural decoding effectively mitigates the tendency of SFT-tuned LLaDA to generate structural tokens at earlier stages of the trajectory by delaying structural commitment during generation. Table 7 illustrates how \(\lambda\) controls the generation order of period and EOS tokens during unmasking. As \(\lambda\) decreases, both period and EOS tokens are predicted progressively later in the generation trajectory. Meanwhile, the proportion of content tokens generated before the first period rises from 17.8% to 89.9%, indicating that lower \(\lambda\) values encourage the model to resolve semantic content before committing to sentence structure.

Interestingly, as shown in Figure 4, the generation trajectory of \(\lambda\)-scaled MDLMs more closely resembles the sentence generation behavior observed in LLaMA models. This is largely because MDLMs use structure tokens as anchors for later content. Without them, MDLMs are less confident in predicting sparser and longer-range outputs.

Table 3: Main results on the WebNLG English test set. Best results within each model category are bolded. \(\dagger\) denotes published results from [24]. \(\ddagger\) denotes our reproduced results. \(_{\text{ZS}}\) indicates zero-shot.
Model BLEU-4 METEOR ROUGE_L CIDEr
GAP (lagrange)\(\ddagger\) 23.3 28.9 40.8 1.78
MGSA\(^\dagger\) 66.5 46.9 76.5
GAP (WebNLG)\(\ddagger\) 66.3 46.9 76.3 4.65
JointGT\(^\dagger\) 65.9 47.2 76.1
LLaMA 3.1-8B \(_{\text{ZS}}\) 44.5 37.9 61.2 2.64
Qwen3-8B \(_{\text{ZS}}\) 48.4 40.5 63.8 2.90
LLaMA 3.3-70B \(_{\text{ZS}}\) 51.4 41.0 66.9 3.15
LLaMA 3.1-8B \(_{\text{SFT}}\) 57.2 42.6 68.8 3.38
LLaMA 3.3-70B \(_{\text{SFT}}\) 57.6 42.8 69.4 3.44
Dream-7B \(_{\text{ZS}}\) 23.4 25.5 56.9 2.23
LLaDA-8B \(_{\text{ZS}}\) 42.2 36.1 62.3 2.50
LLaDA-8B \(_{\text{SFT}}\) 44.3 41.5 63.5 2.17
LLaDA-8B \(_{\text{SFT},\,\lambda{=}0.5}\) 53.7 43.4 68.6 3.18
Graph-LLaDA \(_{\lambda{=}0.25}\) 55.4 43.4 69.5 3.37
Table 4: Results on the LAGRANGE test set. Best results among the evaluated models are bolded.
Model BLEU-4 METEOR ROUGE_L CIDEr
GAP (WebNLG) 13.0 22.7 37.8 1.41
Graph-LLaDA \(_{\lambda{=}1.0}\) 17.0 23.2 46.7 1.88
LLaMA 3.1-8B 18.7 24.7 45.8 2.01
LLaDA-8B \(_{\lambda{=}1.0}\) 15.4 24.9 42.1 1.44
LLaDA-8B \(_{\lambda{=}0.5}\) 16.8 25.0 43.5 1.54
LLaMA 3.3-70B 18.8 25.0 45.4 1.97
Graph-LLaDA \(_{\lambda{=}0.5}\) 19.4 25.0 46.5 2.01

4.2 Benchmark Comparison↩︎

In the zero-shot setting, LLaDA-8B underperforms every autoregressive baseline including LLaMA 3.1-8B and Qwen3-8B2. SFT alone is insufficient to close this gap: LLaDA-8B\(_\text{SFT}\) without \(\lambda\)-scaling loses 9.4 BLEU-4 points relative to the \(\lambda\)-scaled variant (Table 3), directly implicating the premature structural commitment failure mode identified above. With both SFT and \(\lambda=0.50\), LLaDA-8B reaches performance comparable to LLaMA 3.1-8B\(_\text{SFT}\). Published supervised baselines substantially outperform all LLM/MDLM models in-domain (best: 66.5 vs. BLEU-4).

4.2.0.1 Out-of-Domain Generalization.

Out-of-domain evaluation on LAGRANGE (Table 4) reveals a markedly different picture. GAP exhibits the largest performance degradation across all models and is consistently outperformed by every LLM and MDLM. This indicates that small encoder-decoder supervised models learn dataset-specific stylistic patterns rather than generalizable graph-to-text mappings. LLM and MDLM models retain substantially more of their in-domain performance out of domain, confirming that scale and pretraining generalize more robustly than task-specific supervision alone.

4.3 Human and LLM Evaluation↩︎

Both humans and LLMs consistently assign high scores (\(\geq\)​90%) to Graph-LLaDA on fluency, omissions, and hallucinations (Table 12), indicating that its generation quality is considerably stronger than automatic metrics alone suggest. Agreement between annotators is very high, though Cohen’s \(\kappa\) remains low for most categories (Table 13). This is expected under skewed score distributions: when nearly all outputs receive the highest rating on a given dimension, there is little disagreement for \(\kappa\) to measure, and the statistic collapses toward zero even when annotators are in near-perfect agreement. The high raw agreement rates are therefore more informative than \(\kappa\) in this setting.

4.3.0.1 Pairwise LLM-based Evaluation.

As shown in Tables 10 and 9, GAP ranks among the worst-performing models under both in- and out-of-domain conditions despite its strong automatic metric scores, owing to hallucinations and omissions that lexical overlap metrics do not penalize. This further shows the inadequacy of surface-level metrics for graph-to-text evaluation.

In-domain, the dominant factor is model size: LLaMA 3.3-70B leads by a wide margin over all 8B-class models except Graph-LLaDA, which closes most of that gap despite being nearly nine times smaller. This suggests that the graph encoder provides a meaningful quality signal that partially compensates for the capacity disadvantage. Out-of-domain, the ranking shifts in favor of MDLMs. LLaDA-8B and Graph-LLaDA take the top two spots, with LLaMA 3.3-70B falling to third—a reversal that points to stronger generalization in masked diffusion models relative to their autoregressive counterparts, at least on this distribution. LLaDA’s advantage is concentrated in fluency, while Graph-LLaDA’s edge over base LLaDA is more pronounced on omissions, consistent with the graph encoder improving coverage of input triples.

5 Related Work↩︎

5.0.0.1 Decoding Dynamics and Structural Token Behavior in MDLMs.

Several concurrent works have observed related pathologies in MDLM decoding. [30] note that LLaDA’s SFT instruction model commits EOS tokens early before meaningful content is resolved, framing this as a length-control problem. [31] identify an “EOS Trap” in which EOS confidence is systematically higher than non-EOS tokens, and address it via block-wise decoding constraints. More broadly, [32] and [33] propose training-free decoding strategies to mitigate premature commitment of unstable or high-uncertainty tokens across the trajectory. Our work differs in attributing the failure mode specifically to SFT, characterizing it via concrete trajectory statistics, and proposing \(\lambda\)-scaled structural decoding as a targeted fix.

5.0.0.2 Graph-to-text generation.

Early systems relied on dedicated graph encoders [34], but [2] showed that linearizing triples and fine-tuning BART [35] or T5 [36] reaches state-of-the-art on WebNLG without graph-specific inductive bias—at the cost of brittleness to meaning-preserving input permutations [37]. A second line of work re-injects graph structure into a pretrained backbone: JointGT [23] adds structure-aware aggregation and graph–text alignment objectives, GAP [22] uses only graph-aware attention masks, and MGSA [24] combines entity- and word-level structural attention. More recently, LAGRANGE [12] introduces a much larger Wikipedia/Wikidata-aligned KG–text corpus, constructed under a cyclic-equivalence criterion to improve graph–text faithfulness; we use it in Section 4.1.0.1 as an out-of-distribution test set to probe whether WebNLG-trained models actually generalize. Our work follows the structural-encoding tradition but is the first to pair it with a masked diffusion decoder.

5.0.0.3 Masked diffusion language models.

Discrete diffusion for text traces back to D3PM [7], whose absorbing-state variant connects diffusion to masked language modeling. MDLM [8] reduces the objective to a mixture of masked-LM losses competitive with autoregressive perplexity, and SEDD [38] surpasses GPT-2 via a score-entropy reformulation. LLaDA [9] is the first 8B masked diffusion LLM trained from scratch and is competitive with LLaMA-3 8B on instruction following; Dream-7B [10] reaches comparable performance by initializing from an autoregressive checkpoint with context-adaptive noise rescheduling. Closer to our setting, [14] propose any-order, flexible-length masked diffusion as a training-time fix for fixed-length generation; our \(\lambda\)-scaled structural decoding addresses a related symptom—premature commitment to length-fixing structural tokens—but requires no retraining, and we return to this comparison in the conclusion as the natural principled alternative to our inference-time intervention.

5.0.0.4 Graph-augmented LLMs.

Several recent systems couple a GNN encoder with a pretrained autoregressive LLM. G-Retriever [17] extracts query-relevant subgraphs and feeds them to a frozen LLM via a single pooled graph token, while GraphGPT [16] uses a per-node sequence of graph tokens delimited by start/end markers; [18] show that G-Retriever’s single-token pooling creates an information bottleneck that more graph tokens recover. Graph-LLaDA inherits GraphGPT’s per-node injection pattern but combines it with a masked diffusion decoder. To the best of our knowledge, no prior work has paired an MDLM with a graph encoder for any task, and no discrete-diffusion language model of any kind has been applied to KG-to-text generation: Graph-LLaDA is novel on both axes.

6 Conclusion↩︎

We presented the first systematic study of masked diffusion language models for graph-to-text generation. By recording the full unmasking trajectories of LLaDA and Dream-7B on WebNLG and LAGRANGE, we showed that masked diffusion naturally adopts a content-first decoding order—entities first, then relations and function words, with structural tokens last—without any explicit decoding-order supervision.

In analyzing the same trajectories under supervised fine-tuning, we identified a previously undocumented failure mode of SFT-tuned MDLMs: premature commitment to sentence-ending tokens, which fixes output length and segmentation before substantive content has been resolved. We addressed this with \(\lambda\)-scaled structural decoding, a training-free inference-time fix that recovers up to \(+9.4\) BLEU-4. Building on these findings, we proposed Graph-LLaDA, which integrates a Graph Transformer encoder into LLaDA via a two-stage training pipeline. Under pairwise LLM-judge evaluation, Graph-LLaDA closes most of the in-domain gap to LLaMA 3.3-70B and ranks second out-of-domain on LAGRANGE—ahead of LLaMA 3.3.

Limitations↩︎

6.0.0.1 Single-run experiments.

Due to the large number of experiments run and the known computational inefficiencies of LLaDA, we only run our experiments a single time. Because LLaDA uses confidence-based generation, we expect outputs to remain consistent across runs and our prior experience supports this, though we did not validate it in this work.

6.0.0.2 Single MDLM backbone for SFT and \(\lambda\)-scaling.

Our SFT, \(\lambda\)-scaling, and Graph-LLaDA experiments all use LLaDA-8B as the backbone. While we replicate the entity-first trajectory finding on Dream-7B (Appendix 8.4), the SFT failure mode and the \(\lambda\)-scaling fix have only been validated on LLaDA, and we have not tested them on Dream-7B, LLaDA-MoE, or LLaDA 2. We expect the findings to generalize to other MDLMs but do not claim this is established.

6.0.0.3 Single-token-per-step decoding.

All experiments use single-token-per-step generation, since multi-token decoding degrades quality substantially in our setting. Combining \(\lambda\)-scaling with recent multi-token decoding strategies is left to future work.

6.0.0.4 English graph-to-text only.

Our evaluation is limited to two graph-to-text benchmarks (WebNLG and LAGRANGE) in English; we do not investigate multilingual generation or knowledge-graph question answering settings.

6.0.0.5 LLM-judge Elo bias.

The LLM-judge Elo evaluation, while controlled for positional bias and aggregated over many permutations, inherits whatever biases the judge models hold. We treat it as a complement to, not a replacement for, the (smaller) human evaluation.

6.0.0.6 Rule-based token classification.

Our token-classification procedure for trajectory analysis is rule-based and has a small residual other category that we exclude from the categorical means. This residual is concentrated late in the trajectory and is reported in Table 1.

7 Methodology Details↩︎

7.1 Implementation Details↩︎

For LLaDA SFT, we fine-tune with LoRA [19] (\(r=16\), \(\alpha=32\)) for 5 epochs using random-token masking. For Graph-LLaDA, the GNN encoder uses a Graph Transformer with a hidden dimension of 512 (See Table 5), and the projector is a 2-layer MLP. Stage 1 training (frozen LLaDA, GNN and projector only) runs for 5 epochs; Stage 2 (joint fine-tuning with attention-only LoRA) runs for 3 epochs. During inference, we use iterative unmasking with confidence-based token selection. Unless otherwise noted, we apply \(\lambda\) scaling (\(\lambda = 0.50\)) to structural tokens and set the generation length to 128 tokens. Qwen3-8B is evaluated with chain-of-thought reasoning enabled, as disabling it substantially degrades performance (BLEU-4 drops from 48.35 to 25.10).

All training and inference was done on nodes with 1x–8x H100 GPUs. Only LLaMA 3.3 required 2 or more GPUs, all LLaDA models can fit on a single H100. Claude Code, OpenAI Codex, and/or Github Copilot were used in the development of this work.

While masked diffusion models can generate multiple tokens per step, in this paper we study single-token generation only, as multi-token generation leads to significant performance degradation. Additionally, many recent works [39] have explored different strategies for improving multi-token generation, thus any findings related to standard multi-token generation may not be applicable to real-world implementations.

7.2 Token Classification Details↩︎

This section expands the priority-based token classification procedure summarized in Section 2. Each generated token is assigned to exactly one of five categories (entity, relation, stop word, punctuation, other) by the first matching rule.

7.2.0.1 Surface-form matching against the input triples.

For each triple, subject and object names are normalized (underscores replaced with spaces, parenthetical suffixes stripped) and augmented with common format variants (numeric comma formatting, date expansions). Predicate names are similarly normalized and split on camelCase and underscore boundaries into individual content words. A case-insensitive search over the decoded output text marks spans that match an entity or relation surface form, with entity matches taking priority over relation matches when spans overlap.

7.2.0.2 Linguistic classification with spaCy.

For tokens not resolved by surface-form matching, we apply spaCy-based (en_core_web_sm) linguistic classification. Tokens whose named-entity label falls within a standard set (person, org, gpe, date, etc.) are labeled as entities; proper nouns and numerals are also labeled as entities. Verbs are labeled as relations, and nouns and adjectives that fuzzy-match a relation content word are likewise labeled as relations. Punctuation tokens are identified by spaCy’s is_punct flag, and function words by is_stop or membership in a closed set of part-of-speech tags (det, adp, aux, pron, cconj, sconj, part).

7.2.0.3 Fallback lexicon.

As a final fallback, tokens still labeled as other are checked against a conservative manually-built lexicon of common relation realizations (e.g., married, band, city) and reclassified as relations if matched. End-of-sequence and end-of-turn special tokens are excluded from the analysis throughout.

7.3 Prompt Templates↩︎

We use a single instruction template across all models. The template is wrapped in each model’s chat format using tokenizer.apply_chat_template with add_generation_prompt=True. We deliberately did not tune prompts per model so that performance differences reflect model capability rather than prompt engineering.

7.3.0.1 Shared instruction (LLaDA zero-shot / SFT, LLaMA, Qwen).

The triples list is interpolated as one bullet per triple, using the WebNLG subject | predicate | object format verbatim.

You are given a set of knowledge graph triples. Generate a single natural-language sentence that describes the information in the triples.
Requirements:
- The sentence must be fully consistent with the triples.
- The sentence must cover all facts in the triples.
- The sentence must not add any facts not present in the triples.
- Only output the sentence and nothing else.
Triples:
{list_of_triples}

For Qwen3-8B the reasoning mode is disabled by appending /no_think after the rendered chat template, following the model’s documented switch [20]. LLaMA and Dream use the rendered template unchanged.

7.3.0.2 Graph-LLaDA.

For Graph-LLaDA the user message contains both a bracketed rendering of the triples (for lexical grounding) and a single <graph> marker whose embedding is replaced at the input-embedding layer by the projected GNN node sequence (Section 2.4). The expanded token stream the model actually sees is <g_start> <g_patch> ... <g_patch> <g_end>, with one <g_patch> per graph node.

You are given a knowledge graph. Generate a single natural-language sentence that describes the information in the graph.
Requirements:
- The sentence must be fully consistent with the graph.
- The sentence must cover all facts in the graph.
- The sentence must not add any facts not present in the graph.
- Reuse the entity and relation names from the triples when possible.
- Only output the sentence and nothing else.
Triples:
{list_of_triples}
Graph tokens: <graph>

8 Additional Results↩︎

Table 5: Performance comparison of different hidden dimension sizes for graph encoder.
Dimension BLEU-4 METEOR Brevity
256 50.30 38.54 0.885
512 53.61 41.18 1.012
1024 47.50 36.72 0.837
2048 47.94 36.90 0.858
4096 45.07 35.46 0.789

8.1 Ablation Studies↩︎

8.1.0.1 Stage 1 LoRA Configuration.

Table 5 reports the effect of GNN hidden dimension on Stage 1 performance (frozen LLaDA, 5 epochs). Performance is non-monotonic, peaking at dimension 512 (53.61 BLEU-4) and declining at higher dimensions. At 5 epochs, dimension 512 already matches dimension 256 trained for 8 epochs (53.56 BLEU-4). The gap widens with graph complexity: at 5 triples, dimension 512 leads by 7.34 BLEU-4. Larger dimensions (1024–4096) consistently underperform, likely because the high-dimensional GNN representations do not project effectively into LLaDA’s embedding space.

8.1.0.2 Stage 2 LoRA Configuration.

Starting from a dimension-512 Stage 1 model, we compare attention-only LoRA against all-linear LoRA for Stage 2 fine-tuning. Attention-only LoRA provides a modest gain (+0.52 BLEU-4 to 54.13), while all-linear LoRA slightly hurts overall performance (\(-\)​0.77 BLEU-4 to 52.84). The additional capacity from adapting MLP layers introduces instability on complex graphs: 7-triple BLEU-4 drops from 41.17 to 36.10. The WebNLG training set (35K examples) appears too small to benefit from the larger parameter budget of all-linear LoRA (21M vs 12.6M trainable parameters).

Table 6: BLEU-4 on the WebNLG English test set, broken down by the number of input triples. Spread is the difference between the best and worst per-bucket scores for each model and measures robustness to graph complexity. Best in each column is bolded.
Model 1 2 3 4 5 6 7 Spread
\(N\) per bucket 369 349 350 305 213 114 79
LLaDA-8B (zero-shot) 62.41 55.21 44.23 36.12 32.53 37.80 40.06 29.88
LLaMA 3.1-8B (zero-shot) 58.97 49.90 46.34 42.37 41.48 38.29 40.88 20.68
Qwen3-8B (zero-shot) 59.05 55.18 50.67 46.77 44.96 41.64 43.59 17.41
LLaMA 3.3-70B (zero-shot) 64.38 58.76 54.71 50.37 47.34 43.55 43.42 20.96
LLaDA-8B (SFT, \(\lambda{=}0.5\)) 63.65 57.14 54.19 52.62 51.94 50.83 50.17 13.48
Graph-LLaDA (\(\lambda{=}0.25\)) 68.42 60.30 58.04 55.78 51.76 47.70 51.70 16.72

8.2 Per-Triple Performance Breakdown↩︎

As shown in Table 6, BLEU-4 consistently decreases as the number of input triples increases across all models. The degradation is most pronounced for zero-shot LLaDA-8B, which drops sharply from 62.41 to 32.53, indicating its limited ability to handle larger graphs. SFT mitigates this: SFT LLaDA-8B achieves the smallest performance spread of 13.48 across triple counts. Graph-LLaDA (\(\lambda=0.25\)) obtains the best BLEU-4 scores in buckets 1–4 and 7, while maintaining a spread of 16.72, suggesting that the graph encoder improves both overall quality and robustness to graph complexity.

a
b
c

Figure 3: Token unmasking trajectory of MDLMs on a WebNLG sample with input triples (Bedford_Aerodrome, cityServed, Bedford_Autodrome) and (Bedford_Aerodrome , elevationAboveTheSeaLevel, 83.2104).. a — LLaDA: Bedford Aerodrome serves Bedford and has an elevation of 83.2104 meters above sea level., b — SFT-LLaDA: Bedford Aerodrome is located at an elevation of 83.2104 metres above sea level and it is served by the Bedford Autodrome., c — SFT-LLaDA (\(\lambda=0.25\)): Bedford Aerodrome serves the city of Bedford Autodrome and is 83.2104 metres above sea level.

Table 7: Timing analysis across different \(\lambda\) values, showing when punctuation and EOS tokens are unmasked relative to content tokens during generation.
\(lambda\) First "." step (mean) Content before first "." "." mean step EOS mean step
1.00 0.385 17.8% 0.522 0.344
0.75 0.414 37.6% 0.570 0.430
0.50 0.436 64.9% 0.636 0.579
0.25 0.607 89.9% 0.774 0.639

8.3 Trajectory Visualizations and Detailed Metrics↩︎

a
b
c
d
e
f

Figure 4: Trajectory comparison of classified token types for LLaDA and autoregressive models.. a — LLaMA, b — LLaDA, c — Dream-7B, d — LLaDA SFT, e — LLaDA SFT (\(\lambda=0.5\)), f — Graph-LLaDA (\(\lambda=0.5\))

Table 8: Comparison between Base LLaDA and SFT LLaDA across punctuation and generation metrics, showing when structural tokens (e.g., “.”, EOS, and EOT) are unmasked relative to content tokens in generation trajectories.
Metric LLaDA LLaDA(SFT) Delta
Mean First "." 0.720 0.385 -0.335
Median First "." 0.891 0.484 -0.407
Content Before "." 60.9% 17.8% -43.1%
Periods / Sample 1.22 2.44 +1.22
EOS / Sample 37.2 21.4 -15.8
Effective length 21.8 20.3 -1.5

To better understand why supervised fine-tuning yields smaller performance gains for LLaDA than for other models, we further analyze the graph-to-text generation process, as illustrated in Figure 4 and Figure 3. This subsection collects the trajectory figures and supporting tables that accompany the trajectory analysis of Section 4.1.0.1. Figure 4 shows aggregated generation-step distributions by token category across LLaMA, base LLaDA, SFT LLaDA, SFT LLaDA with \(\lambda\)-scaling, and Graph-LLaDA. Figure 3 provides a direct base-vs-SFT comparison. We quantify this phenomenon in Table 8. Tables 8 and 7 report the first-period and content-before-period statistics that underpin the SFT failure-mode discussion and the \(\lambda\)-scaling recovery curve.

8.4 Dream-7B Trajectory Analysis↩︎

We replicate the trajectory analysis on Dream-7B’s WebNLG predictions using the procedure of Section 2, with Dream’s own tokenizer. Mean unmasking steps are reported alongside LLaDA in Table 1; we summarize the comparison here.

8.4.0.1 The entity-first ordering generalizes.

Dream commits entities at mean step \(0.423\) with slope \(-0.90\), closely matching LLaDA’s \(0.385\) (\(-1.35\)) on WebNLG and \(0.427\) (\(-0.87\)) on LAGRANGE. Entities are clearly separated from every other category in both backbones, supporting the claim that content-first decoding is a property of masked diffusion rather than of any particular MDLM.

8.4.0.2 Fine-grained structural token ordering diverges.

In LLaDA, punctuation is the latest-committed category (mean \(0.631\)), producing a clean three-tier ordering (entities, relations/stop words, then punctuation). In Dream, punctuation (\(0.616\)) is interleaved with stop words (\(0.613\)) and slightly precedes relations (\(0.655\)), collapsing to a two-tier structure (entities, then everything else).

We do not interpret the Dream-vs-LLaDA divergence as evidence about which architecture is “correct”—it may instead reflect differences in pretraining objective, instruction tuning, or output-length calibration. We did not run Dream SFT or \(\lambda\)-scaling experiments and so cannot directly compare its post-SFT failure mode to LLaDA’s.

8.5 Generation Examples↩︎

Figure 5: Generation examples from WebNLG (Examples 1–2) and LAGRANGE (Example 3) comparing base LLaDA, SFT LLaDA, and Graph-LLaDA under varying \lambda settings.

Representative examples are shown in Figure 5. Base LLaDA tends to produce fluent outputs with few hallucinations but omits facts from the input graph. SFT alleviates omissions but can introduce repetition. Graph-LLaDA without \(\lambda\)-scaling is less stable in controlling output length, leading to truncated or hallucinated outputs in some cases. Graph-LLaDA with \(\lambda{=}0.25\) consistently produces fluent sentences that cover all facts in the input graph.

8.6 Pairwise LLM Win Rates↩︎

Table 9: Avg. Elo ratings and standard deviations on LAGRANGE across fluency, hallucination, and omission evaluation dimensions, using Gemma 4 and Qwen 3.6 as judges. Best results are bolded.
Model Avg. Elo Fluency Hallucination Omission Avg. Std
GAP (WebNLG) 1226 1089 1298 1292 33
GAP (LAGRANGE) 1457 1659 1302 1411 31
LLaMA 3.1-8B 1522 1460 1551 1555 30
Graph-LLaDA \(\lambda{=}1.0\) 1547 1576 1578 1487 31
LLaMA 3.3-70B 1572 1503 1588 1624 27
Graph-LLaDA \(\lambda{=}0.25\) 1581 1546 1592 1606 22
LLaDA-8B 1595 1667 1592 1526 27
Table 10: Elo ratings and standard deviations on WebNLG across fluency, hallucination, and omission evaluation dimensions, using Qwen 3.6 as judges. GAP are trained on LAGRANGE and evaluated on WebNLG. Best results are bolded.
Model Avg. Elo Fluency Hallucination Omission Avg. Std
GAP (LAGRANGE) 1325 1396 1275 1305 36
Graph-LLaDA \(\lambda{=}1.0\) 1412 1428 1440 1368 37
GAP (WebNLG) 1424 1413 1422 1437 34
LLaDA-8B \(\lambda{=}0.5\) 1489 1371 1540 1555 28
LLaMA 3.1-8B 1505 1484 1515 1516 31
LLaDA-8B 1513 1594 1500 1443 32
LLaDA-8B \(\lambda{=}1.0\) 1513 1451 1535 1554 28
Graph-LLaDA \(\lambda{=}0.25\) 1572 1601 1553 1562 27
LLaMA 3.3-70B 1605 1679 1564 1572 27

7pt

Table 11: Positional bias analysis across evaluation dimensions. Position-1 and Position-2 denote display order rather than fixed model identities.
Metric Gemma4 Qwen3.6
Fluency
Pos-1 Win (%) 52.47 51.80
Pos-2 Win (%) 39.08 31.49
Model Consistency (%) 73.47 59.58
Decisive Pair Preference (%) 18.88 24.15
Faithfulness
Pos-1 Win (%) 29.60 26.51
Pos-2 Win (%) 25.86 23.61
Model Consistency (%) 42.00 44.06
Decisive Pair Preference (%) 8.55 4.47
Coverage
Pos-1 Win (%) 42.17 36.73
Pos-2 Win (%) 22.94 26.70
Model Consistency (%) 42.86 51.48
Decisive Pair Preference (%) 22.98 11.60
Figure 6: Pairwise Win Rates for Graph-to-Text Generation on LAGRANGE Using Gemma 4-31B as Judge.
Figure 7: Pairwise Win Rates for Graph-to-Text Generation on LAGRANGE Using Qwen 3.6-35B as Judge.
Figure 8: Pairwise Win Rates for Graph-to-Text Generation on WebNLG Using Qwen 3.6-35B as Judge.

As shown in Figures 6, 7, and 8, GAP achieves competitive fluency under in-distribution conditions but is consistently outperformed by all other models on faithfulness and coverage—consistent with the automatic metric results discussed in Section 4.1.0.1. LLaDA similarly scores highly on fluency while tending to omit graph content, as illustrated in Figure 5.

Table 11 reveals that both Gemma 4 and Qwen 3.6 exhibit substantial positional bias, consistently favoring Position-1 responses across all evaluation dimensions, with the effect most pronounced for fluency. This bias persists after response-order swapping and is weakest for faithfulness, suggesting that more subjective dimensions are disproportionately susceptible to presentation-order effects. We mitigate this by retaining a preference only when the judge’s decision is consistent across both orderings, treating inconsistent judgments as ties (Section 2).

Table 12: Percentage of positive quality scores for Graph-LLaDA-generated sentences across human annotators, Claude Sonnet 4.6 and GPT 5.5 over the dimensions of fluency, omissions, and hallucinations.
Evaluator Fluency Omissions Hallucinations
Human-1 90% 92% 98%
Human-2 94% 94% 96%
Sonnet 4.6 100% 94% 94%
GPT-5.5 100% 100% 96%
Table 13: Inter-rater agreement and Cohen’s Kappa scores for fluency, omissions, and hallucination evaluations of Graph-LLaDA-generated sentences across human annotators, Sonnet 4.6 Sonnet 4.6, and GPT 5.5.
Dimension Agreement Cohen’s Kappa
Fluency
Human1 vs Sonnet 4.6 0.900 0.000
Human1 vs GPT 5.5 0.900 0.000
Sonnet 4.6 vs GPT 5.5 1.000 N/A
Human2 vs Sonnet 4.6 0.940 0.000
Human2 vs GPT 5.5 0.940 0.000
Sonnet 4.6 vs GPT 5.5 1.000 N/A
Omissions
Human1 vs Sonnet 4.6 0.960 0.728
Human1 vs GPT 5.5 0.920 0.000
Sonnet 4.6 vs GPT 5.5 0.920 0.000
Human2 vs Sonnet 4.6 0.940 0.370
Human2 vs GPT 5.5 0.940 0.000
Sonnet 4.6 vs GPT 5.5 0.960 0.000
Hallucinations
Human1 vs Sonnet 4.6 0.920 -0.031
Human1 vs GPT 5.5 0.940 -0.027
Sonnet 4.6 vs GPT 5.5 0.980 0.790
Human2 vs Sonnet 4.6 0.900 -0.050
Human2 vs GPT 5.5 0.920 -0.042
Sonnet 4.6 vs GPT 5.5 0.980 0.790

9 Extended Discussion↩︎

9.1 Alternatives to \(\lambda\)-Scaled Structural Decoding↩︎

Before settling on \(\lambda\)-scaled structural decoding, we considered three other inference-time interventions for the early-structural-commitment problem. We summarize them here for completeness; each is straightforward to implement, but none addressed the root cause as cleanly as \(\lambda\)-scaling.

9.1.0.1 Confidence-threshold remasking.

A natural baseline—and the strategy underlying Mask-Predict [40]—is to refuse to commit any token whose confidence falls below a fixed threshold, regardless of whether it is in the top-\(k\) for the step. This does not address our failure mode: by construction, the structural tokens we want to delay are exactly the tokens whose confidence is highest early in the trajectory (Table 8). A confidence threshold thus has no effect on premature period/EOS placement unless it is set so high that legitimate content tokens are also rejected, in which case the trajectory grinds to a halt. \(\lambda\)-scaling instead directly downweights structural-token confidence so they no longer dominate the top-\(k\) ranking.

9.1.0.2 Position-conditional commitment.

A second alternative is to forbid commitment of structural tokens until some fraction of positions have been unmasked—e.g., “never commit a period while more than \(32\) positions remain masked.” This works in principle but has the same flavor of arbitrariness one usually wants to avoid: the threshold is in absolute positions, so it does not generalize across generation lengths (a threshold tuned for \(\mathit{gl}=128\) is wrong for \(\mathit{gl}=32\) or \(\mathit{gl}=256\)), and the boundary between “allowed” and “forbidden” is a step function rather than a soft penalty. \(\lambda\)-scaling replaces this with a single dimensionless scalar that scales naturally across generation lengths.

9.1.0.3 Entropy-aware commitment.

A third alternative is to commit a structural token contingent on low entropy of the model’s distribution over non-structural alternatives at that position—intuitively, ’placing a period only when the model is confident there is nothing else to say. We initially found this attractive because it appears principled, but on reflection, it is operationally close to \(\lambda\)-scaling: in both cases, structural tokens require a higher implicit bar to be committed, and the bar is satisfied roughly when the rest of the sequence has been resolved. The entropy formulation adds a per-position entropy computation and an extra hyperparameter (the entropy threshold) without changing the qualitative effect. We therefore prefer the simpler \(\lambda\) formulation.

Together these alternatives clarify the design space and motivate \(\lambda\)-scaling as the minimal intervention that targets the root cause—inflated confidence on a small set of structural tokens—without depending on absolute positions or auxiliary entropy estimates. We do not claim \(\lambda\)-scaling is optimal (cf.the conclusion), only that it is the simplest fix in this family that we found to work reliably.

9.2 Future Work↩︎

We view \(\lambda\)-scaled structural decoding as a diagnosis-driven workaround rather than a final solution to premature structural commitment. Its optimal value depends on training quality, it requires a per-checkpoint sweep, and it modifies inference rather than fixing the underlying calibration of the SFT-tuned model.

More principled alternatives include training-time fixes such as flexible-length MDLMs [14], calibration losses targeting structural tokens specifically, or learned remasking schedules that adapt to the unmasking trajectory. Investigating these, and extending the SFT failure-mode analysis to other MDLMs (Dream-7B, LLaDA-MoE, LLaDA 2)—we have only confirmed the base-model entity-first pattern on Dream—are the most natural follow-ups to this work.

References↩︎

[1]
T. Castro Ferreira et al., “The 2020 bilingual, bi-directional WebNLG+ shared task: Overview and evaluation results (WebNLG+ 2020),” in Proceedings of the 3rd international workshop on natural language generation from the semantic web (WebNLG+), Dec. 2020, pp. 55–76, [Online]. Available: https://aclanthology.org/2020.webnlg-1.7/.
[2]
L. F. R. Ribeiro, M. Schmitt, H. Schütze, and I. Gurevych, “Investigating pretrained language models for graph-to-text generation,” in Proceedings of the 3rd workshop on natural language processing for conversational AI, 2021, pp. 211–227, [Online]. Available: https://aclanthology.org/2021.nlp4convai-1.20/.
[3]
J. He, Y. Yang, W. Long, D. Xiong, V. Gutierrez Basulto, and J. Z. Pan, “Evaluating and improving graph to text generation with large language models,” in Proceedings of the 2025 conference of the nations of the americas chapter of the association for computational linguistics: Human language technologies, 2025, pp. 10219–10244, [Online]. Available: https://aclanthology.org/2025.naacl-long.513/.
[4]
X. Shi, Z. Zhu, Z. Zhang, and C. Li, “Hallucination mitigation in natural language generation from large-scale open-domain knowledge graphs,” in Proceedings of the 2023 conference on empirical methods in natural language processing, Dec. 2023, pp. 12506–12521, doi: 10.18653/v1/2023.emnlp-main.770.
[5]
S. Yuan and M. Faerber, “Evaluating generative models for graph-to-text generation,” in Proceedings of the 14th international conference on recent advances in natural language processing, Sep. 2023, pp. 1256–1264, [Online]. Available: https://aclanthology.org/2023.ranlp-1.133/.
[6]
J. He, Y. Yang, W. Long, D. Xiong, V. Gutierrez Basulto, and J. Z. Pan, “Evaluating and improving graph to text generation with large language models,” in Proceedings of the 2025 conference of the nations of the americas chapter of the association for computational linguistics: Human language technologies (volume 1: Long papers), Apr. 2025, pp. 10219–10244, doi: 10.18653/v1/2025.naacl-long.513.
[7]
J. Austin, D. D. Johnson, J. Ho, D. Tarlow, and R. van den Berg, “Structured denoising diffusion models in discrete state-spaces,” in Proceedings of the 35th international conference on neural information processing systems, 2021.
[8]
S. S. Sahoo et al., “Simple and effective masked diffusion language models,” in Advances in neural information processing systems, 2024, [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2024/hash/eb0b13cc515724ab8015bc978fdde0ad-Abstract-Conference.html.
[9]
S. Nie et al., “Large language diffusion models,” Advances in Neural Information Processing Systems, vol. 38, pp. 50608–50646, 2026.
[10]
J. Ye et al., “Dream 7b: Diffusion large language models,” arXiv preprint arXiv:2508.15487, 2025.
[11]
C. Gardent, A. Shimorina, S. Narayan, and L. Perez-Beltrachini, “Creating training corpora for NLG micro-planners,” in Proceedings of the 55th annual meeting of the association for computational linguistics (volume 1: Long papers), Jul. 2017, pp. 179–188, doi: 10.18653/v1/P17-1017.
[12]
A. Mousavi et al., “Construction of paired knowledge graph - text datasets informed by cyclic evaluation,” in Proceedings of the 2024 joint international conference on computational linguistics, language resources and evaluation (LREC-COLING 2024), May 2024, pp. 3782–3803, [Online]. Available: https://aclanthology.org/2024.lrec-main.335/.
[13]
S. Yun, M. Jeong, R. Kim, J. Kang, and H. J. Kim, “Graph transformer networks,” in Proceedings of the 33rd international conference on neural information processing systems, Red Hook, NY, USA: Curran Associates Inc., 2019.
[14]
J. Kim et al., “Any-order flexible length masked diffusion,” arXiv preprint arXiv:2509.01025, 2025.
[15]
T. Bie et al., “LLaDA2.0: Scaling up diffusion language models to 100B.” 2025, [Online]. Available: https://arxiv.org/abs/2512.15745.
[16]
J. Tang et al., “Graphgpt: Graph instruction tuning for large language models,” in Proceedings of the 47th international ACM SIGIR conference on research and development in information retrieval, 2024, pp. 491–500.
[17]
X. He et al., “G-retriever: Retrieval-augmented generation for textual graph understanding and question answering,” in Advances in neural information processing systems, 2024, vol. 37, pp. 132876–132907, doi: 10.52202/079017-4224.
[18]
A. Grover, L. Giaretta, R. Bourgerie, and S. Girdzijauskas, “Is one token all it takes? Graph pooling tokens for LLM-based GraphQA,” arXiv preprint arXiv:2604.00342, 2026.
[19]
E. J. Hu et al., “Lora: Low-rank adaptation of large language models.” Iclr, vol. 1, no. 2, p. 3, 2022.
[20]
Q. Team, “Qwen3 technical report.” 2025, [Online]. Available: https://arxiv.org/abs/2505.09388.
[21]
A. Grattafiori et al., “The llama 3 herd of models,” arXiv preprint arXiv:2407.21783, 2024.
[22]
A. Colas, M. Alvandipour, and D. Z. Wang, GAP: A graph-aware language model framework for knowledge graph-to-text generation,” in Proceedings of the 29th international conference on computational linguistics, Oct. 2022, pp. 5755–5769, [Online]. Available: https://aclanthology.org/2022.coling-1.506/.
[23]
P. Ke et al., JointGT: Graph-text joint representation learning for text generation from knowledge graphs,” in Findings of the association for computational linguistics: ACL-IJCNLP 2021, Aug. 2021, pp. 2526–2538, doi: 10.18653/v1/2021.findings-acl.223.
[24]
S. Wang, C. Zhang, and N. Zhang, “Mgsa: Multi-granularity graph structure attention for knowledge graph-to-text generation,” in 2024 12th international conference on information systems and computing technology (ISCTech), 2024, pp. 1–5.
[25]
K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “BLEU: A method for automatic evaluation of machine translation,” in Proceedings of the 40th annual meeting on association for computational linguistics, 2002, pp. 311–318, doi: 10.3115/1073083.1073135.
[26]
A. Lavie and A. Agarwal, METEOR: An automatic metric for MT evaluation with high levels of correlation with human judgments,” in Proceedings of the second workshop on statistical machine translation, Jun. 2007, pp. 228–231, [Online]. Available: https://aclanthology.org/W07-0734/.
[27]
C.-Y. Lin, ROUGE: A package for automatic evaluation of summaries,” in Text summarization branches out, Jul. 2004, pp. 74–81, [Online]. Available: https://aclanthology.org/W04-1013/.
[28]
Google Team, Google DeepMind Blog“Gemma 4: Byte for byte, the most capable open models.” https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4, 2026.
[29]
Qwen Team, Qwen3.6-35B-A3B: Agentic coding power, now open to all.” 2026, [Online]. Available: https://qwen.ai/blog?id=qwen3.6-35b-a3b.
[30]
J. Kim, S. Choi, Y. Jo, M. Lee, and M. Seo, “Early decisions matter: Proximity bias and initial trajectory shaping in non-autoregressive diffusion language models.” 2026, [Online]. Available: https://arxiv.org/abs/2604.10567.
[31]
J. Yang, G. Chen, X. Hu, and J. Shao, “Taming masked diffusion language models via consistency trajectory reinforcement learning with fewer decoding step.” 2025, [Online]. Available: https://arxiv.org/abs/2509.23924.
[32]
Y. Wu and J. Huang, “Stability-weighted decoding for diffusion language models.” 2026, [Online]. Available: https://arxiv.org/abs/2604.17068.
[33]
Y. Shu, Y. Tian, C. Xu, Y. Wang, and H. Chen, “Deferred commitment decoding for diffusion language models.” 2026, [Online]. Available: https://arxiv.org/abs/2601.02076.
[34]
R. Koncel-Kedziorski, D. Bekal, Y. Luan, M. Lapata, and H. Hajishirzi, “Text generation from knowledge graphs with graph transformers,” in Proceedings of the 2019 conference of the north american chapter of the association for computational linguistics: Human language technologies, 2019, pp. 2284–2293, [Online]. Available: https://aclanthology.org/N19-1238/.
[35]
M. Lewis et al., BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension,” in Proceedings of the 58th annual meeting of the association for computational linguistics, Jul. 2020, pp. 7871–7880, doi: 10.18653/v1/2020.acl-main.703.
[36]
C. Raffel et al., “Exploring the limits of transfer learning with a unified text-to-text transformer,” J. Mach. Learn. Res., vol. 21, no. 1, Jan. 2020, [Online]. Available: https://www.jmlr.org/papers/volume21/20-074/20-074.pdf.
[37]
A. M. Hoyle, A. Marasović, and N. A. Smith, “Promoting graph awareness in linearized graph-to-text generation,” in Findings of the association for computational linguistics: ACL-IJCNLP 2021, 2021, pp. 944–956, [Online]. Available: https://aclanthology.org/2021.findings-acl.82/.
[38]
A. Lou, C. Meng, and S. Ermon, “Discrete diffusion modeling by estimating the ratios of the data distribution,” in International conference on machine learning, 2024, [Online]. Available: https://proceedings.mlr.press/v235/lou24a.html.
[39]
L. Zhang et al., “A survey on parallel text generation: From parallel decoding to diffusion language models,” arXiv preprint arXiv:2508.08712, 2025.
[40]
M. Ghazvininejad, O. Levy, Y. Liu, and L. Zettlemoyer, “Mask-predict: Parallel decoding of conditional masked language models,” in Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), Nov. 2019, pp. 6112–6121, doi: 10.18653/v1/D19-1633.

  1. Equal contribution authors↩︎

  2. We focus subsequent discussion on LLaMA 3.1-8B as the primary autoregressive baseline, as Qwen3-8B’s reasoning-oriented training makes standard LoRA fine-tuning difficult.↩︎