Gmail Smart Compose: Real-Time Assisted Writing Mia Xu Chen∗ Benjamin N Lee∗ Gagan Bansal∗
[email protected] [email protected] [email protected] Google Google Google Yuan Cao Shuyuan Zhang Justin Lu
[email protected] [email protected] [email protected] Google Google Google Jackie Tsay Yinan Wang Andrew M. Dai
[email protected] [email protected] [email protected] Google Google Google Zhifeng Chen Timothy Sohn Yonghui Wu
[email protected] [email protected] [email protected] Google Google Google Figure 1: Smart Compose Screenshot. ABSTRACT our proposed system design and deployment approach. This system In this paper, we present Smart Compose, a novel system for gener- is currently being served in Gmail. ating interactive, real-time suggestions in Gmail that assists users in writing mails by reducing repetitive typing. In the design and KEYWORDS deployment of such a large-scale and complicated system, we faced Smart Compose, language model, assisted writing, large-scale serv- several challenges including model selection, performance eval- ing uation, serving and other practical issues. At the core of Smart ACM Reference Format: arXiv:1906.00080v1 [cs.CL] 17 May 2019 Compose is a large-scale neural language model. We leveraged Mia Xu Chen, Benjamin N Lee, Gagan Bansal, Yuan Cao, Shuyuan Zhang, state-of-the-art machine learning techniques for language model Justin Lu, Jackie Tsay, Yinan Wang, Andrew M. Dai, Zhifeng Chen, Timothy training which enabled high-quality suggestion prediction, and Sohn, and Yonghui Wu. 2019. Gmail Smart Compose: Real-Time Assisted constructed novel serving infrastructure for high-throughput and Writing. In The 25th ACM SIGKDD Conference on Knowledge Discovery and real-time inference.