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

攀登WOL:训练更便宜的推理

Climbing the WOL: Training for Cheaper Inference

Rice University(莱斯大学);Stanford University(斯坦福大学)

Zichang Liu, Zhaozhuo Xu, Alan Ji, Jonathan Li, Beidi Chen, Anshumali Shrivastava

摘要:

在大规模机器学习中,有效的宽输出层推理是一项重要而又具有挑战性的任务。大多数方法将此问题简化为近似最大内积搜索(MIPS),这在很大程度上依赖于对给定模型的观察,地面真值标签对应于完整模型推断期间的最高值的logit。然而,这种假设在实践中是有限制性的。在本文中,我们认为,近似MIPS子程序,尽管有次线性的计算时间,是次优的,因为它们是专为检索大的内积与高召回率,而不是检索正确的标签。使用WOL,标签通常具有中等内积,这使得近似MIPS更具挑战性。我们提出了一个替代的问题制定,称为标签高级采样(LSS),其目标是量身定制的系统,以确保检索正确的标签。因此,我们提出了一种新的学习哈希方法,它比MIPS基线更有效,更足以实现高推理精度。我们的广泛评估表明,LSS可以匹配甚至超过完整的推理准确性,速度提高约5倍,能耗降低87%。

英文摘要:

Efficient inference for wide output layers (WOLs) is an essential yet challenging task in large scale machine learning. Most approaches reduce this problem to approximate maximum inner product search (MIPS), which relies heavily on the observation that for a given model, ground truth labels correspond to logits of highest value during full model inference. However, such an assumption is restrictive in practice. In this paper, we argue that approximate MIPS subroutines, despite having sub-linear computation time, are sub-optimal because they are tailored for retrieving large inner products with high recall instead of retrieving the correct labels. With WOL, the labels often have moderate inner products, which makes approximate MIPS more challenging. We propose an alternative problem formulation, called Label Superior Sampling (LSS), where the objective is to tailor the system to ensure retrieval of the correct label. Accordingly, we propose a novel learned hash approach, which is significantly more efficient and sufficient for high inference accuracy than MIPS baselines. Our extensive evaluation indicates that LSS can match or even outperform full inference accuracy with around 5x speed up and 87% energy reduction.

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

↑