Research Papers 论文研究 4d ago Updated 3d ago 更新于 3天前 47

DUET: Dual-Teacher On-Policy Distillation via Same-Weight Disagreement for Prohibition Compliance DUET:通过同权重分歧实现禁止合规的双教师同策略蒸馏

DUET introduces a token-selective on-policy distillation method that addresses runtime-injected prohibition compliance in LLM deployments, where policies vary per request and per tenant The method pairs two identical-weight teachers—one that sees the prohibition (positive) and one that doesn't (negative)—using their per-token disagreement to isolate the causal effect of the prohibition Two complementary mechanisms drive DUET: signal cleaning (discarding agreement tokens as redundant or prefix-co 提出DUET(双教师在线策略蒸馏)方法,通过相同权重的正负教师模型差异实现token级选择性学习,解决运行时注入禁令的合规问题 核心机制包括信号清洗(丢弃一致token去除冗余/前缀污染)和偏好导向学习(在token粒度将学生推向正教师、远离负教师),将DPO风格优化直接嵌入OPD 构建工业级Prohibition-Compliance基准,涵盖5个任务族(显式拒绝、paraphrase鲁棒性、过度拒绝等) 在1.5B-8B Qwen变体上实现72.3-85.2%违规合规率,同时保持88-93%正常效用,显著优于教师模型和其他蒸馏基线 外部评估(SysBench)确认安全对齐改善,GSM8K和

62
Hot 热度
72
Quality 质量
68
Impact 影响力

Analysis 深度分析

TL;DR

  • DUET introduces a token-selective on-policy distillation method that addresses runtime-injected prohibition compliance in LLM deployments, where policies vary per request and per tenant
  • The method pairs two identical-weight teachers—one that sees the prohibition (positive) and one that doesn't (negative)—using their per-token disagreement to isolate the causal effect of the prohibition
  • Two complementary mechanisms drive DUET: signal cleaning (discarding agreement tokens as redundant or prefix-corrupted) and preference-directed learning (pushing the student toward the positive teacher at token granularity, embedding DPO-style optimization directly into on-policy distillation)
  • Evaluated across 1.5B-8B Qwen variants, DUET achieves 72.3-85.2% violation compliance while preserving 88-93% normal utility, outperforming both teacher models and other distillation baselines
  • External evaluation on SysBench confirms improved safety alignment with minimal degradation on GSM8K and MATH-500

Why It Matters

Conventional post-training approaches like SFT and DPO are structurally ill-suited for runtime-injected prohibitions because they either bury violation signals in compliant labels or mismatch sequence-level preferences against token-localized violations. DUET provides a practical pathway for enterprises to enforce dynamic, per-tenant compliance policies without retraining from scratch, directly addressing a critical gap between research-grade alignment and production-grade governance.

Technical Details

  • Dual-Teacher Architecture: DUET uses two identical-weight teacher models that differ only in prohibition visibility—one receives the prohibition context (positive teacher) and one does not (negative teacher). This controlled difference ensures that per-token disagreement isolates the prohibition's causal effect without contamination from model capacity or architectural mismatch.
  • Signal Cleaning Mechanism: Tokens where both teachers agree are discarded as either redundant or corrupted by prefix effects, leaving only the disagreement tokens that carry the prohibition-specific signal for distillation.
  • Preference-Directed Learning: At token granularity, the student is pushed away from the negative teacher's distribution and toward the positive teacher's, effectively embedding DPO-style pairwise optimization directly into on-policy distillation without requiring offline preference datasets.
  • Benchmark: The authors construct an industrial Prohibition-Compliance benchmark spanning five task families covering explicit-refusal, paraphrase robustness, and over-refusal scenarios.
  • Results: Across Qwen 1.5B-8B variants, DUET achieves 72.3-85.2% violation compliance with 88-93% normal utility preservation. SysBench evaluation shows improved safety alignment with minimal performance drop on GSM8K and MATH-500.

Industry Insight

  • Runtime-injected prohibitions are becoming a deployment reality for enterprise LLMs; methods like DUET that enable compliance without full retraining will be essential for multi-tenant platforms where policies change frequently across customers.
  • The token-level granularity of DUET's approach suggests a broader shift from sequence-level alignment (DPO, RLHF) toward finer-grained, context-aware compliance mechanisms that can adapt to dynamic constraints at inference time.
  • The strong utility preservation (88-93%) demonstrates that prohibition compliance need not come at the cost of general capability, making this approach viable for production systems where both safety and performance are non-negotiable.

TL;DR

  • 提出DUET(双教师在线策略蒸馏)方法,通过相同权重的正负教师模型差异实现token级选择性学习,解决运行时注入禁令的合规问题
  • 核心机制包括信号清洗(丢弃一致token去除冗余/前缀污染)和偏好导向学习(在token粒度将学生推向正教师、远离负教师),将DPO风格优化直接嵌入OPD
  • 构建工业级Prohibition-Compliance基准,涵盖5个任务族(显式拒绝、paraphrase鲁棒性、过度拒绝等)
  • 在1.5B-8B Qwen变体上实现72.3-85.2%违规合规率,同时保持88-93%正常效用,显著优于教师模型和其他蒸馏基线
  • 外部评估(SysBench)确认安全对齐改善,GSM8K和MATH-500性能几乎无下降

为什么值得看

本文针对LLM部署中日益重要的运行时禁令合规问题,提出了一种无需离线偏好数据、可直接嵌入在线策略的蒸馏方案,解决了传统SFT和DPO在处理token-localized违规时的结构性缺陷。

技术解析

  • DUET采用双教师架构:正教师可见禁令、负教师(相同权重)不可见禁令,两者唯一差异是禁令可见性,从而通过per-token分歧精确隔离禁令的因果效应
  • 信号清洗机制:当正负教师在某token上达成一致时,该token被视为冗余或受前缀污染而被丢弃,仅保留分歧token作为监督信号
  • 偏好导向学习:在token粒度上推动学生模型远离负教师、趋向正教师,将DPO风格的偏好优化直接嵌入在线策略蒸馏(OPD),无需离线偏好数据集
  • 构建的Prohibition-Compliance基准覆盖5个任务族,包含显式拒绝、paraphrase鲁棒性和过度拒绝等关键场景
  • 实验在1.5B-8B Qwen系列上验证,违规合规率72.3-85.2%,正常效用保持88-93%,SysBench安全对齐提升且GSM8K/MATH-500无明显退化

行业启示

  • 运行时注入禁令(企业政策、PII红线、工具边界)正成为LLM多租户部署的核心需求,传统后训练方法难以适配动态、细粒度的合规要求
  • DUET方法为"一次训练、多策略适配"提供了可行路径,避免为每个租户/策略单独微调,显著降低部署成本
  • 在强化安全对齐的同时几乎不损害通用推理能力,为工业界平衡合规约束与模型性能提供了可落地的技术范式

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Fine-tuning 微调 Alignment 对齐 Security 安全 Training 训练