基于先例预测定制多模态 RAI 护栏
Customize Multi-modal RAI Guardrails with Precedent-based predictions
AI总结:
针对多模态 RAI 护栏策略定制难、示例少的问题,提出基于相似先例推理的预测框架,通过批评-修正机制构建先例并设计两种预测策略,在少样本和全数据集设置下均取得更优泛化性能。
摘要:
多模态护栏必须能够根据用户定义的策略有效过滤图像内容,识别可能含有仇恨性、强化有害刻板印象、包含露骨材料或传播错误信息的内容。然而,在实际应用中部署此类护栏面临重大挑战。用户通常需要多样化且高度可定制的策略,并且往往无法为每项自定义策略提供大量示例。因此,理想的护栏应能扩展适用于多种策略,并以最少的再训练适应不断变化的用户标准。现有微调方法通常使预测依赖于预定义策略,这限制了其向新策略的泛化能力,或需要进行大量再训练才能适应。相反,免训练方法则受限于有限的上下文长度,难以全面纳入所有策略。为克服这些局限,我们建议让模型的判断以“先例”为条件,即与给定输入相似的先前数据点的推理过程。通过利用先例而非固定策略,我们的方法大幅提升了护栏的灵活性和适应性。本文提出了一种用于收集高质量先例的批评-修正机制,以及两种利用先例实现稳健预测的策略。实验结果表明,我们的方法在少样本和全数据集场景下均优于以往方法,并对新策略表现出更强的泛化能力。
英文摘要:
A multi-modal guardrail must effectively filter image content based on user-defined policies, identifying material that may be hateful, reinforce harmful stereotypes, contain explicit material, or spread misinformation. Deploying such guardrails in real-world applications, however, poses significant challenges. Users often require varied and highly customizable policies and typically cannot provide abundant examples for each custom policy. Consequently, an ideal guardrail should be scalable to the multiple policies and adaptable to evolving user standards with minimal retraining. Existing fine-tuning methods typically condition predictions on pre-defined policies, restricting their generalizability to new policies or necessitating extensive retraining to adapt. Conversely, training-free methods struggle with limited context lengths, making it difficult to incorporate all the policies comprehensively. To overcome these limitations, we propose to condition model's judgment on "precedents", which are the reasoning processes of prior data points similar to the given input. By leveraging precedents instead of fixed policies, our approach greatly enhances the flexibility and adaptability of the guardrail. In this paper, we introduce a critique-revise mechanism for collecting high-quality precedents and two strategies that utilize precedents for robust prediction. Experimental results demonstrate that our approach outperforms previous methods across both few-shot and full-dataset scenarios and exhibits superior generalization to novel policies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。