arXiv:2508.17905cs.CL2025-08中稿 · IEEE TKDE被引 1

用代码统一表示知识,让大模型跨任务推理更高效。

Pandora: Leveraging Code-driven Knowledge Transfer for Unified Structured Knowledge Reasoning

  • 用Python Pandas API统一表示表格、数据库等结构化知识
  • 通过自动构建跨任务记忆,提升大模型在6个基准上的表现
  • 适合需要跨数据源推理的AI系统开发者

统一结构化知识推理(USKR)旨在通过表格、数据库和知识图谱等结构化数据,以统一方式回答自然语言问题。现有方法依赖特定任务策略或定制表示,难以打破不同SKR任务间的壁垒,限制了跨任务性能。本文提出新框架Pandora,通过两项关键创新克服上述局限:首先,采用基于Python Pandas API的代码化统一知识表示,与大模型预训练无缝对齐,实现对多种结构化数据的一致处理;在此基础上,通过自动构建跨任务记忆,实现知识迁移,结合代码执行反馈动态修正推理过程。在三个SKR任务的六个主流基准上进行的大量实验表明,Pandora优于现有统一推理框架,并可与特定任务方法相媲美。

原文摘要 · Abstract (English)

Unified Structured Knowledge Reasoning (USKR) aims to answer natural language questions by using structured sources such as tables, databases, and knowledge graphs in a unified way. Existing USKR methods rely on task-specific strategies or bespoke representations, which hinder their ability to dismantle barriers between different SKR tasks, thereby constraining their overall performance in cross-task scenarios. In this paper, we introduce \textsc{Pandora}, a novel USKR framework that addresses the limitations of existing methods by leveraging two key innovations. First, we propose a code-based unified knowledge representation using \textsc{Python}'s \textsc{Pandas} API, which aligns seamlessly with the pre-training of LLMs. This representation facilitates a cohesive approach to handling different structured knowledge sources. Building on this foundation, we employ knowledge transfer to bolster the unified reasoning process of LLMs by automatically building cross-task memory. By adaptively correcting reasoning using feedback from code execution, \textsc{Pandora} showcases impressive unified reasoning capabilities. Extensive experiments on six widely used benchmarks across three SKR tasks demonstrate that \textsc{Pandora} outperforms existing unified reasoning frameworks and competes effectively with task-specific methods.

知识推理大模型代码表示

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。