arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.20449cs.LGcs.AI

用于少类别蒸馏的教师嵌入线性投影

Linear Projections of Teacher Embeddings for Few-Class Distillation

MIT(麻省理工学院);Google Research(谷歌研究院);University of Michigan(密歇根大学)

Noel Loo, Fotis Iliopoulos, Wei Hu, Erik Vee

AI总结:

针对知识蒸馏在二分类和少类别NLP任务中效果不佳的问题,本文提出LELP方法,通过识别教师嵌入空间的线性子空间并构造伪子类来训练学生,实验显示其性能稳定优于现有蒸馏算法。

摘要:

知识蒸馏(KD)已成为一种颇具前景的方法,可将知识从更大、更复杂的教师模型迁移到更小的学生模型。传统上,KD通过训练学生模仿教师的输出概率来实现,而更先进的技术则探索引导学生采用教师的内部表示。尽管KD取得了广泛成功,但其在二分类和少类别问题中的表现却不尽如人意。这是因为关于教师模型泛化模式的信息会随类别数量直接变化。此外,一些复杂的蒸馏方法可能无法普遍适用于计算机视觉以外的数据类型,或对这些数据类型并不有效。因此,对于情感分析、搜索查询理解和广告-查询相关性评估等一系列关键现实应用,有效的蒸馏技术仍然难以获得。基于这些观察,我们提出了一种从教师模型表示中蒸馏知识的新方法,称之为学习嵌入线性投影(LELP)。受近期关于最后一层表示结构的发现启发,LELP通过识别教师嵌入空间中信息丰富的线性子空间,并将其拆分为伪子类来工作。随后训练学生模型复制这些伪类。我们在Amazon Reviews和Sentiment140等大规模NLP基准上的实验评估表明,在大多数KD方法表现不佳的二分类和少类别问题中,LELP始终能与现有最先进的蒸馏算法竞争,并且通常优于它们。

英文摘要:

Knowledge Distillation (KD) has emerged as a promising approach for transferring knowledge from a larger, more complex teacher model to a smaller student model. Traditionally, KD involves training the student to mimic the teacher's output probabilities, while more advanced techniques have explored guiding the student to adopt the teacher's internal representations. Despite its widespread success, the performance of KD in binary classification and few-class problems has been less satisfactory. This is because the information about the teacher model's generalization patterns scales directly with the number of classes. Moreover, several sophisticated distillation methods may not be universally applicable or effective for data types beyond Computer Vision. Consequently, effective distillation techniques remain elusive for a range of key real-world applications, such as sentiment analysis, search query understanding, and advertisement-query relevance assessment. Taking these observations into account, we introduce a novel method for distilling knowledge from the teacher's model representations, which we term Learning Embedding Linear Projections (LELP). Inspired by recent findings about the structure of final-layer representations, LELP works by identifying informative linear subspaces in the teacher's embedding space, and splitting them into pseudo-subclasses. The student model is then trained to replicate these pseudo-classes. Our experimental evaluation on large-scale NLP benchmarks like Amazon Reviews and Sentiment140 demonstrate the LELP is consistently competitive with, and typically superior to, existing state-of-the-art distillation algorithms for binary and few-class problems, where most KD methods suffer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑