大语言模型对垂直对齐文本操作的脆弱性
Vulnerability of LLMs to Vertically Aligned Text Manipulations
AI总结:
本文研究大语言模型对垂直对齐文本输入的脆弱性,发现垂直输入显著降低分类准确性,思维链无效但少样本学习可缓解,并归因于分词与注意力机制问题。
摘要:
垂直文本输入在现实世界的各种应用中经常遇到,例如数学计算和基于单词的数独谜题。虽然当前的大语言模型(LLMs)在自然语言任务中表现出色,但它们仍然容易受到文本格式变化的影响。最近的研究表明,修改输入格式(例如为基于编码器的模型垂直对齐单词)可以大幅降低文本分类任务的准确性。虽然人类容易理解这些输入,但它们可以显著误导模型,在涉及有害或敏感信息的现实场景中构成绕过检测的潜在风险。随着LLMs应用的扩展,一个关键问题出现了:基于解码器的LLMs是否对垂直格式的文本输入表现出类似的脆弱性?在本文中,我们研究了垂直文本输入对各种LLMs在多个文本分类数据集上性能的影响,并分析了根本原因。我们的发现如下:(i)垂直文本输入显著降低了LLMs在文本分类任务中的准确性。(ii)思维链(CoT)推理不能帮助LLMs识别垂直输入或减轻其脆弱性,但带有仔细分析的少样本学习可以。(iii)我们通过分析分词和注意力矩阵中的固有问题来探索脆弱性的根本原因。
英文摘要:
Vertical text input is commonly encountered in various real-world applications, such as mathematical computations and word-based Sudoku puzzles. While current large language models (LLMs) have excelled in natural language tasks, they remain vulnerable to variations in text formatting. Recent research demonstrates that modifying input formats, such as vertically aligning words for encoder-based models, can substantially lower accuracy in text classification tasks. While easily understood by humans, these inputs can significantly mislead models, posing a potential risk of bypassing detection in real-world scenarios involving harmful or sensitive information. With the expanding application of LLMs, a crucial question arises: Do decoder-based LLMs exhibit similar vulnerabilities to vertically formatted text input? In this paper, we investigate the impact of vertical text input on the performance of various LLMs across multiple text classification datasets and analyze the underlying causes. Our findings are as follows: (i) Vertical text input significantly degrades the accuracy of LLMs in text classification tasks. (ii) Chain-of-Thought (CoT) reasoning does not help LLMs recognize vertical input or mitigate its vulnerability, but few-shot learning with careful analysis does. (iii) We explore the underlying cause of the vulnerability by analyzing the inherent issues in tokenization and attention matrices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。