[Paper Review] A Simple Fix for Convolutional Neural Network via Coordinate Embedding
This paper proposes Coordinate Embedding (CoordEmb), a simple, parameter-efficient method to inject spatial coordinate information into convolutional neural networks by learning normalized x- and y-coordinate embeddings added to the input image. The approach enhances model robustness to affine transformations and boosts mAP by 2.47% on the GTSDB benchmark without modifying network architecture or requiring retraining from scratch.
Convolutional Neural Networks (CNN) has been widely applied in the realm of computer vision. However, given the fact that CNN models are translation invariant, they are not aware of the coordinate information of each pixel. Thus the generalization ability of CNN will be limited since the coordinate information is crucial for a model to learn affine transformations which directly operate on the coordinate of each pixel. In this project, we proposed a simple approach to incorporate the coordinate information to the CNN model through coordinate embedding. Our approach does not change the downstream model architecture and can be easily applied to the pre-trained models for the task like object detection. Our experiments on the German Traffic Sign Detection Benchmark show that our approach not only significantly improve the model performance but also have better robustness with respect to the affine transformation.
Motivation & Objective
- Address the limitation of CNNs in handling affine transformations due to translation invariance.
- Improve generalization and detection performance for small and edge-localized objects in real-world scenarios.
- Develop a method that preserves pre-trained models' architecture while injecting coordinate information.
- Enhance robustness to coordinate-based distortions such as perspective shifts and object repositioning.
- Enable easy deployment of coordinate-aware features in existing object detection pipelines without architectural changes.
Proposed method
- Introduce two learnable, normalized coordinate embedding matrices X and Y of size H×W×1 for spatial coordinates.
- Add the coordinate embeddings to each channel of the input image tensor I ∈ ℝ^{H×W×C} before the first convolutional layer.
- Use standard convolutional layers without modification, preserving the original model architecture.
- Train the coordinate embeddings end-to-end with the rest of the network using standard optimization (e.g., RMSprop).
- Apply the method to pre-trained models like SSD with Inception V2 backbone by fine-tuning on the GTSDB dataset.
- Ensure the embeddings are spatially aware and scale-invariant through normalization and learnable parameters.
Experimental results
Research questions
- RQ1Can injecting coordinate information into CNNs improve performance on object detection tasks with affine distortions?
- RQ2Does a simple, non-invasive method like coordinate embedding outperform standard CNNs in detecting small or edge-localized objects?
- RQ3To what extent can coordinate embedding enhance robustness to spatial transformations without altering model architecture?
- RQ4Can this method be effectively applied to pre-trained models without retraining from scratch?
- RQ5How does the performance of coordinate embedding compare to more complex alternatives like CoordConv in real-world detection scenarios?
Key findings
- The CoordEmb-enhanced SSD Inception V2 model achieved a 2.47% absolute improvement in mAP (from 0.2041 to 0.2288) on the GTSDB test set.
- The model showed significantly improved detection of small and medium-sized traffic signs, especially those near image edges.
- CoordEmb increased confidence scores for marginal signs (e.g., speed limit signs at distance) by up to 5% compared to vanilla CNN.
- The model maintained high reliability (93% and 55% confidence) on affine-distorted images where the vanilla model failed.
- CoordEmb improved robustness to perspective distortions without increasing inference latency or model complexity.
- The method enabled better generalization on coordinate-based tasks like regression and classification, as demonstrated on benchmark tasks from Liu et al.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.