LaMsS:当大型语言模型遇见自我怀疑
LaMsS: When Large Language Models Meet Self-Skepticism
AI总结:
提出LaMsS方法,通过引入怀疑标记并结合预训练与微调,使LLM在解码时输出怀疑水平,仅在低怀疑度下回答,有效缓解幻觉并在多任务和域外设置中表现优异。
摘要:
幻觉是大型语言模型(LLMs)面临的一项重大挑战,阻碍了其在某些领域的进一步应用。人类的怀疑思维可能有助于LLMs进行自我认知、自我反思并缓解其幻觉。受此启发,我们提出了一种名为LaMsS的新方法,它将LLMs的语义理解能力与自我怀疑相结合。通过引入一系列怀疑标记并将其扩充到词汇表中,我们进行了预训练和微调,使LLM能够解码每个普通标记后跟一个怀疑标记,代表不同的怀疑水平。通过计算给定查询的响应怀疑度,可以定义一种新的自我感知LLM,它只愿意以低于阈值的相对较低怀疑水平来回答问题。通过检查愿意回答问题的准确率、AUC和AP,我们证明LaMsS在多选题和开放域问答基准上的表现均优于基线,并且能够泛化到多任务和域外设置。我们的研究为未来人工智能的自我怀疑建模提供了一些启示。项目代码和模型检查点可在 https://anonymous.4open.science/r/SM-1E76 找到。
英文摘要:
Hallucination is a major challenge for large language models (LLMs), preventing their further application in some fields. The skeptical thinking of humankind could be useful for LLMs to self-cognition, self-reflection and alleviate their hallucinations. Inspired by this consideration, we propose a novel approach called LaMsS, which combines the semantic understanding capability of LLMs with self-skepticism. By introducing a series of skepticism tokens and augmenting them into the vocabulary, we conduct both pertaining and finetuning, which allow the LLM to decode each normal token followed by a skeptical token, representing different skepticism levels. By calculating the response skepticism given a query, one can define a new self-aware LLM which is only willing to answer with relative lower skepticism level than the threshold. By examining the accuracy, AUC and AP of willingly answering questions, we demonstrate that LaMsS achieves better performance than baselines on both multi-choice questions and open-domain question-answering benchmarks, and can generalize to multi-task and out-of-domain settings. Our study sheds some lights on the self-skepticism modeling on further artificial intelligence. Project code and model checkpoints can be found in https://anonymous.4open.science/r/SM-1E76.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。