用后训练对齐让大模型从合成图数据中学会通用图推理能力
Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignment
- 通过解法和过程奖励进行后训练对齐,避免死记硬背
- 在5个数据集上平均提升12.9%,实测跨域任务表现显著更好
- 适合需要可解释中间步骤的复杂推理场景
现有研究通过在合成图数据上监督微调来提升大模型的图推理能力,但此类模型仅擅长特定图算法问题。我们提出通过后训练对齐实现合成图数据上的通用图学习:设计基于解法和过程的奖励机制,使大模型理解图推理本质,缓解对合成数据的过拟合。采用GRPO和DPO等对齐算法,应用于预训练模型及已微调模型。实验对比了在合成任务与包含隐式图结构的真实任务(如多跳问答、结构化规划)上的表现。结果表明,该方法在5个数据集上均取得统计显著提升,平均增益12.9%。分析显示,过程奖励在合成数据上优于解法奖励,但在真实任务中不占优势;组合性与可解释中间步骤仍是关键挑战。
原文摘要 · Abstract (English)
Previous research has sought to enhance the graph reasoning capabilities of LLMs by supervised fine-tuning on synthetic graph data. While these led to specialized LLMs better at solving graph algorithm problems, we don't need LLMs for shortest path: we need generalization from synthetic graph data to real-world tasks with implicit graph structures. In this work, we propose to unlock generalizable learning of graph with post-training alignment with synthetic data. We first design solution-based and process-based rewards for synthetic graph problems: instead of rigid memorizing response patterns in direct fine-tuning, we posit that post-training alignment would help LLMs grasp the essentials underlying graph reasoning and alleviate overfitting on synthetic data. We employ post-training alignment algorithms such as GRPO and DPO, aligning both off-the-shelf LLMs and LLMs fine-tuned on synthetic graph data. We then compare them against existing settings on both in-domain synthetic tasks and out-of-domain real-world tasks with implicit graph structures such as multi-hop QA, structured planning, and more. Extensive experiments demonstrate that our post-training alignment recipe leads to statistically significant improvement on 5 datasets, with an average gain of 12.9% over baseline settings. Further analysis reveals that process-based rewards consistently outperform solution-based rewards on synthetic data but not on real-world tasks, and compositionality and explainable intermediate steps remains a critical challenge even after post-training alignment.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。