Prompt word attack detection method and system of large language model and electronic equipment
By employing a three-tiered, progressive detection method, combined with heuristic semantic parsing, a Transformer-based language model, and structured verification of a large language model, the problem of insufficient detection accuracy and long text processing capabilities of large language models for prompt word injection attacks is solved, achieving efficient and accurate identification and real-time response to complex attacks.
Patent Information
- Application Number
- CN202511984007.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2045-12-26
AI Technical Summary
Existing technologies suffer from low detection accuracy and insufficient ability to handle long texts when detecting prompt injection attacks on large language models. In particular, the false negative rate is high in complex attack scenarios, and a single method cannot effectively balance detection accuracy and computational performance.
A three-tiered detection method is adopted. First, obvious suspicious text blocks are quickly screened out through heuristic semantic parsing. Then, deep semantic analysis is performed through a first language model based on the Transformer architecture. Finally, a large language model is used to perform structured verification of the attack intent, and meta-clue words are combined for final adjudication.
It achieves efficient and accurate detection of complex attacks, takes into account the needs of long text processing, reduces computational latency, improves the real-time performance and detection accuracy of the system, and forms a defense-in-depth system to ensure the identification and interpretability of new and complex attacks.