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

安全关键场景中用于鲁棒且具代表性的LLM生成的主动学习

Active Learning for Robust and Representative LLM Generation in Safety-Critical Scenarios

School of Computing and Information, University of Pittsburgh(匹兹堡大学计算与信息学院);Khoury College of Computer Science, Northeastern University(东北大学库尔计算机科学学院)

Sabit Hassan, Anthony Sicilia, Malihe Alikhani

AI总结:

针对LLM生成安全数据时忽视罕见关键案例的分布偏差问题,提出结合主动学习与聚类的新框架引导LLM生成,构建了5.4K规模的安全违规数据集,提升了场景代表性及多模型分类性能。

摘要:

确保广泛场景下的鲁棒安全措施对于面向用户的系统至关重要。尽管大型语言模型(LLMs)能生成用于安全措施的宝贵数据,但它们常表现出分布偏差,偏重常见场景而忽略罕见但关键的案例。这可能会削弱使用此类数据开发的安全协议的有效性。为解决此问题,我们提出一个将主动学习与聚类相结合的新颖框架来引导LLM生成,增强其在安全场景中的代表性和鲁棒性。我们通过一个包含LLM生成和主动学习器模型反馈的迭代过程,构建了一个包含5.4K潜在安全违规的数据集,以此证明该方法的有效性。结果表明,所提框架无需预先了解底层数据分布,即可生成更具代表性的安全场景集。此外,通过该方法获取的数据提升了主动学习器模型以及主动学习过程范围外模型的准确率和F1分数,凸显了其广泛的适用性。

英文摘要:

Ensuring robust safety measures across a wide range of scenarios is crucial for user-facing systems. While Large Language Models (LLMs) can generate valuable data for safety measures, they often exhibit distributional biases, focusing on common scenarios and neglecting rare but critical cases. This can undermine the effectiveness of safety protocols developed using such data. To address this, we propose a novel framework that integrates active learning with clustering to guide LLM generation, enhancing their representativeness and robustness in safety scenarios. We demonstrate the effectiveness of our approach by constructing a dataset of 5.4K potential safety violations through an iterative process involving LLM generation and an active learner model's feedback. Our results show that the proposed framework produces a more representative set of safety scenarios without requiring prior knowledge of the underlying data distribution. Additionally, data acquired through our method improves the accuracy and F1 score of both the active learner model as well models outside the scope of active learning process, highlighting its broad applicability.

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

↑