arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.22165cs.LG
收藏

思想图景:可视化大语言模型的推理过程

Landscape of Thoughts: Visualizing the Reasoning Process of Large Language Models

TMLR Group, Hong Kong Baptist University(香港 Baptist 大学 TMLR 团体);Stanford University(斯坦福大学);Mila - Québec AI Institute(魁北克 AI 院);Université de Montréal(蒙特利尔大学);HEC Montréal(蒙特利尔 HEC 学院);Intel AI Lab(英特尔 AI 实验室)

Zhanke Zhou, Zhaocheng Zhu, Xuan Li, Mikhail Galkin, Xiao Feng, Sanmi Koyejo, Jian Tang, Bo Han

AI总结:

提出思想图景(LoT)可视化工具,用于分析大语言模型的推理轨迹,揭示推理模式并提升推理准确性。

摘要:

大量大语言模型(LLM)的应用依赖于其执行分步推理的能力。然而,LLM的推理行为仍缺乏深入理解,给研究、开发和安全性带来了挑战。为解决这一差距,我们引入了思想图景(LoT),这是首个能够检查任何多选数据集上特定推理方法的推理轨迹可视化工具。我们将轨迹中的文本状态表示为数值特征,这些特征量化了状态与答案选项之间的距离。这些特征随后使用t-SNE在二维图中进行可视化。利用思想图景进行定性和定量分析,可以有效区分强弱模型、正确与错误答案以及不同推理任务。它还揭示了不 desirable 的推理模式,如低一致性和高不确定性。此外,用户可以将LoT适应到预测他们观察到的属性的模型。我们通过将LoT适应到一个轻量级验证器来展示这一优势,该验证器评估轨迹的正确性。经验上,该验证器提高了推理准确性和测试时间扩展效应。代码已公开在:https://github.com/tmlr-group/landscape-of-thoughts。

英文摘要:

Numerous applications of large language models (LLMs) rely on their ability to perform step-by-step reasoning. However, the reasoning behavior of LLMs remains poorly understood, posing challenges to research, development, and safety. To address this gap, we introduce landscape of thoughts (LoT), the first landscape visualization tool to inspect the reasoning trajectories with certain reasoning methods on any multi-choice dataset. We represent the textual states in a trajectory as numerical features that quantify the states' distances to the answer choices. These features are then visualized in two-dimensional plots using t-SNE. Qualitative and quantitative analysis with the landscape of thoughts effectively distinguishes between strong and weak models, correct and incorrect answers, as well as different reasoning tasks. It also uncovers undesirable reasoning patterns, such as low consistency and high uncertainty. Additionally, users can adapt LoT to a model that predicts the property they observe. We showcase this advantage by adapting LoT to a lightweight verifier that evaluates the correctness of trajectories. Empirically, this verifier boosts the reasoning accuracy and the test-time scaling effect. The code is publicly available at: https://github.com/tmlr-group/landscape-of-thoughts.

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

↑