面向智能问答系统逻辑推理功能的蜕变测试方法及系统

By constructing metamorphic relationships between word groups with multiple hops and multiple word groups with single hops, and using large-scale language models (LLM) for logical replacement, the problem of insufficient detection of logical reasoning ability in existing question-answering system testing is solved. This achieves efficient, diverse, and semantically consistent test case generation, thereby improving the testing effect of question-answering systems.

CN117009213BActive Publication Date: 2026-07-17TIANJIN UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TIANJIN UNIV
Filing Date
2023-05-31
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing question-answering system testing methods cannot effectively detect logical reasoning ability, and existing metamorphosis testing frameworks have problems such as high false positives, narrow scope, and introduction of redundant semantic information, which cannot comprehensively test the logical reasoning function of question-answering systems.

Method used

By constructing metamorphic relationships between word groups with multiple hops and multiple word groups with single hops, test cases with high diversity and semantic invariance are generated. Logical substitution is performed using a large-scale language model (LLM) to ensure the naturalness and semantic consistency of test cases and improve the sufficiency of testing logical reasoning ability.

Benefits of technology

Test cases with strong error detection capabilities and efficient verification of model logic reasoning were generated, improving the sufficiency of the question-answering system's testing, reducing the false positive rate, and expanding the detection range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117009213B_ABST
    Figure CN117009213B_ABST
Patent Text Reader

Abstract

本发明公开了一种面向智能问答系统逻辑推理功能的蜕变测试方法及系统,将输入的原始问题文本解析为成分句法分析树结构,提取所述成分句法分析树中粒度最细的名词短语词组作为目标名词短语词组,将所述目标名词短语词组输入大规模语言模型LLM得到对应的逻辑;使用预先构建好的蜕变关系对问题中的目标名词短语词组进行逻辑替换,分别生成具备单词组多跳和多词组单跳关系的测试用例,并利用基于大型语言模型(LLM)的自然度保证方法来保证测试用例生成的语义不变性和自然度。本发明能够生成具有强揭错能力、高效检验模型逻辑推理能力、高多样性、高自然度和语义不变性高的测试用例,以提升问答系统的测试充分性。
Need to check novelty before this filing date? Find Prior Art