Manuscript Offprint

arXiv:2609.39757

Revisiting On-policy Adversarial Black-Box Distillation: Calibrating Groupwise Reward Geometry for Effective Advantage Construction

Xiao Cui, Mo Zhu, Yulei Qin, Yuze Wu, Wengang Zhou, Houqiang Li

Abstract

Black-box distillation is a practical route for transferring capabilities from API-accessible large language models that expose only text outputs into smaller student models. Recent on-policy adversarial methods such as GAD improve over SeqKD by forming an adversarial loop between a critic and a student, where the critic provides rewards for GRPO-based student policy optimization over the student's sampled responses. However, GRPO computes advantages from the within-group relative rewards of student samples for the same prompt, whereas the critic is trained primarily to distinguish teacher responses from student responses. This objective mismatch can produce reward groups with collapsed scale or fragile margins, leading to brittle grouped optimization signals. We propose Groupwise Reward Geometry Conditioning (GRGC), a two-stage framework that improves advantage construction by shaping student-side reward groups during both critic training and policy optimization. To improve critic-side conditioning, Gaussian groupwise Optimal Transport calibration regularizes the critic during training to produce reward groups with non-collapsed spread and smooth rank-wise gaps by matching sorted prompt-wise rewards to group-centered Gaussian quantiles. Building on this conditioned reward geometry, policy-side group power modulation reshapes the prompt-wise reward groups before they are converted into advantages, preserving the critic-induced ordering while increasing optimization-relevant margin separability. Extensive experiments across diverse teachers, student model families and scales, and training datasets demonstrate the effectiveness of GRGC on both in-distribution and out-of-distribution evaluations, while introducing negligible overhead over GAD. The code is available at https://github.com/2018cx/GRGC.

1 Introduction

Large language models (LLMs) have achieved strong performance across NLP tasks [1, 2, 3], but their scale leads to high computational and deployment costs [4, 5, 6]. Knowledge distillation (KD) mitigates this issue by transferring capabilities from large teacher models to smaller students [7, 8, 9]. Most existing KD methods assume a white-box setting, where internal teacher signals such as logits and hidden states are accessible, enabling objectives based on distribution and representation alignment [10, 11, 12]. However, modern frontier LLMs are typically accessible only via text-generation APIs [13, 14, 15, 16], which restricts supervision to sampled outputs and defines the black-

*: Contributing equally with the first author.

Corresponding authors: Wengang Zhou and Houqiang Li.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Policy Gradient

Figure 1: Overview of GRGC. For each prompt xx, the student samples a response group {G(x)i}i=1N\{G(x)_i\}_{i=1}^N, and the critic assigns raw sequence-level rewards {ri}i=1N\{r_i\}_{i=1}^N. CGC regularizes prompt-group reward geometry during critic training, while PGM transforms the conditioned rewards into {r^i}i=1N\{\hat{r}_i\}_{i=1}^N before the final prompt-wise advantages {Ai}i=1N\{A_i\}_{i=1}^N are computed for policy optimization.

box distillation setting. In this regime, standard white-box objectives become inapplicable, making distillation fundamentally more challenging and necessitating new learning paradigms [17, 18].

Early black-box distillation methods [19, 20, 21] typically adopt sequence-level knowledge distillation (SeqKD) [22], which treats teacher-generated responses as supervised targets for direct student training. SeqKD is simple and scalable, but it is fundamentally off-policy: the student is trained on teacher trajectories and then tested on its own rollouts, leading to exposure bias and a persistent train-test mismatch. This limitation has motivated recent moves toward on-policy black-box distillation [23, 18, 17]. Among these directions, on-policy adversarial distillation [18, 24] is particularly attractive because it replaces continual online teacher scoring with a learned critic, making training more cost-effective than approaches that repeatedly query the teacher during policy optimization. This practical advantage, however, exposes a sharper critic-to-advantage interface problem. The critic is trained to assign higher scores to teacher responses than to student responses, but GRPO updates the student from prompt-wise advantages computed only over the student's own sampled response group. Because the critic objective does not explicitly constrain the gaps, ordering robustness, or scale of this student-only reward group, these geometric properties can deteriorate even when teacher-student discrimination improves. Our analysis and propositions show that this deterioration directly affects advantage construction: low within-group dispersion makes the student-side ordering fragile under critic noise, while weak group scale amplifies noise sensitivity in the downstream advantage signal.

We call this groupwise reward geometry mismatch. To address it, we propose Groupwise Reward Geometry Conditioning (GRGC), which intervenes at two coupled stages: critic-side formation of student reward groups and their policy-side use in GRPO. Gaussian groupwise Optimal Transport (OT) calibration acts during critic training, at the source where critic scores form the raw student-side reward group. It uses an efficient OT-based objective to align the sorted rewards in each prompt group with group-centered Gaussian quantiles, chosen for their symmetric, moderate rank-gap profile, thereby inducing a non-degenerate spread, a stable scale, and a smooth ordered gap profile. This geometry is optimization-relevant: it makes within-group comparisons less prone to ranking flips and less sensitive to perturbations. Policy-side group modulation then acts on this conditioned reward geometry. After critic-side geometry calibration reduces collapse and scale drift, centering and scaling each reward group yields standardized scores with more reliable relative positions. In this regime, our analysis shows that the signed power transform preserves the critic-induced ordering and enlarges informative within-group margins under bounded perturbations, yielding more separable reward groups for GRPO-based student policy training. Our propositions further make this optimization link explicit: in a grouped softmax surrogate, advantage gaps exactly determine one-step pairwise log-odds shifts, while advantage errors induce bounded distortion in the clipped GRPO surrogate.

Our overall pipeline is illustrated in Figure 1, and our contributions are summarized as follows:

• We identify the groupwise reward-geometry mismatch in on-policy adversarial black-box distillation, where the critic can learn effective teacher–student discrimination while producing student-side reward groups that are poorly conditioned for GRPO advantage estimation.

• We propose GRGC, a lightweight framework for effective advantage construction: critic-side geometry calibration first stabilizes prompt-wise reward groups, and policy-side group modulation then amplifies informative margins on the conditioned signal.

• Experiments across diverse teachers, student model families and scales, and training datasets show consistent gains on in-distribution and out-of-distribution benchmarks, supported by different auto-judging models, evaluation metrics, and human preference evaluation.

References (89)