HyperAIHyperAI

Command Palette

Search for a command to run...

DTCA : attribution de crédit aux jetons par débruitage pour l'apprentissage par renforcement dans les modèles de langage à diffusion

Hongze Chen Miao Pan Lizhou Liang Qinfeng Li Xinyin Ma Yongliang Shen Weishi Wang Daniel Dahlmeier Xuhong Zhang Wenqi Zhang

Résumé

Les modèles de langage à diffusion (DLM) génèrent du texte par débruitage itératif, ce qui permet une modélisation bidirectionnelle du contexte et un raffinement parallèle des jetons. Des études récentes ont appliqué l'apprentissage par renforcement (RL) aux DLM et amélioré leurs performances de raisonnement. Cependant, le processus de débruitage itératif rend l'attribution de crédit plus difficile, car les récompenses fondées sur le résultat final fournissent peu d'informations sur la contribution des différents jetons à la sortie finale. Dans cet article, nous proposons Denoising Token Credit Assignment (DTCA), un cadre pour l'attribution de crédit au niveau des jetons dans l'apprentissage par renforcement pour les modèles de langage à diffusion. DTCA estime les contributions des jetons en mesurant l'amélioration de la confiance de prédiction des positions masquées restantes après l'engagement d'un jeton, puis regroupe ces signaux selon des catégories morphosyntaxiques (part-of-speech, POS). Ces poids de contribution sont utilisés pour sélectionner des pas de temps de débruitage informatifs et pour attribuer des signaux d'apprentissage au niveau des jetons pendant l'entraînement par RL. DTCA calibre en outre ces signaux d'apprentissage en fonction des changements d'entropie au niveau des jetons induits par les mises à jour de la politique. Des expériences sur LLaDA-8B-Instruct montrent que DTCA améliore de manière constante les performances de raisonnement mathématique pour différents budgets de génération, avec des gains allant jusqu'à 9,0 points sur MATH500 et 5,3 points sur GSM8K par rapport au modèle de base.

One-sentence Summary

Zhejiang University, National University of Singapore, and SAP propose Denoising Token Credit Assignment (DTCA), a token-level credit assignment framework for reinforcement learning in diffusion language models that weights token contributions via confidence gains after token commitment and part-of-speech (POS) grouping, calibrates learning signals by token-level entropy changes, and improves LLaDA-8B-Instruct mathematical reasoning by up to 9.09.09.0 points on MATH500 and 5.35.35.3 points on GSM8K over the base model.

Key Contributions

  • The paper analyzes denoising behavior across part-of-speech (POS) categories in diffusion language models and proposes Denoising Token Credit Assignment (DTCA), a token-level credit assignment framework for reinforcement learning. DTCA estimates token contributions from prediction confidence improvements of remaining masked positions after token commitment and aggregates these signals by POS category.
  • DTCA uses the resulting contribution weights to select informative denoising timesteps and to assign token-level learning signals. It also adapts entropy-based credit calibration from OPEFO to the diffusion language model setting for more stable policy updates.
  • Experiments on LLaDA-8B-Instruct show consistent mathematical reasoning improvements across generation budgets, with gains up to 9.0 points on MATH500 and 5.3 points on GSM8K over the base model. Ablations validate the contribution-based credit assignment and entropy calibration components.

Introduction

Diffusion language models (DLMs) have emerged as an alternative to autoregressive generation because they support bidirectional context modeling and parallel token refinement. Recent reinforcement learning methods for DLMs typically derive learning signals from denoising trajectories or intermediate states, but this coarse view is insufficient because tokens are committed gradually and each committed token can affect how the remaining masked positions are refined. Estimating fine-grained token contributions is challenging because multiple tokens are committed at the same denoising step, their effects interact through the shared denoising process, and contribution estimates can vary substantially across rollouts. The authors propose Denoising Token Credit Assignment (DTCA), which estimates token contributions from confidence improvements on remaining masked positions, aggregates these signals by part-of-speech categories to obtain more stable weights, uses the weights for denoising timestep selection and token-level RL signals, and incorporates entropy-based credit calibration inspired by OPEFO. Experiments on LLaDA-8B-Instruct show that DTCA improves mathematical reasoning by up to 9.0 percentage points on MATH500 and 5.3 percentage points on GSM8K over the base model.

Method

The authors propose Denoising Token Credit Assignment (DTCA), a token credit assignment framework designed for reinforcement learning in diffusion language models. DTCA estimates token contributions from denoising refinement dynamics and leverages the resulting contribution weights for informative denoising state selection and token-level credit assignment. Furthermore, the framework calibrates the token-level learning signals according to the entropy changes induced by policy updates.

As shown in the figure below, the overall pipeline consists of contribution estimation, timestep selection, credit assignment, and entropy calibration.

To evaluate the refinement contribution of each committed token, DTCA measures the improvement in the prediction confidence of the remaining masked positions. Given a fixed prompt and a denoising state, the aggregate prediction confidence over the remaining masked positions is defined as the sum of the maximum prediction probabilities:

F(x;M)=∑j∈Mmax⁡v∈Vpθ,j(v∣q,x)F(x; \mathcal{M}) = \sum_{j \in \mathcal{M}} \max_{v \in \mathcal{V}} p_{\theta, j}(v \mid q, x)F(x;M)=j∈M∑​v∈Vmax​pθ,j​(v∣q,x)

where jjj indexes a masked position, V\mathcal{V}V is the vocabulary, and pθ,j(v∣q,x)p_{\theta, j}(v \mid q, x)pθ,j​(v∣q,x) is the probability assigned to token vvv at position jjj. The refinement contribution estimate for a committed token is computed as:

ΔPi=max⁡(0,F(xt(i);M)−F(xt;M))\Delta P_i = \max(0, F(x_t^{(i)}; \mathcal{M}) - F(x_t; \mathcal{M}))ΔPi​=max(0,F(xt(i)​;M)−F(xt​;M))

To avoid the substantial computational overhead of evaluating individual token effects during policy optimization, DTCA constructs these estimates from offline denoising rollouts. The estimates are then aggregated by part of speech categories to reduce variance. The average refinement effect for a category ccc is calculated as:

mc=1Nc∑i:ci=cΔPim_c = \frac{1}{N_c} \sum_{i: c_i = c} \Delta P_imc​=Nc​1​i:ci​=c∑​ΔPi​

These category contributions are normalized into bounded contribution weights wcw_cwc​ within the range [0.8,1.2][0.8, 1.2][0.8,1.2] to prevent excessive credit scaling while preserving the original reinforcement learning objective.

The category contribution weights are utilized to identify the most informative denoising timesteps for training. For a given timestep, the importance score is computed by combining the contribution weights with the uncertainty of the committed tokens:

qt=∑i∈Atwci(1−pi)q_t = \sum_{i \in \mathcal{A}_t} w_{c_i} (1 - p_i)qt​=i∈At​∑​wci​​(1−pi​)

where pip_ipi​ denotes the confidence of the token when committed. DTCA ranks the timesteps based on this score and selects the smallest set whose cumulative score reaches a predefined fraction of the total score, ensuring stable and efficient training.

Within the selected timesteps, DTCA assigns distinct credits to tokens based on their part of speech categories. The credit weight for a specific token is determined by normalizing its category contribution weight against the average weight of all tokens in the optimization set:

at,i=wci1∣Bt∣∑k∈Btwcka_{t, i} = \frac{w_{c_i}}{\frac{1}{|\mathcal{B}_t|} \sum_{k \in \mathcal{B}_t} w_{c_k}}at,i​=∣Bt​∣1​∑k∈Bt​​wck​​wci​​​

This normalization ensures the average credit within each timestep remains equal to one. The final token-level learning signal is obtained by scaling the original timestep advantage:

At,i=at,iAtA_{t, i} = a_{t, i} A_tAt,i​=at,i​At​

Consequently, tokens from categories with higher estimated refinement contributions receive stronger learning signals.

To account for varying entropy changes across different denoising states, DTCA incorporates an entropy-based credit calibration module. The entropy change induced by the policy update for a target position is estimated as:

ΔHt,i(b)=−ηAt,i(b)(1−pi(b))2(log⁡pi(b)+Hi(b))\Delta H_{t, i}^{(b)} = -\eta A_{t, i}^{(b)} (1 - p_i^{(b)})^2 (\log p_i^{(b)} + H_i^{(b)})ΔHt,i(b)​=−ηAt,i(b)​(1−pi(b)​)2(logpi(b)​+Hi(b)​)

where pi(b)p_i^{(b)}pi(b)​ is the probability assigned by the current policy and Hi(b)H_i^{(b)}Hi(b)​ is the entropy of the full prediction distribution. The updates are separated into entropy-increasing and entropy-decreasing sets. A separate entropy flow balancing coefficient λb\lambda_bλb​ is computed for each response to balance these updates. This coefficient is then used to rescale the token-level learning signals, amplifying or attenuating the credits depending on the direction of the entropy change, thereby refining the reinforcement learning optimization process.

Experiment

The experiments evaluate DTCA by initializing RL training from LLaDA-8B-Instruct on MATH and testing on MATH500 and GSM8K under different generation budgets, comparing against supervised and diffusion language model RL baselines. DTCA consistently improves over the base model, especially at limited denoising budgets, and ablations show that both contribution-based credit assignment and entropy calibration contribute to performance. Further analyses indicate that contribution credit shapes token-level update quality while entropy calibration stabilizes later policy optimization, and the learned denoising behavior changes token commitment patterns in a category-specific rather than uniform way.

DTCA improves over the LLaDA-8B-Instruct base model on both MATH500 and GSM8K across all evaluated generation budgets. The gains are largest at the smallest budget and remain positive as budget increases. Ablating either contribution-based credit assignment or entropy calibration reduces accuracy, indicating both components contribute to DTCA performance. DTCA reports the highest accuracy in every evaluated benchmark and budget setting. Relative to the base model, DTCA gains are strongest at budget 128 and decrease but remain positive at budgets 256 and 512. Removing contribution credit or entropy calibration consistently lowers accuracy, with the entropy calibration removal showing larger drops at the 512 budget on both benchmarks.

DTCA is evaluated against the LLaDA-8B-Instruct base model on MATH500 and GSM8K across multiple generation budgets, and it improves accuracy in every setting, with the largest gains at the smallest budget and smaller but still positive gains at larger budgets. Ablation studies show that removing either contribution-based credit assignment or entropy calibration reduces performance, and removing entropy calibration causes larger drops at the 512 budget, indicating that both components are important. Overall, the results validate that DTCA consistently outperforms the base model and that its credit assignment and calibration mechanisms both contribute to its accuracy.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp