zkLLM:面向大型语言模型的零知识证明
zkLLM: Zero Knowledge Proofs for Large Language Models
AI总结:
提出zkLLM,首个为大型语言模型定制的零知识证明方案,通过引入tlookup和zkAttn解决非算术运算与注意力机制证明难题,15分钟内可为130亿参数模型生成证明且保护隐私。
摘要:
近期人工智能(AI)的激增以大型语言模型(LLMs)的突出地位为特征,在全球范围内引发了根本性变革。然而,伴随这些进步,围绕LLMs合法性的担忧日益增加,给其广泛应用带来了法律挑战。使这些担忧更加复杂的是,LLMs的参数通常被视为知识产权,限制了直接调查。在本研究中,我们解决了AI立法领域的一个根本挑战:需要确立LLMs生成输出的真实性。为解决这一问题,我们提出了zkLLM,据我们所知,这是首个为LLMs量身定制的专用零知识证明。针对深度学习中非算术运算的持续挑战,我们引入了tlookup,这是一种为深度学习中的非算术张量运算设计的并行化查找论证,提供了无渐近开销的解决方案。此外,基于tlookup的基础,我们引入了zkAttn,这是一种为注意力机制精心打造的专用零知识证明,仔细平衡了运行时间、内存使用和准确性的考量。在我们完全并行化的CUDA实现的支持下,zkLLM朝着在LLMs上实现高效零知识可验证计算迈出了重要一步。值得注意的是,对于拥有130亿参数的LLMs,我们的方法能够在15分钟内为整个推理过程生成正确性证明。由此产生的证明大小紧凑,不到200 kB,旨在维护模型参数的隐私,确保不会发生无意的信漏。
英文摘要:
The recent surge in artificial intelligence (AI), characterized by the prominence of large language models (LLMs), has ushered in fundamental transformations across the globe. However, alongside these advancements, concerns surrounding the legitimacy of LLMs have grown, posing legal challenges to their extensive applications. Compounding these concerns, the parameters of LLMs are often treated as intellectual property, restricting direct investigations. In this study, we address a fundamental challenge within the realm of AI legislation: the need to establish the authenticity of outputs generated by LLMs. To tackle this issue, we present zkLLM, which stands as the inaugural specialized zero-knowledge proof tailored for LLMs to the best of our knowledge. Addressing the persistent challenge of non-arithmetic operations in deep learning, we introduce tlookup, a parallelized lookup argument designed for non-arithmetic tensor operations in deep learning, offering a solution with no asymptotic overhead. Furthermore, leveraging the foundation of tlookup, we introduce zkAttn, a specialized zero-knowledge proof crafted for the attention mechanism, carefully balancing considerations of running time, memory usage, and accuracy. Empowered by our fully parallelized CUDA implementation, zkLLM emerges as a significant stride towards achieving efficient zero-knowledge verifiable computations over LLMs. Remarkably, for LLMs boasting 13 billion parameters, our approach enables the generation of a correctness proof for the entire inference process in under 15 minutes. The resulting proof, compactly sized at less than 200 kB, is designed to uphold the privacy of the model parameters, ensuring no inadvertent information leakage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。