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

Gboard 解码器中的神经搜索空间

Neural Search Space in Gboard Decoder

Google Inc(谷歌公司)

Yanxiang Zhang, Yuanbo Zhang, Haicheng Sun, Yun Wang, Billy Dou, Gary Sivek, Shumin Zhai

AI总结:

本文提出神经搜索空间,用神经网络语言模型替代 N-gram LM 并在解码时动态构建搜索空间,以增强 Gboard 解码器的长距离上下文感知能力,在线实验显示在可接受延迟下显著降低了 Words Modified Ratio。

摘要:

Gboard 解码器通过在上下文感知的搜索空间中寻找与输入触点最匹配的路径来生成建议,该搜索空间由语言有限状态转换器(FST)支持。目前,语言 FST 是一个 N-gram 语言模型(LM)。然而,N-gram LM 受限于上下文长度,在设备模型规模约束下存在稀疏性问题。在本文中,我们提出了神经搜索空间(Neural Search Space),用神经网络语言模型(NN-LM)替代 N-gram LM,并在解码过程中动态构建搜索空间。具体来说,我们通过将 NN-LM 在给定上下文下的输出在运行时转换为语言 FST,将其长距离上下文感知能力集成到搜索空间中。这涉及语言 FST 结构重新设计、剪枝策略调整和数据结构优化。在线实验表明质量结果得到改善,在多个语言区域将 Words Modified Ratio 降低了 [0.26%, 1.19%],且延迟增加在可接受范围内。这项工作为进一步通过更直接地增强神经 LM 来提升键盘解码质量开辟了新途径。

英文摘要:

Gboard Decoder produces suggestions by looking for paths that best match input touch points on the context aware search space, which is backed by the language Finite State Transducers (FST). The language FST is currently an N-gram language model (LM). However, N-gram LMs, limited in context length, are known to have sparsity problem under device model size constraint. In this paper, we propose \textbf{Neural Search Space} which substitutes the N-gram LM with a Neural Network LM (NN-LM) and dynamically constructs the search space during decoding. Specifically, we integrate the long range context awareness of NN-LM into the search space by converting its outputs given context, into the language FST at runtime. This involves language FST structure redesign, pruning strategy tuning, and data structure optimizations. Online experiments demonstrate improved quality results, reducing Words Modified Ratio by [0.26\%, 1.19\%] on various locales with acceptable latency increases. This work opens new avenues for further improving keyboard decoding quality by enhancing neural LM more directly.

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

↑