cs.LGMar 5, 2026

Whispering to a Blackbox: Bootstrapping Frozen OCR with Visual Prompts

Authors: Samandar Samandarov, Nazirjon Ismoiljonov, Abdullah Sattorov, Temirlan Sabyrbayev

Organizations: Duke University

Abstract

In the landscape of modern machine learning, frozen pre-trained models provide stability and efficiency but often underperform on specific tasks due to mismatched data distributions. This paper introduces the Whisperer, a novel visual prompting framework that learns diffusion-based preprocessors to adapt inputs in pixel space, effectively "whispering" enhancements to frozen downstream models like EasyOCR. By framing the process as behavioral cloning of stochastically discovered improvement policies, our method achieves an 8% absolute (10.6% relative) reduction in Character Error Rate (CER) on a challenging dataset of 300k degraded synthetic text images, surpassing hand-engineered baselines such as CLAHE. The key innovation is a four-stage training curriculum that uses behavioral cloning to amplify "lucky" improvements discovered through the stochastic exploration of a partially trained diffusion model. This approach is highly sample-efficient and avoids the pitfalls of traditional reinforcement learning. Crucially, we frame this not as naive reinforcement learning, but as behavioral cloning of an exploration policy: we stochastically sample intermediate diffusion outputs, select those that improve CER by chance, and then train the model to reproduce them. This bootstrapping curriculum (4 stages over 60 GPU-hours) amplifies random successes into a systematic strategy. In summary, by whispering to the frozen OCR through its inputs, we improve an imperfect classifier without touching its weights.

Figures & tables

Explore similar work

CardsList
  1. FastOCR: Dynamic Visual Fixation via KV Cache Pruning for Efficient Document Parsing

    May 17, 2026Zihan Tang, Leqi Shen, Hui Chen +7Visual AttentionEfficient VLM Inference

  2. DODO: Discrete OCR Diffusion Models

    Feb 18, 2026Sean Man, Gilad Deutch, Roy Ganz +4Optical Character RecognitionDiffusion Language Model Decoding

  3. Efficient Domain Adaptation for Text Line Recognition via Decoupled Language Models

    Mar 30, 2026Arundhathi Dev, Justin ZhanOptical Character RecognitionUnsupervised Domain Adaptation