Behavior Leverage Imbalance in Multi-Teacher On-Policy Distillation

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Natural Language Processing · Depth: Expert, quick

Summary

Multi-teacher on-policy distillation (OPD) for agentic language models, designed to specialize teachers for tasks like tool calls or direct responses, can inadvertently cause a "behavior shift." This shift, invisible through aggregate losses, leads to over-calling tools on examples that require direct answers. Specifically, vanilla generalized knowledge distillation (GKD) improved tool-call recall but increased over-calling from 13.7% to 9.0% on APIGen-MT. The issue stems from "behavior leverage imbalance," where local token-level signals at mode-entry and structural positions disproportionately control global generation. To address this, Soft Clamp, a per-token divergence calibration method, dynamically compresses extreme Jensen-Shannon divergence while preserving gradients, matching GKD's decision accuracy.

Key takeaway

For machine learning engineers developing agentic language models with multi-teacher distillation, you should implement mechanisms to monitor and calibrate local token-level divergence. Ignoring "behavior leverage imbalance" can lead to models over-calling tools, even if aggregate losses appear stable. Consider integrating methods like Soft Clamp to reduce over-calling from 13.7% to 9.0% and prevent undesirable tool-call loops, ensuring more reliable and efficient agent behavior.

Key insights

Multi-teacher distillation can induce subtle behavior shifts in agentic LMs due to imbalanced local token-level signals.

Principles

Method

Soft Clamp dynamically compresses extreme token-level Jensen-Shannon divergence while preserving nonzero gradients to calibrate per-token divergence.

In practice

Topics

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.