MambaRaw: Selective State Space Modeling for Efficient 4K Raw Image Reconstruction

Peize Li, Fanhu Zeng, Tongda Xu, Xingguo Xu, Xinjie Zhang +3 more
6/23/2026
1 citation
cs.CV
state-space-mamba

Official code: Peizeli1/MambaRaw (6 stars, Python, last commit 2026-10-20).

Abstract

In-camera JPEG previews are ubiquitous in raw image formats and provide an sRGB reference at negligible storage cost. Although existing metadata-based reconstruction frameworks can exploit this side information when recovering raw images, their context models often become computationally expensive especially at high resolution, eg, 4K raw image, given that attention mechanisms scale quadratically with feature maps, hindering its practical application.

Show full abstract

To address these limitations, we propose MambaRaw, a JPEG-conditioned metadata-based raw image reconstruction framework that uses State Space Models (SSMs) to estimate entropy parameters efficiently. Our key contribution comprises a Spatial-Energy Coupled Context Modeling mechanism with two lightweight modules: (1) TileMambaBlock, which performs Mamba-style selective scanning only on information-dense tiles to improve the efficiency; and (2) Energy-Aware Refinement (EAR), an identity-initialized residual module that enhance feature representation to match the long-tail energy distribution of raw signals. Extensive experiments on three camera datasets (Sony, Olympus, Samsung) show consistent improvements over strong metadata-based baselines and set a new state of the art for JPEG-guided raw reconstruction with great efficiency. Notably, at low metadata bitrates, MambaRaw increases PSNR by 1.2--1.4 dB and reduces end-to-end coding latency by about 9%. Code is released at https://github.com/Peizeli1/MambaRaw.

View on arXivView PDF

Code Implementations(1)

Peizeli1/MambaRawOfficial100%

[ECCV 2026]MambaRaw: Selective State Space Modeling for Efficient 4K RAW Image Reconstruction

60PythonJun 23, 20261 months ago

Similar Papers

Cite this paper

@article{li2026mambaraw,
  title  = {MambaRaw: Selective State Space Modeling for Efficient 4K Raw Image Reconstruction},
  author = {Peize Li and Fanhu Zeng and Tongda Xu and Xingguo Xu and Xinjie Zhang and Xingtong Ge and Haotian Zhang and Yan Wang},
  year   = {2026},
  eprint = {2606.24479},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.24479v1},
  journal = {ECCV 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.24479.svg)](https://codeofpaper.com/paper/2606.24479)

Discussion