本文已被:浏览 83次 下载 95次
Received:October 21, 2025 Revised:November 21, 2025
Received:October 21, 2025 Revised:November 21, 2025
中文摘要: 合同文本通常具有篇幅长、结构复杂、语义耦合紧密等特征, 模糊的字段边界和结构归属问题使信息抽取任务面临较大挑战. 监督式抽取方法依赖大量标注数据, 构建成本高且领域适应性不足. 为此, 本文提出一种基于大语言模型的零样本合同信息抽取方法. 该方法结合合同的自然结构单元设计边界约束滑窗, 以增强输入上下文的完整性与结构一致性; 在正向阶段生成候选字段, 在反向阶段引入思维链推理机制, 对结果进行结构归属与逻辑一致性验证; 最后基于语义相似度与生成稳定性建立置信度评分体系, 实现抽取结果的自动化质量评估. 在私有企业合同数据集A和公开CCKS保险合同数据集B上进行的实验结果表明, 该方法能够显著提升大语言模型在不同合同场景下的抽取性能, 其中GPT-4o模型在数据集A和数据集B上的F1值分别提升7.73和8.57个百分点, 验证了所提方法的可靠性与实用价值.
Abstract:Contract documents are typically characterized by long text spans, complex hierarchical structures, and tightly coupled semantics, which pose significant challenges to contract information extraction due to ambiguous field boundaries and unclear structural attribution. Existing supervised extraction methods rely heavily on large-scale annotated data, resulting in high construction costs and limited domain adaptability. To address these issues, this study proposes a zero-shot contract information extraction method based on large language models. The proposed method incorporates boundary-constrained sliding windows aligned with the natural structural units of contracts to enhance contextual completeness and structural consistency. In the forward stage, candidate fields are generated, while in the reverse stage, a chain-of-thought reasoning mechanism is introduced to verify structural attribution and logical consistency. Furthermore, a confidence scoring system is constructed based on semantic similarity and generative stability to enable automated quality evaluation of extraction results. Experiments are conducted on a private enterprise contract dataset (Dataset A) and the public CCKS insurance contract dataset (Dataset B). The experimental results demonstrate that the proposed method significantly improves the extraction performance of large language models across diverse contract scenarios. Specifically, the GPT-4o model achieves F1 improvements of 7.73 and 8.57 percentage points on Datasets A and B, respectively, verifying the effectiveness and practical value of the proposed method for contract information extraction.
keywords: contract information extraction large language model (LLM) structural awareness chain-of-thought (CoT) generation verification
文章编号: 中图分类号: 文献标志码:
基金项目:国家自然科学基金 (61402099, 61702093)
引用文本:
王浩畅,汪心仪.基于结构感知与双向生成验证的合同信息抽取.计算机系统应用,2026,35(5):252-263
WANG Hao-Chang,WANG Xin-Yi.Contract Information Extraction Based on Structure Awareness and Bidirectional Generation Verification.COMPUTER SYSTEMS APPLICATIONS,2026,35(5):252-263
王浩畅,汪心仪.基于结构感知与双向生成验证的合同信息抽取.计算机系统应用,2026,35(5):252-263
WANG Hao-Chang,WANG Xin-Yi.Contract Information Extraction Based on Structure Awareness and Bidirectional Generation Verification.COMPUTER SYSTEMS APPLICATIONS,2026,35(5):252-263

