arXiv:2601.01609cs.AI2026-01被引 1

用LLM+语义网结合,让自然语言规则推理既灵活又可审计。

Structured Decomposition for LLM Reasoning: Cross-Domain Validation and Semantic Web Integration

  • 将自然语言规则分解为实体识别、断言提取和符号验证三步
  • 跨三个领域实验显示,结构化方法显著优于零样本提示
  • 适合需要可解释性与形式化保证的法律、医疗、科研场景

自然语言中的基于规则的推理在临床协议、证据规则和科学标准等需可审计决策的领域至关重要。将规则应用于此类文本需兼具解释灵活性与形式化保障。大型语言模型(LLMs)提供灵活性但无法保证规则一致应用;符号系统虽有保障却要求结构化输入。本文提出一种融合方案:以LLM作为本体构建引擎,依据专家编写的TBox规范将非结构化文本转化为ABox断言,再由基于SWRL的推理机进行确定性规则验证。该框架将推理分解为实体识别、断言提取与符号验证三阶段,任务定义基于OWL 2本体。在法律传闻认定、科学方法任务应用、临床试验资格判定三个领域及十一款语言模型上进行验证。结构化分解在整体上显著优于少样本提示,且所有领域均有提升。消融实验证明,符号验证带来的收益远超仅使用结构化提示。生成的ABox可与标准语义网工具集成,支持检查与查询,为更复杂的推理模式奠定基础。

原文摘要 · Abstract (English)

Rule-based reasoning over natural language input arises in domains where decisions must be auditable and justifiable: clinical protocols specify eligibility criteria in prose, evidence rules define admissibility through textual conditions, and scientific standards dictate methodological requirements. Applying rules to such inputs demands both interpretive flexibility and formal guarantees. Large language models (LLMs) provide flexibility but cannot ensure consistent rule application; symbolic systems provide guarantees but require structured input. This paper presents an integration pattern that combines these strengths: LLMs serve as ontology population engines, translating unstructured text into ABox assertions according to expert-authored TBox specifications, while SWRL-based reasoners apply rules with deterministic guarantees. The framework decomposes reasoning into entity identification, assertion extraction, and symbolic verification, with task definitions grounded in OWL 2 ontologies. Experiments across three domains (legal hearsay determination, scientific method-task application, clinical trial eligibility) and eleven language models validate the approach. Structured decomposition achieves statistically significant improvements over few-shot prompting in aggregate, with gains observed across all three domains. An ablation study confirms that symbolic verification provides substantial benefit beyond structured prompting alone. The populated ABox integrates with standard semantic web tooling for inspection and querying, positioning the framework for richer inference patterns that simpler formalisms cannot express.

LLM推理语义网可解释性

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