Online Knowledge Distillation with Reward Guidance
Chen Jia
TL;DR
PbKD reframes knowledge distillation as reward-guided imitation learning, solving a min-max problem between the student and a reward model constrained by human or AI preferences. It introduces offline and online PbKD with theoretical guarantees: a suboptimality bound in the offline setting of $O(\sqrt{\log(N/\delta)/N})$ and a regret bound in the online setting of $O(\sqrt{T \log T \log(T/\delta)})$, plus a moment-matching extension (MM PbKD) that leverages a $Q$-function formulation for white-box KD. Empirically, PbKD outperforms standard black-box and white-box KD baselines across five black-box and five white-box benchmarks, with iterated online preference updates yielding consistent gains. The approach is practical for both API-limited and fully observable teachers, offering a principled path to more task-aligned distillation with robust performance under reward uncertainty.
Abstract
This work studies knowledge distillation (KD) for large language models (LLMs) through preference optimization. We propose a reward-guided imitation learning framework for sequential KD, formulating a min-max optimization problem between the policy and reward model (RM) to minimize the performance gap between the student and teacher policies. Specifically, the reward optimization is constrained to achieve near-optimality within a confidence set for preference alignment. For preference data construction, we explore both offline and online preference-based KD. Additionally, we reformulate the RM using the $Q$-value function and extend the framework to white-box KD, where the teacher policy's predicted probabilities are accessible. Theoretical analysis and empirical results demonstrate the effectiveness of the proposed framework.
