Abstract
The ByteDance Seed team introduces Seed-Coder, a family of 8B-parameter open-source large language models tailored for coding tasks. By replacing brittle, human-crafted data filtering rules with a scalable, LLM-driven quality scoring pipeline, they curated a massive 6-trillion-token pretraining dataset. The resulting Base, Instruct, and Reasoning models achieve state-of-the-art performance among similar-sized models, often rivaling or beating much larger competitors. This paper demonstrates that model-centric data curation is a superior alternative to traditional heuristic-based approaches.
Introduction
High-quality code data is the cornerstone of training capable Large Language Models (LLMs). Historically, curating this data has relied heavily on human-centric approaches, such as writing hundreds of hand-crafted filtering rules (e.g., regex-based checks for comments or auto-generated code) or using human annotators to train quality classifiers. However, as noted in "The Bitter Lesson," human-engineered heuristics eventually plateau. Hand-crafted rules are rigid, prone to subjective biases, and incredibly expensive to scale and maintain across dozens of programming languages.
Seed-Coder addresses this bottleneck by shifting the paradigm from human-centric to model-centric data curation. The authors propose using LLMs themselves to evaluate and filter code quality at scale, effectively removing the human bottleneck from the data pipeline and allowing for more nuanced, holistic quality standards.
Methods and Data Pipeline
The core innovation of Seed-Coder is its model-centric data pipeline. Instead of relying on manual rules, the authors utilized a powerful "oracle" LLM (DeepSeek-V2-Chat) to score a sample of code files based on four key metrics: readability, modularity, clarity, and reusability. To scale this process, they trained a smaller, highly efficient 1.3B parameter regression model on these scores, which then acted as a universal quality filter across 89 programming languages.
The Seed-Coder family consists of three models developed sequentially:
- Base Model: Pretrained on 6 trillion tokens. It utilizes Fill-in-the-Middle (FIM) training with a Suffix-Prefix-Middle (SPM) format, which was found to outperform the standard PSM format. The context window was expanded up to 32K tokens.
- Instruct Model: Fine-tuned on synthetic instructions generated from diverse code snippets. This was followed by Direct Preference Optimization (DPO) using sandbox-verified code execution to ensure logical correctness.
- Reasoning Model: Developed using Long-Chain-of-Thought (LongCoT) reinforcement learning via Group Relative Policy Optimization (GRPO). A "progressive exploration strategy" was used, gradually increasing sequence length and rollout numbers to optimize training efficiency.
The dataset includes GitHub repositories, 74 million GitHub commits (providing dense supervision for editing tasks), and code-related content from Common Crawl.
Key Results
Seed-Coder-8B models demonstrate exceptional performance across a wide array of benchmarks, often surpassing models with significantly higher parameter counts.
- Base Performance: The 8B-Base model scored 77.4% on HumanEval and 82.0% on MBPP, outperforming Qwen2.5-Coder-7B and even beating some 33B+ models. It also achieved 100% accuracy on a 32K-context "Needle in the Code" test.
- Instruction Following: The Instruct model achieved a striking 53.3% pass@1 on BigCodeBench (Full) and 19.2% on SWE-bench Verified. It dominated code editing benchmarks like Aider with a 57.1% score.
- Reasoning Capabilities: After RL, the Reasoning model hit 53.6% on LiveCodeBench, slightly edging out proprietary models like Claude-3.7-Sonnet-Thinking (53.3%).
Discussion and Insights
Several key insights emerged from the development of Seed-Coder. First, LLMs prove to be better judges of code quality than humans, capturing nuances that rigid regex rules cannot. Second, GitHub commits are a "goldmine" for training, as they provide real-world examples of code evolution and fault localization. Finally, the progressive RL strategy proved highly efficient, allowing the model to scale its reasoning capabilities without sacrificing early-stage training stability.
Limitations and Future Work
Despite its strengths, Seed-Coder is highly specialized. Because it was trained almost exclusively on code and math, it lacks the broad general knowledge of generalist models like Llama 3.1. Furthermore, while it shows massive gains in reasoning, it still struggles with the highest-tier competitive programming problems (e.g., IOI bronze threshold). Future work will involve scaling this model-centric pipeline to larger architectures and refining resource allocation during RL training.
Summary updated