arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.02626cs.CLcs.AI
收藏

时间反演为LLMs提供无监督反馈

Time-Reversal Provides Unsupervised Feedback to LLMs

Google DeepMind(谷歌DeepMind);Indian Institute of Science(印度科学学院)

Yerram Varun, Rahul Madhavan, Sravanti Addepalli, Arun Suggala, Karthikeyan Shanmugam, Prateek Jain

AI总结:

本文提出时间反演语言模型(TRLMs),通过反向预测和打分提供无监督反馈,在重排序、检索和安全过滤等任务中显著提升性能。

摘要:

大型语言模型(LLMs)通常被训练为按时间正向进行预测。然而,最近的研究表明,提示这些模型回顾并批评其自身的生成内容可以产生有用的反馈。受此启发,我们探讨了LLMs能否被赋予反向思考(预测和打分)的能力,以提供补充正向LLMs的无监督反馈。为此,我们引入了时间反演语言模型(TRLMs),它能在给定响应的条件下对查询进行打分和生成,从而有效地在时间的反方向上运作。此外,为了在“响应到查询”方向上进行有效推理,我们从零开始以反向token顺序预训练并微调了一个语言模型(TRLM-Ba)。我们通过经验(以及在一种程式化设定下的理论)证明,当使用时间反演模型对给定响应的查询进行打分以对多个正向生成结果进行重排序时,它确实能够补充正向模型的预测。在广泛使用的AlpacaEval排行榜上,相较于使用自对数困惑度分数的best-of-N重排序这一强大基线,我们获得了高达5%的提升。我们进一步表明,TRLM打分优于传统的给定查询的响应正向打分,在引用生成和段落检索等应用中取得了显著收益。接下来,我们利用TRLM的生成能力来增强或为LLMs的输入安全过滤器提供无监督反馈,证明了在JailbreakBench排行榜上发布的几种攻击下,假阴性率大幅降低,同时对假阳性率的影响微乎其微。

英文摘要:

Large Language Models (LLMs) are typically trained to predict in the forward direction of time. However, recent works have shown that prompting these models to look back and critique their own generations can produce useful feedback. Motivated by this, we explore the question of whether LLMs can be empowered to think (predict and score) backwards to provide unsupervised feedback that complements forward LLMs. Towards this, we introduce Time Reversed Language Models (TRLMs), which can score and generate queries when conditioned on responses, effectively functioning in the reverse direction of time. Further, to effectively infer in the response to query direction, we pre-train and fine-tune a language model (TRLM-Ba) in the reverse token order from scratch. We show empirically (and theoretically in a stylized setting) that time-reversed models can indeed complement forward model predictions when used to score the query given response for re-ranking multiple forward generations. We obtain up to 5\% improvement on the widely used AlpacaEval Leaderboard over the competent baseline of best-of-N re-ranking using self log-perplexity scores. We further show that TRLM scoring outperforms conventional forward scoring of response given query, resulting in significant gains in applications such as citation generation and passage retrieval. We next leverage the generative ability of TRLM to augment or provide unsupervised feedback to input safety filters of LLMs, demonstrating a drastic reduction in false negative rate with negligible impact on false positive rates against several attacks published on the popular JailbreakBench leaderboard.

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

↑