Measuring Semantic Coherence of RAG-Generated Abstracts Through Complex Network Metrics

Gana, B; Palma W.; Lucay F.A.; Missana, C; Abarza, C; Allende-Cid H.

Keywords: complex networks, RAG, semantic graphs, weighted kappa, graph robustness

Abstract

The exponential growth of scientific literature demands scalable methods to evaluate large-language-model outputs beyond surface-level fluency. We present a two-phase framework that separates generation from evaluation: a retrieval-augmented generation system first produces candidate abstracts, which are then embedded into semantic co-occurrence graphs and assessed using seven robustness metrics from complex network theory. Two experiments were conducted. The first varied model, embedding and prompt configurations, achieved results showing clear differences in performance; the best family combined gemma-2b-it, a prompt inspired by chain-of-Thought reasoning, and all-mpnet-base-v2, achieving the highest graph-based robustness. The second experiment refined the temperature setting for this family, identifying (Formula presented.) as optimal, which stabilized results (sd (Formula presented.)) and improved robustness relative to retrieval baselines ((Formula presented.), (Formula presented.)). While human evaluation was limited to a small set of abstracts, the results revealed a partial convergence between graph-based robustness and expert judgments of coherence and importance. Our approach contrasts with methods like GraphRAG and establishes a reproducible, model-agnostic pathway for the scalable quality control of LLM-generated scientific content. © 2025 by the authors.

Más información

Título según WOS: Measuring Semantic Coherence of RAG-Generated Abstracts Through Complex Network Metrics
Título de la Revista: Mathematics
Volumen: 13
Número: 21
Editorial: Multidisciplinary Digital Publishing Institute (MDPI)
Fecha de publicación: 2025
Idioma: English
DOI:

10.3390/math13213472

Notas: ISI