[論文レビュー] OpenCoder: The Open Cookbook for Top-Tier Code Large Language Models
OpenCoder は再現性のある前処理データ、トレーニングパイプライン、二段階指示チューニングを備えた完全オープンソースのコード LLM を提示し、6B以上のパラメータで完全公開モデルの中でトップの性能を達成します。コードAI研究の再現性あるオープンな基盤を提供します。
Large language models (LLMs) for code have become indispensable in various domains, including code generation, reasoning tasks and agent systems. While open-access code LLMs are increasingly approaching the performance levels of proprietary models, high-quality code LLMs suitable for rigorous scientific investigation, particularly those with reproducible data processing pipelines and transparent training protocols, remain limited. The scarcity is due to various challenges, including resource constraints, ethical considerations, and the competitive advantages of keeping models advanced. To address the gap, we introduce OpenCoder, a top-tier code LLM that not only achieves performance comparable to leading models but also serves as an "open cookbook" for the research community. Unlike most prior efforts, we release not only model weights and inference code, but also the reproducible training data, complete data processing pipeline, rigorous experimental ablation results, and detailed training protocols for open scientific research. Through this comprehensive release, we identify the key ingredients for building a top-tier code LLM: (1) code optimized heuristic rules for data cleaning and methods for data deduplication, (2) recall of text corpus related to code and (3) high-quality synthetic data in both annealing and supervised fine-tuning stages. By offering this level of openness, we aim to broaden access to all aspects of a top-tier code LLM, with OpenCoder serving as both a powerful model and an open foundation to accelerate research, and enable reproducible advancements in code AI.
研究の動機と目的
- 研究の機械的解釈性とコード LLM におけるデータ分布に関する研究のために、厳密に厳選され、完全に透明性のある強力なベースラインコード LLMを提供する。
- より強力なコード LLM の設計選択を理解するために、事前学習データと指示データのキュレーションパイプラインを調査する。
- コードAIのオープンな科学研究を加速させるため、オープンで再現可能なデータ処理パイプライン、データセット、トレーニングプロトコルを提供する。
提案手法
- RefineCode を導入し、607言語にまたがる高品質な960Bトークンの事前学習データセットで、130 の言語固有ルールとウェイトを含む。
- コード中心のデータ処理パイプラインを設計・適用し、前処理、重複排除(完全一致およびファジー)、変換(著作権除去、PII削減)、言語・コード固有のフィルタリングルールを含む。
- Common Crawl からのドメインベースのコード分類と URL 注釈を用いた反復的リコールパイプラインで、コード関連ウェブデータを組み立てる。
- RealUser-Instruct、Large-scale Diverse-Instruct、フィルタ済み指示セットを用いる二段階の指示チューニング regimen を提案し、Stage 2 にはGitHubからの高品質なコードを続ける。
- Megatron-LM を用いて 1.5B および 8B の二つのモデルサイズで OpenCoder を訓練し、WSD 学習スケジュール、特定のオプティマイザ、および大規模トークン予算を使用する。前処理と SFT を橋渡しするため、高品質な合成データを用いた慎重なアニーリング段階を適用する。
実験結果
リサーチクエスチョン
- RQ1Open-source code LLMs を完全に公開・再現可能なままトップクラスの性能へ到達させるにはどうすればよいか?
- RQ2データキュレーション、重複排除、品質戦略は、コード LLM の事前学習と下流のコーディングタスクをどの程度効果的に改善するか?
- RQ3理論系 CS コンテンツと高品質 GitHub コードを組み合わせた二段階の指示チューニングアプローチは、一般的なコーディング能力と説明性を向上させるか?
主な発見
- OpenCoder は 6B+ パラメータ規模のコード関連ベンチマークにおいて、以前の完全オープンモデルを上回る(Figure 1 に示す)。
- RefineCode は 607 言語にまたがる 960B トークンの高品質で再現可能な事前学習データセットを提供し、The Stack v2 と比較してトレーニング効率を向上させる。
- 理論 CS の QA を最初に、続いて GitHub の高品質コードを用いた二段階の指示チューニング戦略は、コード生成と理解タスクの両方でより高い性能をもたらす。
- リリースにはモデルウェイトだけでなく、再現性のあるデータ処理パイプライン、アブレーション、およびトレーニングプロトコルを含み、再現性のあるコード LLM 研究を可能にする。
- Table 1 のオープンモデルと比較すると、OpenCoder-8B は HumanEval Pass@1 のスコアで競争力を持ちつつ、データとワークフローの完全な公開性を提供する。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。