RManLuo/graph-constrained-reasoning

Official Implementation of ICML 2025 Paper: "Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models".

43
/ 100
Emerging

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.

Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 15 / 25

How are scores calculated?

Stars

238

Forks

25

Language

Python

License

MIT

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.