TL;DR
This paper introduces a novel "task-driven" lens design philosophy that optimizes camera optics specifically for downstream computer vision tasks by freezing a pretrained vision model and optimizing only the lens parameters. By transforming optical design into a stable, low-dimensional optimization problem, the method automatically designs simpler, cheaper lenses from scratch that consistently outperform complex, traditionally designed lenses on tasks like image classification and object detection.
What Problem Does This Paper Address?
Traditional camera lenses are designed to minimize optical aberrations and produce images that look sharp and pleasing to the human eye. However, this classical approach is entirely decoupled from how modern computer vision (CV) systems process images. To eliminate every bit of blur, traditional lenses require many complex, precision-manufactured glass elements, making them bulky and expensive—a major bottleneck for mobile devices and robotics.
While recent "end-to-end" co-design methods try to solve this by jointly optimizing both the lens and the neural network together, they suffer from severe training instability. Trying to simultaneously optimize a handful of physical lens parameters alongside millions or billions of network weights often leads to optimization oscillations, forcing researchers to rely on pre-optimized, expert-designed lenses as starting points.
Methods
The authors propose a new optimization paradigm: freeze the pretrained neural network and optimize only the lens parameters.
As shown in the pipeline above, the method utilizes a differentiable optical simulator (DeepLens) to perform ray tracing from scratch. The system calculates a Point Spread Function (PSF)—which characterizes how the lens blurs light—and convolves it with input images to simulate camera captures. These simulated images are fed into a frozen, well-trained vision network (like ResNet-50). The network's task loss is then backpropagated through the differentiable simulator to directly update the physical parameters of the lens (such as surface curvatures, thicknesses, and aspheric coefficients) using the Adam optimizer.
Datasets
The framework was trained and evaluated across several standard computer vision benchmarks to test its performance and generalizability:
- ImageNet: Used as the primary benchmark for evaluating image classification accuracy.
- COCO 2017: Used to evaluate downstream performance on object detection (via Faster R-CNN) and semantic segmentation (via Mask2Former).
- Flickr30k: Used to evaluate image-text retrieval performance using the CLIP model.
Key Insights and Ideas
- The Power of the "Long-Tailed" PSF: When hardware constraints prevent a lens from being perfectly sharp, classical design spreads the blur out evenly, creating a broad, soft spot. In contrast, the task-driven optimization converges on a unique "long-tailed" PSF. This profile features a highly concentrated, sharp central peak surrounded by a broad, faint halo.
- Machines Prefer Edges Over Contrast: While the long-tailed PSF introduces a global "haze" that reduces contrast for human viewers, its sharp central peak perfectly preserves high-frequency structural details like edges. Vision models are highly robust to haze but incredibly sensitive to lost edge information, making this trade-off ideal for computer vision.
- Cross-Task and Cross-Architecture Generalization: Lenses optimized using a simple network (like ResNet-50) or a simple task (like image classification) generalize remarkably well to much larger architectures (like Swin Transformers and ViTs) and more complex tasks (like image-text retrieval). This means engineers can design a lens using a lightweight model and safely deploy it in systems running massive foundation models.
Key Results
The optimized "TaskLenses" consistently outperformed classical "ImagingLenses" across the board, often achieving better results with fewer physical elements:
- Simpler Hardware, Better Accuracy: On ImageNet, a highly simplified 2-element TaskLens achieved 70.08% accuracy, outperforming all tested 3-element classical lenses (which maxed out at 69.92%). Similarly, a 3-element TaskLens (73.40%) beat a 4-element classical lens (72.27%).
- Exceptional Manufacturing Tolerance: Real-world manufacturing introduces alignment and fabrication errors. When random perturbations were simulated, the 3-element classical lens suffered a steep 3.77% drop in classification accuracy. The 3-element TaskLens, however, only dropped by a marginal 0.56%, demonstrating immense robustness to real-world factory defects.
Limitations and Future Work
Despite its success, the authors noted that as downstream vision models grow more massive and complex (such as the BLIP model used for vision-language tasks), the gradients propagated back through the network become increasingly noisy. This noise caused oscillatory behavior and convergence difficulties during lens optimization from scratch. Additionally, backpropagating gradients through giant foundation models demands substantial GPU memory.
The authors are currently working on simplifying the task-driven objective function to alleviate these computational demands while continuing to unlock the underlying principles of machine-optimal optical design.
Summary updated