Papers › ECMamba: Consolidating Selective State Space Model with Retinex Guidance for Efficient...

ECMamba: Consolidating Selective State Space Model with Retinex Guidance for Efficient Multiple Exposure Correction

28 Oct 2024arXiv:2410.21535archive 2025-07-28

Wei Dong, Han Zhou, Yulun Zhang, Xiaohong Liu, Jun Chen

Exposure Correction (EC) aims to recover proper exposure conditions for images captured under over-exposure or under-exposure scenarios. While existing deep learning models have shown promising results, few have fully embedded Retinex theory into their architecture, highlighting a gap in current methodologies. Additionally, the balance between high performance and efficiency remains an under-explored problem for exposure correction task. Inspired by Mamba which demonstrates powerful and highly efficient sequence modeling, we introduce a novel framework based on Mamba for Exposure Correction (ECMamba) with dual pathways, each dedicated to the restoration of reflectance and illumination map, respectively. Specifically, we firstly derive the Retinex theory and we train a Retinex estimator capable of mapping inputs into two intermediary spaces, each approximating the target reflectance and illumination map, respectively. This setup facilitates the refined restoration process of the subsequent Exposure Correction Mamba Module (ECMM). Moreover, we develop a novel 2D Selective State-space layer guided by Retinex information (Retinex-SS2D) as the core operator of ECMM. This architecture incorporates an innovative 2D scanning strategy based on deformable feature aggregation, thereby enhancing both efficiency and effectiveness. Extensive experiment results and comprehensive ablation studies demonstrate the outstanding performance and the importance of each component of our proposed ECMamba. Code is available at https://github.com/LowlevelAI/ECMamba.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.21535")

Code

Syntology Ran 12 of 19 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · honoured contract; 5 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lowlevelai/ecmamba officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 12 ran; 2 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
5ran · our draft was wrong
1ran · fixture could not drive it
4ran
7unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from LowlevelAI/ECMamba. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_norm_layer LowlevelAI/ECMamba/basicsr/archs/ecmambaincontext_arch.py official repository ran · our draft was wrong Apache-2.0 (permissive) · e7f1a63c2e99c70f · report
calculate_psnr LowlevelAI/ECMamba/utils.py official repository ran Apache-2.0 (permissive) · d292dd965ab59629 · report
calculate_ssim LowlevelAI/ECMamba/utils.py official repository ran Apache-2.0 (permissive) · a05b184dc6c264a0 · report
create_window LowlevelAI/ECMamba/basicsr/losses/pytorch_ssim.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 6154e3744ece5728 · report
flow_warp LowlevelAI/ECMamba/basicsr/archs/arch_util.py official repository ran · our draft was wrong Apache-2.0 (permissive) · ef9faf68f492a375 · report
gaussian LowlevelAI/ECMamba/basicsr/losses/onerestore_loss.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · c56b7ef16f309a45 · report
get_position_from_periods LowlevelAI/ECMamba/basicsr/models/lr_scheduler.py official repository ran fingerprinted Apache-2.0 (permissive) · cd569444547de84f · report
index_reverse LowlevelAI/ECMamba/basicsr/archs/ecmambaincontext_arch.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 631a9cdc62e42ba1 · report
make_layer LowlevelAI/ECMamba/basicsr/archs/arch_util.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 96ad5dc9ca239aec · report
resize_flow LowlevelAI/ECMamba/basicsr/archs/arch_util.py official repository ran Apache-2.0 (permissive) · 5a1d8458dc7077a6 · report
rgb LowLevelAI/ECMamba/test_lol.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 4972b6068f4eb0c6 · report
trunc_normal_ LowlevelAI/ECMamba/basicsr/archs/ecmambaincontext_arch.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · c76d18678f19d332 · report
PSNR LowlevelAI/ECMamba/utils.py official repository unverified Apache-2.0 (permissive) · 8eccacd101833667 · report
create_window LowlevelAI/ECMamba/basicsr/losses/onerestore_loss.py official repository unverified Apache-2.0 (permissive) · 443341084ce76798 · report
data_process LowlevelAI/ECMamba/basicsr/losses/onerestore_loss.py official repository unverified Apache-2.0 (permissive) · 7e067489302d7df6 · report
reduce_loss LowlevelAI/ECMamba/basicsr/losses/loss_util.py official repository unverified Apache-2.0 (permissive) · a648a03a952822c0 · report
ssim LowlevelAI/ECMamba/basicsr/losses/pytorch_ssim.py official repository unverified Apache-2.0 (permissive) · 9151c793f90473f0 · report
weight_reduce_loss LowlevelAI/ECMamba/basicsr/losses/loss_util.py official repository unverified Apache-2.0 (permissive) · 1ba39317ea81871a · report
weighted_loss LowlevelAI/ECMamba/basicsr/losses/loss_util.py official repository unverified Apache-2.0 (permissive) · cf63f8afc13f62a7 · report

Tasks

Exposure CorrectionMamba

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Mamba

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections