arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12535cs.LGcs.AIcs.CL
收藏

是否不存在坏问题?H4R:用于推理、改写、排序和路由的 HalluciBot

Is There No Such Thing as a Bad Question? H4R: HalluciBot For Ratiocination, Rewriting, Ranking, and Routing

J.P. Morgan AI Research(摩根大通人工智能研究院)

William Watson, Nicole Cho, Nishan Srishankar

AI总结:

针对 LLM 幻觉问题,提出 HalluciBot 模型,在生成前估计查询的幻觉倾向,通过查询改写实现 95.7% 的多项选择题准确率,并支持推理、改写、排序和路由。

摘要:

幻觉仍然是大型语言模型(LLMs)在机构采用过程中最关键的挑战之一。以往研究主要集中于生成后的输出分析与修正,而本文则聚焦于查询在引发 LLM 准确响应方面的有效性。我们提出了 HalluciBot,一个在生成前估计查询产生幻觉倾向的模型,推理过程中不调用任何 LLM。HalluciBot 可作为查询改写的代理奖励模型,提供一个基于准确性和共识性估计查询质量的通用框架。本质上,HalluciBot 探究了构造不佳的查询如何导致错误输出——此外,通过采用由 HalluciBot 经验估计指导的查询改写,我们证明对于多项选择题可实现 95.7% 的输出准确率。HalluciBot 的训练过程包括对 369,837 个查询进行 n 次扰动,使用 n+1 个独立的 LLM 代理,从每个查询中采样一个输出,对采样输出进行多代理蒙特卡洛模拟,并训练一个编码器分类器。扰动的想法源于我们的消融研究,该研究通过以词汇不同但语义相似的方式扰动查询,测量输出多样性的增加(+12.5 一致性扩展)。因此,HalluciBot 为推理(测试 F1 分数 76.0%,幻觉查询上节省 46.6% 的计算量)、改写(从幻觉到非幻觉的正类转换 +30.2%)、排序(从幻觉到非幻觉的正类转换 +50.6%)以及将查询路由到有效流程铺平了道路。

英文摘要:

Hallucination continues to be one of the most critical challenges in the institutional adoption journey of Large Language Models (LLMs). While prior studies have primarily focused on the post-generation analysis and refinement of outputs, this paper centers on the effectiveness of queries in eliciting accurate responses from LLMs. We present HalluciBot, a model that estimates the query's propensity to hallucinate before generation, without invoking any LLMs during inference. HalluciBot can serve as a proxy reward model for query rewriting, offering a general framework to estimate query quality based on accuracy and consensus. In essence, HalluciBot investigates how poorly constructed queries can lead to erroneous outputs - moreover, by employing query rewriting guided by HalluciBot's empirical estimates, we demonstrate that 95.7% output accuracy can be achieved for Multiple Choice questions. The training procedure for HalluciBot consists of perturbing 369,837 queries n times, employing n+1 independent LLM agents, sampling an output from each query, conducting a Multi-Agent Monte Carlo simulation on the sampled outputs, and training an encoder classifier. The idea of perturbation is the outcome of our ablation studies that measures the increase in output diversity (+12.5 agreement spread) by perturbing a query in lexically different but semantically similar ways. Therefore, HalluciBot paves the way to ratiocinate (76.0% test F1 score, 46.6% in saved computation on hallucinatory queries), rewrite (+30.2% positive class transition from hallucinatory to non-hallucinatory), rank (+50.6% positive class transition from hallucinatory to non-hallucinatory), and route queries to effective pipelines.

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

↑