top of page

The Framework Tax: Disparities Between Inference Efficiency in NLP Research and Deployment

Reference Type: 

Conference Paper

Fernandez, Jared, Jacob Kahn, Clara Na, Yonatan Bisk, and Emma Strubell. 2023. “The Framework Tax: Disparities Between Inference Efficiency in NLP Research and Deployment.” In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 1588–1600. Singapore: Association for Computational Linguistics. https://doi.org/10.18653/v1/2023.emnlp-main.98

Increased focus on the computational efficiency of NLP systems has motivated the design of efficient model architectures and improvements to underlying hardware accelerators. However, the resulting increases in computational throughput and reductions in floating point operations have not directly translated to improvements in wall-clock inference latency. We demonstrate that these discrepancies can be largely attributed to bottlenecks introduced by deep learning frameworks. We denote this phenomenon as the framework tax, and observe that the disparity is growing as hardware speed increases over time. In this work, we examine this phenomenon through a series of case studies analyzing the effects of model design decisions, framework paradigms, and hardware platforms on total model latency. Code is available at https://github.com/ JaredFern/Framework-Tax.

Download Reference:

Search for the Publication In:

Formatted Reference:

bottom of page