Knowledge Distillation of Black-Box Large Language Models

2026-07-03 · source · source ↗ · raw capture

Authors: Hongzhan Chen, Runjun Chen, Yuqi Yi, Xiaojun Quan (Sun Yat-sen University), Chenliang Li, Ming Yan, Ji Zhang (Alibaba Group)

Abstract

Proposes Proxy-KD, which uses an intermediate proxy model to transfer knowledge from proprietary black-box LLMs (like GPT-4) to smaller student models. The proxy first aligns with the teacher using the teacher's outputs, then preference optimization (DPO) further refines alignment. During KD, the proxy generates a dense distribution approximating the teacher's, with a sample-level weight reflecting alignment quality. The authors claim Proxy-KD outperforms both black-box and white-box KD methods.

Method

Problem Setup

Proxy Alignment

  1. Supervised fine-tuning on teacher outputs via NLL loss
  2. DPO preference optimization: for each input, teacher response y and proxy response ŷ form preference pair. DPO iteratively adjusts proxy to prefer teacher responses. Runs for k=16 iterations.

Knowledge Distillation

Experiments

Key Results