跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2612.05203 · v1

DECoR: Boosting Coding LLMs Through Disciplined and Scalable Code Pre-Training Data Comment Rewriting

首次提交 2026-12-03 16:12
版本更新 2026-12-03 16:12
雷达观测 2026-12-04 12:01
arXiv ↗PDF ↗

摘要

Code large language models (LLMs) are commonly pre-trained on corpora that include code-related natural language (NL) to strengthen text-code alignment. Code comments provide this alignment signal directly within source files, but large-scale code corpora are often sparsely or poorly commented. We propose Disciplined and Efficient Code Pre-Training Data Rewriting (DECoR), a pipeline for enriching comments in code pre-training data. DECoR constructs rewriting supervision from well-documented code and trains a 1.5B-parameter rewriter with reinforcement learning (RL). The reward combines an LLM judge's assessment of the comments with a penalty for edits to the underlying Python. During RL, the rewriter learns to document parameters and return values in structured comments. Applying DECoR to code pre-training corpora produces approximately 52B tokens of comment-enriched data. In from-scratch experiments with 1B and 30B-A3B models, DECoR yields the largest gains on BigCodeBench. On the Stack, the 1B model outperforms both baselines on BigCodeBench at a fixed token budget and at checkpoints near the first four epoch boundaries. The baselines use either the original data or rewrites from a model trained with supervised fine-tuning. Longer rewrites change how often the model sees each file within a token budget, making it difficult to isolate the effects of comment content, length, and repetition. See our GitHub repository for data and code.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-12-03 16:12 · 最新观测版本

DECoR: Boosting Coding LLMs Through Disciplined and Scalable Code Pre-Training Data Comment Rewriting

Code large language models (LLMs) are commonly pre-trained on corpora that include code-related natural language (NL) to strengthen text-code alignment. Code comments provide this alignment signal directly within source files, but large-scale code corpora are often sparsely or poorly commented. We propose Disciplined and Efficient Code Pre-Training Data Rewriting (DECoR), a pipeline for enriching comments in code pre-training data. DECoR constructs rewriting supervision from well-documented code and trains a 1.5B-parameter rewriter with reinforcement learning (RL). The reward combines an LLM judge's assessment of the comments with a penalty for edits to the underlying Python. During RL, the rewriter learns to document parameters and return values in structured comments. Applying DECoR to code pre-training corpora produces approximately 52B tokens of comment-enriched data. In from-scratch experiments with 1B and 30B-A3B models, DECoR yields the largest gains on BigCodeBench. On the Stack, the 1B model outperforms both baselines on BigCodeBench at a fixed token budget and at checkpoints near the first four epoch boundaries. The baselines use either the original data or rewrites from a model trained with supervised fine-tuning. Longer rewrites change how often the model sees each file within a token budget, making it difficult to isolate the effects of comment content, length, and repetition. See our GitHub repository for data and code.

查看此版本解读 →查看此版本原文 ↗