Maosong Sun, Yankai Lin, Yufei Huang, Deming Ye
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Existing pre-trained language models (PLMs) are often computationally expensive in inference, making them impractical in various resource-limited real-world applications. To address this issue, we propose a dynamic token reduction approach to accelerate PLMs' inference, named TR-BERT, which could flexibly adapt the layer number of each token in inference to avoid redundant calculation. Specially, TR-BERT formulates the token reduction process as a multi-step token selection problem and automatically learns the selection strategy via reinforcement learning. The experimental results on several downstream NLP tasks show that TR-BERT is able to speed up BERT by 2-5 times to satisfy various performance demands. Moreover, TR-BERT can also achieve better performance with less computation in a suite of long-text tasks since its token-level layer number adaption greatly accelerates the self-attention operation in PLMs. The source code and experiment details of this paper can be obtained from https://github.com/ thunlp/TR-BERT.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2105.11618")
get_code_for_paper("2105.11618")
have("2105.11618")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2105.11618.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2105.11618)
Connect an agent — have() is free.