SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2101.08106 · AAAI · 2021

Learning to Augment for Data-Scarce Domain BERT Knowledge Distillation

Yaliang Li, Ying Shen, Hai-Tao Zheng, Minghui Qiu, Lingyun Feng

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 15 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
huawei-noah/Pretrained-Language-Model — 2 of 15
FunctionStatusWhere it lives
SuperBertIntermediate Ran huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("c1293a0be49a8674")
SuperBertPooler Ran huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("e6311f65af5f9840")
BertConfig Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("92bb80eba426ec5f")
BertPreTrainedModel Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("aa473329a2bdbd95")
SuperBertAttention Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("334a8d97f2ffa8a3")
SuperBertEmbeddings Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("1c3e57fe19c49c14")
SuperBertEncoder Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("4cb493cd45952cc0")
SuperBertLayer Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("977b5ff098ce7872")
SuperBertLayerNorm Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("e86b5457a91cc855")
SuperBertModel Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("cd3c1431cd8eacc2")
SuperBertOutput Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("f4e5fbf0df9c65ad")
SuperBertSelfAttention Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("a98f9a3c4ea098b0")
SuperBertSelfOutput Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("10cb79ce31e3d2ce")
SuperEmbedding Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("981046902300b03e")
SuperLinear Not yet run huawei-noah/Pretrained-Language-Model/AutoTinyBERT/transformer/modeling_super_kd.py
pointer only (licence: NONE) · get_code("9c9f54b844986280")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite pre-trained language models such as BERT have achieved appealing performance in a wide range of natural language processing tasks, they are computationally expensive to be deployed in real-time applications. A typical method is to adopt knowledge distillation to compress these large pre-trained models (teacher models) to small student models. However, for a target domain with scarce training data, the teacher can hardly pass useful knowledge to the student, which yields performance degradation for the student models. To tackle this problem, we propose a method to learn to augment for data-scarce domain BERT knowledge distillation, by learning a cross-domain manipulation scheme that automatically augments the target with the help of resource-rich source domains. Specifically, the proposed method generates samples acquired from a stationary distribution near the target data and adopts a reinforced selector to automatically refine the augmentation strategy according to the performance of the student. Extensive experiments demonstrate that the proposed method significantly outperforms state-of-the-art baselines on four different tasks, and for the data-scarce domains, the compressed student models even perform better than the original large teacher model, with much fewer parameters (only ∼13.3%) when only a few labeled examples available.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2101.08106")
get_code_for_paper("2101.08106")
have("2101.08106")

Connect an agent — have() is free.