Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Depth-Wise Attention (DWAtt): A Layer Fusion Method for Data-Efficient Classification

About

Language Models pretrained on large textual data have been shown to encode different types of knowledge simultaneously. Traditionally, only the features from the last layer are used when adapting to new tasks or data. We put forward that, when using or finetuning deep pretrained models, intermediate layer features that may be relevant to the downstream task are buried too deep to be used efficiently in terms of needed samples or steps. To test this, we propose a new layer fusion method: Depth-Wise Attention (DWAtt), to help re-surface signals from non-final layers. We compare DWAtt to a basic concatenation-based layer fusion method (Concat), and compare both to a deeper model baseline -- all kept within a similar parameter budget. Our findings show that DWAtt and Concat are more step- and sample-efficient than the baseline, especially in the few-shot setting. DWAtt outperforms Concat on larger data sizes. On CoNLL-03 NER, layer fusion shows 3.68--9.73% F1 gain at different few-shot sizes. The layer fusion models presented significantly outperform the baseline in various training scenarios with different data sizes, architectures, and training constraints.

Muhammad ElNokrashy, Badr AlKhamissi, Mona Diab• 2022

Related benchmarks

TaskDatasetResultRank
Intent ClassificationBanking77 (test)
Accuracy90.04
184
Semantic Textual SimilaritySTS Benchmark (test)
Pearson Correlation (r)0.5337
46
Semantic Textual SimilaritySTS14 (test)
Spearman Correlation0.5863
42
Semantic Textual SimilaritySTS15 (test)
Spearman Correlation0.6773
42
Semantic Textual SimilaritySTS13 (test)
Spearman Correlation56.26
42
Semantic Textual SimilaritySTS16 (test)
Spearman Corr51.11
42
Text ClassificationEmotion (test)
Accuracy66.55
38
ClassificationPoemSentiment (test)
Accuracy75
33
ClassificationMTOP Domain (test)
Accuracy98.39
33
ClassificationMTOPIntent (test)
Accuracy92.41
33
Showing 10 of 13 rows

Other info

Follow for update