鲁棒指令对齐的自适应正交角色感知变压器

IF 2 4区 计算机科学 Q3 ENGINEERING, ELECTRICAL & ELECTRONIC
ETRI Journal Pub Date : 2026-10-20 Epub Date: 2026-06-24 DOI:10.4218/etrij.2025-0449
Yeo-Chan Yoon, Sookyun Kim, Gyeongmin Kim
{"title":"鲁棒指令对齐的自适应正交角色感知变压器","authors":"Yeo-Chan Yoon,&nbsp;Sookyun Kim,&nbsp;Gyeongmin Kim","doi":"10.4218/etrij.2025-0449","DOIUrl":null,"url":null,"abstract":"<p>Large language models are vulnerable to prompt injection because transformer attention treats tokens too uniformly across system and user roles. We propose the <i>adaptive orthogonal role-aware transformer</i> (AORT), a lightweight retrofit that improves role-sensitive decoding. AORT preserves the base token embeddings and adds at each transformer layer a learned orthonormal re-encoding and a role-gated additive attention bias to maintain separation between instruction and user representations during context mixing. We evaluate AORT on direct and indirect prompt-injection benchmarks, including the <i>BIPIA-text</i> benchmark. AORT achieves the lowest attack success rate (ASR) in most settings and successfully resists all eight evaluated attacks on LLaMA 3.1–8B. AORT reduces the ASR from 13.6% to 2.1% on LLaMA 3.1–8B evaluated with the BIPIA-text benchmark. These findings indicate that explicit role-priority structure in the forward pass can substantially improve prompt-injection robustness with minimal architectural overhead.</p>","PeriodicalId":11901,"journal":{"name":"ETRI Journal","volume":"48 5","pages":"924-935"},"PeriodicalIF":2.0000,"publicationDate":"2026-10-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.4218/etrij.2025-0449","citationCount":"0","resultStr":"{\"title\":\"Adaptive orthogonal role-aware transformer for robust instruction alignment\",\"authors\":\"Yeo-Chan Yoon,&nbsp;Sookyun Kim,&nbsp;Gyeongmin Kim\",\"doi\":\"10.4218/etrij.2025-0449\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>Large language models are vulnerable to prompt injection because transformer attention treats tokens too uniformly across system and user roles. We propose the <i>adaptive orthogonal role-aware transformer</i> (AORT), a lightweight retrofit that improves role-sensitive decoding. AORT preserves the base token embeddings and adds at each transformer layer a learned orthonormal re-encoding and a role-gated additive attention bias to maintain separation between instruction and user representations during context mixing. We evaluate AORT on direct and indirect prompt-injection benchmarks, including the <i>BIPIA-text</i> benchmark. AORT achieves the lowest attack success rate (ASR) in most settings and successfully resists all eight evaluated attacks on LLaMA 3.1–8B. AORT reduces the ASR from 13.6% to 2.1% on LLaMA 3.1–8B evaluated with the BIPIA-text benchmark. These findings indicate that explicit role-priority structure in the forward pass can substantially improve prompt-injection robustness with minimal architectural overhead.</p>\",\"PeriodicalId\":11901,\"journal\":{\"name\":\"ETRI Journal\",\"volume\":\"48 5\",\"pages\":\"924-935\"},\"PeriodicalIF\":2.0000,\"publicationDate\":\"2026-10-20\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://onlinelibrary.wiley.com/doi/epdf/10.4218/etrij.2025-0449\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ETRI Journal\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.4218/etrij.2025-0449\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"2026/6/24 0:00:00\",\"PubModel\":\"Epub\",\"JCR\":\"Q3\",\"JCRName\":\"ENGINEERING, ELECTRICAL & ELECTRONIC\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ETRI Journal","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.4218/etrij.2025-0449","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/6/24 0:00:00","PubModel":"Epub","JCR":"Q3","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0

摘要

大型语言模型容易受到提示注入的影响,因为转换器注意在系统和用户角色之间过于统一地对待令牌。我们提出了自适应正交角色感知转换器(AORT),这是一种轻量级的改进,可以改进角色敏感解码。AORT保留了基本的标记嵌入,并在每个转换层添加了一个习得的正交重新编码和一个角色控制的附加注意偏差,以在上下文混合期间保持指令和用户表示之间的分离。我们通过直接和间接的快速注入基准来评估AORT,包括BIPIA-text基准。AORT在大多数情况下实现了最低的攻击成功率(ASR),并成功抵御了LLaMA 3.1-8B所评估的所有8次攻击。AORT将LLaMA 3.1-8B的ASR从13.6%降低到2.1%。这些发现表明,在正向传递中明确的角色优先级结构可以以最小的架构开销大幅提高提示注入的健壮性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Adaptive orthogonal role-aware transformer for robust instruction alignment

Large language models are vulnerable to prompt injection because transformer attention treats tokens too uniformly across system and user roles. We propose the adaptive orthogonal role-aware transformer (AORT), a lightweight retrofit that improves role-sensitive decoding. AORT preserves the base token embeddings and adds at each transformer layer a learned orthonormal re-encoding and a role-gated additive attention bias to maintain separation between instruction and user representations during context mixing. We evaluate AORT on direct and indirect prompt-injection benchmarks, including the BIPIA-text benchmark. AORT achieves the lowest attack success rate (ASR) in most settings and successfully resists all eight evaluated attacks on LLaMA 3.1–8B. AORT reduces the ASR from 13.6% to 2.1% on LLaMA 3.1–8B evaluated with the BIPIA-text benchmark. These findings indicate that explicit role-priority structure in the forward pass can substantially improve prompt-injection robustness with minimal architectural overhead.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
ETRI Journal
ETRI Journal 工程技术-电信学
CiteScore
4.00
自引率
7.10%
发文量
98
审稿时长
6.9 months
期刊介绍: ETRI Journal is an international, peer-reviewed multidisciplinary journal published bimonthly in English. The main focus of the journal is to provide an open forum to exchange innovative ideas and technology in the fields of information, telecommunications, and electronics. Key topics of interest include high-performance computing, big data analytics, cloud computing, multimedia technology, communication networks and services, wireless communications and mobile computing, material and component technology, as well as security. With an international editorial committee and experts from around the world as reviewers, ETRI Journal publishes high-quality research papers on the latest and best developments from the global community.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书