arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.12856cs.CLcs.AI
收藏

高效自适应Transformer:一项实证研究与可复现框架

Efficient Adaptive Transformer: An Empirical Study and Reproducible Framework

OPSWAT

Jan Miller

AI总结:

EAT框架统一三种自适应效率技术,提供开源可复现基准测试流水线,实证显示在SST-2上准确率略高于DistilBERT,主要贡献是开放框架供社区研究。

摘要:

高效自适应Transformer(EAT)框架将三种自适应效率技术——渐进式令牌剪枝、稀疏注意力和动态提前退出——统一到一个单一、可复现的架构中,用于输入自适应推理。EAT提供了一个开源基准测试流水线,可在GLUE任务(SST-2、QQP、MNLI)上自动化数据处理、计时和消融实验。尽管这项实证研究发现,在浅层六层模型中组合这些机制可能会增加延迟,但它表明EAT在SST-2上实现了比优化后的DistilBERT基线略高的准确率,展示了动态计算在延迟敏感的NLP任务中的潜力。主要贡献是开放、端到端的可复现框架——包含脚本、CSV日志记录和分析工具——旨在作为社区工具,用于自适应Transformer的进一步研究。

英文摘要:

The Efficient Adaptive Transformer (EAT) framework unifies three adaptive efficiency techniques - progressive token pruning, sparse attention, and dynamic early exiting - into a single, reproducible architecture for input-adaptive inference. EAT provides an open-source benchmarking pipeline that automates data processing, timing, and ablation across GLUE tasks (SST-2, QQP, MNLI). Although this empirical study finds that combining these mechanisms can increase latency in shallow six-layer models, it demonstrates that EAT achieves slightly higher accuracy than the optimized DistilBERT baseline on SST-2, illustrating the potential of dynamic computation for latency-sensitive NLP. The main contribution is the open, end-to-end reproducible framework - complete with scripts, CSV logging, and analysis utilities - intended to serve as a community tool for further research on adaptive transformers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑