[Paper Review] PiVe: Prompting with Iterative Verification Improving Graph-based Generative Capability of LLMs
This paper proposes PiVe, a framework that enhances the graph-generation capabilities of large language models (LLMs) through iterative verification using a lightweight verifier model. By generating perturbed graph-text pairs for self-supervised training, the verifier provides corrective feedback in a loop, improving semantic graph quality by an average of 26% across three datasets, and enabling data augmentation for high-quality text-graph datasets like GenWiki-HIQ.
Large language models (LLMs) have shown great abilities of solving various natural language tasks in different domains. Due to the training objective of LLMs and their pre-training data, LLMs are not very well equipped for tasks involving structured data generation. We propose a framework, Prompting with Iterative Verification (PiVe), to improve graph-based generative capability of LLMs. We show how a small language model could be trained to act as a verifier module for the output of an LLM~(i.e., ChatGPT, GPT-4), and to iteratively improve its performance via fine-grained corrective instructions. We also show how the verifier module could apply iterative corrections offline for a more cost-effective solution to the text-to-graph generation task. Experiments on three graph-based datasets show consistent improvement gained via PiVe. Additionally, we create GenWiki-HIQ and highlight that the verifier module can be used as a data augmentation tool to help improve the quality of automatically generated parallel text-graph datasets.
Motivation & Objective
- To address the poor performance of LLMs in generating structured semantic graphs from text, despite their success in unstructured text tasks.
- To develop a cost-effective method for improving LLM-based text-to-graph generation using an external verifier module that provides iterative corrective feedback.
- To create a high-quality, large-scale text-graph dataset (GenWiki-HIQ) using the verifier as a data augmentation tool.
- To explore both online iterative prompting and offline correction modes for scalable and efficient graph generation.
- To train domain-specific and unified verifier models via fine-tuning and instruction-tuning for broad applicability.
Proposed method
- Construct a large verification dataset by perturbing entities, relations, or triples in seed graph-text pairs, generating (text, perturbed graph, corrective instruction) triples.
- Train a verifier model using self-supervised learning on the perturbation-based dataset to detect and correct errors in LLM-generated graphs.
- Implement two modes: (1) Iterative Prompting, where the verifier provides feedback to refine the LLM prompt in real time; and (2) Iterative Offline Correction, where corrections are applied sequentially without re-querying the LLM.
- Use instruction-tuning to train a unified verifier capable of generalizing across different datasets and tasks.
- Leverage the trained verifier as a data filtering and correction tool to improve the quality of automatically constructed text-graph datasets.
- Apply the verifier to generate GenWiki-HIQ, a high-quality dataset of 110K text-graph pairs with high semantic overlap.

Experimental results
Research questions
- RQ1Can an external verifier model significantly improve the quality of semantic graphs generated by LLMs in a few-shot prompting setting?
- RQ2How effective is iterative verification with corrective feedback in reducing structural errors in LLM-generated graphs?
- RQ3Can a single unified verifier model generalize across diverse text-to-graph datasets using instruction-tuning?
- RQ4To what extent can the verifier module serve as a data augmentation tool for improving automatically constructed text-graph datasets?
- RQ5Does the offline correction mode maintain high performance while reducing inference cost compared to online iterative prompting?
Key findings
- The PiVe framework improved the quality of LLM-generated semantic graphs by an average of 26% across three benchmark datasets, demonstrating consistent gains.
- The verifier model effectively detected and corrected missing triples, a common error type in LLM-based text-to-graph generation.
- The unified verifier trained with instruction-tuning generalized well across different datasets, showing strong zero-shot transferability.
- The offline correction mode achieved comparable performance to online iterative prompting while reducing LLM inference cost.
- The verifier module successfully enhanced the quality of automatically constructed text-graph datasets, leading to the creation of GenWiki-HIQ, a high-quality dataset of 110K parallel text-graph pairs.
- The perturbation-based data generation strategy enabled scalable, self-supervised training of the verifier with minimal human annotation.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.