arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.10994cs.CLcs.AIcs.HCcs.LG
收藏

Panza:一个完全本地化的个性化文本写作助手的设计与分析

Panza: Design and Analysis of a Fully-Local Personalized Text Writing Assistant

Institute of Science and Technology Austria(奥地利科学技术研究所);Massachusetts Institute of Technology(麻省理工学院)

Armand Nicolicioiu, Eugenia Iofinova, Andrej Jovanovic, Eldar Kurtic, Mahdi Nikdan, Andrei Panferov, Ilia Markov, Nir Shavit, Dan Alistarh

AI总结:

本文提出Panza,一个完全本地化的个性化邮件写作助手,结合Reverse Instructions微调与RAG,在极少量数据和有限资源下模仿用户写作风格,并首次系统研究该任务的评估指标,同时揭示少量写作样本即可被用于低成本模仿攻击的安全风险。

摘要:

强大的开源大语言模型(LLMs)的可用性开启了令人兴奋的用例,例如使用个人数据微调这些模型以模仿用户独特的写作风格。此类助手有两个关键要求:个性化——即助手应能明显反映用户自身的写作风格——以及隐私——用户有理由担心将极其个人化的数据(例如其电子邮件存档)上传到第三方服务。在本文中,我们针对电子邮件生成这一特定用例,提出了一种新的自动化助手设计与评估方案,我们称之为Panza。Panza的个性化功能基于一种组合方法:使用Reverse Instructions技术的一个变体进行微调,并结合检索增强生成(RAG)。我们证明,这种组合使我们能够在有限的数据条件下微调大语言模型以反映用户的写作风格,同时能在极其有限的资源上执行,例如在免费的Google Colab实例上。我们的关键方法学贡献是首次对这一个性化写作任务的评估指标进行了详细研究,并研究了系统组件的不同选择——RAG的使用以及不同微调方法——如何影响系统性能。此外,我们证明极少量的数据——不到100个电子邮件样本——就足以创建能够令人信服地模仿人类的模型。这一发现揭示了语言模型中一个此前未知的攻击向量:获取少量写作样本即可让恶意行为者以极低成本创建模仿目标写作风格的生成模型。我们将发布完整的Panza代码以及三个新的、获研究使用许可的电子邮件数据集,地址为https://github.com/IST-DASLab/PanzaMail。

英文摘要:

The availability of powerful open-source large language models (LLMs) opens exciting use-cases, such as using personal data to fine-tune these models to imitate a user's unique writing style. Two key requirements for such assistants are personalization - in the sense that the assistant should recognizably reflect the user's own writing style - and privacy - users may justifiably be wary of uploading extremely personal data, such as their email archive, to a third-party service. In this paper, we present a new design and evaluation for such an automated assistant, for the specific use case of email generation, which we call Panza. Panza's personalization features are based on a combination of fine-tuning using a variant of the Reverse Instructions technique together with Retrieval-Augmented Generation (RAG). We demonstrate that this combination allows us to fine-tune an LLM to reflect a user's writing style using limited data, while executing on extremely limited resources, e.g. on a free Google Colab instance. Our key methodological contribution is the first detailed study of evaluation metrics for this personalized writing task, and of how different choices of system components--the use of RAG and of different fine-tuning approaches-impact the system's performance. Additionally, we demonstrate that very little data - under 100 email samples - are sufficient to create models that convincingly imitate humans. This finding showcases a previously-unknown attack vector in language models - that access to a small number of writing samples can allow a bad actor to cheaply create generative models that imitate a target's writing style. We are releasing the full Panza code as well as three new email datasets licensed for research use at https://github.com/IST-DASLab/PanzaMail.

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

↑