Abstract
Existing learning-based methods effectively reconstruct HDR images from multi-exposure LDR inputs with extended dynamic range and improved detail, but they rely more on empirical design rather than theoretical foundation, which can impact their reliability. To address these limitations, we propose the cross-iterative Alignment and Fusion deep Unfolding Network (AFUNet), where HDR reconstruction is systematically decoupled into two interleaved subtasks -- alignment and fusion -- optimized through alternating refinement, achieving synergy between the two subtasks to enhance the overall performance. Our method formulates multi-exposure HDR reconstruction from a Maximum A Posteriori (MAP) estimation perspective, explicitly incorporating spatial correspondence priors across LDR images and naturally bridging the alignment and fusion subproblems through joint constraints. Building on the mathematical foundation, we reimagine traditional iterative optimization through unfolding -- transforming the conventional solution process into an end-to-end trainable AFUNet with carefully designed modules that work progressively. Specifically, each iteration of AFUNet incorporates an Alignment-Fusion Module (AFM) that alternates between a Spatial Alignment Module (SAM) for alignment and a Channel Fusion Module (CFM) for adaptive feature fusion, progressively bridging misaligned content and exposure discrepancies. Extensive qualitative and quantitative evaluations demonstrate AFUNet's superior performance, consistently surpassing state-of-the-art methods.
Introduction
High Dynamic Range (HDR) imaging typically involves merging multiple Low Dynamic Range (LDR) images taken at different exposures. However, real-world scenes are rarely static. When objects move or the camera shakes between shots, the resulting HDR image often suffers from "ghosting" artifacts—blurry, translucent artifacts where objects appear in multiple positions.
Existing deep learning solutions generally fall into two camps:
- Alignment-Fusion: These methods align images first (often using optical flow) and then fuse them. This can lose critical information if the initial alignment is slightly off.
- Fusion-Only: These skip explicit alignment and hope a complex neural network can learn to ignore misalignments. This often fails in scenes with large motions.
Furthermore, many current models are "black boxes" designed empirically. AFUNet addresses these limitations by treating HDR reconstruction as a Maximum A Posteriori (MAP) estimation problem, providing a solid mathematical foundation for the architecture.
The AFUNet Architecture
Instead of a standard "black box" architecture, AFUNet "unfolds" a traditional iterative optimization algorithm into a neural network. The reconstruction process is systematically decoupled into two interleaved subtasks: alignment and fusion.
The network consists of an initialization phase, followed by $T$ stages of HDR Feature Reconstruction, and a final HDR Image Reconstruction phase. Each stage, termed an Alignment-Fusion Module (AFM), contains:
- Feature Alignment Subproblem: Uses a Spatial Alignment Module (SAM). It employs window-based cross-attention to query spatial information from the reference image, ensuring non-reference frames are structurally aligned.
- Feature Fusion Subproblem: Uses a Channel Fusion Module (CFM) and a Data Consistency Module (DCM). The CFM uses channel-attention Transformers to adaptively merge features, while the DCM—derived from a closed-form mathematical solution—ensures the reconstructed features remain consistent with the input LDR data.
The Synergy of Deep Unfolding
Traditional methods treat alignment and fusion as a linear pipeline. AFUNet treats them as a cycle. Better alignment leads to better fusion, and the refined fused features then help the next stage achieve even more precise alignment. By stacking these AFMs over $T$ stages (typically $T=4$), the network progressively refines the image.
Every major component of the network (SAM, CFM, DCM) corresponds to a specific term in the MAP optimization framework. This theory-grounded design makes the architecture more interpretable than purely empirical designs. For instance, by focusing on local spatial information during alignment via window-based cross-attention, the model avoids the pitfalls of global transformations like warping, which often struggle with complex, non-rigid foreground motion.
Experimental Evaluation
The model was trained and evaluated on widely recognized benchmarks, including the Kalantari, Hu, and Tel datasets, with qualitative testing on the Tursun dataset.
AFUNet consistently outperformed state-of-the-art (SOTA) methods across all quantitative metrics (PSNR and SSIM) in both the linear and tone-mapped domains. On the Kalantari dataset, AFUNet achieved a PSNR-µ of 44.91 dB, surpassing previous leaders like LFDiff (44.76 dB) and SCTNet (44.43 dB).
Qualitatively, AFUNet shows a marked reduction in ghosting artifacts. In challenging patches—such as moving tree branches or walking pedestrians—AFUNet retains sharper edges and more realistic textures where other SOTA methods produce "halos" or blurred details. Ablation studies confirmed that the 4-stage "unfolding" provides an optimal balance between performance and computational efficiency.
Conclusion
AFUNet introduces a robust deep unfolding paradigm for HDR reconstruction, achieving cross-iterative synergy between alignment and fusion. While the multi-stage nature increases computational complexity compared to single-pass models, the gains in reliability and visual quality are significant. Future work may extend this unfolding paradigm to other multi-frame restoration tasks, such as video super-resolution or burst denoising, where alignment-fusion synergy is equally critical.
Code available at: https://github.com/eezkni/AFUNet
Summary updated