Open Access Article

Title: Legal loophole detection model based on multi-agent reinforcement learning

Authors: Dongli Ma

Addresses: Law School, Henan University of Urban Construction, Pingdingshan, 467000, China

Abstract: Precise detection of legal loopholes is a critical component in upholding judicial fairness. However, existing methods exhibit significant shortcomings in deeply integrating legal knowledge, while their modelling capabilities for imbalanced data remain underdeveloped. To address this, this paper first designs a hierarchical experience replay mechanism. By storing and sampling experiences through temporal difference errors and task priorities, it effectively controls gradient conflicts during cross-task training. Second, a legal loophole detection model based on improved multi-agent reinforcement learning is designed. The knowledge fusion module maps multi-source legal knowledge into a unified representation space, achieving selective knowledge enhancement through a learnable knowledge gating mechanism. Furthermore, an adaptive feature space partitioning is realised through the collaborative mechanism of multiple agents across multi-classification tasks, significantly improving the recognition performance of minority class samples. Experimental results demonstrate that the proposed model achieves a loophole detection accuracy of 92.48%, significantly enhancing detection precision.

Keywords: legal loophole detection; multi-agent reinforcement learning; hierarchical replay pool; attention mechanism; multi-task training.

DOI: 10.1504/IJRIS.2026.152191

International Journal of Reasoning-based Intelligent Systems, 2026 Vol.18 No.9, pp.51 - 64

Received: 16 Nov 2025
Accepted: 22 Dec 2025

Published online: 10 Mar 2026 *