SoK:通用大语言模型中的记忆化
SoK: Memorization in General-Purpose Large Language Models
AI总结:
本文系统梳理了通用大语言模型中的记忆化现象,提出涵盖逐字文本、事实、算法、风格等类型的分类法,分析其对隐私、版权和审计的影响,并讨论检测与预防方法及未来研究方向。
摘要:
大语言模型(LLMs)正以惊人的速度发展,大量应用正在开发之中。与大多数早期的机器学习模型不同,它们不再为某一特定应用而构建,而是被设计为在广泛的任务中表现出色。这一成功的主要部分归功于其庞大的训练数据集和前所未有的模型参数数量,这使它们能够记忆训练数据中包含的大量信息。这种记忆化超越了单纯的语言层面,涵盖了仅存在于少数文档中的信息。这通常是可取的,因为它是执行问答等任务所必需的,因此是学习的重要组成部分,但也带来了从隐私、安全到版权等一系列问题。LLMs 可以记忆训练数据中的短秘密,也可以记忆诸如事实或写作风格等可以以多种不同方式在文本中表达的概念。我们提出了一个针对 LLMs 记忆化的分类法,涵盖逐字文本、事实、思想与算法、写作风格、分布特性以及对齐目标。我们描述了每种记忆化类型对模型性能、隐私、安全与保密性、版权以及审计的影响——包括积极和消极方面——以及检测和防止记忆化的方法。我们进一步强调了由于 LLM 特有的现象(如推理能力或解码算法之间的差异),以模型行为而非模型权重来定义记忆化的主流方式所带来的挑战。在整篇论文中,我们描述了 LLMs 中记忆化所产生的潜在风险与机遇,希望这将激发新的研究方向。
英文摘要:
Large Language Models (LLMs) are advancing at a remarkable pace, with myriad applications under development. Unlike most earlier machine learning models, they are no longer built for one specific application but are designed to excel in a wide range of tasks. A major part of this success is due to their huge training datasets and the unprecedented number of model parameters, which allow them to memorize large amounts of information contained in the training data. This memorization goes beyond mere language, and encompasses information only present in a few documents. This is often desirable since it is necessary for performing tasks such as question answering, and therefore an important part of learning, but also brings a whole array of issues, from privacy and security to copyright and beyond. LLMs can memorize short secrets in the training data, but can also memorize concepts like facts or writing styles that can be expressed in text in many different ways. We propose a taxonomy for memorization in LLMs that covers verbatim text, facts, ideas and algorithms, writing styles, distributional properties, and alignment goals. We describe the implications of each type of memorization - both positive and negative - for model performance, privacy, security and confidentiality, copyright, and auditing, and ways to detect and prevent memorization. We further highlight the challenges that arise from the predominant way of defining memorization with respect to model behavior instead of model weights, due to LLM-specific phenomena such as reasoning capabilities or differences between decoding algorithms. Throughout the paper, we describe potential risks and opportunities arising from memorization in LLMs that we hope will motivate new research directions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。