NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Spatially-Varying Gain and Binning

Anqi Yang, Eunhee Kang, Wei Chen, Hyong-Euk Lee, Aswin C. SankaranarayananarXiv 2025 · DOI

Abstract

Traditional image sensors typically employ uniform gain and binning settings across the entire pixel array, forcing a compromise between resolution and noise in high-contrast scenes. This paper presents a novel approach to image sensor readout that adapts gain (ISO) and pixel binning spatially based on local scene brightness. By breaking the "one-size-fits-all" paradigm, this method expands a sensor's dynamic range by an order of magnitude and optimizes the trade-off between resolution and noise, enabling the recovery of fine details in dark regions without saturating highlights.

Introduction

In modern image sensor design, there is a fundamental conflict between resolution and noise. As pixel density increases, individual pixels become smaller and collect less light, leading to significant noise in dark regions. Photographers currently manage this using two primary controls: Gain (ISO), which amplifies the signal but risks saturation, and Binning, which combines neighboring pixels to increase the signal-to-noise ratio (SNR) at the cost of spatial resolution.

The core limitation is that these settings are typically applied globally. In high-contrast scenes—such as a dark interior with a bright window—a global setting inevitably results in either a noisy interior or a blown-out window. This research proposes making these controls spatially varying, allowing different regions or even individual pixels to receive optimized treatment.

Methods

Spatially-Varying Readout Pipeline

The proposed system modifies the standard CMOS readout pipeline to include spatially varying amplification and binning before analog-to-digital (A/D) conversion.

The proposed spatially-varying readout pipeline integrates adaptive amplification and binning into the sensor readout process.

Implementation Strategies

The authors explore two primary strategies for spatially-varying gain:

  1. Two-shot ROI-based: A low-resolution "snapshot" is captured first to create a brightness map. This map then guides the optimal gain settings for different Regions of Interest (ROIs) during the final high-resolution capture.
  2. Single-shot per-pixel: A hardware-level approach where gain for a specific pixel is determined dynamically based on the readout of its neighbors, leveraging the spatial smoothness of natural images.

The Binning Paradox

While binning is often viewed as a loss of resolution, the authors develop a theoretical framework showing that in extremely dim light, a binned "super-pixel" can actually resolve more detail than a small pixel. This occurs because the SNR boost from binning outweighs the loss of spatial sampling when noise is the primary bottleneck. The system applies heavy binning in shadows and no binning in highlights to maximize "effective resolution" across the frame.

Results and Discussion

Qualitative Performance

Real-world experiments using various camera systems (including Nikon Z5 and FLIR machine vision cameras) demonstrate that the proposed method can recover legible text and sharp textures in deep shadows that are completely obscured by noise in standard captures.

Qualitative comparison showing how spatially-varying gain and binning recover text and texture in dark regions compared to conventional constant-gain readout.

Quantitative Improvements

In simulations using high-quality HDR datasets, the "varying gain + varying binning" approach achieved a significantly improved LPIPS score of 0.71, compared to 1.08 for conventional sensors. Furthermore, the method proves highly effective when paired with modern AI denoisers like Restormer, as the cleaner initial signal allows the algorithms to recover contours and textures that would otherwise be lost to noise.

Conclusion

Spatially-varying readout strategies represent a significant step forward in sensor technology, particularly as pixel sizes continue to shrink toward the diffraction limit. While the per-pixel strategy requires modifications to CMOS circuitry, the ROI-based approach is partially implementable on existing hardware. Future work will focus on addressing motion artifacts in two-shot implementations and managing the electronic noise complexity of rapid gain switching during readout.

Summary updated

BibTeX
@misc{yang2025towards,
  author = {Anqi Yang and Eunhee Kang and Wei Chen and Hyong-Euk Lee and Aswin C. Sankaranarayanan},
  title = {{Towards Spatially-Varying Gain and Binning}},
  year = {2025},
  eprint = {2507.04190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.04190},
}
Figure