While we typically think of text as a carrier of linguistic information and images as carriers of visual information, the two often overlap. ASCII art—where characters like (, /, and _ are arranged to depict objects—serves as a unique "modality bridge."
A new benchmark, ASCIIEval, has been designed to test whether AI models can "see" the visual shapes hidden within these text strings. The study reveals a startling "OCR trade-off": models that are highly optimized for recognizing individual characters often fail to perceive the collective image they form. Furthermore, providing both text and image modalities simultaneously actually degrades performance in current state-of-the-art models.
The Challenge of Visual Semantics in Text
The authors argue that understanding visual semantics within text is a crucial but under-explored capability. For Large Language Models (LLMs), this tests their ability to reconstruct 2D spatial structures from 1D strings. For Multimodal Large Language Models (MLLMs), it tests their generalization: can they recognize a "dog" when it’s made of slashes and dots rather than pixels?
This is not just an academic exercise; it has major safety implications. Attackers can use ASCII art to bypass safety filters, such as drawing a "bomb" using characters instead of typing the restricted word.
The ASCIIEval Benchmark and Methodology
The researchers framed ASCII art recognition as a multiple-choice question-answering task. They evaluated models across three settings: text-only, image-only (a rendered version of the ASCII art), and a combined text-image input.
To facilitate this, the paper introduces two primary resources:
- ASCIIEval: A high-quality test set of 3,526 samples covering 359 concepts (like animals, objects, and symbols). It features a three-layer classification tree and was rigorously cleaned by human annotators to remove ambiguous art.
- ASCIITune: A larger training set of approximately 11.8k samples designed for model enhancement and fine-tuning.
To improve model performance, the team introduced two novel strategies:
- Rationale-Assisted Fine-Tuning: Instead of just training models on "Image -> Label" pairs, they used GPT-5 to generate detailed "rationales" explaining how the characters form the shape, then fine-tuned smaller models to replicate this reasoning.
- Low-Resolution Prompting: For MLLMs, deliberately blurring the input image helps the model focus on the global shape rather than getting distracted by individual characters.
Key Insights: The "Forest vs. Trees" Trade-off
- OCR vs. Perception: There is a strong negative correlation between a model's Optical Character Recognition (OCR) ability and its ASCII art perception. Open-source MLLMs are often so optimized for reading fine-grained text that they lose the ability to perceive the "collective visual signal."
- Negative Synergy: Surprisingly, current models suffer from "inter-modal interference." When given both the text string and the image, performance drops compared to giving the image alone. Models become confused rather than synthesizing the congruent signals.
- Modality-Specific Strengths: LLMs (text-only) are better at recognizing small, dense ASCII art where features are packed into a few characters. MLLMs (image-only) excel at larger, complex pieces that resemble the global outlines of real-world objects.
- Tokenization is the Enemy: Standard LLM tokenizers group consecutive characters into arbitrary tokens, causing the model to lose the vertical coherence necessary to "see" the 2D structure.
Performance and Leaderboard
There is a massive gap between closed and open-source models. GPT-5 leads the pack, achieving 87.8% accuracy in the image-only setting and 55.9% in the text-only setting.
The best open-source MLLM (CogVLM2) trailed GPT-5 by over 20%. However, targeted interventions showed promise. Rationale-assisted fine-tuning boosted a Qwen model's accuracy from 28.3% to 35.7%, allowing it to outperform much larger models. Similarly, reducing the resolution of the input image for Qwen2.5-VL-7B improved its accuracy by 17.5%, proving that "seeing less" can sometimes help a model "understand more."
Future Directions
The authors suggest moving beyond "post-hoc" fixes like blurring toward architectural changes that intrinsically balance character recognition with global shape perception. Developing input representations that preserve 2D spatial relationships within text strings (better tokenization) is a critical next step. Expanding the benchmark to include color, animated, and 3D ASCII art will further test these capabilities, ultimately aiding in the development of more robust defenses against ASCII-based adversarial attacks.
Summary updated