用马氏距离蒸馏小目标类,让小模型也能高效识别隐喻讽刺等难语言。
Class Distillation with Mahalanobis Contrast: An Efficient Training Paradigm for Pragmatic Language Understanding Tasks
- 基于马氏距离设计分类损失,捕捉类别分布结构特征。
- 在三个任务上用小模型达到大模型水平,参数少千倍仍有效。
- 适合资源有限却需精准识别偏见/隐喻/反语等复杂语义的场景。
检测性别歧视、隐喻或讽刺等异常语言对提升网络社交对话的安全性、清晰度与理解力至关重要。现有分类器虽表现良好,但常伴随高计算成本与数据需求。本文提出一种新训练范式ClaD,聚焦从高度异质背景中蒸馏出小而明确的目标类别。ClaD融合两项创新:(i) 基于马氏距离的损失函数,利用类别分布的结构特性;(ii) 可解释的决策算法,优化类别分离。在三个基准检测任务(性别歧视、隐喻、讽刺)上,ClaD优于主流基线,且使用更小的语言模型和数个数量级更少参数,性能接近多个大语言模型(LLMs)。结果表明,ClaD是高效处理从异质背景中识别小目标类别的实用语言理解工具。
原文摘要 · Abstract (English)
Detecting deviant language such as sexism, or nuanced language such as metaphors or sarcasm, is crucial for enhancing the safety, clarity, and interpretation of online social discourse. While existing classifiers deliver strong results on these tasks, they often come with significant computational cost and high data demands. In this work, we propose \textbf{Cla}ss \textbf{D}istillation (ClaD), a novel training paradigm that targets the core challenge: distilling a small, well-defined target class from a highly diverse and heterogeneous background. ClaD integrates two key innovations: (i) a loss function informed by the structural properties of class distributions, based on Mahalanobis distance, and (ii) an interpretable decision algorithm optimized for class separation. Across three benchmark detection tasks -- sexism, metaphor, and sarcasm -- ClaD outperforms competitive baselines, and even with smaller language models and orders of magnitude fewer parameters, achieves performance comparable to several large language models (LLMs). These results demonstrate ClaD as an efficient tool for pragmatic language understanding tasks that require gleaning a small target class from a larger heterogeneous background.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。