Test-Time Policy Adaptation for Enhanced Multi-Turn Interactions with LLMs
Organizations: School of Computing and Data Science, The University of Hong Kong · Shenzhen Loop Area Institute · University of Science and Technology of China · School of Information Technology, Carleton University ·
Abstract
Large Language Models (LLMs) employ multi-turn interaction as a fundamental paradigm for completing complex tasks. However, their performance often degrades in extended interactions, as they are typically trained on static, single-turn data, which hinders their ability to adapt to real-time user feedback. To address this limitation, we first propose a new paradigm: Test-Time Policy Adaptation for Multi-Turn Interactions (T2PAM), which utilizes user feedback from the ongoing interaction as a reward signal to estimate a latent optimal policy aligned with user preferences, then updates a small subset of parameters to steer the model toward this policy, ultimately enabling efficient in-conversation self-correction. We then introduce Optimum-Referenced One-Step Adaptation (ROSA), a lightweight algorithm that operationalizes T2PAM. ROSA guides the model parameters toward a theoretical optimal policy in a single, efficient update step, avoiding costly iterative gradient-based optimization and minimizing computational overhead. We provide a rigorous theoretical analysis guaranteeing that the policy of ROSA converges to the preference of user as the number of interactions increases. Extensive experiments on challenging benchmark demonstrate that ROSA achieves significant improvements in both task effectiveness and efficiency.
Figures & tables
| Feature | Prompt-based Methods | Multi-turn Data Training | T²PAM (Ours) |
|---|---|---|---|
| Intervention Timing | During inference | During training | During inference |
| Operating Mode | Reactive | Proactive (at training) | Proactive (at inference) |
| Additional Offline Training Cost | Zero (uses single-turn model) | High | Zero (uses single-turn model) |
| Inference Cost | Low (long context) | Near-zero | Low (preference alignment) |
| Parameter Modification | No | Yes (offline) | Yes (online) |
| Real-time Adaptability | Low (context-dependent) | Low (static policy) | High (policy-level) |
| Mathematical Reasoning | General Reasoning | Multilingual Reasoning | Code Gen. | |||||
|---|---|---|---|---|---|---|---|---|
| Model | Method | MATH | MATH-500 | MMLU-R | SuperGPQA | MT-AIME24 | MT-MATH100 | HumanEval |
| Qwen2.5-0.5B -Instruct | Baseline | 13.40 | 12.20 | 7.27 | 1.90 | 3.48 | 15.40 | 31.09 |
| ROSA (+LM + R) | 30.40 (+17.00) | 28.00 (+15.80) | 9.07 (+1.80) | 5.63 (+3.73) | 3.67 (+0.19) | 22.80 (+7.40) | 37.19 (+6.10) | |
| ROSA (+HS + R) | 25.40 (+12.00) | 25.00 (+12.80) | 11.00 (+3.73) | 5.00 (+3.10) | 4.90 (+1.42) | 20.90 (+5.50) | 37.27 (+6.18) | |
| ROSA (+LM + M) | 27.00 (+13.60) | 28.40 (+16.20) | 13.72 (+6.45) | 6.57 (+4.67) | 6.13 (+2.65) | 25.20 (+9.80) | 39.37 (+8.28) | |
| Qwen3-0.6B | Baseline | 25.00 | 26.00 | 18.60 | 4.20 | 4.80 | 31.30 | 41.46 |
| Model | Method | MATH | AIME25 | MATH-500 | HumanEval |
|---|---|---|---|---|---|
| Qwen2.5-0.5B-Instruct | Baseline | 6.88 | 0.00 | 6.79 | 14.39 |
| ROSA | 25.48 (+18.60) | 6.67 (+6.67) | 24.05 (+17.26) | 26.09 (+11.70) | |
| Qwen3-0.6B | Baseline | 17.40 | 3.57 | 17.78 | 19.33 |
| ROSA | 48.87 (+31.47) | 16.67 (+13.10) | 51.31 (+33.53) | 31.01 (+11.68) | |
| Qwen2.5-7B-Instruct | Baseline | 12.54 | 3.57 | 13.65 | 28.57 |
| ROSA | 41.53 (+28.99) | 20.69 (+17.12) | 36.91 (+23.26) | 40.00 (+11.43) |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Domain | Dataset Name | Training Size | Test Size |
| Mathematical Reasoning | MATH | 7,500 | 5,000 |
| AIME25 | N/A | 30 | |
| MATH-500 | N/A | 500 | |
| General Reasoning | GPQA-diamond | N/A | 198 |
| MMLU-Redux | N/A | 3,000 | |
| SuperGPQA | 26,500 | N/A |
| Category | Model Name | Parameters | Variant |
|---|---|---|---|
| Small-Scale Models | Qwen2.5-0.5B-Instruct | 0.5B | Instruct |
| Qwen3-0.6B | 0.6B | Base | |
| Large-Scale Models | Qwen2.5-7B-Instruct | 7B | Instruct |
| Qwen3-8B | 8B | Base | |
| Reasoning-Focused | DeepSeek-R1-Distill-Llama-8B | 8B | Reasoning-Tuned |
| DeepSeek-R1-Distill-Qwen-7B | 7B | Reasoning-Tuned |
| Score | Criterion |
|---|---|
| Correct reasoning and correct final answer. | |
| Essentially correct method with a local arithmetic or presentation error. | |
| Partially correct core idea, but a critical step is missing or flawed. | |
| Limited valid progress; the main reasoning is incorrect. | |
| Incorrect or irrelevant reasoning and answer. |
| Hyperparameter | Value |
|---|---|
| target_modules | lm_head |
| Rank | 1 |
| lora_alpha | 8 |
| lora_dropout | 0.1 |
| Method | Template A (Default) | Template B (Direct) | Template C (Guiding) |
|---|---|---|---|
| ROSA (+LM+R) | 50.20% | 48.40% | 52.60% |
| ROSA (+HS+R) | 50.80% | 50.20% | 51.60% |
| ROSA (+LM+M) | 52.20% | 53.60% | 54.40% |
| Model | Method | Averaged Latency (s) | Peak GPU Memory (GB) | ||
|---|---|---|---|---|---|
| Inference | Update | Inference | Update | ||
| Qwen2.5-0.5B-Instruct | Baseline | 8.42 | 0 | 11.85 | 0 |
| ROSA | 7.97 | 7.58 | 11.68 | 18.60 | |
| Qwen3-0.6B | Baseline | 18.71 | 0 | 15.61 | 0 |
| ROSA | 18.85 | 13.16 | 16.24 | 23.65 | |
| Qwen2.5-7B-Instruct | Baseline | 19.40 | 0 | 42.01 | 0 |
| Model / Method | Peak GPU Memory (GB) | Avg. Time to Solve |
|---|---|---|
| Qwen3-32B (Baseline) | 94.2 | 1.0x (Reference) |
| + ROSA (+LM+R) | 94.9 (+0.7) | 1.9x |
| Model | Setup | OSWorld (Online) | AndroidWorld (Online) |
|---|---|---|---|
| UI-TARS-7B-SFT | Baseline | 13.23 | 27.61 |
| + ROSA (+LM+R) | 16.71 (+3.48) | 30.26 (+2.65) | |
| + ROSA (+LM+M) | 17.83 (+4.60) | 30.93 (+3.32) | |
| UI-TARS-7B-DPO | Baseline | 14.80 | 28.90 |
| + ROSA (+LM+R) | 17.32 (+2.52) | 30.37 (+1.47) | |
| + ROSA (+LM+M) | 18.04 (+3.24) | 31.68 (+2.78) |
| Task Domain | Benchmark | Metric | Baseline | ROSA |
|---|---|---|---|---|
| Subjective | MT-Bench | GPT-5.2 Score (Scaled) | 60.36 | 75.57 (+15.21) |
| Instruction | IFEval | Strict Acc. (%) | 58.31 | 70.26 (+11.95) |
| Paradigm | Specific Method | Final Acc. (%) | Correction Uplift (%) | Avg. Time to Solve |
|---|---|---|---|---|
| Standard | Zero-Shot Baseline | 26.00 | 17.40 | 1.0x (Reference) |
| Automatic Prompt Eng. | APE (DSPy Khattab et al. (2024) ) | 29.20 | 16.83 | 1.0x |
| APE (TextGrad Yuksekgonul et al. (2025) ) | 29.40 | 16.76 | 1.0x | |
| APE (TSGD-M Ding et al. (2025) ) | 30.20 | 17.16 | 1.0x | |
| Search & Sampling | Best-of- ( ) | 36.40 | 20.36 | 10.0x |
| Reranking ( + RM) | 37.80 | 21.57 | 10.0x + RM |
| Model / Method | MATH | MMLU-R | MT-AIME24 | HumanEval |
|---|---|---|---|---|
| Qwen3-32B (Baseline) | 76.40 | 73.63 | 67.93 | 85.37 |
| + ROSA (+LM+R) | 87.80 (+11.40) | 85.12 (+11.49) | 76.19 (+8.26) | 87.80 (+2.43) |
| + ROSA (+HS+R) | 87.40 (+11.00) | 86.05 (+12.42) | 77.27 (+9.34) | 87.80 (+2.43) |
| Method | Turn 5 | Turn 10 | Turn 15 | Turn 20 |
|---|---|---|---|---|
| Baseline | 19.40 | 25.00 | 27.20 | 27.20 |
| ROSA | 25.80 (+6.40) | 50.20 (+25.20) | 57.40 (+30.20) | 64.80 (+37.60) |
| Method | Reward Granularity | Final Acc. (%) | Avg. Turns to Solve |
|---|---|---|---|
| Baseline | None | 26.00 | 8.9 |
| ROSA (Rule ORM) | Final Outcome Reward | 50.20 | 6.9 |
| ROSA (LLM ORM) | Continuous Outcome Reward | 52.20 | 6.7 |
| ROSA (Rubric) | Five-Level Outcome Reward | 51.80 | 6.7 |
| ROSA (PRM) | Step-level Process Reward | 60.40 (+10.20) | 5.8 |
| Model State | MMLU (Zero-shot Acc. %) | Wikitext Perplexity | Average KL Divergence |
|---|---|---|---|
| Base Model | 51.03 | 18.2037 | 0.0 |
| ROSA Adapted Model (10 updates) | 51.36 | 18.2045 | 0.001 |
| Method | Feedback Samples / Turn | Final Acc. (%) | Avg. Turns to Solve | Avg. Time to Solve |
|---|---|---|---|---|
| Baseline | – | 26.00 | 8.9 | 1.0x |
| ROSA-Single (Ours) | 50.20 | 6.7 | 1.8x | |
| ROSA-Multi | 52.60 (+2.40) | 6.5 | 6.9x |
| MATH | AIME25 | MATH-500 | HumanEval | |||||
|---|---|---|---|---|---|---|---|---|
| Method | Final Acc. | Correction Uplift | Final Acc. | Correction Uplift | Final Acc. | Correction Uplift | Final Acc. | Correction Uplift |
| Baseline | 7.60 | 3.14 | 10.00 | 3.57 | 7.40 | 6.09 | 45.12 | 17.05 |
| ROSA | 9.80 (+2.20) | 5.65 (+2.51) | 16.67 (+6.67) | 16.67 (+13.10) | 22.20 (+14.80) | 18.62 (+12.53) | 51.22 (+6.10) | 33.75 (+16.70) |
| Mathematical Reasoning | General Reasoning | Multilingual Reasoning | ||
|---|---|---|---|---|
| Model | Method | AIME25 | GPQA-diamond | M-IMO |
| Qwen2.5-0.5B -Instruct | Baseline | 3.33 | 3.54 | 1.99 |
| ROSA (+LM + R) | 6.67 (+3.34) | 7.07 (+3.53) | 2.09 (+0.10) | |
| ROSA (+HS + R) | 6.67 (+3.34) | 8.53 (+4.99) | 3.20 (+1.21) | |
| ROSA (+LM + M) | 6.67 (+3.34) | 10.27 (+6.73) | 4.71 (+2.72) | |
| Qwen3-0.6B | Baseline | 10.00 | 12.20 | 5.20 |
| Method | Final Acc. | Correction Uplift |
|---|---|---|
| Baseline | 55.80 | 23.00 |
| SFT Training | 63.80 | 39.24 |
| RL Training | 66.20 | 40.45 |
| ROSA | 65.80 | 40.42 |
| Adaptation scope | Feedback used | Success (%) |
|---|---|---|
| No parameter updates | None | 3 |
| Instance-specific, reset between tasks | Negative only | 14 |
| Persistent across tasks | Negative only | 16 |
| Persistent across tasks | Positive and negative | 19 |
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Mean |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | 2.93 | 2.99 | 2.94 | 3.21 | 3.53 | 4.01 | 4.27 | 4.57 | 4.68 | 4.70 | 3.78 |
| ROSA | 2.93 | 3.51 | 3.95 | 4.33 | 4.68 | 4.74 | 4.89 | 4.95 | 4.98 | 4.99 | 4.40 |
| Model | Method | MATH | MATH-500 | AIME25 | HumanEval |
|---|---|---|---|---|---|
| Qwen3-0.6B | RL | 26.20 | 28.80 | 10.00 | 42.68 |
| ROSA | 50.20 (+24.00) | 51.60 (+22.80) | 16.67 (+6.67) | 45.73 (+3.05) | |
| Qwen3-8B | RL | 59.60 | 63.60 | 16.67 | 79.27 |
| ROSA | 65.80 (+6.20) | 72.80 (+9.20) | 30.00 (+13.33) | 81.71 (+2.44) | |
| DeepSeek-R1-Distill -Llama-8B | RL | 6.20 | 8.40 | 10.00 | 28.05 |
| ROSA | 7.80 (+1.60) | 18.40 (+10.00) | 16.67 (+6.67) | 39.02 (+10.97) |
| Model | Method | MATH | MATH-500 | AIME25 | HumanEval |
|---|---|---|---|---|---|
| Qwen3-0.6B | RL | 18.54 | 20.00 | 6.90 | 22.31 |
| ROSA | 48.87 (+30.33) | 51.31 (+31.31) | 16.67 (+9.77) | 31.01 (+8.70) | |
| Qwen3-8B | RL | 29.37 | 31.58 | 10.71 | 50.00 |
| ROSA | 40.42 (+11.05) | 52.94 (+21.36) | 27.59 (+16.88) | 62.50 (+12.50) | |
| DeepSeek-R1-Distill -Llama-8B | RL | 4.87 | 7.29 | 6.90 | 16.31 |
| ROSA | 6.30 (+1.43) | 17.41 (+10.12) | 13.79 (+6.89) | 31.97 (+15.66) |