SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.07794 · 2024

DGMamba: Domain Generalization via Generalized State Space Model

arXiv · PDF · Open in the Atlas

Code that ran

15 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.07794.json · badge: /api/ran/2404.07794.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
longshaocong/dgmamba canonical (classifier label)
classifier basis: census
15 ran · 4 no recorded run
FunctionStatusWhere it lives
DG_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
longshaocong/dgmamba/utils/dgutil.py
pointer only (licence: NONE) · get_code("662cf8d97140cda9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

auto_resume_helper Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("0c32459bef92ff8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_optimizer Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/optimizer.py
pointer only (licence: NONE) · get_code("a18d89a1835d386e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_scheduler Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/lr_scheduler.py
pointer only (licence: NONE) · get_code("016895042cc7e7ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_keywords_in_name Ran
ran, violated the contract we drafted
longshaocong/dgmamba/utils/optimizer.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("b0a5beb34716d5a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_logger Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/logger.py
pointer only (licence: NONE); the stored copy get_code serves, from ghrua/seqpe, is pointer only (licence: NONE) · get_code("80450600f7f09b0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flops_selective_scan_fn Ran
ran, honoured the contract we drafted
longshaocong/dgmamba/models/DGMamba.py
pointer only (licence: NONE); the stored copy get_code serves, from chenxi52/SfMamba, is pointer only (licence: NONE) · get_code("9a3adc8e6de35ac1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flops_selective_scan_ref Ran
ran, honoured the contract we drafted
longshaocong/dgmamba/models/DGMamba.py
pointer only (licence: NONE) · get_code("70da3e1d0057bfd4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_grad_norm Ran
ran, honoured the contract we drafted
longshaocong/dgmamba/utils/utils.py
pointer only (licence: NONE) · get_code("eec1e7cba51d5e8e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

image_train Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/datautil/imgdata/util.py
pointer only (licence: NONE) · get_code("a58ba2e71a236bcb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

img_param_init Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/dgutil.py
pointer only (licence: NONE) · get_code("052a1046098cf3e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

l_loader Ran
ran, honoured the contract we drafted
longshaocong/dgmamba/datautil/imgdata/util.py
pointer only (licence: NONE) · get_code("a6c359ef4eaf2794")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rgb_loader Ran
ran, honoured the contract we drafted
longshaocong/dgmamba/datautil/imgdata/util.py
pointer only (licence: NONE) · get_code("cdf44342cf572e6d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

set_weight_decay Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/optimizer.py
pointer only (licence: NONE) · get_code("2d5473f673967c35")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train_valid_target_eval_names Ran
ran; our contract draft was wrong, not the code
longshaocong/dgmamba/utils/dgutil.py
pointer only (licence: NONE) · get_code("bba624070b5f54a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cross_selective_scan Not yet run
unverified (harvested, no recorded run)
longshaocong/dgmamba/models/DGMamba.py
pointer only (licence: NONE) · get_code("18cfe27d0fac09c9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
longshaocong/dgmamba/config.py
pointer only (licence: NONE) · get_code("794b88ac04e1b5f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_checkpoint_ema Not yet run
unverified (harvested, no recorded run)
longshaocong/dgmamba/utils/utils.py
pointer only (licence: NONE) · get_code("48adeb55bee17fb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

update_config Not yet run
unverified (harvested, no recorded run)
longshaocong/dgmamba/config.py
pointer only (licence: NONE) · get_code("f7288a06dd5000ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, longshaocong/dgmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 11 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 3 the same month, 11 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_config 51 other papers
29 dated earlier, 1 the same month, 17 later, 4 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 48 more not named here
create_logger 35 other papers
22 dated earlier, 11 later, 2 same year, order not determinable
2104.13840 (2021-04)
Twins: Revisiting the Design of Spatial Attention in Vision Transformers
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 32 more not named here
check_keywords_in_name 31 other papers
18 dated earlier, 11 later, 2 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 28 more not named here
get_grad_norm 23 other papers
10 dated earlier, 11 later, 2 same year, order not determinable
1910.13616 (2019-10)
Multimodal Model-Agnostic Meta-Learning via Task-Aware Modulation
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
and 20 more not named here
auto_resume_helper 20 other papers
11 dated earlier, 7 later, 2 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.04263 (2021-06)
On the Connection between Local Attention and Dynamic Depth-wise Convolution
and 17 more not named here
rgb_loader 19 other papers
18 dated earlier, 1 later · 6 only as an assembly brick
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
and 16 more not named here
l_loader 17 other papers
16 dated earlier, 1 later · 5 only as an assembly brick
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
and 14 more not named here
flops_selective_scan_fn 12 other papers
3 dated earlier, 2 the same month, 7 later
2401.10166 (2024-01)
VMamba: Visual State Space Model
2402.15648 (2024-02)
MambaIR: A Simple Baseline for Image Restoration with State-Space Model
2403.17839 (2024-03)
ReMamber: Referring Image Segmentation with Mamba Twister
and 9 more not named here
flops_selective_scan_ref 9 other papers
4 dated earlier, 1 the same month, 4 later
2401.10166 (2024-01)
VMamba: Visual State Space Model
2402.15648 (2024-02)
MambaIR: A Simple Baseline for Image Restoration with State-Space Model
2403.09977 (2024-03)
EfficientVMamba: Atrous Selective Scan for Light Weight Visual Mamba
and 6 more not named here
build_scheduler 3 other papers
2 dated earlier, 1 later
ijcai2023_0504 (2023 (year only))
CLE-ViT: Contrastive Learning Encoded Transformer for Ultra-Fine-Grained Visual Categorization
2403.20320 (2024-03)
MTLoRA: A Low-Rank Adaptation Approach for Efficient Multi-Task Learning
2406.08773 (2024-06)
DenoiseRep: Denoising Model for Representation Learning
set_weight_decay 2 other papers
2 later
2410.15091 (2024-10)
Spatial-Mamba: Effective Visual State Space Models via Structure-Aware State Fusion

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Domain generalization~(DG) aims at solving distribution shift problems in various scenes. Existing approaches are based on Convolution Neural Networks (CNNs) or Vision Transformers (ViTs), which suffer from limited receptive fields or quadratic complexities issues. Mamba, as an emerging state space model (SSM), possesses superior linear complexity and global receptive fields. Despite this, it can hardly be applied to DG to address distribution shifts, due to the hidden state issues and inappropriate scan mechanisms. In this paper, we propose a novel framework for DG, named DGMamba, that excels in strong generalizability toward unseen domains and meanwhile has the advantages of global receptive fields, and efficient linear complexity. Our DGMamba compromises two core components: Hidden State Suppressing~(HSS) and Semantic-aware Patch refining~(SPR). In particular, HSS is introduced to mitigate the influence of hidden states associated with domain-specific features during output prediction. SPR strives to encourage the model to concentrate more on objects rather than context, consisting of two designs: Prior-Free Scanning~(PFS), and Domain Context Interchange~(DCI). Concretely, PFS aims to shuffle the non-semantic patches within images, creating more flexible and effective sequences from images, and DCI is designed to regularize Mamba with the combination of mismatched non-semantic and semantic information by fusing patches among domains. Extensive experiments on five commonly used DG benchmarks demonstrate that the proposed DGMamba achieves remarkably superior results to state-of-the-art models. The code will be made publicly available at https://github.com/longshaocong/DGMamba.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.07794")
get_code_for_paper("2404.07794")
have("2404.07794")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.07794.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.07794.svg)](https://syntology.ai/paper/2404.07794)

Connect an agent — have() is free.