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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 19 code samples harvested from 1 repository linked to this paper: 17 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 4 honoured, 0 violated, 0 with no contract checked; 13 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 10 where our contract draft was wrong; 3 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 19 samples from 1 repository, 17 ran (4 with no instrument failure; 13 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 2 of the 17 samples that ran have no recorded date.

lowlevelai/ecmamba officialmentioned in papermentioned on GitHubpytorchApache-2.0Syntology: 19 samples, 17 ran (13 instrument-failed) · 2 unverified 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: 17 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 4 honoured, 0 violated, 0 with no contract checked; 13 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · honoured contract
10ran · our draft was wrong
3ran; the contract check could not run
2unverified

Licence: 6 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. For 6 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. 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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

lowlevelai/ecmamba official repository 19 samples, 17 ran (13 instrument-failed) · 2 unverified
PSNR in 28 papers
census: 4 implementations from 5 papers, 3 distinct outputs across 2 buckets, one shared input per bucket
utils.py ran · honoured contract fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · 8eccacd101833667 · report fixture: signature img1:ndarray/3/float, img2:ndarray/3/float · returned float · level recorded 2026-09-25
build_norm_layer in 14 papers basicsr/archs/ecmambaincontext_arch.py ran · our draft was wrong Apache-2.0 (permissive) · e7f1a63c2e99c70f · report fixture: signature dim:int/0/int, norm_layer:str/0/str, in_format:str/0/str, out_format:str/0/str, eps:float/0/float · returned Sequential · level recorded 2026-09-22
calculate_psnr in 51 papers utils.py ran · our draft was wrong Apache-2.0 (permissive) here; the stored copy is pointer only · d292dd965ab59629 · report fixture: signature img1:ndarray/2/int, img2:ndarray/2/int, border:int/0/int · returned float · level recorded 2026-09-24
calculate_ssim in 24 papers utils.py ran · our draft was wrong Apache-2.0 (permissive) here; the stored copy is pointer only · a05b184dc6c264a0 · report fixture: signature img1:ndarray/3/int, img2:ndarray/3/int, border:int/0/int · returned float64 · level recorded 2026-09-24
create_window in 82 papers basicsr/losses/pytorch_ssim.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 6154e3744ece5728 · report fixture: signature window_size:int/0/int, channel:int/0/int · returned Tensor · level recorded 2026-09-22
create_window in 82 papers basicsr/losses/onerestore_loss.py ran · honoured contract fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · 443341084ce76798 · report fixture: signature window_size:int/0/int, channel:int/0/int · returned Tensor · level recorded 2026-09-25
flow_warp in 48 papers basicsr/archs/arch_util.py ran · our draft was wrong Apache-2.0 (permissive) · ef9faf68f492a375 · report fixture: signature x:Tensor/4/float, flow:Tensor/4/float, interp_mode:str/0/str, padding_mode:str/0/str, align_corners:bool/0/bool · returned Tensor · level recorded 2026-09-22
gaussian in 218 papers
census: 8 implementations from 9 papers, 8 distinct outputs across 4 buckets, one shared input per bucket
basicsr/losses/onerestore_loss.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · c56b7ef16f309a45 · report fixture: signature window_size:int/0/int, sigma:float/0/float · returned Tensor · level recorded, date not recorded
get_position_from_periods in 59 papers basicsr/models/lr_scheduler.py ran; the contract check could not run (RAISES) fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · cd569444547de84f · report fixture: signature iteration:int/0/int, cumulative_period:list/1/int · returned int · level recorded 2026-09-24
index_reverse basicsr/archs/ecmambaincontext_arch.py ran · our draft was wrong Apache-2.0 (permissive) · 631a9cdc62e42ba1 · report fixture: signature index:Tensor/2/int · returned Tensor · level recorded 2026-09-22
make_layer in 76 papers basicsr/archs/arch_util.py ran · our draft was wrong Apache-2.0 (permissive) · 96ad5dc9ca239aec · report fixture: signature basic_block:callable/0/?, num_basic_block:int/0/int, in_channels:int/0/int, out_channels:int/0/int · returned Sequential · level recorded 2026-09-22
reduce_loss in 75 papers basicsr/losses/loss_util.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · a648a03a952822c0 · report fixture: signature loss:Tensor/2/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-26
resize_flow in 28 papers basicsr/archs/arch_util.py ran · our draft was wrong Apache-2.0 (permissive) here; the stored copy is pointer only · 5a1d8458dc7077a6 · report fixture: signature flow:Tensor/4/float, size_type:str/0/str, sizes:list/1/float, interp_mode:str/0/str, align_corners:bool/0/bool · returned Tensor · level recorded 2026-09-24
rgb test_lol.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 4972b6068f4eb0c6 · report fixture: signature t:Tensor/4/float · returned ndarray · level recorded, date not recorded
ssim in 112 papers basicsr/losses/pytorch_ssim.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 9151c793f90473f0 · report fixture: signature img1:Tensor/4/float, img2:Tensor/4/float, window_size:int/0/int, size_average:bool/0/bool · returned Tensor · level recorded 2026-09-26
trunc_normal_ in 154 papers
census: 37 implementations from 54 papers, 4 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
basicsr/archs/ecmambaincontext_arch.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant Apache-2.0 (permissive) · c76d18678f19d332 · report fixture: signature tensor:Tensor/2/float, mean:float/0/float, std:float/0/float, a:float/0/float, b:float/0/float · returned Tensor · level recorded 2026-09-22
weight_reduce_loss in 61 papers basicsr/losses/loss_util.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 1ba39317ea81871a · report fixture: signature loss:Tensor/2/float, weight:Tensor/2/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-26
data_process in 6 papers basicsr/losses/onerestore_loss.py unverified Apache-2.0 (permissive) · 7e067489302d7df6 · report
weighted_loss in 53 papers basicsr/losses/loss_util.py 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