TL;DR
Generative recommendation models rely on text encoders to create discrete "Semantic IDs" for items, but standard language models struggle with the messy, attribute-heavy lists typical of product catalogs. This paper introduces a "text-as-vision" approach, rendering textual item descriptions into images and encoding them using vision-based OCR models. This simple shift preserves structural layout, dramatically narrows the geometric gap between text and image embeddings, and consistently boosts recommendation performance.
What Problem Does This Paper Address?
Generative Recommendation (GR) models treat recommendation as a sequence generation task, predicting the next item's "Semantic ID"—a discrete token sequence representing its content. Typically, these IDs are generated by feeding text descriptions into pretrained language models.
However, real-world product descriptions are rarely well-formed natural language; they are often attribute-dense lists filled with numbers, units, and symbols (e.g., "Wireless Mouse, 2.4G, 1600DPI, USB Receiver, Black"). Standard text encoders fragment these into out-of-vocabulary or disjointed subword tokens, destroying semantic coherence. Furthermore, in multimodal settings (text + images), traditional text and vision encoders yield geometrically mismatched embedding spaces, making cross-modal fusion unstable and complex.
Methods
The authors propose treating text as a visual signal. Instead of traditional subword tokenization, they render the text description into an image with a consistent font and layout. They then pass this text image through a pretrained OCR encoder (such as DeepSeek-OCR, Donut, or TrOCR) to extract continuous embeddings.
These visual text embeddings are then discretized into structured Semantic IDs using Residual Vector Quantization (RVQ). The authors evaluate this approach across both unimodal (text-only) and multimodal (text + product image) settings, testing various early and late fusion strategies (Concatenation, Interleaving, and Modality-aware Tokenization) against standard text embeddings from LLaMA-3.1-8B.
Datasets
The empirical study evaluates the approach on four standard Amazon product recommendation datasets, chosen to represent different text lengths and structural styles:
- Scientific: Highly structured, attribute-dense, and long text.
- Instruments: Specification-oriented text.
- Luxury: Narrative, marketing-oriented text.
- Arts: Short, natural language text.
Key Insights and Ideas
- Bridging the Modality Gap: Standard text and image embeddings live in completely different geometric spaces. By converting text to an image, the OCR-based text embeddings naturally align much closer to actual product image embeddings, forming smoother manifolds and reducing the need for complex alignment layers.
- Structure Preservation: OCR models process text visually, capturing layout regularities, spacing, and character shapes without subword fragmentation. This makes them inherently superior at parsing symbolic, key-value style product specifications.
- Surprising Resolution Robustness: You might think high-resolution rendering is required to read text, but the authors found that aggressively downsampling text images from $1024 \times 1024$ to $256 \times 256$ resulted in negligible performance drops (mostly within $\pm4\%$), making the approach highly efficient for practical deployment.
Key Results
- Unimodal Gains: On the highly structured Scientific dataset, OCR-text improved the TIGER backbone's Recall@5 by 5.78% and NDCG@5 by 8.06% compared to standard text embeddings.
- Multimodal Superiority: In early fusion settings, replacing standard text with OCR-text led to massive relative improvements—boosting Recall@5 by 13.0% and NDCG@5 by 12.7% on the Scientific dataset.
- Encoder Agnosticism: The benefits are not tied to a single model; replacing DeepSeek-OCR with Donut or TrOCR yielded highly consistent and comparable performance improvements, proving the robustness of the visual text paradigm.
Limitations and Future Work
The authors note that the benefits of OCR-text diminish when item descriptions are already short and resemble well-formed natural language (such as the Arts dataset), where standard text encoders already excel.
For future work, the authors suggest exploring broader vision-centric tokenization paradigms and developing end-to-end optimized visual text architectures rather than relying purely on frozen, pretrained OCR models.
Summary updated