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

TiME:用于高效NLP流水线的微型单语编码器

TiME: Tiny Monolingual Encoders for Efficient NLP Pipelines

EPFL(瑞士联邦理工学院)

David Schulmeister, Valentin Hartmann, Lars Klein, Robert West

AI总结:

TiME通过蒸馏技术训练小型单语模型,提升NLP流水线的效率与性能平衡。

摘要:

如今,大量语言模型的研究集中在大型、通用目的模型上。然而,许多NLP流水线只需要具有明确、小集能力的模型。虽然大型模型能够执行这些较小模型的任务,但它们根本无法处理大量数据或提供实时响应。此外,它们通常使用不必要的大量能源,导致可持续性问题,并在电池供电设备上部署时出现问题。在我们的工作中,我们展示了如何训练小型模型以满足这些效率关键应用。与许多现成的NLP流水线不同,我们的模型使用了现代训练技术,如蒸馏,并支持低资源语言。我们称之为TiME(Tiny Monolingual Encoders)并对其在一系列常见NLP任务上的进行全面评估,观察到在基准性能与吞吐量、延迟和能耗之间取得了改进的权衡。在此过程中,我们展示了如何从多语言教师中蒸馏单语模型,以及如何从具有绝对位置嵌入的教师中蒸馏具有绝对位置嵌入的模型。

英文摘要:

Today, a lot of research on language models is focused on large, general-purpose models. However, many NLP pipelines only require models with a well-defined, small set of capabilities. While large models are capable of performing the tasks of those smaller models, they are simply not fast enough to process large amounts of data or offer real-time responses. Furthermore, they often use unnecessarily large amounts of energy, leading to sustainability concerns and problems when deploying them on battery-powered devices. In our work, we show how to train small models for such efficiency-critical applications. As opposed to many off-the-shelf NLP pipelines, our models use modern training techniques such as distillation, and offer support for low-resource languages. We call our models TiME (Tiny Monolingual Encoders) and comprehensively evaluate them on a range of common NLP tasks, observing an improved trade-off between benchmark performance on one hand, and throughput, latency and energy consumption on the other. Along the way, we show that distilling monolingual models from multilingual teachers is possible, and likewise distilling models with absolute positional embeddings from teachers with relative positional embeddings.

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

↑