Adaptive Camera Sensor for Vision Models

Eunsu Baek, Sung-hwan Han, Taesik Gong, Hyung-Sin Kim

Instead of retraining a "brain" (the neural network) to handle blurry or poorly lit images, why not just give it "glasses"? Lens is a novel, real-time camera sensor control framework that dynamically adjusts parameters like ISO and shutter speed to capture the most "recognizable" images for a specific vision model. By optimizing the input at the hardware level, Lens boosts accuracy by up to 47% without requiring any model retraining.

The Challenge of Domain Shift

Deep learning models are notoriously brittle when faced with domain shift—the gap between clean training data and the messy, unpredictable real world. When a robot or self-driving car encounters glare, low light, or motion blur, model performance plummets.

Current solutions usually fall into two computationally expensive camps: Domain Generalization (training on massive, diverse datasets) or Test-Time Adaptation (tweaking the model's weights on the fly). Both are often impractical for resource-constrained edge devices.

Furthermore, we have largely ignored a simpler solution: the camera itself. Traditional camera "Auto-Exposure" is optimized for human eyes. However, what a human considers a "good" photo isn't necessarily what a ResNet or a Vision Transformer needs to see to make an accurate prediction.

Introducing Lens and VisiT

The authors propose Lens, a post-hoc, model-agnostic system that treats the camera sensor as a tunable component of the inference pipeline.

It consists of three main components working in a real-time feedback loop:

  1. VisiT (Vision Test for neural networks): This is a training-free quality indicator. Instead of using complex Out-of-Distribution (OOD) detection, Lens simply uses the model’s own softmax confidence score. If the model is highly confident about a prediction on a specific frame, that frame is deemed "high quality" from the model's perspective.
  2. CSA (Candidate Selection Algorithms): Taking dozens of photos with different settings to find the "best" one would be too slow. CSAs intelligently pick a small subset of sensor configurations to test, balancing the search for accuracy with the need for low latency.
  3. Real-Time Feedback Loop: Lens captures a few candidate images, runs a quick forward pass to get confidence scores via VisiT, and then selects the best image for the final prediction.

Datasets and Evaluation

The researchers evaluated Lens on two primary benchmarks:

  • ImageNet-ES: An existing dataset focused on luminous objects (like screens).
  • ImageNet-ES Diverse (New): Introduced in this paper, this dataset contains 192,000 images of non-luminous, physical objects captured under varying sensor settings (ISO, shutter speed, aperture) and lighting conditions. It provides a rigorous test for real-world "natural" perturbations.

Key Insights and Results

  • Massive Accuracy Gains: Lens improved model accuracy by up to 47.58% compared to standard auto-exposure and random sensor settings.
  • Model Vision != Human Vision: Qualitative results show that images Lens selects often look "wrong" to humans—they might be underexposed or strangely colored—but they contain the specific high-frequency features or contrasts that the neural network relies on for classification.
  • Sensor Control as a "Size Multiplier": One of the most striking findings is that a small model (like ResNet-18) equipped with Lens can actually outperform a much larger model (like ResNet-152) using standard auto-exposure. This suggests sensor control is a highly viable path for deploying lightweight models on edge hardware.
  • Efficiency: By using optimized Candidate Selection Algorithms (CSA), Lens can find optimal settings in just 0.16 seconds, making it fast enough for real-time robotics or mobile applications.
  • Outperforming TTA: Lens significantly outperformed state-of-the-art Test-Time Adaptation methods while avoiding the risk of "model collapse" that can happen when updating weights on noisy data. Furthermore, Lens acts as a force multiplier; when combined with existing techniques like AugMix, performance gains are even higher.

Limitations and Future Work

While highly effective, Lens relies heavily on model confidence scores. If a model is poorly calibrated (i.e., it is "confident but wrong"), VisiT might select suboptimal images.

Future work will explore using Reinforcement Learning (RL) to more efficiently navigate the massive space of possible camera settings. Additionally, while the current study uses a controlled testbed, adapting Lens for highly dynamic, fast-moving platforms—where the scene changes faster than the sensor can be adjusted—remains an exciting frontier for hardware integration.

Summary updated

BibTeX
@inproceedings{baek2025adaptive,
  author = {Eunsu Baek and Sung-hwan Han and Taesik Gong and Hyung-Sin Kim},
  title = {{Adaptive Camera Sensor for Vision Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=He2FGdmsas},
}
Figure