라그랑주 보상 보강을 통한 안전한 추론 시간 정렬
Safe Inference-Time Alignment via Lagrangian Reward Augmentation
Safe Inference-Time Alignment via Lagrangian Reward Augmentation
@misc{chittepu2026safe,
title = {Safe Inference-Time Alignment via Lagrangian Reward Augmentation},
author = {Yaswanth Chittepu and Ativ Joshi and Sohini Chintala and Scott Niekum},
year = {2026},
eprint = {2607.02781},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2607.02781}
}
Chittepu, Y., Joshi, A., Chintala, S., & Niekum, S. (2026). Safe Inference-Time Alignment via Lagrangian Reward Augmentation [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2607.02781
CHITTEPU Y, JOSHI A, CHINTALA S, et al. Safe Inference-Time Alignment via Lagrangian Reward Augmentation[EB/OL]. (2026-07-02)[2026-11-29]. https://arxiv.org/abs/2607.02781.
초록
추론 시간 정렬은 보조 보상 신호를 활용하여 추론 과정에서 동결된 언어 모델을 안내하며, 반복적인 가중치 업데이트 비용을 피합니다. 그러나 기존 추론 시간 정렬 방법들은 일반적으로 단일 스칼라 점수를 최적화하므로 명시적인 안전 제약은 무시하거나 수동으로 조정된 벌칙을 통해 인코딩해야 합니다. 우리는 안전 제약 하의 일반적 추론 시간 정렬 프레임워크인 라그랑주 보상 증강 (LARA) 을 제안합니다. 보상 모델과 비용 모델을 포함한 KL-규제화된 제약 목적함수에서 시작하여, LARA 는 제약을 이중화 (dualize) 하여 비음수 이중 변수에 대한 일차원 볼록 최적화 문제로 문제를 축소합니다. 작은 교정 집합에서 추정된 이중 변수는 기존 추론 시간 정렬 방법 내에서 드롭-인 점수 신호로 사용될 수 있는 증강 보상을 정의합니다. 시퀀스 수준 샘플링 방법 (예: Best-of-N 재순위화) 에 대해, 교정된 이중 변수는 기대 비용 제약 문제의 해에 해당합니다. 토큰 수준 보상 안내 해독 방법의 경우, 동일한 구성은 정확한 제약 정책 보장을 제공하는 것이 아니라 원칙적인 이중 교정 heuristics 를 제공합니다. 우리는 시퀀스 수준과 토큰 수준 추론 시간 정렬 방법 모두에 대해 LARA 를 평가하였으며, LARA 가 유익성 - 해악성 트레이드오프를 개선함을 발견했습니다. Best-of-N 은 추론 시간 방법들 중 가장 좋은 성능을 보이며, 파인튜닝 기반 직접 정렬 기준에 근접했습니다.
Inference-time alignment steers a frozen language model during decoding using auxiliary reward signals, avoiding the cost of repeated weight updates. However, existing inference-time alignment methods typically optimize a single scalar score, so explicit safety constraints must either be ignored or encoded through manually tuned penalties. We propose Lagrangian Reward Augmentation (LARA), a general inference-time alignment framework under safety constraints. Starting from a KL-regularized constrained objective with a reward model and a cost model, LARA dualizes the constraint and reduces the optimization problem to a one-dimensional convex problem over a nonnegative dual variable. Estimated on a small calibration set, this dual variable defines an augmented reward that can be used as a drop-in scoring signal within existing inference-time alignment methods. For sequence-level sampling methods, such as Best-of-N reranking, the calibrated dual variable corresponds to the solution of the expected-cost constrained problem. For token-level reward-guided decoding methods, the same construction yields a principled dual-calibrated heuristic rather than an exact constrained-policy guarantee. We evaluate LARA on both sequence-level and token-level inference-time alignment methods, and find that LARA improves the helpfulness-harmlessness tradeoff, with Best-of-N achieving the best performance among inference-time methods, approaching finetuning-based direct alignment baselines.