HyperAIHyperAI

Command Palette

Search for a command to run...

DTCA: 확산 언어 모델에서의 강화학습을 위한 디노이징 토큰 크레딧 할당

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

초록

확산 언어 모델(Diffusion Language Models, DLM)은 반복적인 디노이징을 통해 텍스트를 생성하며, 양방향 문맥 모델링과 병렬 토큰 개선을 가능하게 한다. 최근 연구들은 확산 언어 모델에 강화학습(RL)을 적용하여 추론 성능을 향상시켜 왔다. 그러나 반복적인 디노이징 과정에서는 최종 결과 보상이 개별 토큰이 최종 출력에 어떻게 기여하는지에 대한 정보를 제한적으로 제공하므로 크레딧 할당이 더 어려워진다. 본 논문에서는 확산 언어 모델의 강화학습을 위한 토큰 수준 크레딧 할당 프레임워크인 DTCA(Denoising Token Credit Assignment)를 제안한다. DTCA는 토큰 확정 후 남아 있는 마스킹된 위치의 예측 신뢰도 향상을 측정하여 토큰 기여도를 추정하고, 이러한 신호를 품사(POS) 범주에 따라 그룹화한다. 이러한 기여도 가중치는 RL 학습 중 정보력 있는 디노이징 타임스텝을 선택하고 토큰 수준 학습 신호를 할당하는 데 사용된다. DTCA는 나아가 정책 업데이트로 인한 토큰 수준 엔트로피 변화에 따라 이러한 학습 신호를 보정한다. LLaDA-8B-Instruct에 대한 실험 결과, DTCA는 다양한 생성 예산에서 수학적 추론 성능을 일관되게 향상시켰으며, 기본 모델 대비 MATH500에서 최대 9.0포인트, GSM8K에서 5.3포인트의 향상을 보였다.

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.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp