arXiv:2610.41901cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41901

ReX-GG: a LLM Ensemble Pipeline for Relation-extraction and Graph Generation

Giacomo Magnifico, Eduard Barbu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Current LLM ensemble frameworks focus on multi-step setups with additional modules for answer ranking, often opting for token and span analysis rather than structured outputs, leading to heavyweight architectures with potential fail states along the pipeline. Faster, lighter solutions are more vulnerable to hallucination propagation and can lack output control in more complex pipelines. This paper proposes a customisable, lightweight ensemble workflow of coordinated Large Language Models that leverages JSON-structured outputs and anonymous peer-review ranking to mitigate hallucinatory outputs and single-model failure points. The pipeline is demonstrated on a relation extraction task applied to popular science articles in English, targeting four ontologically-grounded relation types (strong causation, weak causation, contrastive, and compositional), with semantic node canonicalisation and interactive, colour-coded HTML causal graphs as the final output. Performance is evaluated through an anonymous user study, achieving an average perceived accuracy of 0.778 against a human-annotated gold standard. The modular architecture supports flexible deployment across both API-based and in-house LLM setups, and the full framework is released under an open license to foster reproducibility and collaborative research.

Keywords: graph, human survey, lightweight framework, LLM ensemble, relation extraction, structured output

1. Introduction

Since the advent of OpenAI and the permeating use of Large Language Models (LLMs) in everyday life and academia, the ease of access to state-of-the-art models and diffusion has led to new avenues of research; from testing the limits of these models to mitigating their shortcomings, exposing their faults and tuning their performance. As expected, the use of individual models has led to the development of LLM ensembles, tailored to achieve more robust performance and to leverage perceived differences among these models (Jiang et al., 2023). Other ways to enhance the reliability and robustness of their output have been found at the intersection of formal structure and natural language processing (NLP), in the form of information-based graphs, with examples of knowledge-graph-informed architectures that leverage the power of ontologies and formal structure (Zhou et al., 2025; Zhu et al., 2025). Within this specific niche, it is possible to find widely different research avenues - from graph-based LLM ensemble performance evaluations (He et al., 2025) to analyses of LLM inner workings via graph representation of their chain of thought (Zhiqiang et al., 2025). The production of knowledge graph outputs seems to be less explored, with Pham Hoang Le et al. (2025) and Li et al. (2025) as examples, although only the former explores ensembles and structured outputs, while the latter focuses on LLM tuning.

To foster further research in this niche and to provide an accessible tool to the research commu-

nity, this paper presents a lightweight example of an information-extraction ensemble workflow, tailored for relation extraction and interactive graphs. The proposed workflow can be deployed with a customisable selection of coordinated models, delivering robust performance and a reduced risk of hallucinatory or malformed output thanks to the peer-reviewed ranking of schema-enforced JSONs. The practical application of the pipeline targets English popular science articles, with performance tested via an anonymous survey to provide public-informed evaluation of the relation-extraction framework; anecdotal evidence shows a preference for colour-coded graph edges representative of the evaluated bonds. The secondary advantages of this work can be identified as the following:

  • simple overarching structure with flexible end use;

  • built-in mitigation of hallucination propagation;

  • reduced risk of malformed outputs failure-chains;

  • fast deployment as a modular piece in larger architectures.

Details regarding the structure and behaviour of the ensemble are provided in Section 3.1, along with the ontology and details regarding the nature of the relations chosen for extraction; further information related to the canonicalization of the extracted pairwise relation triplets and development of the graph structure are given in Sections 3.2 and

3.3. In Sections 5 and 6, we discuss the results of our user study presented in Section 4, expand on the key findings of this paper, and outline potential future work. We reserve Sections 7 and 8 to discuss the shortcomings and limitations of our scope and to address potential concerns about the ethical standards of this work.