paper-with-me

홈 › Papers

Sentence-Level or Token-Level? A Comprehensive Study on Knowledge Distillation

2024-04-23 · Jingxuan Wei, Linzhuang Sun, Yichong Leng, Xu Tan, Bihui Yu, Ruifeng Guo

Knowledge distillation, transferring knowledge from a teacher model to a student model, has emerged as a powerful technique in neural machine translation for compressing models or simplifying training targets. Knowledge distillation encompasses two primary methods: sentence-level distillation and token-level distillation. In sentence-level distillation, the student model is trained to align with the output of the teacher model, which can alleviate the training difficulty and give student model a comprehensive understanding of global structure. Differently, token-level distillation requires the student model to learn the output distribution of the teacher model, facilitating a more fine-grained transfer of knowledge. Studies have revealed divergent performances between sentence-level and token-level distillation across different scenarios, leading to the confusion on the empirical selection of knowledge distillation methods. In this study, we argue that token-level distillation, with its more complex objective (i.e., distribution), is better suited for `simple'' scenarios, while sentence-level distillation excels in `complex'' scenarios. To substantiate our hypothesis, we systematically analyze the performance of distillation methods by varying the model size of student models, the complexity of text, and the difficulty of decoding procedure. While our experimental results validate our hypothesis, defining the complexity level of a given scenario remains a challenging task. So we further introduce a novel hybrid method that combines token-level and sentence-level distillation through a gating mechanism, aiming to leverage the advantages of both individual methods. Experiments demonstrate that the hybrid method surpasses the performance of token-level or sentence-level distillation methods and the previous works by a margin, demonstrating the effectiveness of the proposed hybrid method.

📄 PDF Abstract BibTeX arXiv:2404.14827

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge DistillationMachine TranslationSentence

Methods 이 논문이 사용한 방법론

Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

Weakly-supervised Domain Adaption for Aspect Extraction via Multi-level Interaction Transfer

2020-06-16 · Tao Liang, Wenya Wang, Fengmao Lv

Fine-grained aspect extraction is an essential sub-task in aspect based opinion analysis. It aims to identify the aspect terms (a.k.a. opinion targets) of a product or service in each sentence. However, expensive annotat…

Aspect ExtractionDomain AdaptationSentence

MEXMA: Token-level objectives improve sentence representations

2024-09-19 · João Maria Janeiro, Benjamin Piwowarski, Patrick Gallinari, Loïc Barrault

Current pre-trained cross-lingual sentence encoders approaches use sentence-level objectives only. This can lead to loss of information, especially for tokens, which then degrades the sentence representation. We propose …

Sentence

Slang Detection and Identification

2019-11-01 · CONLL 2019 11 · Zhengqi Pei, Zhewei Sun, Yang Xu

The prevalence of informal language such as slang presents challenges for natural language systems, particularly in the automatic discovery of flexible word usages. Previous work has explored slang in terms of dictionary…

SentenceSentiment Analysis

Sentence-Level Resampling for Named Entity Recognition

2022-07-01 · NAACL 2022 7 · Xiaochen Wang, Yue Wang

As a fundamental task in natural language processing, named entity recognition (NER) aims to locate and classify named entities in unstructured text. However, named entities are always the minority among all tokens in th…

Data Augmentationnamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+2

Sentence-Level Resampling for Named Entity Recognition

2022-01-16 · ACL ARR January 2022 1 · Anonymous

As a fundamental task in natural language processing, named entity recognition (NER) aims to locate and classify named entities in unstructured text. However, named entities are always the minority among all tokens in th…

Data Augmentationnamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+2