Vulnerability of LLMs to Vertically Aligned Text Manipulations
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 23 of its 38 references that are in the map. First posted on arXiv 26 Oct 2024.
Builds on
23 of 38 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2018Neural Network Acceptability Judgmentscited by 952
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
11 more
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2019How to Fine-Tune BERT for Text Classification?cited by 409
- 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 172
- 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 124
- 2020Comparing BERT against traditional machine learning text classificationcited by 45
- 2022Toxicity Detection with Generative Prompt-based Inferencecited by 35
- 2023In-Context Learning for Text Classification with Many Labelscited by 35
- 2023Primacy Effect of ChatGPTcited by 27
- 2024VertAttack: Taking advantage of Text Classifiers' horizontal visioncited by 1
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025VistaWise: Building Cost-Effective Agent with Cross-Modal Knowledge Graph for Minecraftcited by 13
- 2025ContextNav: Towards Agentic Multimodal In-Context Learningcited by 9
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2026VideoStir: Understanding Long Videos via Spatio-Temporally Structured and Intent-Aware RAGcited by 5
- 2025so much depends / upon / a whitespace: Why Whitespace Matters for Poets and LLMscited by 4
- 2025`A la recherche du sens perdu: your favourite LLM might have more to say than you can understandcited by 0
- 2026VideoStir: Understanding Long Videos via Spatio-Temporally Structured and Intent-Aware RAG7 Apr 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
- 2025so much depends / upon / a whitespace: Why Whitespace Matters for Poets and LLMs19 Oct 2025
- 2025ContextNav: Towards Agentic Multimodal In-Context Learning6 Oct 2025
- 2025VistaWise: Building Cost-Effective Agent with Cross-Modal Knowledge Graph for Minecraft26 Aug 2025
- 2025`A la recherche du sens perdu: your favourite LLM might have more to say than you can understand28 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024Reasoning Robustness of LLMs to Adversarial Typographical Errors
- 2025Alleviating the Fear of Losing Alignment in LLM Fine-tuning
- 2024Do LLMs Overcome Shortcut Learning? An Evaluation of Shortcut Challenges in Large Language Models
- 2023Large Language Model Alignment: A Survey
- 2025Picky LLMs and Unreliable RMs: An Empirical Study on Safety Alignment after Instruction Tuning
- 2025LLLMs: A Data-Driven Survey of Evolving Research on Limitations of Large Language Models
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM
- 2025A Comprehensive Evaluation framework of Alignment Techniques for LLMs