CoAL-RAG:一种复杂度感知的法律检索增强生成方法 CoAL-RAG: A Complexity-Aware Legal Retrieval-Augmented Generation Method 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-18
👁️ 预览文献
💡 AI 中文简介
法律咨询问题有不同复杂度,单一检索策略对简单问题会过度推理,对复杂问题可解释性差。本文提出CoAL-RAG方法,基于“问题本质”和“检索一致性”构建多维评估机制,自适应选择检索策略。先按问题逻辑结构量化推理需求,再利用语义检索和关键词检索的差异间接反映复杂度,从而选择合适策略并动态过滤上下文。实验表明,该方法在中文法律基准(SocialLawQA、LawBench)上显著优于基线,BLEU提升42.5%,ROUGE-L达到知识图谱方法的3.6倍;在英文基准(LexGLUE、CaseHold)上也表现良好,实现了生成质量、深度推理和效率的平衡。
领域自然语言处理、法律人工智能
适合谁读需要一定专业背景
核心贡献["提出复杂度感知的检索增强生成方法,实现检索策略的自适应路由", "构建基于问题本质和检索一致性的多维评估机制,提升生成质量和可解释性"]
关键数据在中文数据集上BLEU提升42.5%,ROUGE-L达到知识图谱方法的3.6倍;在英文基准上保持高竞争力准确率
推荐理由想了解如何让AI在法律咨询中更聪明地应对不同复杂度问题,这篇论文给出了巧妙方案,值得一读。
关键词["法律问答", "检索增强生成", "复杂度感知", "自适应检索", "知识图谱"]

原文摘要

查看英文原文摘要

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 条
  1. 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
  2. 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)
  3. 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
  4. 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
  5. 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
  6. 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)
  7. 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
  8. 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)
  9. 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)
  10. 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)
  11. 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)
  12. 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)
  13. 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
  14. 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)
  15. 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)
  16. 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)
  17. 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)
  18. 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)
  19. 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)
  20. 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)
  21. 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)
  22. 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)
  23. M3-Embedding Team: M3-Embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. arXiv preprint arXiv:2402.03216 (2024)
  24. 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)
  25. 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)
  26. 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)
  27. 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)
  28. 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)
  29. 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)
  30. 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
  31. 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)
  32. 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)
  33. 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
  34. 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)
  35. 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)
  36. 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)
  37. 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)
  38. 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
  39. 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
  40. 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