Dynamic Low-Resolution Distillation for Cost-Efficient End-to-End Text Spotting

Ying Chen, Liang Qiao, Zhanzhan Cheng, Shiliang Pu, Yi Niu, Xi Li

Introduction

Text spotting—the integrated task of text detection and recognition—is a computationally intensive process, particularly when processing high-resolution images required to identify small or distant text. Traditional approaches often face a rigid trade-off: high-resolution inputs ensure accuracy but incur significant latency and computational costs (FLOPs), while low-resolution inputs sacrifice the fine-grained details necessary for accurate character recognition.

To address this, researchers from Hikvision and Zhejiang University introduced Dynamic Low-Resolution Distillation (DLD). This framework enables models to process images at lower resolutions while leveraging the feature-rich representations of a high-resolution "teacher" model. By dynamically selecting the optimal resolution for each image and employing a specialized distillation strategy, DLD achieves a significant reduction in computational overhead without compromising performance.

The DLD Framework

The DLD framework is designed to be integrated into standard two-stage text spotters. It consists of two primary innovations: the Dynamic Resolution Selector (DRS) and Sequential Knowledge Distillation (SKD).

Dynamic Resolution Selector (DRS)

Rather than applying a uniform resolution to all inputs, the DRS module evaluates each image to determine the lowest viable scale for accurate spotting. The selector utilizes a lightweight 10-layer CNN to predict the optimal scale from a predefined set of candidates (e.g., 0.3x to 0.8x of the original resolution).

To ensure the selector is end-to-end trainable, the authors utilize the Gumbel-Softmax trick. This allows the network to make discrete resolution choices while remaining differentiable during backpropagation. The training objective balances accuracy with efficiency, penalizing the model for selecting unnecessarily high resolutions that increase FLOPs.

Sequential Knowledge Distillation (SKD)

The core of the DLD approach lies in its distillation strategy, which transfers knowledge from a high-resolution teacher to a low-resolution student. Recognizing that text recognition is more sensitive to resolution drops than detection, the authors focus distillation on the recognition branch across three levels:

  1. RoI Features: Aligning visual features within cropped text regions.
  2. Contextual Features: Synchronizing the hidden states of the Bi-LSTM layer to preserve character-level dependencies.
  3. Sequence Level: Utilizing the teacher’s beam search results as "soft targets." This helps the student learn semantic context, allowing it to infer characters that may be visually ambiguous at lower resolutions.

Experimental Evaluation

The DLD framework was evaluated on three benchmark datasets: ICDAR2013 (IC13) for horizontal text, ICDAR2015 (IC15) for incidental/blurry text, and Total-Text (TT) for curved and multi-oriented text. The models were pre-trained on the SynthText-800K dataset before fine-tuning.

Key Results

The experimental results demonstrate that DLD effectively breaks the resolution-cost bottleneck. On the IC13 dataset, a high-resolution baseline achieved 82.9% accuracy with 142.9G FLOPs. In comparison, the DLD model maintained a nearly identical accuracy of 82.7% while requiring only 71.5G FLOPs—a 50% reduction in computational cost.

Furthermore, DLD consistently outperformed vanilla multi-scale training on the more complex IC15 and Total-Text datasets. The researchers also demonstrated the framework's versatility by successfully applying it to other architectures, including Text Perceptron and MANGO, proving its "plug-and-play" potential.

Discussion and Limitations

The study highlights that while detection is relatively robust to downsampling, recognition serves as the primary bottleneck for low-resolution performance. By focusing on contextual and sequence-level distillation, DLD compensates for the loss of visual clarity. However, several limitations remain:

  • Manual Configuration: The candidate resolution scales and the high-resolution teacher baseline must currently be manually defined for specific datasets.
  • Resolution Floor: There is an inherent physical limit to downsampling; if an image is reduced beyond human legibility, distillation may lead to overfitting rather than improved generalization.
  • Detection Branch: The current framework focuses primarily on the recognition branch. Future work could explore specific distillation techniques for the detection branch to further optimize the pipeline.

Conclusion

Dynamic Low-Resolution Distillation provides a robust blueprint for deploying high-performance OCR on resource-constrained devices. By intelligently "squinting" at easy images and distilling the essence of high-resolution features for difficult ones, DLD offers a path toward more efficient and scalable computer vision systems.

Summary updated

BibTeX
@inproceedings{chen2022dynamic,
  author = {Ying Chen and Liang Qiao and Zhanzhan Cheng and Shiliang Pu and Yi Niu and Xi Li},
  title = {{Dynamic Low-Resolution Distillation for Cost-Efficient End-to-End Text Spotting}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19815-1\_21},
}
Figure