Texture or Semantics? Vision-Language Models Get Lost in Font Recognition

Zhecheng Li, Guoxian Song, Yujun Cai, Zhen Xiong, Junsong Yuan, Yiwei Wang

TL;DR

This paper investigates the ability of modern Vision-Language Models (VLMs) to recognize fonts, a fine-grained visual task. The authors introduce a new benchmark, FRB, and find that current VLMs struggle significantly with font recognition, often being misled by textual content rather than visual features, even with advanced prompting techniques.

What Problem Does This Paper Address?

In our daily lives, we often encounter text in various fonts and may want to identify them for design, aesthetic, or other purposes. Vision-Language Models (VLMs), with their impressive multimodal capabilities, seem like natural candidates for this task. However, it's unclear if these models truly understand the visual nuances of fonts beyond just reading the text. This paper addresses the question of whether VLMs can accurately recognize fonts, especially when faced with challenges like the "stroop effect" where the visual presentation conflicts with the textual meaning.

Methods

The authors developed a new benchmark called the Font Recognition Benchmark (FRB). FRB consists of two versions:

  • Easy Version: Images contain sentences rendered in 15 different common fonts. This version tests basic font recognition without semantic interference.
  • Hard Version: Images display the names of the 15 fonts themselves, but rendered in a different font. This creates a "stroop effect," forcing models to distinguish between the visual font style and the textual content.

They evaluated 13 different VLMs (both open-weight and closed-source) using zero-shot, Chain-of-Thought (CoT) prompting, and few-shot learning settings. Attention analysis was also performed to understand model behavior.

Datasets

The primary dataset introduced in this paper is the Font Recognition Benchmark (FRB).

  • FRB Easy Version: Contains 150 images (15 fonts x 10 sentences per font).
  • FRB Hard Version: Contains 225 images (15 fonts x 15 font names per font).
  • Few-Shot Dataset: 52 images, each with a single uppercase or lowercase letter, used for few-shot learning experiments.

The authors mention using the VFR dataset as a point of comparison, noting it's more suited for CNN-based training than VLM evaluation.

Key Insights and Ideas

  • Textual Bias is Dominant: VLMs are heavily biased towards the textual content of an image. When the text says "Arial," even if it's rendered in a completely different font, the VLM is highly likely to predict "Arial" as the font, ignoring the visual evidence.
  • Stroop Effect is a Major Hurdle: The hard version of the benchmark, which introduces the stroop effect (textual name mismatching the rendered font), significantly degrades VLM performance, highlighting their struggle with semantic-visual conflict.
  • Prompting Techniques Offer Little Help: Standard techniques like Chain-of-Thought (CoT) prompting and few-shot learning provide only marginal improvements in font recognition accuracy, suggesting a more fundamental limitation.
  • Attention Misalignment: Attention analysis reveals that VLMs often fail to focus on the critical visual features (like character edges) that define a font. Instead, their attention is frequently drawn to irrelevant background regions or the textual content itself.

Key Results

  • Low Accuracy Across the Board: Even the best-performing VLMs achieved only around 30% accuracy on the easy version of the benchmark. Performance dropped drastically to approximately 15% on the hard version.
  • GPT-40-MINI Achieves 0% Accuracy: In some cases, models like GPT-40-MINI achieved 0% accuracy on specific tasks, underscoring the difficulty.
  • Open-Weight Models Lag Behind: While some closed-source models showed slightly better performance, both categories of models struggled significantly.
  • Few-Shot Learning Ineffectiveness: Increasing the number of few-shot examples (from 1 to 6) resulted in only minor accuracy gains (less than 4%), a stark contrast to human performance.

Limitations and Future Work

  • Budget Constraints: Due to budget limitations, the authors couldn't conduct few-shot inference on more powerful closed-source models like CLAUDE-3.5-SONNET and GPT-40.
  • Closed-Source Model Analysis: The inability to analyze attention matrices for closed-source models limits a deeper understanding of their failure modes.
  • Prompting Sophistication: The current experiments used straightforward prompts. The authors suggest that more sophisticated prompts, guiding models to focus on key visual regions, might improve performance.
  • Future Work: The authors plan to explore more sophisticated prompting strategies and potentially develop models with better integration of typographic priors for improved font recognition.

Summary updated

BibTeX
@inproceedings{li2025texture,
  author = {Zhecheng Li and Guoxian Song and Yujun Cai and Zhen Xiong and Junsong Yuan and Yiwei Wang},
  title = {{Texture or Semantics? Vision-Language Models Get Lost in Font Recognition}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=qiLJVU4I8P},
}
Figure