Abstract
This paper empirically quantifies the "sample complexity" required for neural networks (NNs) to match traditional, mathematically-derived algorithms. Through controlled experiments in 1D signal recovery and 2D geometric tasks, we find that for estimation, a single mathematical model is worth tens of thousands of training examples. For classification tasks, the "model premium" remains significant, typically in the thousands of samples.
Introduction
In the current "Deep Learning first" era, traditional signal processing methods—which rely on explicit mathematical models of data generation—are often overlooked. While it is widely accepted that neural networks require substantial data, the field lacks a precise understanding of the data volume needed to reach the performance of a "provably optimal" or "expert-engineered" classical solution. This study replaces common rules of thumb with empirical benchmarks, comparing NNs against classical methods like the Wiener filter and the Hough transform in mathematically precise environments.
Methods and Experimental Setup
The study evaluates various neural architectures against "expert" mathematical solutions across three distinct problems:
- 1D Signal Recovery: Deconvolving Gaussian signals using the Wiener Filter as the theoretically optimal linear recovery baseline.
- 2D Geometric Estimation: Estimating the radius and center of a disk in a noisy image using Pointflow, an elegant contour integrator requiring zero training.
- 2D Geometric Classification: Detecting a line in a random dot image using the Hough Transform.
Neural networks tested include custom CNNs for 1D data and AlexNet, VGG11, ResNet18, and Vision Transformers (ViT) for 2D data. Researchers tested three training regimes: From Scratch (SC), Transfer Learning (TL), and Finetuning (FT).
Datasets
The researchers utilized purely synthetic, mathematically generated datasets to ensure perfect ground truth and infinite sample availability. Training sets ranged from $N=10$ to $N=100,000$ samples.
- 1D Data: Gaussian signals ($D=32$) degraded by local smoothing convolution and i.i.d. noise.
- 2D Disk Data: $201 \times 201$ grayscale images of disks with randomized radii and positions, blurred with injected white noise.
- 2D Line Data: Binary random dot images where a "line" is defined by higher point density in a specific rectangular region.
Key Insights
The "Model Premium"
A mathematical model provides a massive head start. For estimation (regression) tasks, NNs typically required between 10,000 and 100,000 samples to match the precision of the model-based baseline.
Classification vs. Estimation
Classification is significantly "cheaper" for NNs than precise estimation. While NNs could outperform the Hough transform's classification accuracy with roughly 1,000 samples, they required over 10,000 samples to match its estimation precision for line parameters.
The Precision Trap
While NNs might match a model's Mean Squared Error with enough data, they often lack the extreme precision of classical methods. For instance, the Hough transform remains more precise at locating lines than NNs even at $N=100,000$, due to the different error distributions of the two approaches; NNs tend to have a more "progressive" error distribution compared to the highly accurate nature of the Hough transform.
Transfer Learning and Architecture
Surprisingly, pre-training on ImageNet (Transfer Learning) often performed poorly on these geometric tasks. The features learned from natural images did not necessarily translate to simple geometry, sometimes requiring more data to "unlearn" natural image priors. Furthermore, Vision Transformers (ViT) generally required significantly more data than CNNs to reach competitive performance levels.
Conclusion
This study quantifies the significant data gap between deep learning and model-based approaches. While NNs are indispensable for complex, non-linear problems where no clear mathematical model exists, classical methods remain superior in low-data regimes or when extreme precision is required. Future work will investigate how these data requirements scale with the dimensionality of the input.
Summary updated