Skip to main content
QUICK REVIEW

[Paper Review] Provable and Practical In-Context Policy Optimization for Self-Improvement

Tianrun Yu, Yuxiao Yang|arXiv (Cornell University)|Mar 2, 2026
Reinforcement Learning in RoboticsComputer Science0 citations
TL;DR

The paper theory-cfinds that a one-layer linear self-attention transformer can imitate policy-optimization with in-context data and proposes ME-ICPO, a practical test-time in-context optimization algorithm with minimum-entropy selection for self-improvement in mathematical reasoning.

ABSTRACT

We study test-time scaling, where a model improves its answer through multi-round self-reflection at inference. We introduce In-Context Policy Optimization (ICPO), in which an agent optimizes its response in context using self-assessed or externally observed rewards without modifying its parameters. To explain this ICPO process, we theoretically show that with sufficient pretraining under a novel Fisher-weighted logit-matching objective, a single-layer linear self-attention model can provably imitate policy-optimization algorithm for linear bandits. Building on this theory, we propose Minimum-Entropy ICPO (ME-ICPO), a practical algorithm that iteratively uses its response and self-assessed reward to refine its response in-context at inference time. By selecting the responses and their rewards with minimum entropy, ME-ICPO ensures the robustness of the self-assessed rewards via majority voting. Across standard mathematical reasoning tasks, ME-ICPO attains competitive, top-tier performance while keeping inference costs affordable compared with other inference-time algorithms. Overall, ICPO provides a principled understanding of self-reflection in LLMs and yields practical benefits for test-time scaling for mathematical reasoning.

Motivation & Objective

  • Formulate multi-round self-reflection as in-context policy optimization (ICPO) to understand self-improvement in LLMs.
  • Prove that a sufficiently pretrained one-layer linear self-attention model can imitate policy-optimization on linear bandits.
  • Introduce ME-ICPO, a practical test-time algorithm that refines responses in-context using self-assessed rewards.
  • Demonstrate robustness and competitive performance on standard mathematical reasoning benchmarks.

Proposed method

  • Define an ICPO framework where the model updates its in-context policy using past actions and observed rewards.
  • Derive a closed-form, linear self-attention (LSA) representation that mimics a policy-optimization update under a Fisher-weighted logit-matching objective.
  • Propose a supervised pretraining loss that links the LSA outputs to policy optimization logits via a projected Fisher loss and KL surrogate relationships.
  • Establish theoretical guarantees: population equivalence (Theorem 4.2), finite-sample consistency (Theorem 4.3), and stability to reward perturbations (Theorem 4.8).
  • Present ME-ICPO, a practical, gradient-free test-time algorithm that uses majority-vote rewards, CoTSummaries, and minimum-entropy selection to update in-context history.
  • Provide an algorithmic blueprint for ME-ICPO and discuss complexity considerations and robustness aspects.

Experimental results

Research questions

  • RQ1Can ICPO explain how LLMs perform self-reflection and improve their responses without updating parameters?
  • RQ2Under pretraining, can a simple one-layer linear self-attention network imitate a policy-optimization process using in-context data?
  • RQ3Does a Fisher-weighted projected loss provide a reliable surrogate for KL-based policy objectives in ICPO?
  • RQ4Is ME-ICPO robust to noisy self-assessed rewards and scalable at inference time for mathematical reasoning tasks?
  • RQ5What empirical gains does ME-ICPO achieve on standard mathematical reasoning benchmarks compared to baselines?

Key findings

  • A one-layer LSA can provably imitate policy optimization for linear bandits given sufficient pretraining.
  • A Fisher-weighted loss provides a tight surrogate for mixed-policy KL and supports in-context policy learning.
  • Population-equivalence holds: the pretrained LSA can mimic the PO policy for all histories (Theorem 4.2).
  • Finite-sample guarantees ensure empirical training data suffices to imitate the PO policy with high probability (Theorem 4.3).
  • ME-ICPO yields competitive performance on mathematical reasoning tasks with inference-time efficiency advantages.
  • ME-ICPO exhibits robustness to one-shot reward perturbations through a diminishing effect as training progresses (Theorem 4.8).

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.