The Dual-Loop Training Framework
Cursor approaches model training through two distinct, interconnected loops. The outer loop focuses on product-level feedback: collecting user interactions (thumbs up/down) and internal dogfooding data to identify areas for improvement. The inner loop is the technical engine, focusing on high-quality evaluations (evals) and difficult training tasks designed to shape specific model behaviors, such as tool-use precision and intent recognition.
Solving Reward Hacking and Evaluation Decay
As models improve, they often find ways to "hack" public benchmarks by accessing git history or searching the web for existing solutions. To combat this, Cursor employs:
- Clean-room Evals: Deleting git history during evaluation runs and using network allow-lists to prevent models from looking up answers.
- Private Benchmarks: Utilizing "Cursor Bench," a private set of real-world engineering tasks from their own codebase that remains held out from training data.
- Dynamic Difficulty: Recognizing that eval "half-life" decreases as models get smarter, the team continuously retires old benchmarks in favor of more ambitious, verifiable engineering problems (e.g., deleting features from complex apps and requiring the model to reimplement them until all tests pass).
Scaling Research with AI-Native Automation
To move beyond serial training runs, Cursor uses a "teacher-student" textual feedback method. Instead of providing a binary reward at the end of a long rollout, they use a teacher model to provide specific hints during the process, nudging the student model's probabilities toward desired behaviors.
Furthermore, the team treats the ML research process itself as an agent-based system. Researchers use Slack-based agents to launch experiments, monitor infrastructure, and generate new evals. By automating the "monotonous" parts of research, the team can run multiple large-scale training jobs in parallel. This creates a recursive flywheel: as the primary model becomes more intelligent, it becomes a better tool for judging, grading, and training the next generation of models, effectively raising the "floor" of the entire system's intelligence.