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

时间图网络:多轮对话中的幻觉检测

Temporal Graph Network: Hallucination Detection in Multi-Turn Conversation

IIIT Hyderabad(海得拉巴印度理工学院)

Vidhi Rathore, Sambu Aneesh, Himanshu Singh

AI总结:

本文提出基于时间图网络的方法,用于检测多轮对话中的幻觉,通过节点嵌入和注意力机制提升检测性能。

摘要:

幻觉可能由对话AI系统产生,特别是在多轮对话中,当上下文变化和矛盾可能最终显现时。通过将整个对话表示为时间图,我们提出了一种基于图的方法来检测对话层面的幻觉。我们的框架将每个对话视为一个节点,使用句子转换器对其进行编码。我们探索了两种不同的连接方式:i)共享实体边,连接引用相同实体的轮次;ii)时间边,连接对话中的连续轮次。使用消息传递来更新节点嵌入,允许在相关节点之间流动信息。然后,通过注意力池化将上下文感知的节点嵌入结合成一个向量,该向量传递给分类器以确定幻觉的存在和类型。我们证明了我们的方法在现有方法上略有所改进。进一步,我们展示了注意力机制可以用来证明决策过程。代码和模型权重可在:https://github.com/sambuaneesh/anlp-project 上获得。

英文摘要:

Hallucinations can be produced by conversational AI systems, particularly in multi-turn conversations where context changes and contradictions may eventually surface. By representing the entire conversation as a temporal graph, we present a novel graph-based method for detecting dialogue-level hallucinations. Our framework models each dialogue as a node, encoding it using a sentence transformer. We explore two different ways of connectivity: i) shared-entity edges, which connect turns that refer to the same entities; ii) temporal edges, which connect contiguous turns in the conversation. Message-passing is used to update the node embeddings, allowing flow of information between related nodes. The context-aware node embeddings are then combined using attention pooling into a single vector, which is then passed on to a classifier to determine the presence and type of hallucinations. We demonstrate that our method offers slightly improved performance over existing methods. Further, we show the attention mechanism can be used to justify the decision making process. The code and model weights are made available at: https://github.com/sambuaneesh/anlp-project.

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

↑