理顺索引:面向真实世界LLM训练数据的全文检索
Getting Your Indices in a Row: Full-Text Search for LLM Training Data for Real World
AI总结:
本文提出基于Elasticsearch和arm64超级集群的Apertus LLM训练数据全文索引流水线,成功索引8.6T tokens,实现大规模数据检索与越狱无关的LLM安全,并验证了绿色计算可行性。
摘要:
大型语言模型(LLM)的性能由其训练数据决定。尽管开放权重LLM不断涌现,但获取LLM训练数据的途径仍然有限。即便是完全开放的LLM,其数据规模也使得一般科学界几乎无法对其进行深入研究,尽管其中可能包含从互联网抓取的关键数据。在本文中,我们介绍了Apertus LLM训练数据的全文索引流水线。利用Elasticsearch并行索引和Alps基础设施(一个最先进的、高能效的arm64超级集群),我们成功索引了用于训练Apertus LLM家族的15.2T tokens中的8.6T tokens,既创建了一个关键的LLM安全工具,也实际上构建了一个离线的、经过整理的开放网络搜索引擎。我们的贡献有三方面。首先,我们证明了Elasticsearch可以成功移植到下一代基于arm64的基础设施上。其次,我们证明了在现代LLM训练数据集和整个开放网络的规模下,全文索引是可行且可及的。最后,我们证明了此类索引可用于确保此前无法实现的、与越狱无关的LLM安全性。我们希望我们的发现将对其他尝试大规模数据索引的团队有所帮助,并促进向更绿色计算的普遍转变。
英文摘要:
The performance of Large Language Models (LLMs) is determined by their training data. Despite the proliferation of open-weight LLMs, access to LLM training data has remained limited. Even for fully open LLMs, the scale of the data makes it all but inscrutable to the general scientific community, despite potentially containing critical data scraped from the internet. In this paper, we present the full-text indexing pipeline for the Apertus LLM training data. Leveraging Elasticsearch parallel indices and the Alps infrastructure, a state-of-the-art, highly energy-efficient arm64 supercluster, we were able to index 8.6T tokens out of 15.2T used to train the Apertus LLM family, creating both a critical LLM safety tool and effectively an offline, curated, open web search engine. Our contribution is threefold. First, we demonstrate that Elasticsearch can be successfully ported onto next-generation arm64-based infrastructure. Second, we demonstrate that full-text indexing at the scale of modern LLM training datasets and the entire open web is feasible and accessible. Finally, we demonstrate that such indices can be used to ensure previously inaccessible jailbreak-agnostic LLM safety. We hope that our findings will be useful to other teams attempting large-scale data indexing and facilitate the general transition towards greener computation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。