Skip to content

DeMTS: Modeling denoising trajectories as multivariate time series to detect hallucinations in diffusion language modelsDeMTS: Denoising Trajectories as Multivariate Time Series for Hallucination Detection in Diffusion Language Models

Paper Tracker· arXiv:2608.14632· Xin Zhang, Yili Wang, Yue Tan, Xin He, Yanyu Qian, Yixin Liu, Yi Chang, Shirui Pan, Xin Wang·Indexed by this site · 2026-10-04· Originally publishedAlignment

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

DeMTS detects hallucinations with latent-variable time series; LLaDA/Dream average AUROC across three benchmarks is 87.3%/87.4%.

Questions
Hallucination cues in diffusion language models may appear in the token-step trajectories of denoising. Existing detection often compresses along the time or token dimension, which the authors argue misses inconsistent convergence and cross-token fault propagation.
Methods
DeMTS first performs trajectory-preserving T2V, condensing the entropy trajectories at positions into K more stable latent variables; then DMTM uses inter-variable attention enhanced with denoising progress and intra-variable temporal attention, with an MLP outputting the hallucination probability. The training loss is a binary classification term plus magnitude and direction preservation terms.
Experiments and results
Two backbones, three QA tasks, lengths 64/128, DeMTS average AUROC is 87.3% (LLaDA) and 87.4% (Dream). Cross-task average 73.5% (Table 3, backbone not specified); its TriviaQA group H-QA column is 82.2%, and DynHD in the same column is 85.5%.
Limitations and future work
The paper does not write limitations or future work. Experiments cover two D-LLMs, three QA benchmarks, and lengths 64/128; labels come from Qwen3-8B or rule matching. Agreement with humans, number of repetitions, and statistical tests are not reported, and Figure 4 does not give runtime numbers.
Experimental setupLLaDA-8B-Instruct、Dream-7B-Instruct · TriviaQA、HotpotQA et al. · AUROC
Evaluated models
LLaDA-8B-InstructDream-7B-Instruct
Benchmarks
TriviaQAHotpotQACommonsenseQA
Metrics
AUROC
AI summaryFor hallucination detection in diffusion large language models (D-LLMs), the researchers propose the DeMTS framework, which models denoising trajectories as multivariate time series over learnable latent variables, capturing both inter-variable dependencies and temporal information through a trajectory-preserving token-to-variable assignment module and dynamic multivariate time series modeling. Experiments on two D-LLM backbones and three benchmarks show that DeMTS outperforms existing hallucination detection methods while maintaining strong robustness, efficiency, and cross-task transferability.

For hallucination detection in diffusion large language models (D-LLMs), the researchers propose the DeMTS framework, which models denoising trajectories as multivariate time series over learnable latent variables, capturing both inter-variable dependencies and temporal information through a trajectory-preserving token-to-variable assignment module and dynamic multivariate time series modeling. Experiments on two D-LLM backbones and three benchmarks show that DeMTS outperforms existing hallucination detection methods while maintaining strong robustness, efficiency, and cross-task transferability.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing methods compress denoising trajectories along a single dimension; DeMTS builds them into latent-variable multivariate time series to detect hallucinations.

    D-LLM hallucination detection that compresses denoising trajectories along a single temporal or token dimension loses clues in the token-step two-dimensional structure.

    • Scenario: D-LLMs generate text via iterative denoising, and fluent outputs may still contain factual errors or unsupported content. The authors argue that looking only at prediction uncertainty of output tokens is often insufficient, because clues may appear in denoising as uncertainty resurgences or inconsistent refinement across tokens.
    • Existing shortcomings: One line of work selects or reweights along diffusion steps (Chang et al. 2025; Weng et al. 2026); another compresses along the token dimension, using denoising dynamics of indicative tokens (Qian et al. 2026). The authors argue both compress one dimension first, potentially missing inconsistent convergence and cross-token fault propagation.
    • Observation: The authors distinguish two patterns in Fig. 1. In later stages of hallucinated answers, uncertainties of different tokens can converge to markedly different levels; unstable or erroneous tokens can also drive entropy trajectories of context-related tokens to deviate together. The figure caption marks inconsistent convergence window and propagation window.
    • Approach: They propose DeMTS, which writes denoising trajectories as a multivariate time series over learnable latent variables. T2V gathers token signals with unstable semantic identity into stable variables while preserving local dynamics; DMTM then jointly models inter-variable dependencies and intra-variable temporal evolution.
    • Detection setting: Inputs are uncertainty trajectories H and context embedding trajectories E; the task text also mentions generated answers. yn=1 indicates factual errors or unsupported content, yn=0 indicates factual answers. Detection uses token entropy and context embeddings during denoising. The paper does not use terms such as black-box.
  2. What related research exists?

    Related work mainly covers D-LLM trajectory detection and multivariate time series; the difference lies in stable latent variables and the two-dimensional structure.

    The main text divides related work into D-LLM hallucination detection and multivariate time series; the experiments additionally use output-level and representation-level detectors as baselines.

    D-LLM hallucination detection

    • Step-level evidence: The main text classifies Chang et al. 2025, Hemmat et al. 2026, and Zhao, Zhao, and Yu 2026 as selecting or reweighting informative denoising steps. Appendix A.1 states that TraceDet selects sub-trajectories, and HIVE uses hidden evidence from intermediate states for verification. The introduction also places Weng et al. 2026 in the step-level evidence line.
    • Dynamic trajectories: Qian et al. 2026 models the evolution of anomalous tokens during denoising. The appendix states that DynHD detects via deviations from relative expected dynamics, and TDGNet (Hemmat et al. 2026) uses temporal dynamic graphs to represent token relationships. The authors argue these works show evidence can come from discriminative steps or dynamic patterns, but still do not fully preserve the token-by-step structure.
    • Citations for trajectory evidence: Guo and Tan 2026 and Qiu et al. 2025a in the introduction are used to support that iterative denoising provides trajectory-level uncertainty. The main text does not further elaborate criticism of these two works.

    Multivariate time series

    • Three channel strategies: The main text distinguishes channel-independent (each variable separately; Zhang and Yan 2023; Liu et al. 2024; Shen et al. 2026), channel-dependent (jointly modeling all variables; Nie et al. 2022; Zhao et al. 2026; Zeng et al. 2023), and channel-partial (interacting only with relevant variables; Qiu et al. 2025b; Zhao et al. 2023).
    • Stable identity assumption: The authors note these strategies assume variable identity is stable across samples and time (Yang, Zhu, and Chen 2024; Lin et al. 2025a). In D-LLMs, the semantic role of token positions changes, so they cannot be directly treated as variables.
    • Appendix differences: Appendix A.2 expands with PatchTST, Crossformer, iTransformer, DUET, CrossGNN, and TimeFilter, and some literature's channel classifications are inconsistent with the citation groupings in the main text. Only this difference is recorded here.

    Baselines and benchmarks

    • Three baseline types: Output-level are Perplexity, LN-Entropy, Semantic Entropy, Lexical Similarity; representation-level are EigenScore, CCS, TSV; trajectory-level are TraceDet, DynHD.
    • Data and backbones: TriviaQA, HotpotQA, CommonsenseQA; LLaDA-8B-Instruct and Dream-7B-Instruct. The metric is AUROC.

    The authors position DeMTS between the two lines of work: unlike D-LLM detectors that compress along a single dimension, it preserves the token-step two-dimensional structure; unlike time series models that assume stable variable identity, it first converts changing token signals into stable latent variables, then models both temporal and inter-variable dependencies.

  3. How does the paper address this problem?

    T2V condenses token trajectories into stable latent variables, and DMTM then jointly models inter-variable dependencies and temporal evolution.

    DeMTS first uses trajectory-preserving token-to-variable assignment (T2V) to obtain latent variables with more stable identity, then uses dynamic multivariate time modeling (DMTM) to jointly model inter-variable dependencies and intra-variable evolution, and finally performs hallucination binary classification.

    Problem setting and signals

    • Generation process: Given query q, the model iteratively denoises from highly masked sequence r(T) to r(0). Intermediate answer length is N, vocabulary is V, step t goes from T to 0.
    • Trajectory signal: Vocabulary distribution at position i, step t is πi,t; token entropy Hi,t is the negative log-sum of that distribution. All positions and steps form uncertainty trajectory H, with time axis being denoising steps and other axis being sequence positions. Context embeddings ei,t form E, used to construct latent variables.
    • Detection target: Samples have labels yn. Learn detector f so predicted probability approaches yn. Objective written as

    minϕ1/M∑n=1M Lcls(yn, fϕ(Hn, En)) i.e., average of binary classification loss over M samples. Formula inputs are H and E; task text also mentions generated answer, but it is not written as a separate independent variable.

    T2V: Trajectory-preserving variable construction

    • Step-wise standardization (SAUN): Authors believe early steps are usually more uncertain and later steps more stable, raw entropy has schedule bias. Within each step, standardize using that step's token entropy mean and standard deviation to get relative uncertainty. Small constant ϵ's value not given in paper.
    • Content and position assignment: Standardized entropy and context embedding projections are added, γ controls embedding term, paper does not give γ. Content network outputs logits for K latent variables. Position uses Fourier features with F frequencies, then maps to structure logits, modulated by content-adaptive gate, added to content logits, softmax gives soft assignment. Implementation F=16, K is 32 or 48.
    • Aggregate to variable trajectory: Each latent variable is assignment-weighted average of token representations at that step, trajectory changes from position index to variable index Z.
    • Preservation constraint: Authors worry weighted average flattens local denoising changes. Adjacent-step entropy differences are projected to representation space, aggregated to variables, then projected back to tokens. Lamp aligns change magnitude, Ldir penalizes when reconstructed change has opposite sign to original change. Together form Lpres. Separate coefficients not given; Table 5 trajectory preservation weight is 0.1.

    DMTM: Dynamic multivariate time modeling

    • Stage-adaptive interaction (SAIVI): Each denoising step does attention over K variables, getting dependency C for that step. Reliability coefficient ρ=(T-t)/T, increases as t decreases, fusion written U=Z+ρC. Authors state when t is large, noisier and dependencies more likely spurious, later variables more stable, citing Weng et al. 2026.
    • Intra-variable time modeling (VWTDM): Dependency-enhanced state plus step time embedding, then TemporalAttn over each variable's full trajectory, getting R.
    • Prediction: ŷ=MLP(R). Paper states classifier is lightweight, no separate MLP layer count. Cross-variable attention heads 2, temporal attention heads 8, dropout 0.05.

    Training objective and complexity

    Total loss is L = Lcls + Lpres Lcls is binary cross-entropy; Appendix D.2 writes Cross Entropy. Appendix B's Algorithm 1 summarizes process as T2V, preservation loss, step-wise interaction, intra-variable temporal attention, MLP. Appendix C writes inference complexity O(T N K d + T K^2 d + K T^2 d), d is representation dimension, experiments use 64. Preservation constraint only adds same-order term during training. Authors state in practice K is less than N, so relational term is quadratic in number of variables not tokens, and reuses entropy and embeddings already recorded during denoising, no extra forward pass of backbone.

  4. What experiments did the paper conduct?

    On two backbones and three benchmarks, DeMTS achieves average AUROC of 87.3% and 87.4%, with each cell in Table 1 exceeding the listed baselines.

    Experimental Setup

    • Backbones and generation: LLaDA-8B-Instruct, Dream-7B-Instruct. Generation length and denoising steps are 64 or 128, recording token prediction entropy and token IDs step by step.
    • Data: TriviaQA for open-domain knowledge recall, HotpotQA requires integrating multiple factual clues, CommonsenseQA examines everyday knowledge reasoning. 1600 training samples per dataset, with another 400 split into 200 validation and 200 test. Seed 42. The paper does not report the number of repeated runs.
    • Labels: TriviaQA and HotpotQA are judged by Qwen3-8B, with yes recorded as 1 and no as 0. CommonsenseQA does not use that model; it matches by option or answer text rules. The rules in Appendix E.2 include not fluent, not directly answering, not supportable by the reference answer, or inconsistent; exact or semantic match with any reference answer, and don't-know-type outputs when the reference answer is unanswerable, are recorded as non-hallucination. The paper does not report agreement with humans. Appendix E gives the generation prompts and automatic annotation prompts.
    • Baselines: Output-level are Perplexity, LN-Entropy, Semantic Entropy, Lexical Similarity; representation-level are EigenScore, CCS, TSV; trajectory-level are TraceDet, DynHD. Dream's Table 1 does not list Perplexity and LN-Entropy.
    • Training: Metric is AUROC (%). Latent dimension 64, K is 32 or 48, the paper does not state which one the main table uses. Fourier frequency 16. AdamW, learning rate 2e-4, weight decay 0.1, batch 8, up to 100 epochs, early stopping patience 20, trajectory preservation weight 0.1. Checkpoint selected by validation AUROC. PyTorch 2.6.0, 4 NVIDIA L40 GPUs.
    • Input scope: The detector is supervised trained on trajectories with yn. The formulas in the main text take H and E as input.

    Main Results

    Swipe horizontally to read the table

    Setting (Table 1)DeMTSDynHDTraceDet
    LLaDA six-cell average87.384.272.0
    Dream six-cell average87.484.380.8
    LLaDA, TriviaQA, 6489.886.174.1
    LLaDA, HotpotQA, 6488.185.363.7
    LLaDA, CSQA, 6483.481.377.1
    Dream, TriviaQA, 6487.784.486.7
    Dream, HotpotQA, 12884.680.175.1
    Dream, CSQA, 12887.983.584.7
    • The authors state that output-level statistics are insufficient to characterize hallucinations formed during iterative denoising. In Table 1, LLaDA's output-level averages are Perplexity 54.9, LN-Entropy 57.8, Semantic Entropy 55.9, Lexical Similarity 60.1. Dream does not list the first two; Semantic Entropy averages 62.8, Lexical Similarity 66.5. On LLaDA's CSQA, Semantic Entropy is 43.9 and 44.1, lower than Perplexity's 65.0 and 65.6 in the same cells.
    • The authors state that representation-level methods use richer model-side signals than output statistics, but in most cases still fall below DeMTS. The EigenScore, CCS, and TSV cells listed in Table 1 are all lower than DeMTS in the same cells; their averages on LLaDA are 63.2, 55.6, 59.0, and on Dream are 69.8, 54.1, 65.2.
    • The authors state that jointly modeling intra-variable evolution and inter-variable interactions better captures abnormal temporal relationships. Among the cells reported in Table 1, DeMTS is the highest in each cell; the closest to TraceDet is Dream's TriviaQA, length 64 cell.

    Component Ablation

    • What was tested: Table 2 removes SAUN, T2V, SAIVI, VWTDM, Lamp, or Ldir on LLaDA-8B-Instruct.
    • Results: The full model averages 87.27. After removal, the averages are 83.53, 79.77, 81.17, 82.84, 82.07, 80.50 respectively, with the largest average drop from removing T2V. Table 4 on Dream has each cell lower than the full DeMTS; the paper does not give the average for Dream's ablation. On HotpotQA, length 64, removing VWTDM gives 87.97, while the full model is 88.14.
    • Author interpretation: The authors believe that using raw uncertainty lets schedule-induced global trends mask sample-specific dynamics; directly using token positions as variables degrades noticeably; magnitude, direction, inter-variable interaction, and temporal evolution all participate in detection.

    Cross-Task Generalization

    • Protocol: Train on one benchmark, no adaptation on the remaining benchmarks. Table 3 only lists CCS, TSV, TraceDet, DynHD, DeMTS. The paper does not specify the backbone. The header is divided into TriviaQA, HotpotQA, CSQA groups, with two columns per group being abbreviations of the remaining benchmarks; the main text does not define column by column whether the header is the training side or the test side.
    • Results: DeMTS's six cells are 82.2, 70.2, 74.1, 65.8, 74.8, 73.6, averaging 73.5. DynHD averages 72.9, TraceDet 66.3, TSV 61.3, CCS 53.5. In the TriviaQA group's H-QA column, DynHD is 85.5, higher than DeMTS's 82.2. In the CSQA group's T-QA column, DeMTS and TraceDet are both 74.8.
    • Author interpretation: The authors state that the highest average AUROC shows that the stable latent variables from T2V, plus temporal evolution and inter-variable interaction, capture transferable hallucination patterns rather than memorizing the semantics of one dataset.

    Number of Variables, Assignment, and Efficiency

    • K: Figure 3 left is sensitivity of performance to the number of latent variables K. The authors state that small K over-compresses token-level signals, large K fragments and makes variables redundant, and moderate K better balances information preservation and variable stability. The main text does not give AUROC for each K, nor does it map moderate K to 32 or 48.
    • Assignment: Figure 3 right is variable assignment across multiple samples. The authors state that although token content and semantic roles vary greatly across samples, each latent variable still aggregates signals with similar semantic or dynamic features. The plain text cannot show the positions of points or clusters, so this description cannot be verified.
    • Efficiency: Figure 4 compares average inference time and AUROC. The authors state that DeMTS has the highest AUROC and the shortest runtime. The main text does not give seconds or query counts. Appendix C gives the aforementioned complexity and states the advantage comes from modeling in the K-dimensional latent variable space and not running additional forward passes through the backbone.

    Other Ablations and Analyses

    • Figure 5: Lamp and Ldir weights are stable across a range; removing them or very small weights cause drops, and too-large weights also cause drops. The main text does not give the weight grid. The authors state that the two respectively preserve variation magnitude and temporal direction.
    • In Table 4, Dream's full model six cells are 87.74, 88.89, 88.16, 84.63, 86.95, 87.86; removing SAIVI, HotpotQA, length 128 is 72.77.
    • Appendix D.4 states that ablation trends are consistent across both backbones, each dataset, and both lengths.
    • The preservation constraint only adds O(T N K d) of the same order as T2V during training; inference has no such term.
  5. What are some points that can be further explored?

    The paper does not state limitations or future directions.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. The introduction, experiments, conclusion, and appendices do not write any result as a deficiency, nor list future work. The conclusion only states that experiments across multiple D-LLMs, benchmarks, and generation settings show DeMTS's effectiveness, cross-task generalization, robustness, and computational efficiency.

    Experimental coverage

    • Tested generative models are LLaDA-8B-Instruct and Dream-7B-Instruct; benchmarks are TriviaQA, HotpotQA, CommonsenseQA; lengths and denoising steps are 64 and 128 (Experiments).
    • Each dataset has 1600 training, 200 validation, 200 test; metric is AUROC; seed is 42. Paper does not report number of repetitions or statistical significance tests (Appendix D.2).
    • TriviaQA and HotpotQA labels come from Qwen3-8B, CommonsenseQA uses rule matching (Appendix E.2). Paper does not report agreement between automatic labeling and human judgment.
    • Comparisons include output-level, representation-level, and trajectory-level baselines listed in the text; Dream's Table 1 does not report Perplexity and LN-Entropy. Also component ablations (Table 2, Table 4), K sensitivity (Figure 3), cross-task tests (Table 3), and inference time comparison (Figure 4).
    • Table 3 does not specify backbone, nor define training-side and test-side per column. Figure 4 and Figure 5's text does not give traceable time or weight grids. γ, ϵ, and separate coefficients for Lamp and Ldir are not given numerically, only trajectory preservation weight 0.1 (Table 5).
  6. Summarize the main content of the paper

    DeMTS detects D-LLM hallucinations using latent-variable time series, with average AUROC of 87.3% and 87.4% on two backbones.

    DeMTS is a hallucination detection method for diffusion language models, treating token-step uncertainty during denoising as a multivariate time series rather than only looking at the final output or compressing the trajectory along a single dimension.

    The problem addressed: fluent answers can still be factually wrong or lack support; the authors observe that the convergence levels of later tokens can be inconsistent, and erroneous states can also pull related tokens along with them. Token positions do not have stable semantic identities and cannot be directly treated as time series variables.

    T2V normalizes entropy stepwise, uses context embeddings and Fourier positional structure for soft assignment, and preserves local variation with magnitude and direction constraints. DMTM uses inter-variable attention enhanced with each step and temporal self-attention to extract trajectory representations, which are then fed to an MLP for supervised binary classification.

    In Table 1, LLaDA-8B-Instruct has an average AUROC of 87.3% across six cells, and Dream-7B-Instruct has 87.4%; all reported cells are higher than the baselines in the same table. Removing T2V, LLaDA averages 79.77% (Table 2). The cross-task average in Table 3 is 73.5% (backbone not specified); in the TriviaQA group, the H-QA column for DeMTS is 82.2%, and DynHD in the same column is 85.5%.

    The authors state in the conclusion that, unlike approaches that compress trajectories along the time or variable dimension, they preserve the two-dimensional token-step structure to capture how hallucination-related uncertainty evolves and propagates during generation; experiments show DeMTS has effectiveness, cross-task generalization, robustness, and computational efficiency. The paper does not separately list limitations.

Related papers

Show 1 more papers
Read originalarxiv.org