[来源关键摘录] Official code repository for Parallel Coordinated Reasoning (PaCoRe) training and inference.
[正文前段节选] Skip to content
Navigation Menu
Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
Repository navigation
NotificationsYou must be signed in to change notification settings
Star342 (342)You must be signed in to star a repository
PaCoRe: Learning to Scale Test-Time Compute with Parallel Coordinated Reasoning
Custom properties
Report repository
BranchesTags
Open more actions menu
Latest commit
Folders and files
Last commit message
Last commit date
pacore_report.pdf
pyproject.toml
View all files
Repository files navigation
Read the Paper | Download Models | Training Data
We introduce PaCoRe (Parallel Coordinated Reasoning), a framework that shifts the driver of inference from sequential depth to coordinated parallel breadth, breaking the model context limitation and massively scaling test time compute:
Think in Parallel: PaCoRe launches massive parallel exploration trajectories.
Coordinate in Multi-rounds: It employs a message-passing architecture to compact these thoughts into concise messages and synthesize them to guide the next round.
Trained via large-scale, outcome-based reinforcement learning, PaCoRe masters the Reasoning Synthesis capabilities required to reconcile diverse parallel insights.
The approach yields strong improvements across diverse domains, and notably pushes reasoning beyond frontier systems in mathematics: an 8B model reaches 94.5% on HMMT 2025, surpassing GPT-5’s 93.2% by scaling effective TTC to roughly two million tokens.
We open-source model checkpoints, training data, and the full inference pipeline to accelerate follow-up work!
Figure 1 | Parallel Coordinated Reasoning (PaCoRe) performance. Left: On HMMT 2025, PaCoRe-8B demonstrates remarkable test-time scaling, yielding steady gains and ultimately surpassing GPT-5. Right: On LiveCodeBench, the RLVR-8B model fails to leverage increased test-time compute, while PaCoRe-8B model effectively unlocks substantial gains as the test-time compute increases.
Figure 2 | PaCoRe Training dynamics. Left panels: The Training Reward and Response Length steadily increase, demonstrating the training stability and effectiveness. Right panels: Evaluation on HMMT 2025 and LiveCodeBench (2408-2505). Performance is reported using single round coordinated reasoning in PaCoRe inference setting with $\vec{K} = [16]$.
[2026/02/03] 🚀 PaCoRe Server is now open source!
🔗 Effortless to play PaCoRe with any LLM endpoint you have!
🍻 Even better—we've added first-class support for Step 3.5 Flash with OpenRouter free provider, StepFun's blazing-fast flagship model!
🎁 Check out the Inference Pipeline section to get started!
[2025/12/09] We are excited to release the PaCoRe-8B ecosystem:
📝 In-depth Technical Report: PaCoRe: Learning to Scale Test-Time Compute with Parallel Coordinated Reasoning.
PaCoRe-8B: Our final PaCoRe-trained model checkpoint!
RLVR-8B-0926: The initial checkpoint of our study, conducted strong reasoning-oriented post-trained on Qwen3-8B-Base.
📚 Data: PaCoRe-Train-8k The high-quality training corpus, including opensource_math, public_mathcontest, synthetic_math and code:
🤗 Stage1-3k: PaCoRe-Train-Stage1-3k
🤗 Stage2-5k: PaCoRe-Train-Stage2-5k
🔍 Experiments
IMO AnswerBench
LiveCodeBench
MultiChallenge
Qwen3-235B-Thinking
DeepSeek-v3.1*
Kimi-K2-Thinking
PaCoRe-8B (low)
PaCoRe-8B (medium)
77.3 (1080k)
PaCoRe-8B (high)
93.7 (1873k)
94.5 (1796k)
78.4 (2258k)
78.2 (1391k)
16.0 (1451k)
48.0 (95.3k)
Table 1 | For each benchmark, we report accuracy together with total TTC (in thousands). For Low, Medium, and High, we apply the inference trajectory configuration as $\vec{K}=[4]$, $[16]$, and $[32, 4]$ separately.* DeepSeek-V3.1 refers to the Terminus version.
Key Findings
Message Passing Unlocks Scaling. Without compaction, performance flatlines at the context limit. PaCoRe breaks the memory barrier and lets reasoning scale freely.
Breadth > Depth. All compute is not equal. Coordinated parallel reasoning delivers far higher returns than extending a single chain.
Data as a Force Multiplier. The PaCoRe corpus provides exceptionally valuable supervision—even baseline models see substantial gains when trained on it.
Getting Started 🚀
The data is provided as a list[dict], where each entry represents a training instance:
conversation: The original problem/prompt messages.
responses: A list of cached generated responses (trajectories). These serve as the input messages ($M$) used during PaCoRe training.
ground_truth: The verifiable answer used for correctness evaluation.
Model Serving
You can directly use vllm serve to serve the model! More inference details of PaCoRe will be handled in Inference Pipeline.
Inference Pipeline
Figure 3 | Inference pipeline of PaCoRe. Each round launches broad parallel exploration, compacts the resulting trajectories into compacted messages, and feeds these messages together with the question forward to coordinate the next round. Repeating this process $\hat{R}$ times yields multi-million-token effective TTC while respecting fixed context limits, with the final compacted message serving as the system’s answer.
We will explain the PaCoRe inference pipeline in this section.
PaCoRe Server Mode (Recommended)
You can run PaCoRe as an OpenAI-compatible server that proxies requests through any upstream LLM provider (vLLM, OpenRouter, etc.) while applying the PaCoRe multi-round parallel reasoning pipeline.
Example: Using OpenRouter as the upstream provider
First, install this package:
pip install -e .
Then do the following steps:
Set your OpenRouter API key:
export OPENROUTER_API_KEY='sk-or-...'
Start the PaCoRe server:
python playground/example_pacore_server_openrouter_step35_flash.py
Send requests to the server:
import requests
messages = [
{"role": "user", "content": "Prove that there are infinitely many prime numbers."}
response = requests.post(
url="http://localhost:8000/v1/chat/completions",
headers={"Content-Type": "application/json"},
data=json.dumps({
"model": "stepfun/step-3.5-flash:free",
"messages": messages,
"reasoning": {"enabled": True}
result = response.json()
print(result["choices"][0]["message"]["content"])
Configuration Options
The PaCoRe server can be configured via environment variables:
PACORE_UPSTREAM_API_BASE
Upstream LLM endpoint URL
http://localhost:8000/v1/chat/completions
Server host address
PACORE_UPSTREAM_TIMEOUT_SECONDS
Request timeout
PACORE_UPSTREAM_RETRY_TIMES
Number of retries
Customizing the Server
You can also create your own server by extending the Exp base class:
from pacore.server.base_exp import ChatCompletionRequest, Exp
class MyCustomServer(Exp):
upstream_api_base = "https://your-api-endpoint.com/v1/chat/completions"
num_responses_per_round = [16] # PaCoRe breadth configuration
def get_upstream_extra_headers(self, request: ChatCompletionRequest) -> dict[str, str]:
return {"Authorization": f"Bearer {your_api_key}"}
if __name__ == "__main__":
MyCustomServer().run()
The num_responses_per_round controls the PaCoRe inference trajectory:
[4] → PaCoRe-low
[16] → PaCoRe-medium
[32, 4] → PaCoRe-high
Batch Inference Example
You can also run some data in a batch.
In this case, we assume you use vllm serve the model in your localhost with PaCoRe-8B model.
Next, you can run our example inference code with PaCoRe-low inference setting:
python playground/example_batch_inference_pacore_low_1210.py
And then you can see dumped results in outputs/example_batch_inference_pacore_low_1210/results.jsonl!
🙏 Acknowledgements
This work was supported by computing resources and infrastructure provided by StepFun and Tsinghua University.
We are deeply grateful to our colleagues for their support:
[...内容已截断,完整版请查看原文或 Wayback 快照]