CoAL-RAG:一种复杂度感知的法律检索增强生成方法 CoAL-RAG: A Complexity-Aware Legal Retrieval-Augmented Generation Method 预印本
原文摘要
查看英文原文摘要
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.
📚 参考文献 (40 条)
查看全部 40 条
- Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., et al.: GPT-4 technical report. arXiv preprint arXiv:2303.08774 (2023). https://doi.org/10.48550/arXiv.2303.08774
- Chalkidis, I., Fergadiotis, M., Malakasiotis, P., Aletras, N., Androutsopoulos, I.: LEGAL-BERT: The muppets straight out of law school. In: Findings of the Association for Computational Linguistics: EMNLP 2020. pp. 2898–2904 (2020)
- Chalkidis, I., Jana, A., Dirschl, D., Pichler, A., Bouchikhi, Y., Vossen, N., Frank, A., Androutsopoulos, I., Aletras, N.: LexGLUE: A benchmark dataset for legal language understanding in English. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (ACL). pp. 4310–4330 (2022). https://doi.org/10.18653/v1/2022.acl-long.297
- Chen, H., Hu, Z., Chai, J., Yang, H., He, H., Wang, X., et al.: ToolForge: A data synthesis pipeline for multi-hop search without real-world APIs. arXiv preprint arXiv:2512.16149 (2025). https://doi.org/10.48550/arXiv.2512.16149
- Cui, J., Li, Z., Yan, Y., Chen, B., Yuan, L.: ChatLaw: Open-source legal large language model with integrated external knowledge bases. arXiv preprint arXiv:2306.16092 (2023). https://doi.org/10.48550/arXiv.2306.16092
- Duan, X., Wang, B., Wang, Z., Ma, W., Cui, Y., Wu, D., et al.: CJRC: A reliable human-annotated benchmark dataset for Chinese judicial reading comprehension. In: Chinese Computational Linguistics (CCL). pp. 439–451 (2019)
- Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., et al.: The Llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024). https://doi.org/10.48550/arXiv.2407.21783
- Edge, D., Trinh, H., Cheng, N., Bradley, J., Chao, A., Mody, A., Truitt, S., Metropolitansky, D., Ness, R.O., Larson, J.: From local to global: A graph RAG approach to query-focused summarization. arXiv preprint arXiv:2404.16130 (2024)
- Fei, Z., Shen, X., Zhu, D., Zhou, F., Han, Z., Huang, A., et al.: LawBench: Benchmarking legal knowledge of large language models. In: Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 7933–7962 (2024)
- Guo, D., Yang, D., Zhang, H., Song, J., Zhang, R., Xu, R., Zhu, Q., Ma, S., Wang, P., Bi, X., et al.: DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948 (2025)
- Guu, K., Lee, K., Tung, Z., Pasupat, P., Chang, M.W.: Retrieval augmented language model pre-training. In: Proceedings of the 37th International Conference on Machine Learning (ICML). pp. 3929–3938 (2020)
- He, X., Tian, Y., Sun, Y., Chawla, N., Laurent, T., LeCun, Y.: G-Retriever: Retrieval-augmented generation for textual graph understanding and question answering. In: Advances in Neural Information Processing Systems (NeurIPS 37). pp. 132876–132907 (2024)
- Huang, Q., Tao, M., Zhang, C., An, Z.: Lawyer LLaMA: Enhancing LLMs with legal knowledge. arXiv preprint arXiv:2305.15062 (2023). https://doi.org/10.48550/arXiv.2305.15062
- Jeong, S., Baek, J., Cho, S., Hwang, S.J., Park, J.C.: Adaptive-RAG: Learning to adapt retrieval-augmented large language models through question complexity. In: Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL). pp. 7350–7380 (2024)
- Ji, S., Pan, S., Cambria, E., Marttinen, P., Yu, P.S.: A survey on knowledge graphs: Representation, acquisition, and applications. IEEE Transactions on Neural Networks and Learning Systems 33(2), 494–514 (2021)
- Ji, Z., Lee, N., Frieske, R., Yu, T., Su, D., Xu, Y., et al.: Survey of hallucination in natural language generation. ACM Computing Surveys 55(12), 1–38 (2023)
- Jiang, Z., Xu, F.F., Gao, L., Sun, Z., Liu, Q., Dwivedi-Yu, J., et al.: Active retrieval augmented generation. In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 7969–7992 (2023)
- Jin, B., Zeng, H., Yue, Z., Yoon, J., Arik, S., Wang, D., Zamani, H., Han, J.: Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516 (2025)
- Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., et al.: Retrieval-augmented generation for knowledge-intensive NLP tasks. In: Advances in Neural Information Processing Systems (NeurIPS). vol. 33, pp. 9459–9474 (2020)
- Li, H., Ai, Q., Chen, J., et al.: SAILER: Structure-aware pre-trained language model for legal case retrieval. In: Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR). pp. 1035–1044 (2023)
- Li, X., Dong, G., Jin, J., Zhang, Y., Zhou, Y., Zhu, Y., Zhang, P., Dou, Z.: Search-o1: Agentic search-enhanced large reasoning models. arXiv preprint arXiv:2501.05366 (2025)
- Luo, L., Li, Y., Haffari, G., Pan, S.: Reasoning on graphs: Faithful and interpretable large language model reasoning. In: International Conference on Learning Representations (ICLR) (2024)
- M3-Embedding Team: M3-Embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. arXiv preprint arXiv:2402.03216 (2024)
- Ma, Y., Cao, Y., Hong, Y., Sun, A.: Large language model is not a good few-shot information extractor, but a good reranker for hard samples! In: Findings of the Association for Computational Linguistics: EMNLP 2023. pp. 10572–10601 (2023)
- Pan, S., Luo, L., Wang, Y., Chen, C., Wang, J., Wu, X.: Unifying large language models and knowledge graphs: A roadmap. IEEE Transactions on Knowledge and Data Engineering 36(7), 3580–3599 (2024)
- Shao, Y., Mao, J., Liu, Y., Ma, W., Satoh, K., Zhang, M., Ma, S.: BERT-PLI: Modeling paragraph-level interactions for legal case retrieval. In: Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI). pp. 3501–3507 (2020)
- Shi, F., Chen, X., Misra, K., Scales, N., Dohan, D., Chi, E.H.: Large language models can be easily distracted by irrelevant context. In: Proceedings of the 40th International Conference on Machine Learning (ICML). pp. 31210–31227 (2023)
- Sun, J., Xu, C., Tang, L., Wang, S., Lin, C., Gong, Y., Ni, L.M., Shum, H.Y., Guo, J.: Think-on-Graph: Deep and responsible reasoning of large language model on knowledge graph. arXiv preprint arXiv:2307.07697 (2023)
- Trivedi, H., Balasubramanian, N., Khot, T., Sabharwal, A.: Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions. In: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL). pp. 10014–10037 (2023)
- Wang, X., Yang, Q., Qiu, Y., Liang, J., He, Q., Gu, Z., Xiao, Y., Wang, W.: KnowledGPT: Enhancing large language models with retrieval and storage access on knowledge bases. arXiv preprint arXiv:2308.11761 (2023). https://doi.org/10.48550/arXiv.2308.11761
- Wei, J., Wang, X., Schuurmans, D., Bosma, M., Xia, F., Chi, E., Le, Q.V., Zhou, D., et al.: Chain-of-Thought prompting elicits reasoning in large language models. In: Advances in Neural Information Processing Systems (NeurIPS). vol. 35, pp. 24824–24837 (2022)
- Xiao, C., Hu, X., Liu, Z., Tu, C., Sun, M.: Lawformer: A pre-trained language model for Chinese legal long documents. AI Open 2, 79–84 (2021)
- Yue, S., Chen, W., Wang, S., Li, B., Shen, C., Liu, S., et al.: Disc-LawLLM: Fine-tuning large language models for intelligent legal services. arXiv preprint arXiv:2309.11325 (2023). https://doi.org/10.48550/arXiv.2309.11325
- Zhang, Y., Wu, R., Cai, P., Wang, X., Yan, G., Mao, S., Wang, D., Shi, B.: Lean-RAG: Knowledge-graph-based generation with semantic aggregation and hierarchical retrieval. arXiv preprint arXiv:2508.10391 (2025)
- Zhang, Y., Li, Y., Cui, L., Cai, D., Liu, L., Fu, T., et al.: Siren’s song in the AI ocean: A survey on hallucination in large language models. Computational Linguistics (2025)
- Zhang, Z., Cai, J., Zhang, Y., Wang, J.: Learning hierarchy-aware knowledge graph embeddings for link prediction. In: Proceedings of the AAAI Conference on Artificial Intelligence (AAAI). pp. 3065–3072 (2020)
- Zhao, Q., Gao, T., Zhou, S., Li, D., Wen, Y.: Legal judgment prediction via heterogeneous graphs and knowledge of law articles. Applied Sciences 12(5), 2531 (2022)
- Zhao, W.X., Zhou, K., Li, J., Tang, T., Wang, X., Hou, Y., et al.: A survey of large language models. arXiv preprint arXiv:2303.18223 (2023). https://doi.org/10.48550/arXiv.2303.18223
- Zheng, L., Guha, N., Anderson, B.R., Henderson, P., Ho, D.E.: When does pretraining help? assessing self-supervised learning for law and the CaseHOLD dataset. In: Proceedings of the 18th International Conference on Artificial Intelligence and Law (ICAIL). pp. 159–168 (2021). https://doi.org/10.1145/3462757.3466088
- Zhou, Z., Shi, J., Song, P., Yang, X., Jin, Y., Guo, L., Li, Y.: LawGPT: A Chinese legal knowledge-enhanced large language model. arXiv preprint arXiv:2406.04614 (2024). https://doi.org/10.48550/arXiv.2406.04614