Kernel Proposal Network for Arbitrary Shape Text Detection

Shi-Xue Zhang, Xiaobin Zhu, Jie-Bo Hou, Chun Yang, Xu-Cheng Yin

TL;DR

The Kernel Proposal Network (KPN) tackles the "adhesion" problem in scene text detection—where neighboring text instances are incorrectly merged—by using dynamic convolution kernels. By predicting a unique kernel for each text instance and enforcing mathematical independence through a novel orthogonal learning loss, KPN generates instance-specific masks without the need for slow, complex post-processing.

What Problem Does This Paper Address?

Detecting text in the wild is difficult because text comes in arbitrary shapes (curved, tilted) and varied scales. While segmentation-based methods using Fully Convolutional Networks (FCNs) are flexible enough to handle these shapes, they often fail to separate text instances that are very close to one another. This is known as the adhesion problem.

To fix this, most state-of-the-art models rely on heavy post-processing, such as pixel clustering or complex grouping algorithms, which are computationally expensive and slow down inference. The authors of KPN sought a way to achieve high-precision, instance-level separation directly within the network architecture, maintaining efficiency without sacrificing accuracy.

Comparison between standard FCN-based methods and the proposed KPN. FCNs often merge adjacent text (red contour), while KPN successfully separates them.

Methods

KPN moves away from the "one-size-fits-all" classifier approach. Instead, it generates dynamic convolution kernels tailored to each specific text instance in an image.

  1. Feature Extraction: The model uses a standard ResNet-50 backbone with a Feature Pyramid Network (FPN) to extract rich feature maps.
  2. Gaussian Center Map: The network predicts a heatmap where the peaks represent the centers of text instances.
  3. Kernel Proposal: For every detected center (keypoint), the model extracts a corresponding embedding vector from the feature map. This vector serves as a "kernel proposal"—a unique set of weights for a dynamic convolution layer.
  4. Position Embedding: To help the network distinguish between identical-looking text in different locations, the authors add two channels of coordinate information (x and y) to the feature maps.
  5. Orthogonal Learning Loss (OLL): This is the paper's primary innovation. To ensure that each kernel proposal only "activates" its own text instance and ignores neighbors, the authors apply a loss function that forces the set of kernels to be orthogonal to one another. Mathematically, this makes the kernels act as independent basis vectors in the feature space.
  6. Dynamic Convolution: Finally, each kernel proposal individually convolves the shared embedding maps to produce a clean, binary mask for a single text instance.

Datasets

The authors evaluated KPN on three widely used benchmarks for scene text detection:

  • Total-Text: Focused on word-level curved text in various complex scenes.
  • CTW-1500: Contains both English and Chinese text with line-level polygon annotations for curved shapes.
  • ICDAR 2015: A standard dataset for multi-oriented, word-level text detection in street-view images.

Key Insights and Ideas

  • Dynamic Kernels as Instance IDs: Instead of trying to teach a single network to "see" boundaries between instances, KPN gives each instance its own "identity" in the form of a unique convolution kernel.
  • Orthogonality Prevents Leakage: By enforcing orthogonality (via the OLL), the model ensures that the feature response for one text instance doesn't "leak" into the mask of another. This directly addresses the adhesion problem at a mathematical level.
  • Efficiency through Simplicity: Because the network outputs individual instance masks, the "post-processing" is reduced to simple thresholding and contour extraction, making it significantly faster than models requiring pixel-wise clustering.
The similarity matrix (S) approaches an identity matrix (I) when using the Orthogonal Learning Loss, indicating high independence between kernel proposals.

Key Results

KPN achieves state-of-the-art performance while remaining highly efficient:

  • Accuracy: On the Total-Text dataset, KPN reached an H-mean (F1-score) of 87.11%, outperforming established models like DRRG and DB.
  • Speed: KPN-640 runs at approximately 22.7 FPS, which is significantly faster than many contour-based or grouping-based competitors that often struggle to exceed 5 FPS.
  • Robustness: Qualitative results show that KPN excels at separating text in "tight" situations where traditional FCNs produce a single merged blob.

Limitations and Future Work

While KPN is powerful, the authors note a few weaknesses:

  • Center Point Dependency: For extremely long line-level text (as seen in CTW-1500), predicting a single accurate center point can be difficult. If the center point prediction fails, the kernel proposal for that entire line might be lost.
  • Scale Extremes: The model still faces challenges with "extremely large or small complex text" and can occasionally produce false detections in text-like background areas (e.g., fences or grids).
  • Occlusion: Like most detection models, heavy occlusion remains a difficult scenario that can lead to missed detections.

Future work could involve improving the robustness of the keypoint generation or adapting the dynamic kernel strategy for end-to-end text recognition (spotting).

Summary updated

BibTeX
@article{zhang2023kernel,
  author = {Shi-Xue Zhang and Xiaobin Zhu and Jie-Bo Hou and Chun Yang and Xu-Cheng Yin},
  title = {{Kernel Proposal Network for Arbitrary Shape Text Detection}},
  journal = {IEEE TNNLS},
  year = {2023},
  doi = {10.1109/tnnls.2022.3152596},
}
Figure