HORNET-RAG: A Hybrid Retrieval-Augmented Generation Framework Integrating Horn Clause Reasoning for Treaty Question Answering

The increasing use of large language models (LLMs) in legal question answering is constrained by hallucinations, unsupported statements, and the inability of conventional Retrieval-Augmented Generation (RAG) to capture the normative and logical relationships embedded in legal documents. This study aims to improve retrieval and answer reliability by introducing HORNET-RAG, a neuro-symbolic RAG framework that integrates dense semantic retrieval with Horn Clause reasoning for treaty question answering. The core idea and contribution are to operationalize Horn Clause inference as a candidate-level retrieval-control mechanism through logical filtering and logic-aware reranking, rather than using symbolic reasoning only as a downstream inference process. The framework was evaluated using 120 treaty documents containing 4,862 retrieval units and 250 legal queries, divided into 50 development and 200 held-out test queries. Experimental findings show that HORNET-RAG Filtering achieved the highest precision, with P@3 = 0.84 and P@5 = 0.78, representing improvements of 33.3% and 32.2%, respectively, over Naïve RAG. HORNET-RAG Reranking achieved P@3 = 0.81, R@3 = 0.88, and the highest nDCG@3 = 0.90, improving nDCG@3 by 25.0% over Naïve RAG. For answer quality, reranking achieved the highest Faithfulness score of 0.90, compared with 0.72 for Naïve RAG and 0.83 for Prolog-RAG, while filtering achieved the highest Context Precision of 0.84. Statistical validation confirmed significant improvements, including ΔP@3 = +0.210 for filtering and ΔnDCG@3 = +0.180 for reranking versus Naïve RAG (both adjusted p < 0.001). The novelty of HORNET-RAG lies in moving Horn Clause reasoning into candidate selection and ranking, enabling logical evidence to directly shape the context supplied to the LLM and improving precision, ranking quality, and evidence-grounded answer generation.

Authors

Institutions

Publication Details

Journal
Journal of Applied Data Sciences
Published
2026-12-01
DOI
https://doi.org/10.47738/jads.v7i4.1590
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

HORNET-RAG: A Hybrid Retrieval-Augmented Generation Framework Integrating Horn Clause Reasoning for Treaty Question Answering

Fikri Fadlillah
Journal of Applied Data Sciences
Artificial Intelligence in Law
article

HORNET-RAG: A Hybrid Retrieval-Augmented Generation Framework Integrating Horn Clause Reasoning for Treaty Question Answering

Fikri Fadlillah
article en

Abstract

The increasing use of large language models (LLMs) in legal question answering is constrained by hallucinations, unsupported statements, and the inability of conventional Retrieval-Augmented Generation (RAG) to capture the normative and logical relationships embedded in legal documents. This study aims to improve retrieval and answer reliability by introducing HORNET-RAG, a neuro-symbolic RAG framework that integrates dense semantic retrieval with Horn Clause reasoning for treaty question answering. The core idea and contribution are to operationalize Horn Clause inference as a candidate-level retrieval-control mechanism through logical filtering and logic-aware reranking, rather than using symbolic reasoning only as a downstream inference process. The framework was evaluated using 120 treaty documents containing 4,862 retrieval units and 250 legal queries, divided into 50 development and 200 held-out test queries. Experimental findings show that HORNET-RAG Filtering achieved the highest precision, with P@3 = 0.84 and P@5 = 0.78, representing improvements of 33.3% and 32.2%, respectively, over Naïve RAG. HORNET-RAG Reranking achieved P@3 = 0.81, R@3 = 0.88, and the highest nDCG@3 = 0.90, improving nDCG@3 by 25.0% over Naïve RAG. For answer quality, reranking achieved the highest Faithfulness score of 0.90, compared with 0.72 for Naïve RAG and 0.83 for Prolog-RAG, while filtering achieved the highest Context Precision of 0.84. Statistical validation confirmed significant improvements, including ΔP@3 = +0.210 for filtering and ΔnDCG@3 = +0.180 for reranking versus Naïve RAG (both adjusted p < 0.001). The novelty of HORNET-RAG lies in moving Horn Clause reasoning into candidate selection and ranking, enabling logical evidence to directly shape the context supplied to the LLM and improving precision, ranking quality, and evidence-grounded answer generation.

Journal of Applied Data SciencesVol. 7(4)
Gunadarma University (ID)
Artificial Intelligence in Law
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
HORNET-RAG: A Hybrid Retrieval-Augmented Generation Framework Integrating Horn Clause Reasoning for Treaty Question Answering — Fikri Fadlillah · Journal of Applied Data Sciences (2026) | TGRS Research Map | TGRS