TTPO: Test-Time Policy Optimization

Aozhe Wang1,2,* Zhengxi Lu1,* Jianze Wang2 Shangke Lv1 Ying Liu2 Weiming Lu1 Jun Xiao1 Yueting Zhuang1 Hua Yang2 Qianglong Chen2,† Yongliang Shen1,†

1Zhejiang University    2Alibaba Group
*Equal contribution. Corresponding authors.

Abstract

Recent prominent post-training methods, such as Reinforcement Learning (RL) and On-Policy Self-Distillation (OPSD), have driven rapid progress in mathematical reasoning for large language models, yet their reliance on ground-truth labels precludes test-time training (TTT). Replacing ground truth with majority-vote pseudo-labels is a natural alternative, yet it is fragile: an incorrect vote corrupts the teacher and misleads every token. We observe that this failure mode is asymmetric: rollouts that disagree with the pseudo-label are typically wrong regardless of whether the vote itself is correct.

Building on this observation, we propose Test-Time Policy Optimization (TTPO), an asymmetric objective that distills agreeing rollouts via OPSD and penalizes disagreeing rollouts with Grouped RL. Token-level selection further refines both branches: distillation down-weights already-converged positions, while RL penalizes only confident errors. Both updates remain well-grounded even under frequent pseudo-label errors, and majority-vote routing yields tighter self-supervision as the model improves. Without any labels, TTPO matches label-supervised OPSD on five competition-level benchmarks, raises Qwen3-1.7B from 38.0% to 45.2% in TTT, yields +25.2% to +36.4% without thinking, and shows strong cross-task generalization.

TTPO motivation, method overview, and performance summary
Motivation, overview, and headline performance of TTPO. The asymmetric objective uses agreeing rollouts for OPSD and disagreeing rollouts for GRPO.

Motivation

On difficult test problems, majority-vote pseudo-labels are wrong for roughly 85% of prompts. However, about 79% of the rollouts that disagree with a wrong pseudo-label are also wrong. This asymmetry makes disagreement a useful negative signal even when the voted answer itself is unreliable.

Treating every pseudo-label as a correct teacher would amplify its mistakes, while a single scalar reward discards the rich token-level information in promising trajectories. TTPO instead asks a narrower question: which supervision signal is trustworthy for each rollout? Agreement supports dense self-distillation; disagreement supports a conservative negative reward.

≈85%wrong pseudo-labels on hard prompts
≈79%disagreeing rollouts are also wrong

Methodology

For each prompt, TTPO samples multiple solutions and extracts their final answers. A majority vote provides a temporary routing signal—not an assumed ground-truth label—so the model can learn from its own test-time rollouts without external annotations.

TTPO method with majority voting, positive OPSD branch, and negative GRPO branch
Majority voting partitions rollouts into positive and negative groups, which receive different update signals.

1. Majority Voting

Sample K trajectories, cluster equivalent answers, and use the largest cluster as the pseudo-label.

2. Positive Samples

Apply forward-KL self-distillation to agreeing rollouts. Token weighting emphasizes uncertain or teacher-divergent positions.

3. Negative Samples

Apply grouped RL penalties to disagreeing rollouts. Token masking limits the update to confident errors and protects locally correct reasoning.

Experimental Results

TTPO consistently outperforms label-free baselines and remains competitive with methods trained using ground-truth labels.

OpenThoughts Training

Avg@12 across five competition-level benchmarks.

Uses ground-truth labels. TTPO is label-free.

Method AIME25 HMMT25 AIME26 HMMT26 BRUMO25 Average
Qwen3-1.7B
Base36.921.937.828.847.534.6
+GRPO37.323.640.329.348.135.7
+OPSD40.328.146.431.452.539.7
+TTPO41.726.146.531.654.740.1
Qwen3-4B
Base66.141.965.842.464.056.0
+GRPO66.745.066.643.266.157.5
+OPSD68.344.268.144.467.258.4
+TTPO69.443.668.144.767.258.6
Qwen3-8B
Base66.744.267.545.569.258.6
+GRPO70.346.769.248.071.961.2
+OPSD70.846.472.547.271.461.7
+TTPO71.446.174.248.073.162.6

TTPO reaches average scores of 40.1, 58.6, and 62.6 at the 1.7B, 4B, and 8B scales, respectively. Despite using only majority-vote pseudo-labels, it matches or exceeds ground-truth-supervised OPSD at every scale. The result indicates that the supervision source matters less than routing each sample to a signal that remains trustworthy under label noise.

Test-Time Training

Training directly on unlabeled test problems.

No method uses ground-truth labels.

Method AIME26 HMMT26 BRUMO25 Average
Qwen3-1.7B
Base37.828.847.538.0
+TTRL39.230.650.940.2
+OPSD-TTT44.730.350.841.9
+TTPO48.933.653.145.2
Qwen3-4B
Base65.842.464.057.4
+TTRL66.443.266.758.8
+OPSD-TTT67.843.466.959.4
+TTPO70.845.766.961.1
Qwen3-8B
Base67.545.569.260.7
+TTRL70.848.070.163.0
+OPSD-TTT71.747.272.263.7
+TTPO73.948.573.665.3

In pure test-time training, Qwen3-1.7B improves from 38.0 to 45.2 Avg@12, outperforming TTRL by 5.0 points and OPSD-TTT by 3.3 points. The gains remain consistent at larger scales; notably, TTPO on Qwen3-4B reaches 61.1 and already exceeds the untrained Qwen3-8B model at 60.7.

Non-Thinking Evaluation

OpenThoughts training; evaluation with thinking mode disabled.

Uses ground-truth labels during training.

Method AIME25 HMMT25 AIME26 HMMT26 BRUMO25 Average
Qwen3-1.7B
Base9.25.68.86.117.89.5
+OPSD16.99.219.411.925.616.6
+TTPO39.220.639.826.347.534.7
Qwen3-4B
Base22.212.519.417.228.319.9
+OPSD26.718.924.422.536.125.7
+TTPO57.236.761.436.460.850.5
Qwen3-8B
Base20.611.421.118.729.720.3
+OPSD25.014.222.219.937.823.8
+TTPO67.842.565.041.267.256.7

Disabling thinking mode makes the transfer effect especially clear. TTPO improves the base averages by +25.2, +30.6, and +36.4 points across the three model scales, far beyond the gains from supervised OPSD (+7.1, +5.8, and +3.5). The positive branch transfers dense reasoning guidance, while the negative branch actively removes failure patterns from the student's own non-thinking distribution.

Experimental Analysis

Beyond final accuracy, the training dynamics explain why majority-vote routing remains effective even though its pseudo-labels are frequently wrong.

Optimization Dynamics and Exploration

Majority-vote routing keeps both branches active and produces a sustained optimization signal. In contrast, ground-truth routing often finds almost no matching positive rollouts on hard problems, starving the OPSD branch and shrinking group-relative advantages. TTPO also maintains substantially higher entropy than TTRL, preserving exploration instead of collapsing prematurely around a self-consistent answer.

Training loss curves for TTPO and comparison methods
Training loss on AIME26. Pseudo-label routing sustains a stronger learning signal than routing with ground truth.
Policy entropy throughout training
Policy entropy during training. TTPO preserves a broader rollout distribution while TTRL quickly loses diversity.

Pseudo-Label Routing and Self-Evolution

Pseudo-labels are easier for the current model to match than difficult ground-truth answers, so they maintain a healthy positive-negative split and keep both objectives useful. As the policy improves, the rollouts used for voting improve too: the majority becomes more accurate, which raises the quality of the next training signal and creates a self-reinforcing improvement cycle.

AIME26 accuracy under pseudo-label and ground-truth routing
TTPO with pseudo-label routing ultimately surpasses both ground-truth routing and supervised OPSD on AIME26.
Average and majority-vote accuracy during TTPO training
Avg@12 and Maj@12 rise together, showing that the pseudo-label ceiling itself improves throughout training.

Cross-Benchmark Generalization

TTPO is not simply memorizing the test problems used for adaptation. Training on AIME26, HMMT26, or BRUMO25 also improves performance on the other contests, indicating that the policy internalizes reusable reasoning behavior that transfers beyond the optimization set.

Cross-benchmark generalization results
Training on one competition benchmark also improves performance on the other benchmarks.

Key Insights

01

Noisy labels still contain reliable negative information.

Majority voting does not need to identify the correct answer reliably. Even when the vote is wrong, most disagreeing rollouts are wrong as well, so penalizing their disagreement remains useful without trusting the pseudo-label's content.

02

Positive and negative rollouts require different supervision.

Agreeing rollouts support dense, token-level distillation because the teacher is conditioned on the answer the rollout already produced. Disagreeing rollouts are safer to handle with a coarse RL penalty. TTPO's advantage comes from applying each signal only where its assumptions remain valid.

03

Majority-vote routing is aligned with the model's current capability.

Hard ground-truth answers can leave almost no positive trajectories and weaken both branches. A vote always forms a reachable consensus, keeping training active; as the policy improves, better rollouts create better votes and progressively tighter self-supervision.

04

The learned improvement is transferable, not just longer reasoning.

TTPO improves across model scales and transfers between competition benchmarks. The especially large gains when thinking mode is disabled show that the student internalizes useful reasoning behavior rather than relying only on longer inference traces.

BibTeX

@article{wang2026ttpo,
  title   = {TTPO: Test-Time Policy Optimization},
  author  = {Wang, Aozhe and Lu, Zhengxi and Wang, Jianze and Lv, Shangke and
             Liu, Ying and Lu, Weiming and Xiao, Jun and Zhuang, Yueting and
             Yang, Hua and Chen, Qianglong and Shen, Yongliang},
  journal = {Preprint},
  year    = {2026}
}