SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.03855 · 2024

MambaPEFT: Exploring Parameter-Efficient Fine-Tuning for Mamba

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 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/2411.03855.json · badge: /api/ran/2411.03855.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
sony/MambaPEFT canonical (classifier label)
classifier basis: census
3 ran · 4 no recorded run
FunctionStatusWhere it lives
forward_vimblock_peft Ran
ran; our contract draft was wrong, not the code
sony/MambaPEFT/vision/personal_lib/mmpretrain/models/peft/vim_peft_all.py
code served (permissive licence) · get_code("7f5a4d972fbdf561")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from typing import Optional

torch.manual_seed(0)

# Stand-in classes for norm layers
class RMSNorm(nn.Module):
    def __init__(self, dim, eps=1e-6):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(dim))
        self.bias = None
        self.eps = eps
    
    def forward(self, x):
        return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps) * self.weight

class LayerNorm(nn.Module):
    def __init__(self, dim, eps=1e-6):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(dim))
        self.bias = nn.Parameter(torch.zeros(dim))
        self.eps = eps
    
    def forward(self, x):
        return torch.nn.functional.layer_norm(x, (x.size(-1),), self.weight, self.bias, self.eps)

# Stand-in mixer module
class SimpleMixer(nn.Module):
    def forward(self, hidden_states, inference_params=None, **peft_kwargs):
        return hidden_states

# Stand-in drop_path
class DropPath(nn.Module):
    def __init__(self, drop_prob=0.0):
        super().__init__()
        self.drop_prob = drop_prob
    
    def forward(self, x):
        return x

# Main block module
class VimBlockPEFT(nn.Module):
    def __init__(self, hidden_dim=4, use_rms_norm=True, fused_add_norm=False, residual_in_fp32=False):
        super().__init__()
        self.fused_add_norm = fused_add_norm
        self.residual_in_fp32 = residual_in_fp32
        self.norm = RMSNorm(hidden_dim) if use_rms_norm else LayerNorm(hidden_dim)
        self.mixer = SimpleMixer()
        self.drop_path = DropPath(0.0)

# Create instance
hidden_dim = 4
batch_size = 2
seq_len = 3

block = VimBlockPEFT(hidden_dim=hidden_dim, use_rms_norm=True, fused_add_norm=False, residual_in_fp32=False)

# Create tensors
hidden_states = torch.randn(batch_size, seq_len, hidden_dim)
residual = torch.randn(batch_size, seq_len, hidden_dim)

ARGS = {
    "self": block,
    "hidden_states": hidden_states,
    "residual": residual,
    "inference_params": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_prompt Ran
ran; our contract draft was wrong, not the code
sony/MambaPEFT/language/commonsense_reasoning/finetune.py
code served (permissive licence) · get_code("56e674752db00649")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a dict with 'input', 'instruction', and 'output' keys
data_point = {
    'instruction': 'Translate the following text to French.',
    'input': 'Hello, how are you?',
    'output': 'Bonjour, comment allez-vous?'
}

ARGS = {
    'data_point': data_point
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
vssblock_forward Ran
ran; our contract draft was wrong, not the code
sony/MambaPEFT/vision/personal_lib/mmpretrain/models/peft/vmamba_peft_all.py
code served (permissive licence) · get_code("ef7026ee8b73635d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleSSMOp(nn.Module):
    def forward(self, x, **peft_kwargs):
        return x * 0.9

class SimpleNorm(nn.Module):
    def forward(self, x, **peft_kwargs):
        return x / (x.abs().mean() + 1e-6)

class SimpleNorm2(nn.Module):
    def forward(self, x):
        return x / (x.abs().mean() + 1e-6)

class SimpleMLP(nn.Module):
    def forward(self, x):
        return x * 0.8

class SimpleDropPath(nn.Module):
    def forward(self, x):
        return x

class VSSSBlock(nn.Module):
    def __init__(self, ssm_branch=True, mlp_branch=True, post_norm=True):
        super().__init__()
        self.ssm_branch = ssm_branch
        self.mlp_branch = mlp_branch
        self.post_norm = post_norm
        self.op = SimpleSSMOp()
        self.norm = SimpleNorm()
        self.norm2 = SimpleNorm2()
        self.mlp = SimpleMLP()
        self.drop_path = SimpleDropPath()

    def forward(self, input: torch.Tensor, **peft_kwargs):
        x = input
        if self.ssm_branch:
            if self.post_norm:
                x = x + self.drop_path(self.norm(self.op(x, **peft_kwargs)))
            else:
                x = x + self.drop_path(self.op(self.norm(x), **peft_kwargs))
        if self.mlp_branch:
            if self.post_norm:
                x = x + self.drop_path(self.norm2(self.mlp(x)))
            else:
                x = x + self.drop_path(self.mlp(self.norm2(x)))
        return x

block = VSSSBlock(ssm_branch=True, mlp_branch=True, post_norm=True)
input_tensor = torch.randn(2, 4)

ARGS = {
    "self": block,
    "input": input_tensor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_block Not yet run
unverified (harvested, no recorded run)
sony/MambaPEFT/vision/personal_lib/mmpretrain/models/backbones/vim.py
code served (permissive licence) · get_code("ac6e2e3d7b4fe003")
How it ran

no invocation recorded.

forward_features_visionmamba_peft Not yet run
unverified (harvested, no recorded run)
sony/MambaPEFT/vision/personal_lib/mmpretrain/models/peft/vim_peft_all.py
code served (permissive licence) · get_code("38dd3347bffbf9be")
How it ran

no invocation recorded.

forward_mamba_peft Not yet run
unverified (harvested, no recorded run)
sony/MambaPEFT/vision/personal_lib/mmpretrain/models/peft/vim_peft_all.py
code served (permissive licence) · get_code("5ab86311e9a660c2")
How it ran

no invocation recorded.

forwardv2_peft Not yet run
unverified (harvested, no recorded run)
sony/MambaPEFT/vision/personal_lib/mmpretrain/models/peft/vmamba_peft_all.py
code served (permissive licence) · get_code("e5a8e65efe137e3f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 6 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
generate_prompt 15 other papers
11 dated earlier, 1 the same month, 2 later, 1 same year, order not determinable
2304.01933 (2023-04)
LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models
2307.08072 (2023-07)
Do Emergent Abilities Exist in Quantized Large Language Models: An Empirical Study
2024.naacl-long.132 (2024 (year only))
LLM-based Medical Assistant Personalization with Short-and Long-Term Memory Coordination
and 12 more not named here

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

An ecosystem of Transformer-based models has been established by building large models with extensive data. Parameter-efficient fine-tuning (PEFT) is a crucial technology for deploying these models to downstream tasks with minimal cost while achieving effective performance. Recently, Mamba, a State Space Model (SSM)-based model, has attracted attention as a potential alternative to Transformers. While many large-scale Mamba-based models have been proposed, efficiently adapting pre-trained Mamba-based models to downstream tasks remains unexplored. In this paper, we conduct an exploratory analysis of PEFT methods for Mamba. We investigate the effectiveness of existing PEFT methods for Transformers when applied to Mamba. We also modify these methods to better align with the Mamba architecture. Additionally, we propose new Mamba-specific PEFT methods that leverage the distinctive structure of Mamba. Our experiments indicate that PEFT performs more effectively for Mamba than Transformers. Lastly, we demonstrate how to effectively combine multiple PEFT methods and provide a framework that outperforms previous works. To ensure reproducibility, we will release the code after publication.

For agents

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

get_harvested_code_for_paper("2411.03855")
get_code_for_paper("2411.03855")
have("2411.03855")

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

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

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

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

Connect an agent — have() is free.