将大型机器学习模型跨多设备分片以平衡代价,在分布式训练中至关重要。这一问题颇具挑战性,因为划分属于NP难问题,且准确高效地估算代价难度较大。本研究探索了一种“预训练+搜索”的高效分片范式。其核心思路是预训练一个通用的、一劳永逸的神经网络来预测所有可能分片的代价,以此充当高效的分片模拟器。基于该预训练代价模型,我们随后执行在线搜索,针对任意特定分片任务确定最优分片方案。我们在深度学习推荐模型(DLRMs)中落地了这一思路,提出了用于嵌入表分片的NeuroShard。NeuroShard在增强表上预训练神经代价模型,以覆盖各类分片场景;随后分别通过束搜索和贪心网格搜索,确定最优的列级与表级分片方案。实验表明,NeuroShard在基准分片数据集上显著且持续优于现有最优方法,性能提升最高达23.8%。当部署在拥有数TB级嵌入表的超大规模生产DLRM中时,NeuroShard的嵌入代价比现有最优方法降低11.6%,对应端到端训练吞吐量提升6.6%。为推动“预训练+搜索”范式在ML for Systems领域的后续研究,我们已在https://github.com/daochenzha/neuroshard开源代码。
英文摘要:
Sharding a large machine learning model across multiple devices to balance the costs is important in distributed training. This is challenging because partitioning is NP-hard, and estimating the costs accurately and efficiently is difficult. In this work, we explore a "pre-train, and search" paradigm for efficient sharding. The idea is to pre-train a universal and once-for-all neural network to predict the costs of all the possible shards, which serves as an efficient sharding simulator. Built upon this pre-trained cost model, we then perform an online search to identify the best sharding plans given any specific sharding task. We instantiate this idea in deep learning recommendation models (DLRMs) and propose NeuroShard for embedding table sharding. NeuroShard pre-trains neural cost models on augmented tables to cover various sharding scenarios. Then it identifies the best column-wise and table-wise sharding plans with beam search and greedy grid search, respectively. Experiments show that NeuroShard significantly and consistently outperforms the state-of-the-art on the benchmark sharding dataset, achieving up to 23.8% improvement. When deployed in an ultra-large production DLRM with multi-terabyte embedding tables, NeuroShard achieves 11.6% improvement in embedding costs over the state-of-the-art, which translates to 6.6% end-to-end training throughput improvement. To facilitate future research of the "pre-train, and search" paradigm in ML for Systems, we open-source our code at https://github.com/daochenzha/neuroshard
PASTA: Table-Operations Aware Fact Verification via Sentence-Table Cloze Pre-training
Renmin University of China(中国人民大学);Qatar Computing Research Institute(卡塔尔计算研究所);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
事实验证最近吸引了大量的研究关注,例如,在新闻业、市场营销和政策制定方面,网上的错误信息和虚假信息可以动摇一个人的观点,影响一个人的行动。虽然事实核查通常是一项艰巨的任务,但在许多情况下,虚假陈述可以很容易地根据对具有可靠信息的表格的分析来揭穿。因此,基于表格的事实验证最近已经成为一个重要的和不断增长的研究领域。然而,由于缺乏可用于预训练语言模型(LM)以了解常见表操作(例如聚合列或比较元组)的数据集,因此进展有限。为了弥补这一差距,在本文中,我们介绍了PASTA,一个新的国家的最先进的框架,基于表格的事实验证通过预训练与合成的表格完形填空题。特别是,我们设计了六种类型的常见的表完形填空任务,包括过滤,聚合,最高级,比较,顺序,和唯一的,基于此,我们合成了一个大型语料库,由120万个表对从WikiTables。PASTA使用最近预训练的LM DeBERTaV 3,并在我们的语料库上进一步预训练它。我们的实验结果表明,PASTA实现了新的国家的最先进的性能基于表的事实验证基准:TabFact和SEM-TAB-FACTS。特别是,在包含多个操作的TabFact复杂集上,PASTA的表现大大优于先前的最新技术水平4.7分(85.6% vs. 80.9%),并且PASTA和人类在小型TabFact测试集上的表现之间的差距缩小到仅1.5分(90.6% vs. 92.1%)。
Generalization Can Emerge in Tabular Foundation Models From a Single Table
University of Toronto(多伦多大学);Polytechnique Montréal(蒙特利尔大学);Mila – Quebec AI Institute(魁北克人工智能研究所);Layer 6 AI(Layer 6 AI公司);Prior Labs(Prior实验室);ELLIS Institute(ELLIS研究所);Tübingen University of Freiburg(弗赖堡大学)