arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.17607cs.LGcs.CL
收藏

通过梯度匹配训练大型语言模型的合成文本生成

Synthetic Text Generation for Training Large Language Models via Gradient Matching

Google Research(谷歌研究院)

Dang Nguyen, Zeman Li, Mohammadhossein Bateni, Vahab Mirrokni, Meisam Razaviyayn, Baharan Mirzasoleiman

AI总结:

本文提出首个兼具收敛、性能与隐私保证的可读合成文本生成方法,利用 ADMM 匹配含噪梯度并映射为低困惑度 token,实验验证其有效性。

摘要:

合成数据有潜力提升真实训练样本的性能、训练效率和隐私性。然而,现有的合成文本生成方法大多是启发式的,无法在不损害真实数据隐私的情况下生成人类可读文本,也无法为训练大型语言模型(LLM)提供性能保证。在本工作中,我们提出了首个理论上严谨的方法,用于生成合成的人类可读文本,并为在目标任务上微调 LLM 提供收敛性、性能和隐私保证。为此,我们利用交替方向乘子法(Alternating Direction Method of Multipliers,ADMM),迭代优化合成样本的嵌入,使其匹配目标训练或验证数据的含噪梯度,并将其映射为具有低困惑度的文本 token 序列。通过这种方式,生成的合成文本保证模型收敛到在真实数据上微调所得解的邻近区域,同时保护其隐私。在多种分类任务上的实验证实了我们所提方法的有效性。我们的代码可在 https://github.com/BigML-CS-UCLA/GRADMM 获取。

英文摘要:

Synthetic data has the potential to improve the performance, training efficiency, and privacy of real training examples. Nevertheless, existing approaches for synthetic text generation are mostly heuristics and cannot generate human-readable text without compromising the privacy of real data, or provide performance guarantees for training Large Language Models (LLMs). In this work, we propose the first theoretically rigorous approach for generating synthetic human-readable text that provides convergence, performance, and privacy guarantees for fine-tuning LLMs on a target task. To do so, we leverage Alternating Direction Method of Multipliers (ADMM) that iteratively optimizes the embeddings of synthetic examples to match the noisy gradient of the target training or validation data, and maps them to a sequence of text tokens with low perplexity. In doing so, the generated synthetic text guarantees convergence of the model to a close neighborhood of the solution obtained by fine-tuning on real data and preserves their privacy. Experiments on various classification tasks confirm the effectiveness of our proposed approach. Our code is available at https://github.com/BigML-CS-UCLA/GRADMM.

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

↑