蒸餾足跡: 量化大語言模型的退化與錯誤繼承風險
Distillation Footprints: Quantifying Degradation and Error Inheritance Risks in LLMs
摘要
隨著大型語言模型(LLM)規模快速成長,知識蒸餾已成為降低部署成本的重要方式,但過度蒸餾可能造成能力與安全性退化,並使學生模型繼承教師模型的系統性錯誤。現有風險檢測多仰賴白箱資訊或已知模型身分,難以應用於真實黑箱場景。因此,本研究提出一套身分無關的黑箱風險量化框架,用以評估未知 LLM 因蒸餾產生的能力退化、安全退化與錯誤繼承風險。針對退化風險,本研究利用蒸餾模型常見的詞彙與句法多樣性降低現象,訓練 Transformer 檢測器,僅由黑箱輸出中的風格特徵量化蒸餾足跡,並將其映射至能力與安全退化風險,過程中無需取得模型身分或教師模型輸出。針對錯誤繼承風險,本研究結合對比式學習與預建模型指紋庫,辨識待測模型可能的教師來源,並根據教師錯誤輪廓估計其繼承風險。實驗結果顯示,蒸餾足跡偵測器在已知家族內達到 Spearman = 0.885 與 94.2% pairwise accuracy,跨家族評估亦在多數未知家族維持 Spearman > 0.75。退化風險方面,蒸餾足跡與能力退化的相關性達 0.86,與安全退化的相關性為 0.42,顯示能力退化較能由蒸餾痕跡預測,而安全性可能更受模型架構與對齊機制影響。繼承風險方面,模型譜系分類達到 0.94 Accuracy 與 0.93 F1-score,且能力與安全繼承風險的排序穩定性分別達 Kendall’s W = 0.902 與 0.928。整體而言,本研究證明僅憑黑箱輸出即可有效量化未知 LLM 的蒸餾足跡、退化風險與錯誤繼承風險。
As large language models (LLMs) continue to grow in scale, knowledge distillation has become widely used to reduce deployment costs. However, excessive distillation may lead to capability degradation, safety degradation, and systematic error inheritance from teacher models. Existing risk detection methods often require white-box access or known model identities, limiting their applicability in real-world black-box scenarios. This study proposes an identity-agnostic black-box framework for quantifying distillation-induced risks in unknown LLMs. The framework estimates degradation risk by detecting distillation footprints from black-box outputs. Based on the observation that distilled models often exhibit reduced lexical and syntactic diversity, Transformer-based detectors are trained to extract stylistic signals and map them to capability and safety degradation risks without requiring model identity or teacher outputs. To assess error inheritance, the framework uses contrastive learning and a pre-built model fingerprint library to infer the possible teacher source and estimate inheritance risk from the corresponding teacher error profile. Experiments show that the proposed footprint detector achieves Spearman = 0.885 and 94.2\% pairwise accuracy in within-family evaluation, while maintaining Spearman > 0.75 for most unseen families. The footprint strongly correlates with capability degradation at 0.86, but shows a weaker correlation of 0.42 with safety degradation. For inheritance risk, lineage classification reaches 0.94 Accuracy and 0.93 F1-score, with Kendall's W = 0.902 and 0.928 for capability and safety inheritance risk stability. These results demonstrate that black-box outputs alone can effectively quantify distillation-induced risks in unknown LLMs.