Skip to main content
QUICK REVIEW

[Paper Review] GlyphBanana: Advancing Precise Text Rendering Through Agentic Workflows

Zexuan Yan, Jiarui Jin|arXiv (Cornell University)|Mar 12, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

GlyphBanana introduces a training-free agentic workflow that integrates glyph templates into latent and attention spaces to enable precise rendering of complex text and formulas in diffusion-based image generation. It also presents GlyphBanana-Bench, a benchmark assessing rendering of simple words to multiline scientific formulas across languages.

ABSTRACT

Despite recent advances in generative models driving significant progress in text rendering, accurately generating complex text and mathematical formulas remains a formidable challenge. This difficulty primarily stems from the limited instruction-following capabilities of current models when encountering out-of-distribution prompts. To address this, we introduce GlyphBanana, alongside a corresponding benchmark specifically designed for rendering complex characters and formulas. GlyphBanana employs an agentic workflow that integrates auxiliary tools to inject glyph templates into both the latent space and attention maps, facilitating the iterative refinement of generated images. Notably, our training-free approach can be seamlessly applied to various Text-to-Image (T2I) models, achieving superior precision compared to existing baselines. Extensive experiments demonstrate the effectiveness of our proposed workflow. Associated code is publicly available at https://github.com/yuriYanZeXuan/GlyphBanana.

Motivation & Objective

  • Motivate the need for reliable rendering of rare characters and complex formulas in text-to-image generation.
  • Propose a training-free agentic pipeline that fuses system font glyphs with diffusion models for precise rendering.
  • Enable autonomous adaptation to arbitrary styles without manual design intervention.
  • Introduce GlyphBanana-Bench to evaluate text rendering across a spectrum from simple words to complex multiline formulas.

Proposed method

  • Four-stage agentic workflow: Extraction, Draft Preview, Glyph Injection, and Style Refinement.
  • Glyph Injection combines latent space frequency decomposition with attention re-weighting to inject glyph templates into DiT blocks.
  • Frequency Decomposition blends low/high frequency components via a mask to inject high-frequency glyph details.
  • Attention Re-weighting introduces a bias matrix in DiT self-attention to bias certain tokens toward glyph templates.
  • Iterative Refinement uses a Style Refiner and Score Judger with a diffusion-based image-to-image model to improve quality and harmony.

Experimental results

Research questions

  • RQ1Can a training-free, agentic workflow improve OCR accuracy and visual fidelity for rendering complex text and formulas in diffusion models?
  • RQ2How do latent-space frequency decomposition and attention re-weighting contribute to precise glyph rendering across languages and styles?
  • RQ3Does the GlyphBanana pipeline generalize across different DiT backbones without fine-tuning?
  • RQ4What is the impact of the new GlyphBanana-Benchmark on evaluating OOV text and complex formulas in T2I systems?

Key findings

  • GlyphBanana achieves higher OCR and VLM-based metrics on rendered text compared to baselines on the GlyphBanana-Benchmark.
  • Ablation studies show that Frequency Decomposition, Injection, and Iterative Refinement each contribute to improved text precision and visual harmony.
  • The method delivers training-free integration with multiple diffusion backbones and surpasses baselines in rendering precision and style fidelity.
  • GlyphBanana improves OCR score by substantial margins on Z-Image and Qwen-Image backbones according to the reported metrics.
  • Iterative refinement consistently enhances visual quality while preserving text accuracy across experiments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.