SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1909.10351 · 2019

TinyBERT: Distilling BERT for Natural Language Understanding

Lifeng Shang, Xin Jiang, Xiao Chen, Qun Liu, Yichun Yin, Xiaoqi Jiao, Linlin Li, Fang Wang

arXiv · PDF · Open in the Atlas

Code that ran

None of the 4 samples (functions and classes) lifted from this paper's linked repositories has a recorded run on a synthesized input (4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1909.10351.json · badge: /api/ran/1909.10351.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
huawei-noah/Pretrained-Language-Model marked official in Papers with Code
Papers with Code archive
0 ran · 4 no recorded run
FunctionStatusWhere it lives
BertLMPredictionHead Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/TinyBERT/transformer/modeling.py
pointer only (licence: NONE) · get_code("031455b1879a2b6c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

BertPreTrainingHeads Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/TinyBERT/transformer/modeling.py
pointer only (licence: NONE) · get_code("f41c936d29d457a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

BertPredictionHeadTransform Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/TinyBERT/transformer/modeling.py
pointer only (licence: NONE) · get_code("0d693a0079ce791d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TinyBertForPreTraining Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/TinyBERT/transformer/modeling.py
pointer only (licence: NONE) · get_code("aeb5fa56defa897a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
BertLMPredictionHead
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
2006.06195 (2020-06)
Large-Scale Adversarial Training for Vision-and-Language Representation Learning
2107.14596 (2021-07)
Multi-stage Pre-training over Simplified Multimodal Pre-training Models
BertPredictionHeadTransform
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
2006.06195 (2020-06)
Large-Scale Adversarial Training for Vision-and-Language Representation Learning
2107.14596 (2021-07)
Multi-stage Pre-training over Simplified Multimodal Pre-training Models
BertPreTrainingHeads
brick of this paper's assembly: model
1 other paper
1 later
2006.06195 (2020-06)
Large-Scale Adversarial Training for Vision-and-Language Representation Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

Language model pre-training, such as BERT, has significantly improved the performances of many natural language processing tasks. However, pre-trained language models are usually computationally expensive, so it is difficult to efficiently execute them on resourcerestricted devices. To accelerate inference and reduce model size while maintaining accuracy, we first propose a novel Transformer distillation method that is specially designed for knowledge distillation (KD) of the Transformer-based models. By leveraging this new KD method, the plenty of knowledge encoded in a large "teacher" BERT can be effectively transferred to a small "student" Tiny-BERT. Then, we introduce a new two-stage learning framework for TinyBERT, which performs Transformer distillation at both the pretraining and task-specific learning stages. This framework ensures that TinyBERT can capture the general-domain as well as the task-specific knowledge in BERT. 1 with 4 layers is empirically effective and achieves more than 96.8% the performance of its teacher BERT BASE on GLUE benchmark, while being 7.5x smaller and 9.4x faster on inference. TinyBERT 4 is also significantly better than 4-layer state-of-the-art baselines on BERT distillation, with only ∼28% parameters and ∼31% inference time of them. Moreover, TinyBERT 6 with 6 layers performs on-par with its teacher BERT BASE .

For agents

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

get_harvested_code_for_paper("1909.10351")
get_code_for_paper("1909.10351")
have("1909.10351")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1909.10351.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1909.10351.svg)](https://syntology.ai/paper/1909.10351)

Connect an agent — have() is free.