用专家构建的旅行知识图谱提升大模型推理准确性
Travel-Oriented Reasoning Large Language Model via Domain-Specific Knowledge Graphs
- 基于旅行领域知识图谱生成多跳问答对,引导模型学习结构化推理
- 微调后模型在评测集上准确率达82.4%,远超基线模型的22.4%
- 揭示了模型错误主要源于过度自信和路径重建失败,适合领域推理研究者
大语言模型在通用任务中表现优异,但在旅行等专业领域因缺乏精确规则与概念框架,常产生看似合理实则错误的推理。本文提出一种模块化方法,构建基于专家设计知识图谱(KG)的旅行领域推理模型。流程包括:集成旅行领域实体与关系的知识图谱;通过遍历图谱生成多跳问答对;利用生成数据对Qwen3-4B进行监督微调,使其具备可审计的推理能力;并建立旅行领域基准数据集评估模型准确率与校准性。实验显示,该方法使模型在基准测试中达到82.4%的精确匹配率,显著优于未微调的Qwen3-4B基线(22.4%)。校准分析发现,剩余17.57%错误分为两类:多数双答案错误由过度自信的多标签解码器导致(预测正确答案外还包含一个虚假选项),少数单答案错误源于虽有支持事实但无法重构正确多跳路径。结果表明,显式依赖知识图谱能显著提升模型准确性和不确定性判断能力,并指明未来改进方向为逐项校准与路径长度感知解码。
原文摘要 · Abstract (English)
Large language models (LLMs) demonstrate broad reasoning abilities but struggle with accuracy and reliability in specialized domains such as travel, where reasoning depends on precise definitions, rules, and expert-defined conceptual frameworks, and where confident but unfounded outputs arise from a reasoning failure in which the model has not internalized the underlying domain graph rather than from missing domain knowledge alone. We propose a modular pipeline for building a travel-domain reasoning LLM grounded in an expert-designed knowledge graph (KG). Our pipeline integrates a travel KG that encodes domain entities and their relationships, a bottom-up construction procedure that walks the KG to produce multi-hop question answer (QA) pairs, a supervised fine-tuning stage that embeds the domain knowledge into a reasoning-capable LLM using the generated QA pairs as auditable reasoning traces, and a travel-domain benchmark dataset that measures the fine-tuned model's accuracy and calibration. We evaluate our approach using Qwen3-4B with LoRA adaptation. Our reasoning model achieves an $82.4\%$ exact match on the benchmark. This performance significantly outperforms the pretrained Qwen3-4B baseline at $22.4\%$. A calibration analysis decomposes the residual $17.57\%$ of errors into two distinct failure modes: an over-confident multi-label decoder that predicts both correct answers plus one spurious option on most dual-answer mistakes, and a smaller reasoning failure on single-answer questions where the supporting facts are present in the KG but the model fails to reconstruct the correct multi-hop path. This split confirms that explicit KG-grounded reasoning substantially improves the accuracy and uncertainty interpretation of LLMs in specialized domains, and isolates per-option calibration and trace-length-aware decoding as the next axes of improvement.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。