arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.03967cs.CL
收藏

用于移动设备的实时的优化N-gram

Real-Time Optimized N-gram For Mobile Devices

Samsung R&D Institute Bangalore(三星班加罗尔研发研究院)

Sharmila Mani, Sourabh Vasant Gothe, Sourav Ghosh, Ajay Kumar Mishra, Prakhar Kulshreshtha, Bhargavi M, Muthu Kumaran

摘要:

随着移动设备数量的增加,已经持续研究生成用于软键盘的优化的语言模型(LM)。尽管在这一领域取得了进展,但为低端功能手机以及高端智能手机构建单一LM仍然是一个迫切的需求。因此,我们提出了一种新的技术,优化的N-gram(Op-Ngram),这是一种端到端的N-gram管道,可以有效地利用移动资源来实现更快的单词完成(WC)和下一个单词预测(NWP)。Op-Ngram应用Stupid Backoff和修剪策略来生成轻量级模型。LM在移动设备上的加载时间与模型大小呈线性关系。我们观察到Op-Ngram与BerkeleyLM的SORTED数组变体相比,在语言模型(LM)-ROM大小方面提高了37%,在LM-RAM大小方面提高了76%,在加载时间方面提高了88%,在平均建议时间方面提高了89%。此外,我们的方法显示显着的性能改善,以及KenLM。

英文摘要:

With the increasing number of mobile devices, there has been continuous research on generating optimized Language Models (LMs) for soft keyboard. In spite of advances in this domain, building a single LM for low-end feature phones as well as high-end smartphones is still a pressing need. Hence, we propose a novel technique, Optimized N-gram (Op-Ngram), an end-to-end N-gram pipeline that utilises mobile resources efficiently for faster Word Completion (WC) and Next Word Prediction (NWP). Op-Ngram applies Stupid Backoff and pruning strategies to generate a light-weight model. The LM loading time on mobile is linear with respect to model size. We observed that Op-Ngram gives 37% improvement in Language Model (LM)-ROM size, 76% in LM-RAM size, 88% in loading time and 89% in average suggestion time as compared to SORTED array variant of BerkeleyLM. Moreover, our method shows significant performance improvement over KenLM as well.

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

↑