arXiv:2610.28004cs.CVOct 2026

Manuscript Offprint

arXiv:2610.28004

Differentiable Task-Driven Coded Aperture Camera Design with 3D Gaussian Scene Representations

Chengyang Yan, Donald G. Dansereau

Abstract

Camera design heavily influences perception task performance, yet cameras are typically designed by domain experts through costly experimentation, in isolation from the tasks they serve. Existing joint-design methods either rely on differentiable simulation limited to pre-captured 2D images, restricting them to optics or image-processing pipeline design, or use non-differentiable camera simulators optimised with derivative-free or reinforcement-learning methods that scale poorly with the number of design parameters. We present a differentiable framework for jointly designing complex camera systems and downstream perception tasks. We use it to design two coded-aperture depth-from-defocus cameras, a monocular and a stereo configuration, by jointly optimising the coded aperture mask, camera parameters, and a depth estimation network end-to-end. Our framework represents scenes with 3D Gaussian Splatting reconstructed from real-world captures, providing a differentiable image formation process for gradient-based optimisation over design spaces intractable for prior differentiable approaches. Results demonstrate that our differentiable method improves over existing coded-aperture design and non-differentiable camera design baselines, offering a step forward in automated and principled camera design for autonomous systems.

1. Introduction

The quality of camera captures directly governs the performance of downstream perception tasks, yet different autonomous systems require different camera designs to suit their tasks: autonomous vehicles need wide field of view (FoV) and high dynamic range, medical imaging needs fine resolution and colour fidelity, and robotics needs reliable depth and colour sensing. Hence, cameras should be designed in a task-specific manner.

Many works jointly optimise imaging systems and per-

Figure

Figure 1. We introduce a differentiable method that jointly optimises camera parameters and perception tasks, using 3DGS scenes reconstructed from real-world captures and a coded aperture simulation modelling depth-dependent optical blur. Camera parameters and the perception network are jointly updated via gradient-based optimisation of the task loss (red arrows), spanning geometric parameters (FoV, pixel count, multi-camera configurations) and high-dimensional optical parameters (coded aperture mask).

ception tasks via differentiable simulation and gradient-based optimisers [6, 8, 12, 16, 33, 37, 45]. However, their reliance on pre-captured 2D image datasets prevents generalisation to broader design problems such as FOV, resolution, multi-camera configurations, or unconventional architectures, limiting them to designing parts of the camera system (e.g., optics or the image signal processing pipeline) rather than full camera systems.

Other works design full camera systems using 3D simulation environments, but treat the simulator as a non-differentiable black box, relying on reinforcement-learning [20] or derivative-free [35, 43, 44] optimisers that ignore gradient information and must optimise for long iterations. This becomes prohibitively inefficient as the number of design parameters grows, particularly for high-dimensional parameters such as a coded aperture mask.

In this work, we propose a differentiable method for jointly designing complex camera systems and downstream perception tasks (Figure 1), using 3D Gaussian Splatting (3DGS) [18] for scene representation and differentiable im-age formation. This enables gradient-based optimisation of optics, sensors, and placement while retaining the capacity to model complex, unconventional camera systems beyond the reach of prior differentiable methods. Since 3DGS scenes can be reconstructed from real-world captures, our method trains on both rendered and captured data; discrete parameters such as the coded aperture mask and sensor selection are optimised via a continuous-relaxation surrogate gradient. We demonstrate scalability to high-dimensional design spaces by jointly optimising a coded aperture mask with the remaining camera parameters and a depth-from-defocus perception task, for both single-camera and stereo configurations, analysing the resulting design trade-offs, an analysis made possible by our 3DGS-based representation and largely overlooked in prior coded aperture work. In summary, our contributions are:

• We introduce a differentiable framework that jointly optimises camera systems and their perception networks using 3DGS scenes reconstructed from real-world captures.

• We use this framework to design both monocular and stereo coded aperture cameras, via a depth-from-defocus network augmented with a frequency injection module and extended to the stereo setup.

• We systematically compare against existing camera design approaches and demonstrate significant improvements (e.g., up to 65% lower all-in-focus (AiF) LPIPS and 13% lower depth RMSE compared to the strongest baseline in the monocular setup), and analyse the design trade-offs between camera parameters, aperture masks, and task performance.

This work provides a unified, differentiable framework that bridges scene representation, image formation, and perception, enabling systematic study of how camera design choices affect downstream task performance.

References (46)