Downloads · 30 days
16
7% of all-time downloads
Edaizi/KG-TRACES
KG-TRACES is a text generation model from Edaizi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This repository contains the official implementation of KG-TRACES, a novel framework that enhances the reasoning ability of Large Language Models (LLMs) through explicit supervision over reasoning paths and processes.…
Downloads · 30 days
16
7% of all-time downloads
All-time downloads
222
Public
Parameters
7.6B
15.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
This repository contains the official implementation of KG-TRACES, a novel framework that enhances the reasoning ability of Large Language Models (LLMs) through explicit supervision over reasoning paths and processes. KG-TRACES aims to provide explainable, accurate, and traceable reasoning by leveraging the power of Knowledge Graphs.
For more details, refer to the accompanying paper: KG-TRACES: Enhancing Large Language Models with Knowledge Graph-constrained Trajectory Reasoning and Attribution Supervision
The full codebase and more information can be found on the official GitHub repository: https://github.com/Edaizi/KG-TRACES
<p align="center"> <img src="https://github.com/Edaizi/KG-TRACES/raw/main/assets/teaser.png" width="750" alt="KG-TRACES Teaser Image: Comparison of Reasoning Methods"> </p> *Figure 1: KG-TRACES (d) stands out by generating faithful, attributable responses, adapting to different KG access conditions.*KG-TRACES is a novel framework that explicitly teaches LLMs how to reason by supervising their internal "thought process" with knowledge graphs guidance. We guide them to:
You can easily load our fine-tuned KG-TRACES models from the Hugging Face Model Hub using the transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_hub_name = "Edaizi/KG-TRACES"
tokenizer = AutoTokenizer.from_pretrained(model_hub_name)
model = AutoModelForCausalLM.from_pretrained(model_hub_name)
We've meticulously prepared augmented SFT datasets for WebQSP and CWQ, packed with reasoning paths and augmented reasoning processes with source attributions. Find them on Hugging Face:
You can load these datasets as follows:
from datasets import load_dataset
webqsp_sft_data = load_dataset("Edaizi/KG-TRACES-WebQSP")
cwq_sft_data = load_dataset("Edaizi/KG-TRACES-CWQ")
If KG-TRACES helps your research or project, we'd love a shout-out! Please cite:
@misc{wu2025kgtracesenhancinglargelanguage,
title={KG-TRACES: Enhancing Large Language Models with Knowledge Graph-constrained Trajectory Reasoning and Attribution Supervision},
author={Rong Wu and Pinlong Cai and Jianbiao Mei and Licheng Wen and Tao Hu and Xuemeng Yang and Daocheng Fu and Botian Shi},
year={2025},
eprint={2506.00783},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2506.00783},
}