Skip to main content
QUICK REVIEW

[Paper Review] Composer 2 Technical Report

Cursor Reseach, :|arXiv (Cornell University)|Mar 25, 2026
Software Engineering ResearchComputer Science0 citations
TL;DR

Composer 2 is a frontier-level coding model for agentic software engineering, trained in continued pretraining and asynchronous reinforcement learning, achieving strong CursorBench and public benchmark scores.

ABSTRACT

Composer 2 is a specialized model designed for agentic software engineering. The model demonstrates strong long-term planning and coding intelligence while maintaining the ability to efficiently solve problems for interactive use. The model is trained in two phases: first, continued pretraining to improve the model's knowledge and latent coding ability, followed by large-scale reinforcement learning to improve end-to-end coding performance through stronger reasoning, accurate multi-step execution, and coherence on long-horizon realistic coding problems. We develop infrastructure to support training in the same Cursor harness that is used by the deployed model, with equivalent tools and structure, and use environments that match real problems closely. To measure the ability of the model on increasingly difficult tasks, we introduce a benchmark derived from real software engineering problems in large codebases including our own. Composer 2 is a frontier-level coding model and demonstrates a process for training strong domain-specialized models. On our CursorBench evaluations the model achieves a major improvement in accuracy compared to previous Composer models (61.3). On public benchmarks the model scores 61.7 on Terminal-Bench and 73.7 on SWE-bench Multilingual in our harness, comparable to state-of-the-art systems.

Motivation & Objective

  • Advance understanding of scaling laws for domain-specific coding models via continued pretraining and RL.
  • Develop infrastructure and benchmarks that mirror real-world software engineering tasks to reduce train-test mismatch.
  • Demonstrate performance gains on both internal CursorBench and public SWE benchmarks.
  • Show how to balance coding accuracy with efficient deployment in production settings.

Proposed method

  • Continued pretraining on a large code-dominated data mix to improve coding knowledge and latent capabilities.
  • Asynchronous reinforcement learning with policy gradients and multiple samples per prompt to improve end-to-end coding performance.
  • Self-summarization to enable long-horizon task handling by chaining multiple generations with summaries.
  • CursorBench-based evaluation to reflect real-world, underspecified developer tasks and measure code quality, execution efficiency, and interactive behavior.
  • Infrastructure innovations including Context Parallelism, decoupled MoE design, and specialized quantization and kernel implementations for scalable training.
Figure 1: Composer 2 improves greatly from previous Composer models, achieving performance competitive with state-of-the-art models. By specializing entirely on coding ability, Composer attains such performance while being lower cost to serve than state-of-the-art model API pricing. See Section 5 fo
Figure 1: Composer 2 improves greatly from previous Composer models, achieving performance competitive with state-of-the-art models. By specializing entirely on coding ability, Composer attains such performance while being lower cost to serve than state-of-the-art model API pricing. See Section 5 fo

Experimental results

Research questions

  • RQ1How does continued pretraining impact downstream RL performance for coding agents?
  • RQ2What training and inference architectures best balance accuracy, latency, and stability in agentic software engineering?
  • RQ3Can self-summarization and long-horizon chaining improve performance on extended coding tasks without excessive context use?
  • RQ4How does CursorBench compare to public benchmarks in reflecting real-world coding tasks for agents?

Key findings

  • Composer 2 achieves notable improvements over prior Composer models on CursorBench (61.3) and attains comparable scores on Terminal-Bench (61.7) and SWE-bench Multilingual (73.7).
  • RL training shows both average and best-of-K performance improve during training, indicating broader coverage of correct solutions rather than mere reweighting of known trajectories.
  • Continued pretraining correlates with downstream RL rewards and reduced evaluation loss, supporting the planned two-phase training strategy.
  • Self-summarization enables efficient long-horizon reasoning with fewer tokens and preserved KV cache, improving hard-task performance.
  • The infrastructure combines advanced parallelism (Context Parallelism), MoE decoupling, and specialized low-precision kernels, enabling scalable training and robust inference.
Figure 2: Continued pretraining translates to downstream RL performance. Left: We study this relationship on a smaller Qwen model, examining checkpoints trained on a varying number of tokens. Right: The model undergoes a steady decrease in training perplexity.
Figure 2: Continued pretraining translates to downstream RL performance. Left: We study this relationship on a smaller Qwen model, examining checkpoints trained on a varying number of tokens. Right: The model undergoes a steady decrease in training perplexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.