PromptGuard是一个注入弹性语言模型的结构化框架
1Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah, Saudi Arabia. aaalzahrani9@kau.edu.sa.
Scientific reports
|January 9, 2026
概括
本研究引入了一种新的防御框架,用于打击对大型语言模型 (LLM) 的快速注入攻击. 四层系统有效地提高了LLM的安全性和可靠性,而不需要再培训.
科学领域:
- 人工智能的人工智能
- 网络安全 网络安全
- 自然语言处理自然语言处理.
背景情况:
- 快速注入攻击对大型语言模型 (LLM) 的可靠性和任务忠实性构成重大威胁.
- 当前的防御机制往往缺乏适应性,需要重新训练或具有狭窄的范围,阻碍其实际部署.
- 对于安全的人工智能应用来说,需要对LLM进行强大,适应性和轻量级防御,以防止对抗性攻击.
研究的目的:
- 开发和评估一个模块化,多层防御框架,以减轻对LLM的快速注入攻击.
- 增强LLM对对抗指令的稳定性和可靠性,而不需要重新训练模型.
- 提供一个实用和高效的解决方案,以改善在现实世界的场景LLM安全.
主要方法:
- 一个四层防御框架,整合了输入守门,结构化提示格式,语义输出验证和自适应响应改进 (ARR).
- 使用regex和MiniBERT进行恶意指令检测和阻止.
- 采用结构化格式化和基于批评者的验证,以实现一致的任务对齐和输出验证.
主要成果:
- 拟议的框架在多个LLM中显示了LLM稳定性的显著改进.
- 在即时注射成功率下降了多达67%.
- 获得了0.91的F1评分,用于检测准确度,延迟时间的最小增加低于8%.
结论:
- 模块化防御框架是一种有效的,轻量级的,不需要再培训的方法,可以提高LLM的安全性和可靠性.
- 该系统成功地减轻了即时注入攻击,确保任务忠实性和可靠的AI行为.
- 这项研究提供了一个有希望的解决方案,用于在实际应用中保护LLM免受复杂的对抗性操纵.
相关概念视频
Improving Translational Accuracy
14.1K
Base complementarity between the three base pairs of mRNA codon and the tRNA anticodon is not a failsafe mechanism. Inaccuracies can range from a single mismatch to no correct base pairing at all. The free energy difference between the correct and nearly correct base pairs can be as small as 3 kcal/ mol. With complementarity being the only proofreading step, the estimated error frequency would be one wrong amino acid in every 100 amino acids incorporated. However, error frequencies observed in...
14.1K
Improving Translational Accuracy
3.5K
3.5K
Language
876
Language is a unique communication system that uses words and systematic rules to organize and transmit information. Unlike other forms of communication, which may involve postures, movements, odors, or vocalizations, language relies on symbols and grammar. This makes human communication distinct from that of other species, who also communicate but do not use language in the same way humans do.
Corballis and Suddendorf (2007) and Tomasello and Rakoczy (2003) highlight the role of language in...
Corballis and Suddendorf (2007) and Tomasello and Rakoczy (2003) highlight the role of language in...
876
Language Development
831
Children master language quickly and with relative ease, supported by both biological predisposition and reinforcement. B. F. Skinner (1957) proposed that language is learned through reinforcement, while Noam Chomsky (1965) argued that language acquisition mechanisms are biologically determined.
The critical period for language acquisition suggests that the ability to acquire language is at its peak early in life. As people age, this proficiency decreases. Language development begins very...
The critical period for language acquisition suggests that the ability to acquire language is at its peak early in life. As people age, this proficiency decreases. Language development begins very...
831
Types of Errors: Detection and Minimization
9.5K
Error is the deviation of the obtained result from the true, expected value or the estimated central value. Errors are expressed in absolute or relative terms.
Absolute error in a measurement is the numerical difference from the true or central value. Relative error is the ratio between absolute error and the true or central value, expressed as a percentage.
Errors can be classified by source, magnitude, and sign. There are three types of errors: systematic, random, and gross.
Systematic or...
Absolute error in a measurement is the numerical difference from the true or central value. Relative error is the ratio between absolute error and the true or central value, expressed as a percentage.
Errors can be classified by source, magnitude, and sign. There are three types of errors: systematic, random, and gross.
Systematic or...
9.5K
Masking and Demasking Agents
3.4K
EDTA titrations may necessitate masking and demasking agents to temporarily protect a particular metal ion in a mixture from the EDTA reaction. These agents facilitate the sequential analysis of the metal ions by forming stable complexes with some—but not all—metal ions during certain steps.
There are many masking agents, such as cyanide, fluoride, triethanolamine, thiourea, and 2,3-bis(sulfanyl)propan-1-ol (formerly 2,3-dimercapto-1-propanol), with the masking agent chosen based on...
There are many masking agents, such as cyanide, fluoride, triethanolamine, thiourea, and 2,3-bis(sulfanyl)propan-1-ol (formerly 2,3-dimercapto-1-propanol), with the masking agent chosen based on...
3.4K
