arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.15625eess.SYcs.AIcs.CLcs.SY
收藏

CBF-LLM:安全控制用于大语言模型对齐

CBF-LLM: Safe Control for LLM Alignment

Yuya Miyaoka, Masaki Inoue

AI总结:

本文提出基于控制的对齐框架,利用控制屏障函数确保用户期望的文本生成,通过安全过滤器减少对齐任务的干预次数。

摘要:

本文提出了一种基于控制的框架,通过利用控制屏障函数(CBF)来对齐大型语言模型(LLMs),以确保用户期望的文本生成。所提出的框架将基于CBF设计的安全过滤器应用于基础LLM的输出生成过程,即token序列,旨在干预生成的文本。整体文本生成系统使用Llama 3和RoBERTa模型实现,源代码可在https://github.com/Mya-Mya/CBF-LLM获取。实验展示了其控制能力和在减少用户指定对齐任务所需干预次数方面的有效性。

英文摘要:

This paper proposes a control-based framework for aligning large language models (LLMs) by leveraging a control barrier function (CBF) to ensure user-desirable text generation. The presented framework applies the safety filter, designed based on the CBF, to the output generation of the baseline LLM, i.e., the sequence of the token, with the aim of intervening in the generated text. The overall text-generation system is implemented with Llama 3 and a RoBERTa model, and the source code is available at https://github.com/Mya-Mya/CBF-LLM. The experiment demonstrates its control ability and effectiveness in reducing the number of interventions needed for user-specified alignment tasks.

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

↑