[Paper Review] Reward Shaping for Inference-Time Alignment: A Stackelberg Game Perspective
The paper models reward design for LLM alignment as a Stackelberg game and shows that a threshold-based reward shaping scheme can efficiently approximate the optimal reward model, improving user utility in inference-time alignment with minimal overhead.
Existing alignment methods directly use the reward model learned from user preference data to optimize an LLM policy, subject to KL regularization with respect to the base policy. This practice is suboptimal for maximizing user's utility because the KL regularization may cause the LLM to inherit the bias in the base policy that conflicts with user preferences. While amplifying rewards for preferred outputs can mitigate this bias, it also increases the risk of reward hacking. This tradeoff motivates the problem of optimally designing reward models under KL regularization. We formalize this reward model optimization problem as a Stackelberg game, and show that a simple reward shaping scheme can effectively approximate the optimal reward model. We empirically evaluate our method in inference-time alignment settings and demonstrate that it integrates seamlessly into existing alignment methods with minimal overhead. Our method consistently improves average reward and achieves win-tie rates exceeding 66% against all baselines, averaged across evaluation settings.
Motivation & Objective
- Motivate why directly maximizing a learned reward under KL regularization is suboptimal for user utility.
- Formulate reward model design as a Stackelberg game between a leader (reward designer) and follower (LLM).
- Characterize the optimal reward model as a threshold-based structure and provide a practical method to compute it.
- Introduce relaxed (soft) threshold variants to improve robustness and prevent overfitting to the threshold.
- Demonstrate integration of the approach with inference-time alignment methods and show empirical gains.
Proposed method
- Formulate the alignment problem as a Stackelberg bi-level optimization where the leader selects a reward model r to maximize user utility, anticipating the follower’s KL-regularized response.
- Prove that the optimal reward model is a threshold reward r_m that assigns 0 or B depending on whether r_U(x,y) is below or above a prompt-dependent threshold m(x).
- Derive that m(x) should satisfy m(x) = E_{y~rho_r_m*} [r_U(x,y)], creating a self-consistent threshold that aligns with user utility.
- Provide a Monte Carlo-based procedure to compute m*(x) by estimating F_x(m) with samples from the base policy and using a bisection search.
- Introduce a soft-threshold variant r_{m*,alpha} using a sigmoid to improve robustness and show it converges to the optimal solution as alpha increases.
- Show how to integrate the shaping into existing inference-time methods (CD and ARGS) by shaping offline data and retraining the Q-function under the shaped rewards.

Experimental results
Research questions
- RQ1Can optimal reward design under KL regularization be characterized analytically for LLM alignment?
- RQ2Does a threshold-based reward shaping scheme approximate the Stackelberg optimum and improve user utility?
- RQ3How can we compute the optimal threshold m*(x) efficiently in practice?
- RQ4Does a soft-threshold variant improve robustness and mitigate brittle behavior near thresholds?
- RQ5Can Stackelberg-based reward shaping be integrated with existing inference-time methods with modest overhead and improve average rewards?
Key findings
- Threshold reward models are optimal for the leader in the Stackelberg formulation, meaning one should assign B to outputs with high true reward and 0 otherwise, with the threshold m*(x) satisfying m*(x)=E_{y~rho_r*}[r_U(x,y)].
- A Monte Carlo-based procedure can efficiently approximate m*(x) for practical use in LLMs.
- Soft-threshold shaping (SRS) provides robustness and, as shaping strength grows, approaches the true Stackelberg optimum, improving user utility over directly using r_U.
- Integrating SRS with inference-time methods (CD and ARGS) yields higher average rewards while maintaining diversity and coherence similar to baselines.
- GPT-4 evaluation shows consistent win-tie advantages for SRS across multiple eval settings against vanilla and heuristic baselines, indicating reduced reward hacking risk.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.