Skip to main content
QUICK REVIEW

[Paper Review] Improving Complex Reasoning over Knowledge Graph with Logic-Aware Curriculum Tuning

Tianle Xia, Liang Ding|arXiv (Cornell University)|May 2, 2024
AI-based Problem Solving and PlanningComputer Science3 citations
TL;DR

This paper proposes LACT, a logic-aware curriculum fine-tuning framework that enhances complex reasoning over incomplete knowledge graphs using large language models. By decomposing first-order logic queries into binary trees and applying curriculum learning to progressively increase reasoning difficulty, LACT achieves a +5.5% average MRR improvement over state-of-the-art methods using only a 7B LLaMA2 model.

ABSTRACT

Answering complex queries over incomplete knowledge graphs (KGs) is a challenging job. Most previous works have focused on learning entity/relation embeddings and simulating first-order logic operators with various neural networks. However, they are bottlenecked by the inability to share world knowledge to improve logical reasoning, thus resulting in suboptimal performance. In this paper, we propose a complex reasoning schema over KG upon large language models (LLMs), containing a curriculum-based logical-aware instruction tuning framework, named LACT. Specifically, we augment the arbitrary first-order logical queries via binary tree decomposition, to stimulate the reasoning capability of LLMs. To address the difficulty gap among different types of complex queries, we design a simple and flexible logic-aware curriculum learning framework. Experiments across widely used datasets demonstrate that LACT has substantial improvements~(brings an average +5.5% MRR score) over advanced methods, achieving the new state-of-the-art.

Motivation & Objective

  • To address the limitations of embedding-based and prompt-based methods in complex logical reasoning over incomplete knowledge graphs.
  • To enhance large language models' ability to perform logical reasoning by incorporating structured knowledge graph information during fine-tuning.
  • To reduce the performance gap between easy and hard queries through a curriculum learning strategy that respects logical complexity.
  • To develop a scalable, generalizable, and efficient framework for complex reasoning that avoids reliance on closed-source models or manual query classification.

Proposed method

  • The framework uses binary tree decomposition to transform arbitrary first-order logic queries into structured computation trees, enabling systematic reasoning over knowledge graphs.
  • A logic-rich fine-tuning corpus is constructed by generating diverse logical query patterns from knowledge graph triplets, enriching the model's logical reasoning capacity.
  • A curriculum learning strategy is designed based on query difficulty, measured by the number of decomposed subqueries, to progressively train the model from simple to complex queries.
  • The method fine-tunes a base LLM (e.g., LLaMA2) using instruction-tuning with carefully designed prompts that embed logical structure and knowledge graph context.
  • A neighborhood retrieval algorithm is employed to efficiently retrieve relevant triples, reducing token consumption during inference.
  • The framework integrates knowledge graph facts into the training data to activate world knowledge and mitigate hallucination in incomplete KGs.

Experimental results

Research questions

  • RQ1Can binary tree decomposition of first-order logic queries effectively stimulate logical reasoning capabilities in large language models?
  • RQ2Does curriculum learning based on logical complexity significantly improve performance on hard queries in knowledge graph reasoning?
  • RQ3Can a fine-tuned 7B LLaMA2 model outperform state-of-the-art embedding-based and prompt-based methods in complex reasoning over incomplete knowledge graphs?
  • RQ4To what extent does incorporating structured knowledge graph facts into the fine-tuning data enhance reasoning generalization and reduce hallucination?

Key findings

  • LACT achieves a +5.5% average improvement in Mean Reciprocal Rank (MRR) over advanced methods across multiple benchmark datasets, establishing a new state-of-the-art.
  • The model demonstrates substantial gains on hard queries, which are typically more challenging due to missing or indirect relationships in incomplete knowledge graphs.
  • Binary tree decomposition of logical queries significantly enhances the model’s ability to simulate complex logical operations such as conjunction, disjunction, and negation.
  • Curriculum learning effectively reduces the difficulty gap between query types, improving performance on complex, high-difficulty queries (e.g., 3i, 2u, pin) by prioritizing simpler patterns first.
  • The retrieval-augmented fine-tuning approach reduces token consumption during inference while maintaining high reasoning accuracy.
  • The method generalizes well across different knowledge graphs (FB15K-237, NELL995), showing strong transferability without retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.