Learning how to be robust: Deep polynomial regression

Juan-Manuel Pérez-Rúa, Tomás Crivelli, Patrick Bouthemy, Patrick PérezarXiv 2018

Abstract

Robust polynomial regression is a fundamental task in computer vision, often challenged by structured outliers. This paper proposes a deep learning framework that replaces traditional heuristic-based estimators like RANSAC with a learnable convolutional encoder paired with a fixed, differentiable mathematical decoder. By training on synthetically corrupted data in an unsupervised manner, the model learns to identify and ignore outliers automatically. Experimental results on 1D and 2D regression tasks, as well as real-world video stabilization, demonstrate that this approach significantly outperforms classical methods, especially in high-outlier regimes.

Introduction

Fitting a polynomial model to a set of measurements is a ubiquitous task. While standard Least Squares Estimation (LSE) works well for clean data with Gaussian noise, it fails in real-world scenarios where data is contaminated by heavy, structured outliers. Traditionally, researchers rely on heuristics like RANSAC or robust M-estimators. However, these methods require extensive parameter tuning and often struggle when outliers form large, coherent structures—such as a moving car in the foreground of a video where the goal is to estimate background camera motion.

This work aims to replace hand-tuned heuristics with a generic deep learning approach that learns to ignore outliers automatically without requiring explicit ground-truth labels for polynomial parameters.

Methodology

Encoder-Fixed Decoder Architecture

The core of the proposed approach is an Encoder-Fixed Decoder architecture. Unlike standard autoencoders, only the encoder is learnable.

The high-level architecture consists of a learnable encoder and a fixed, differentiable mathematical decoder.
  1. The Learnable Encoder: The network utilizes Stacked Hourglass Networks (SHN) to process input data. The SHN's multi-scale architecture is adept at capturing both local details and global spatial context, which is essential for distinguishing structured outliers from the underlying signal.
  2. The Fixed Decoder: The decoder is a hard-wired, differentiable mathematical layer representing the specific polynomial equation being solved (e.g., a 2D affine transform). It takes the predicted coefficients (the "code") and reconstructs the data.
The encoder utilizes Stacked Hourglass modules to capture multi-scale spatial context for outlier detection.

Unsupervised Denoising Training

The network is trained as a denoiser. During training, clean polynomial data is generated and corrupted with noise and structured outliers on the fly. The loss is calculated in the data space—comparing the reconstructed data to the original clean data—rather than in the parameter space. This ensures that coefficients are weighted according to their actual impact on the resulting curve or surface.

Key Insights

  • Loss in Data Space: Regressing coefficients directly is difficult due to their varying scales. Calculating loss on the output data naturally balances the importance of different polynomial degrees.
  • Learning Robustness: The authors found that training a network to map corrupted data to clean data (denoising) is more effective than using mathematically robust loss functions like the Tukey penalty. Neural networks learn robustness more effectively through exposure to outlier examples.
  • Multi-scale Processing: Ablation studies confirmed that Stacked Hourglass modules significantly outperform standard feed-forward networks by allowing the model to "zoom out" and identify global structures.

Experimental Results

The proposed "FullNet" was evaluated against LSE, RANSAC, and Iteratively Re-weighted Least Squares (IRWLS) across varying outlier ratios.

  • 1D and 2D Regression: In extreme 50% outlier regimes, FullNet achieved a Mean Squared Error (MSE) of 0.968 for 1D regression, compared to RANSAC's 27.87. For 2D vector field regression (a 12-parameter motion model), FullNet outperformed RANSAC by nearly an order of magnitude (0.019 vs 0.093 error).
  • Video Stabilization: Applied to the KITTI dataset, the network successfully regressed dominant background camera motion from noisy optical flow maps, effectively ignoring structured outliers caused by moving foreground objects.

Conclusion and Future Work

This framework demonstrates that deep learning can effectively automate robust regression. While currently relying on classical optical flow for video tasks, future work involves integrating this robust regression network directly with deep optical flow models like FlowNet for a fully end-to-end trainable stabilization pipeline.

Summary updated

BibTeX
@misc{perezrua2018learning,
  author = {Juan-Manuel Pérez-Rúa and Tomás Crivelli and Patrick Bouthemy and Patrick Pérez},
  title = {{Learning how to be robust: Deep polynomial regression}},
  year = {2018},
  eprint = {1804.06504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.06504},
}
Figure