# Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models

Cord: 마스크 확산 언어 모델을 위한 신뢰도 고정 순서 잔차 디코딩

Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · arXiv · 2026년 10월 29일

- **연구 문제** 확신도 기반 디코더는 위치의 현재 예측 확실성은 재지만, 그 위치를 공개했을 때의 후속 디코딩 가치는 재지 못합니다.
- **연구 방법** CORD는 확신도 점수를 기준으로 유지하고, 프롬프트 조건부 계수로 방향·근접성·양측 채움 잔차를 디코딩 상태에 따라 조정하며, 계수 공간에서 시퀀스 보상으로 학습합니다.
- **주요 결과** 세 동결 백본과 다섯 벤치마크의 평균 작업 성공률은 확신도 기반 디코딩 30.6%에서 CORD 50.5%로 올랐고, 고정 잔차 대조군보다도 높았습니다.

## 확신도 순서의 한계

마스크 확산 언어 모델은 응답의 마스크된 위치를 왼쪽에서 오른쪽으로만 채우지 않고 여러 순서로 공개할 수 있습니다. 그래서 어떤 위치를 먼저 공개하느냐가 최종 생성 품질에 실제로 영향을 줍니다. 흔히 쓰는 확신도 기반 디코더는 현재 예측 분포에서 가장 결정적인 위치를 고르지만, 이 값은 그 위치가 지금 얼마나 예측 가능한지를 나타낼 뿐 그 위치를 공개했을 때 이후 디코딩에 얼마나 도움이 될지는 말해 주지 않습니다. 원문은 GSM8K에서 올바른 인과적 접두부를 공개하면 정확도가 37.2%에서 최대 67.4%까지 오르고, 같은 수의 무작위 앵커는 20% 아래에 머문다고 보고합니다. 또한 MBPP에서는 구조적 프로그램 토큰이 무작위 앵커보다 최대 14.4포인트 높습니다.

이 결과는 같은 공개 예산에서도 어디를 공개하느냐가 완성 품질을 크게 바꿀 수 있음을 보여 줍니다.

## 기준 디코더 위의 기하 잔차

CORD는 확신도 기반의 상위 두 토큰 확률 차이를 기본 순위로 유지하고, 그 위에 학습된 기하 잔차를 더합니다. 각 마스크 위치 p에 대해 세 가지 신호를 계산합니다. 방향 신호는 응답 내 위치 인덱스를 정규화한 값이고, 근접성 신호는 이미 공개된 응답 토큰과의 최소 거리이며, 양측 신호는 양쪽에 공개된 문맥이 모두 있는지를 나타내는 지시자입니다. 각 신호는 현재 마스크된 위치 전체에 대해 평균과 표준편차로 정규화되며, 표준편차가 ε\_var 아래이면 0으로 둡니다. 최종 점수는 정규화된 확신도 항에 세 잔차 항을 계수와 곱해 더한 것이고, 가장 큰 점수의 마스크 위치를 한 번에 하나씩 공개합니다. 잔차는 순위를 바꿀 뿐 어떤 위치도 후보에서 제외하지 않습니다.

## 프롬프트 조건부 계수와 상태 기저

계수 α는 고정된 상한 α\_max와 계수 행렬 C(x)의 곱, 그리고 상태 기저 f(s)의 선형 결합에 tanh를 적용해 얻습니다. 상태 기저에는 디코딩 진행 비율과 확신도 분포 통계, 재구성된 구성 요소 수, 양측 문맥 비율, 최대 마스크 구간 길이 등이 포함됩니다. 정책 네트워크는 프롬프트 은닉 상태의 평균 풀링 표현을 입력으로 받아 두 층 MLP로 24차원 평균 계수 벡터를 예측합니다. 마지막 층은 0으로 초기화되어 학습 초기에는 확신도 기반 디코딩과 정확히 같아집니다. 추론 시에는 탐색을 제거하고 예측 평균 C(x)를 쓰지만, 상태 특징이 매 단계 바뀌므로 잔차 계수도 디코딩 중 함께 변합니다.

## 계수 공간의 contextual-bandit 학습

CORD는 토큰 단위 정책을 학습하지 않고 계수 공간에서 탐색합니다. 프롬프트마다 가우시안 분포에서 계수 벡터 ζ를 샘플링하고, 그 값은 한 롤아웃 동안 고정됩니다. 이 고정된 계수가 전체 공개 궤적을 결정적으로 정하므로, 한 프롬프트 응답의 보상은 하나의 시퀀스 수준 보상으로 얻어집니다. 보상은 정답 여부를 중심으로 하고 형식 보상 λ\_fmt=0.1이 더해집니다. 같은 프롬프트에서 K개의 형제 롤아웃을 만들고 자신을 제외한 나머지 평균을 빼는 leave-one-out 그룹 상대 이득을 사용합니다. 이 이득은 표준편차로 나누지 않으며, 동일 보상 그룹에서는 기울기가 0이 됩니다. 정책 기울기는 샘플링 밀도의 점수 함수로 계산하고 이산 공개 궤적을 미분하지 않습니다.

![Table 6: Training configuration for CORD](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-fa504f433685aac66f921d0a825e3c02.png?thumb=512)

**Table 6** : Training configuration for CORD.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

## 주요 결과와 비교 범위

세 동결 백본(LLaDA-8B-Instruct, LLaDA-1.5-8B, Dream-7B)에서 GSM8K, MATH500, HumanEval, MBPP, Sudoku의 다섯 벤치마크를 평가했습니다. 세 백본의 평균 작업 성공률은 확신도 기반 디코딩 30.6%에서 CORD 50.5%로 올라 19.9포인트 향상됩니다. 같은 기하 신호를 쓰되 계수를 고정한 고정 잔차 대조군은 평균 50.0%이며, CORD는 이보다 0.5포인트 높습니다. 이 비교는 신호 자체보다 프롬프트와 디코딩 상태에 따른 적응의 효과를 분리하려는 것입니다. HumanEval과 MBPP는 pass@1, 나머지는 정확도로 보고됩니다. 백본별 결과는 같은 모델 계열 안에서도 학습된 체크포인트마다 따로 얻었습니다.

![Table 1: Main results across masked diffusion language models.Task success (%, higher is better). HumanEval and MBPP report pass@1; all other tasks report accu…](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-e8395f15a44f3af612ea92ffe46020e8.png?thumb=512)

**Table 1** :Main results across masked diffusion language models.Task success (%, higher is better). HumanEval and MBPP report pass@1; all other tasks report accuracy. The fixed residual uses the same geometric signals as CORD but keeps their coefficients constant throughout decoding.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Table 2: Decomposing adaptation in CORD. Mean task success (%) across all benchmarks](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-2d803ba7d0541684eb0b6d788f55f2fa.png?thumb=512)

**Table 2** :Decomposing adaptation in CORD. Mean task success (%) across all benchmarks.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Table 5: Training and evaluation benchmarks](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-0ed5f7b25f7b12532697eef77f5e1dc2.png?thumb=512)

**Table 5** : Training and evaluation benchmarks.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

## 절제 실험과 채널의 기여

절제 실험은 LLaDA-8B-Instruct에서 GSM8K, MBPP, Sudoku 세 과제의 평균으로 수행했습니다. 각 변형은 방향, 근접성, 양측 채움 중 한 잔차 채널만 제거하고 같은 학습 설정으로 계수 정책을 다시 학습했습니다. 전체 CORD의 세 과제 평균은 54.4%이며, 방향 채널을 제거하면 45.4%, 근접성 채널을 제거하면 48.9%, 양측 채널을 제거하면 43.5%가 됩니다. 방향은 GSM8K에서, 양측은 Sudoku에서 특히 중요하게 나타났고 근접성은 세 과제에서 작지만 일관된 기여를 보였습니다. 이 결과는 하나의 기하 신호만 쓰는 것보다 여러 보정을 함께 쓰는 설계를 지지합니다.

## 실제 공개 궤적의 변화

학습된 CORD 정책을 LLaDA-8B-Instruct에서 GSM8K, MBPP, Sudoku에 대해 분석했습니다. 같은 상태에서 확신도 결정을 덮어쓴 비율은 GSM8K 45.5%, MBPP 64.6%, Sudoku 58.4%입니다. 공개 지역성은 연속 공개 사이의 정규화된 점프 거리 차이 ΔJ로 나타나며, GSM8K는 −0.023으로 약간 더 지역적이고 MBPP와 Sudoku는 각각 +0.035, +0.055로 더 비지역적입니다. 양측 문맥 선호 E\_bridge는 세 과제 모두 양수였습니다. 이 분석은 학습된 잔차가 과제에 따라 실제 공개 궤적을 바꾼다는 관찰이며, 그 결과가 모든 모델이나 모든 설정에서 같다는 근거는 아닙니다.

![Figure 3: Realized reveal behavior of CORD. ∆J \<0indicates more local decoding than confidence, whereas∆J \>0indicates more non-local decoding. PositiveE bridge…](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-0d5051276fd78d88e541007264493d64.png?thumb=512)

**Figure 3** :Realized reveal behavior of CORD. ∆J \<0indicates more local decoding than confidence, whereas∆J \>0indicates more non-local decoding. PositiveE bridge indicates preferential selection of two-sided masked po- sitions beyond their availability.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 4: A GSM8K rollout.Top:token-unmasking timeline for a held-out mathematical rea- soning example. The realized reveal order is predominantly sequential,…](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-8bb3e29af4af6acfc9fe734ea29ac364.png?thumb=512)

**Figure 4** :A GSM8K rollout.Top:token-unmasking timeline for a held-out mathematical rea- soning example. The realized reveal order is predominantly sequential, but with a few targeted jumps that expose useful later positions before the entire prefix has been completed.Bottom:the corresponding coefficient and state-feature trajectories. The direction coefficient remains strongly negative throughout the rollout, indicating a persistent left-to-right bias, while the bridge coefficient stays positive and the proximity coefficient gradually increases. Together, these signals produce a mostly local reasoning trajectory with occasional non-local or two-sided reveals when the evolving context makes them useful.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

![Figure 5: A MBPP rollout.Top:token-unmasking timeline for a held-out code-generation example. The reveal order is again largely structured and directional, but…](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-62c286a54b312f2c933017e722416c00.png?thumb=512)

**Figure 5** :A MBPP rollout.Top:token-unmasking timeline for a held-out code-generation example. The reveal order is again largely structured and directional, but includes a small number of non-local reveals that help establish later code structure.Bottom:the corresponding coefficient and state- feature trajectories. Here the direction coefficient provides the dominant bias, while the proximity and bridge coefficients remain weaker and evolve more smoothly. The resulting trajectory reflects a coding regime in which the model largely builds the program in order, while still allowing selective departures from strict sequential decoding when they improve the surrounding context.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

## 비용과 재마스킹 기반 방법과의 비교

CORD는 추론 시 추가 백본 순전파를 하지 않으며, 학습 가능한 보조 파라미터는 527,512개입니다. H200 한 장에서 측정한 지연 시간은 확신도 기반 6.31초, CORD 6.65초로 5.39%의 오버헤드가 있습니다. 고정 잔차 대조군의 오버헤드는 3.80%로, 원문은 추가 비용의 대부분이 기하 점수 계산에서 온다고 해석합니다. 재마스킹 기반 디코더와의 비교에서 CORD는 공개된 토큰을 다시 열지 않는 엄격히 단조로운 디코딩이며, 원문은 CORE, SCOPE+D3IM 대비 높은 값을 보고합니다. 그러나 RemeDi의 Remask-SFT 결과는 CORD보다 높으며, 원문은 모델 체크포인트와 디코딩 예산이 달라 직접 비교가 어렵다고 명시합니다.

![Table 4: Inference efficiency on LLaDA-8B- Instruct.Latency (s) is measured on one H200 over20runs with256generated tokens and a maximum sequence length of1024…](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-1a0e624ce11b8a943ce848f58d7260fe.png?thumb=512)

**Table 4** :Inference efficiency on LLaDA-8B- Instruct.Latency (s) is measured on one H200 over20runs with256generated tokens and a maximum sequence length of1024; we report mean±standard deviation.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Table 8: Comparison with remasking-based decoding methods. Reported task performance (%) on overlapping reasoning and code benchmarks. CORD uses strictly mono…](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6/figures/figure-4aba09c0d5fa23595712b9815c3fe4c5.png?thumb=512)

**Table 8** : Comparison with remasking-based decoding methods. Reported task performance (%) on overlapping reasoning and code benchmarks. CORD uses strictly monotonic decoding: once a token is revealed, it is never remasked or revised. Results from prior work are reproduced from their respective papers and are not directly comparable because model checkpoints, prompting, and decoding budgets differ.

[원문](https://arxiv.org/abs/2610.39372v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta · Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 10월 29일
- **등록일**: 2026년 11월 1일
- **수정일**: 2026년 10월 29일
- **버전**: v1
- **arXiv**: 2610.39372
- **분류**: cs.CL · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2610.39372v1) · [원문 PDF ↗](https://arxiv.org/pdf/2610.39372v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The decoding order of masked diffusion language models (dLLMs) can substantially affect generation quality, yet common decoders typically apply the same reveal rule throughout generation. Confidence provides a strong default, but it measures how decisively a position can be predicted now, not how useful revealing that position will be for subsequent decoding. We propose Cord, a lightweight prompt-conditioned policy that retains confidence decoding as a stable reference and learns when and how to depart from it through geometric residuals over generation direction, proximity to revealed context, and two-sided infilling. The residuals adapt to both the prompt and the evolving partial response. Rather than sampling a new policy action at every decoding step, Cord samples a single low-dimensional coefficient matrix per rollout, which induces an entire state-dependent reveal trajectory. This yields a contextual-bandit formulation trained directly from sequence-level rewards, without step-level credit assignment or backbone updates. Across three dLLMs and five reasoning, code, and constraint-satisfaction benchmarks, Cord improves average task success from 32.0% under confidence decoding to 48.2%, and further improves over the best per-domain fixed residual. Behavioral audits show that the learned residuals induce substantial, task-dependent changes in reveal locality and two-sided infilling. Cord adds only $0.53$M trainable parameters, requires no additional backbone forward passes, and incurs only 5.39% inference latency overhead.

## 원문 인용

Chengwei Zhou, Zhaoyan Jia, Massoud Pedram, Gourav Datta (2026). Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models. arXiv:2610.39372v1. https://arxiv.org/abs/2610.39372v1

**BibTeX**

```
@misc{zhou2026cord,
  title = {{Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models}},
  author = {Chengwei Zhou and Zhaoyan Jia and Massoud Pedram and Gourav Datta},
  year = {2026},
  eprint = {2610.39372},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.39372v1}
}
```

## 이 논문의 용어

- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [Pass@1](https://refivu.com/terms/0b5f8fd75383-pass-1)
- [HumanEval](https://refivu.com/terms/3c3dbcadfdda-humaneval)
- [MBPP](https://refivu.com/terms/717e657dd0b2-mbpp)
- [task success](https://refivu.com/terms/54a738bd5434-task-success)
- [LLaDA-8B-Instruct](https://refivu.com/terms/a4cd685bd90c-llada-8b-instruct)
- [CORD](https://refivu.com/terms/d2ae00ed4fad-cord)
- [Masked diffusion language models](https://refivu.com/terms/945bf9ba2b49-masked-diffusion-language-models)

## 다른 논문 해설

- [Surprise Alone Learns Lies: Evidence-Gated Continual Learning for LLMs from Streaming Claims](https://refivu.com/papers/fa5643b8-a357-4203-bd88-f84f7c2636ea-surprise-alone-learns-lies-evidence-gated-continual-learning.md)
- [Where Do Vision Language Models Fail at 3D Reasoning?](https://refivu.com/papers/d099ae54-8c6d-4b80-837f-a4c6b79d10d4-where-do-vision-language-models-fail-at-3d.md)
- [Predict the Reward, Not the World: World Reward Models for ML Agents](https://refivu.com/papers/54fc4635-ca71-44c9-8962-e2d2ba876c01-predict-the-reward-not-the-world-world-reward.md)
- [Calculation and rejection diverge in language models tested at known mechanical limits](https://refivu.com/papers/654bb0be-4b89-4d3d-82f8-43407afed1f4-calculation-and-rejection-diverge-in-language-models-tested.md)
- [From Leniency to Suspicion: How an Open Post-Training Recipe Changes Whom LLM Fact-Checkers Believe](https://refivu.com/papers/b50f0cd4-c5c2-4203-ab77-d963ff551371-from-leniency-to-suspicion-how-an-open-post.md)
- [Answer-Only Disclosure: Private-Context LLM Assistance over Web APIs with a Leakage Ledger](https://refivu.com/papers/b2185e14-6ffa-4c7d-933b-830792c6ac03-answer-only-disclosure-private-context-llm-assistance-over.md)
- [VideoMemBench: How Well Do MLLMs Remember in Video Conversations?](https://refivu.com/papers/e15eb8e5-3ca6-4909-9483-4d0783d28317-videomembench-how-well-do-mllms-remember-in-video.md)
- [Retrieving from Your Own Mistakes: On-Policy Training of Embedding Models for Multi-Hop Retrieval-Augmented Generation](https://refivu.com/papers/393abb8e-63e2-43d5-998b-12de9f9addaa-retrieving-from-your-own-mistakes-on-policy-training.md)
- [How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference](https://refivu.com/papers/f4d8128c-41be-476d-9c3e-5cf69d5638fa-how-to-loop-your-transformer-loop-scaling-specialization.md)
- [Only Accepted Tokens Count: An Energy Accounting of Speculative Decoding Under Latency Targets](https://refivu.com/papers/85d77e47-8039-4550-ab10-cf964e096268-only-accepted-tokens-count-an-energy-accounting-of.md)
- [PAPERBENCHX: Can AI Reproduce Science Across Disciplines?](https://refivu.com/papers/40332f60-fa1b-42a6-8b6d-91e68bf75d16-paperbenchx-can-ai-reproduce-science-across-disciplines.md)
- [Gym-Anything for Robotics: Scaling physical simulations with digital agents](https://refivu.com/papers/bd6018c8-7e86-43e6-bd76-05c57194149c-gym-anything-for-robotics-scaling-physical-simulations-with.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6-cord-confidence-anchored-order-residual-decoding-for-masked)
