Knowledge Graph Structure as Prompt: Improving Small Language Models Capabilities for Knowledge-based Causal Discovery

Yuni Susanti, Michael Färber
7/26/2024
cs.CLcs.AI

No official code found. Best implementation: susantiyuni/kg-structure-as-prompt (8 stars, last commit 2026-04-24).

Abstract

Causal discovery aims to estimate causal structures among variables based on observational data. Large Language Models (LLMs) offer a fresh perspective to tackle the causal discovery problem by reasoning on the metadata associated with variables rather than their actual data values, an approach referred to as knowledge-based causal discovery. In this paper, we investigate the capabilities of Small Language Models (SLMs, defined as LLMs with fewer than 1 billion parameters) with prompt-based learning for knowledge-based causal discovery. Specifically, we present KG Structure as Prompt, a novel approach for integrating structural information from a knowledge graph, such as common neighbor nodes and metapaths, into prompt-based learning to enhance the capabilities of SLMs. Experimental results on three types of biomedical and open-domain datasets under few-shot settings demonstrate the effectiveness of our approach, surpassing most baselines and even conventional fine-tuning approaches trained on full datasets. Our findings further highlight the strong capabilities of SLMs: in combination with knowledge graphs and prompt-based learning, SLMs demonstrate the potential to surpass LLMs with larger number of parameters. Our code and datasets are available on GitHub.

View on arXivView PDF

Code Implementations(1)

[ISWC'24] KG Structure as Prompt: Improving Small Language Models Capabilities for Knowledge-based Causal Discovery

80Shell, PythonApr 13, 20245 months ago

Similar Papers

Cite this paper

@article{susanti2024knowledge,
  title  = {Knowledge Graph Structure as Prompt: Improving Small Language Models Capabilities for Knowledge-based Causal Discovery},
  author = {Yuni Susanti and Michael Färber},
  year   = {2024},
  eprint = {2407.18752},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.18752v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.18752.svg)](https://codeofpaper.com/paper/2407.18752)

Discussion