计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260400025-291.doi: 10.11896/jsjkx.260400025
田成源1, 李达1, 李博文4, 李华1,2,3
TIAN Chengyuan1, LI Da1, LI Bowen4, LI Hua1,2,3
摘要: 针对用户意图需要满足行业规章与政策约束的需求,如何从大量规章文本中准确检索出相关的约束条目成为关键问题。在此场景下检索面临多方面挑战:用户意图与规章文本在表达形式上存在显著差异,导致语义匹配困难;合规性判断通常依赖多条目联合约束,单一检索策略难以实现充分召回;检索结果中的冗余信息易对后续合规判断产生干扰。为此,提出一种面向用户意图相关规章的检索增强生成(Retrieval-Augmented Generation,RAG)方法。该方法从提升召回充分性与准确性两个方面对标准RAG流程进行改进:首先,提出基于复杂度感知的查询重写策略,通过融合困惑度与语义熵对问题复杂性进行建模,实现查询数量的自适应生成,从而增强多条目召回能力;然后,构建文档级与条目级相结合的两阶段检索框架,实现由粗粒度文档定位到细粒度条目匹配的逐步筛选;最后,引入基于交叉编码器的重排序与知识过滤机制,对候选条目进行精细化筛选,以降低噪声信息对生成阶段的干扰。在公开数据集及自建用户意图-规章条目数据集上的实验结果表明,所提方法在Recall,MRR及F1等指标上均优于基线方法,验证了其在复杂规章检索场景下的有效性。
中图分类号:
| [1] MEHMOOD K,KRALEVSKA K,PALMA D.Knowledge-driven intent life-cycle management for cellular networks[J].IEEE Transactions on Network and Service Management,2025,22(5):4806-4826. [2] BOUTOUCHENT A,MERIDJA A N,KARDJADJA Y,et al.Amanos:An intent-driven management and orchestration system for next-generation cloud-native networks[J].IEEE Communications Magazine,2023,62(6):42-49. [3] BAI Y T,HAO W N,JIN D W.Study on open-domain question answering methods based on retrieval-augmented generation [J/OL].Computer Science,2025,52(S1):240800141-7.https://doi.org/10.11896/jsjkx.240800141. [4] ROBERTSON S,ZARAGOZA H.The probabilistic relevanceframework:BM25 and beyond[M].Now Publishers Inc,2009. [5] KARPUKHIN V,OGUZ B,MIN S,et al.Dense passage retrieval for open-domain question answering[C]//Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing(EMNLP).2020:6769-6781. [6] LEWIS P,PEREZ E,PIKTUS A,et al.Retrieval-augmentedgeneration for knowledge-intensive nlp tasks[J].Advances in Neural Information Processing Systems,2020,33:9459-9474. [7] JEONG S,BAEK J,CHO S,et al.Adaptive-rag:Learning to adapt retrieval-augmented large language models through question complexity[C]//Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies(Volume 1:Long Papers).2024:7036-7050. [8] WEI J,WANG X,SCHUURMANS D,et al.Chain-of-thoughtprompting elicits reasoning in large language models[J].Advances in Neural Information Processing Systems,2022,35:24824-24837. [9] YAO S,ZHAO J,YU D,et al.React:Synergizing reasoning and acting in language models[C]//The Eleventh International Conference on Learning Representations.2022. [10] JIANG H Q,WU Q H,LUO X F,et al.Longllmlingua:Accelerating and enhancing llms in long context scenarios via promptcompression [PP/OL].arXiv:2310.06839,2023. [11] ASAI A,WU Z Q,WANG Y Z,et al.2023.Self-rag:Learning to retrieve,generate,and critique through self-reflection [PP/OL].arXiv:2310.11511,2023. [12] YAN S Q,GU J C,ZHU Y,LING Z H.Corrective retrieval augmented generation [PP/OL].arXiv:2401.15884,2024. [13] KUHN L,GAL Y,FARQUHAR S.Semantic uncertainty:Linguistic invariances for uncertainty estimation in natural language generation[PP/OL].arXiv:2302.09664,2023. [14] KWIATKOWSKI T,PALOMAKI J,REDFIELD O,et al.Natural questions:A benchmark for question answering research[J].Transactions of the Association for Computational Linguistics,2019,7:452-466. [15] YANG Z L,QI P,ZHANG S Z,et al.HotpotQA:A dataset for diverse,explainable multi-hop question answering [C]//Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing(EMNLP).Brussels:Association for Computational Linguistics,2018:2369-2380. [16] HO X,NGUYEN A K D,SUGAWARA S,et al.Constructing a multi-hop QA dataset for comprehensive evaluation of reasoning steps[C]//Proceedings of the 28th International Conference on Computational Linguistics.2020:6609-6625. [17] TOUVRON H,MARTIN L,STONE K,et al.Llama 2:Openfoundation and fine-tuned chat models [PP/OL].arXiv:2307.09288,2023. [18] XU F Y,SHI W J,CHOI E.RECOMP:Improving retrieval-augmented LMs with context compression and selective augmentation [C]//Proceedings of the Twelfth International Conference on Learning Representations(ICLR 2024).2024. [19] MALLEN A,ASAI A,ZHONG V,et al.When not to trust language models:Investigating effectiveness of parametric and non-parametric memories[C]//Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics(volume 1:Long papers).2023:9802-9822. [20] LIU N F,LIN K,HEWITT J,et al.Lost in the middle:Howlanguage models use long contexts[J].Transactions of the Association for Computational Linguistics,2024,12:157-173. [21] BAI Y,LV X,ZHANG J,et al.Longbench:A bilingual,multitask benchmark for long context understanding[C]//Procee-dings of the 62nd Annual meeting of the Association for Computational Linguistics(volume 1:Long papers).2024:3119-3137. |
|
||