RManLuo/graph-constrained-reasoning
Official Implementation of ICML 2025 Paper: "Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models".
Implements constrained decoding via KG-Trie to enforce knowledge graph structure directly into LLM token generation, eliminating hallucinations in reasoning paths. The framework uses lightweight KG-specialized models (Qwen2/Llama variants) fine-tuned for graph-grounded decoding, then applies general LLMs for inductive reasoning over multiple candidate paths. Supports efficient inference with Flash Attention and includes pre-trained weights on RoG-WebQSP and RoG-ComplexWebQuestions datasets.
238 stars. No commits in the last 6 months.
Stars
238
Forks
25
Language
Python
License
MIT
Category
Last pushed
May 20, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/RManLuo/graph-constrained-reasoning"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related models
zjukg/KoPA
[Paper][ACM MM 2024] Making Large Language Models Perform Better in Knowledge Graph Completion
pat-jj/KG-FIT
[NeurIPS'24] Knowledge Graph Fine-Tuning using LLMs
yao8839836/kg-llm
Exploring large language models for knowledge graph completion. ICASSP 2025
zjukg/KnowPAT
[Paper][ACL 2024 Findings] Knowledgeable Preference Alignment for LLMs in Domain-specific...
hhy-huang/GraphJudge
[EMNLP'25 main] This is the official repo for the paper, Can LLMs be Good Graph Judge for...