The invention discloses a
large model illusion detection and inhibition method and
system based on logic type guidance, and belongs to the technical field of
large model illusion detection, and the method comprises the following steps: logic diagram matching, multi-hop path screening, consistency
verification, semantic reconstruction correction and text
verification output. According to the method, a text reasoning logic diagram is constructed, a multi-hop reasoning relation, causal constraints and a logic sequence which are implied in a
natural language are subjected to explicit structured representation, and a
knowledge graph is introduced to perform logic consistency
verification. On the basis, based on logic type constrained multi-hop path matching and
global consistency evaluation, an implicit reasoning relation between long-distance entities is captured from the
structural level, hallucination missing detection caused by logic chain breakage or semantic drift in the deep reasoning process is effectively avoided, the accuracy and coverage capacity of
large model hallucination detection are remarkably improved, and the method has the advantages of being high in practicability and easy to popularize. The problem that in the prior art, complex
inference type illusion in large model generation content is difficult to effectively recognize is effectively solved.