CoAL-RAG: A Complexity-Aware Legal Retrieval-Augmented Generation Method
Organizations: North China University of Technology, Beijing, 100144, China · Beijing Key Laboratory of Key Technologies for AI+ Domain Applications, Beijing, 100144, China · Beijing Key Laboratory on Integration and Analysis of Large-scale Stream Data, Beijing 100144, China
Abstract
Legal consultation questions exhibit multi-level complexity. A single retrieval strategy often leads to over-reasoning for simple questions and poor interpretability for complex ones, making it difficult to meet the requirements for both answer quality and efficiency in high-risk scenarios. To address this issue, this paper proposes CoAL-RAG, a complexity-aware legal retrieval-augmented generation method, which constructs a multi-dimensional evaluation mechanism based on question essence'' and retrieval consistency'' to enable adaptive routing of retrieval strategies. First, the reasoning demand is quantified according to the logical structure of the question. Then, the discrepancy between semantic retrieval and keyword retrieval is utilized to indirectly reflect problem complexity, thereby selecting the most appropriate retrieval strategy and dynamically filtering contextual information. Experimental results demonstrate that the proposed method significantly outperforms baseline models not only on Chinese legal benchmarks (SocialLawQA, LawBench) but also demonstrates strong cross-jurisdictional generalization on English datasets (LexGLUE, CaseHold). Specifically, on Chinese datasets, the BLEU score improves by 42.5% and ROUGE-L reaches 3.6 times that of knowledge graph-based methods. On English benchmarks, CoAL-RAG maintains highly competitive accuracy, achieving an optimal balance between generation quality, deep logical reasoning, and system efficiency across different legal systems.
Figures & tables
| Phase | Metrics | Explanation | Final Score |
| Base Setup ( ) | Type: Scenario Reasoning,a unified weight . | 0.50 | |
| RCL (0.75) | 4 sub-queries (invention/relevance/ownership/time) | ||
| KIR (1.00) | 8 entities (Zhang San/A Company/PC/patent, etc.) | ||
| DS (0.50) | 3 domains (Patent / Labor / Civil Code) | ||
| RRC (0.75) | 3 relations (employment / ownership / infringement) | ||
| CCD (1.00) | 4 constraints (weekend/company PC/non-core/resigned) |
| Methods | Chinese Benchmarks (Civil Law) | English Benchmarks (Common Law) | |||||||||||
| LawBench ⋆ | SocialLawQA ⋆ | LexGLUE | CaseHold | ||||||||||
| R-1 | R-2 | R-L | BL | BS | R-1 | R-2 | R-L | BL | BS | Mi-F | Ma-F | Acc | |
| Qwen2.5-3B-Instruct | |||||||||||||
| Direct Inference | 0.2523 | 0.0718 | 0.1670 | 0.0254 | 0.7220 | 0.2003 | 0.0426 | 0.1132 | 0.0298 | 0.7351 | 0.2810 | 0.2220 | 0.4954 |
| CoT | 0.2680 | 0.0543 | 0.1673 | 0.0312 | 0.7524 | 0.3369 | 0.1266 | 0.2159 | 0.0628 | 0.7765 | 0.3056 | 0.2452 | 0.5126 |
| LawGPT_zh | 0.2677 | 0.0691 | 0.2046 | 0.0294 | 0.7548 | 0.3461 | 0.1273 | 0.2186 | 0.0638 | 0.7866 | - | - | - |
| Methods | Article F1 | LawConcept Recall | ROUGE-L | BERTScore |
| CoAL-RAG(Ours) | 0.5308 | 0.8146 | 0.4162 | 0.7706 |
| w/o Intrinsic | 0.4977 | 0.8059 | 0.4025 | 0.7688 |
| w/o Consistency | 0.5160 | 0.8071 | 0.4007 | 0.7676 |
| w/o Dynamic | 0.5278 | 0.8034 | 0.4029 | 0.7653 |
| Query | CoAL-RAG | |
| Can I resign during probation without violating the labor contract? | Yes. Under the Labor Contract Law, an employee may terminate the contract during the probation period by giving advance notice (typically three days) to the employer ( Success. Hybrid Retrieval ). | |
| Who owns the patent if software is developed after work hours using company equipment? | If the invention is not related to the employer’s business scope and is not part of assigned duties, the patent rights generally belong to the individual developer rather than the employer ( Success. Graph Reasoning ). | |
| How should eligibility for government housing benefits be determined? | The system lacks local policy data and fails to resolve priorities among overlapping administrative regulations. ( Failure Knowledge Gap). |