Chuang Gan, Zhanghao Wu, Zhijian Liu, Song Han, Hanrui Wang, Han Cai, Ligeng Zhu
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.
Transformers are ubiquitous in Natural Language Processing (NLP) tasks, but they are difficult to be deployed on hardware due to the intensive computation. To enable low-latency inference on resource-constrained hardware platforms, we propose to design Hardware-Aware Transformers (HAT) with neural architecture search. We first construct a large design space with arbitrary encoder-decoder attention and heterogeneous layers. Then we train a Super-Transformer that covers all candidates in the design space, and efficiently produces many SubTransformers with weight sharing. Finally, we perform an evolutionary search with a hardware latency constraint to find a specialized SubTransformer dedicated to run fast on the target hardware. Extensive experiments on four machine translation tasks demonstrate that HAT can discover efficient models for different hardware (CPU, GPU, IoT device). When running WMT'14 translation task on Raspberry Pi-4, HAT can achieve 3× speedup, 3.7× smaller size over baseline Transformer; 2.7× speedup, 3.6× smaller size over Evolved Transformer with 12,041× less search cost and no performance loss. HAT is open-sourced.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2005.14187")
get_code_for_paper("2005.14187")
have("2005.14187")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2005.14187.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2005.14187)
Connect an agent — have() is free.