SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.11831 · 2024

SSAMBA: Self-Supervised Audio Representation Learning with Mamba State Space Model

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2405.11831.json · badge: /api/ran/2405.11831.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
siavashshams/ssamba canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
get_sinusoid_encoding Ran
ran, honoured the contract we drafted
siavashshams/ssamba/src/models/both_models.py
code served (permissive licence) · get_code("ced6bc2bfdfe0059")
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 Tensor, ndim 3, dtype family float, shape (1, 8, 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 numpy as np

torch.manual_seed(0)

ARGS = {
    "n_position": 8,
    "d_hid": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (1, 8, 4) — shape (1, 8, 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
lookup_list Ran
ran; our contract draft was wrong, not the code
siavashshams/ssamba/src/dataloader.py
code served (permissive licence) · get_code("c15efdd12442aeb4")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 tempfile
import csv
import os

# Create a temporary CSV file with the required structure
temp_dir = tempfile.mkdtemp()
label_csv_path = os.path.join(temp_dir, "labels.csv")

# Write a sample CSV file with 'index' and 'display_name' columns
with open(label_csv_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['index', 'display_name'])
    writer.writeheader()
    writer.writerow({'index': '0', 'display_name': 'cat'})
    writer.writerow({'index': '1', 'display_name': 'dog'})
    writer.writerow({'index': '2', 'display_name': 'bird'})

# Define the arguments
ARGS = {
    'index_list': ['0', '1', '2'],
    'label_csv': label_csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
make_index_dict Ran
ran; our contract draft was wrong, not the code
siavashshams/ssamba/src/dataloader.py
code served (permissive licence) · get_code("a8fb3f62e2a901d7")
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 dict. 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 csv
import tempfile
import os

# Create a temporary CSV file with the expected structure
temp_dir = tempfile.mkdtemp()
label_csv_path = os.path.join(temp_dir, "labels.csv")

# Write a sample CSV file with 'mid' and 'index' columns
with open(label_csv_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['mid', 'index'])
    writer.writeheader()
    writer.writerow({'mid': 'mid_001', 'index': '0'})
    writer.writerow({'mid': 'mid_002', 'index': '1'})
    writer.writerow({'mid': 'mid_003', 'index': '2'})

ARGS = {
    'label_csv': label_csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
make_name_dict Ran
ran; our contract draft was wrong, not the code
siavashshams/ssamba/src/dataloader.py
code served (permissive licence) · get_code("cbf115a314bcd23e")
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 dict. 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 csv
import tempfile
import os

# Create a temporary CSV file with the expected structure
temp_dir = tempfile.mkdtemp()
label_csv_path = os.path.join(temp_dir, "labels.csv")

with open(label_csv_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['index', 'display_name'])
    writer.writeheader()
    writer.writerow({'index': '0', 'display_name': 'cat'})
    writer.writerow({'index': '1', 'display_name': 'dog'})
    writer.writerow({'index': '2', 'display_name': 'bird'})

ARGS = {
    'label_csv': label_csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
validate_ensemble Ran
ran; our contract draft was wrong, not the code
siavashshams/ssamba/src/traintest.py
code served (permissive licence) · get_code("ecb5ae1f3a358b96")
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 dict. 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 os
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure for the experiment
temp_dir = tempfile.mkdtemp()
exp_dir = temp_dir
predictions_dir = os.path.join(exp_dir, 'predictions')
os.makedirs(predictions_dir, exist_ok=True)

# Create dummy target data
target_data = np.array([[0.1, 0.2], [0.3, 0.4], [0.5, 0.6], [0.7, 0.8]])
np.savetxt(os.path.join(predictions_dir, 'target.csv'), target_data, delimiter=',')

# Create dummy predictions for epoch 1
predictions_1 = np.array([[0.15, 0.25], [0.35, 0.45], [0.55, 0.65], [0.75, 0.85]])
np.savetxt(os.path.join(predictions_dir, 'predictions_1.csv'), predictions_1, delimiter=',')

# Create dummy predictions for epoch 2
predictions_2 = np.array([[0.12, 0.22], [0.32, 0.42], [0.52, 0.62], [0.72, 0.82]])
np.savetxt(os.path.join(predictions_dir, 'predictions_2.csv'), predictions_2, delimiter=',')

# Create cumulative predictions for epoch 2
cum_predictions = predictions_1
np.savetxt(os.path.join(predictions_dir, 'cum_predictions.csv'), cum_predictions, delimiter=',')

# Define a minimal calculate_stats function that the main function calls
def calculate_stats(predictions, target):
    """Dummy stats calculation function"""
    return {
        'mse': float(np.mean((predictions - target) ** 2)),
        'mae': float(np.mean(np.abs(predictions - target)))
    }

# Make calculate_stats available in the global scope
import builtins
builtins.calculate_stats = calculate_stats

# Create a simple args class
class Args:
    def __init__(self, exp_dir):
        self.exp_dir = exp_dir

ARGS = {
    'args': Args(exp_dir),
    'epoch': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
validate Not yet run
unverified (harvested, no recorded run)
siavashshams/ssamba/src/traintest.py
code served (permissive licence) · get_code("47a913b63f142555")
How it ran

no invocation recorded.

validate_wa Not yet run
unverified (harvested, no recorded run)
siavashshams/ssamba/src/traintest.py
code served (permissive licence) · get_code("e181203f02ddc634")
How it ran

no invocation recorded.

validatemask Not yet run
unverified (harvested, no recorded run)
siavashshams/ssamba/src/traintest_mask.py
code served (permissive licence) · get_code("b48605e2b08b9ca3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 5 later) and 2 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_sinusoid_encoding 12 other papers
10 dated earlier, 1 later, 1 same year, order not determinable · 1 only as an assembly brick
2101.11986 (2021-01)
Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
2104.12099 (2021-04)
Visual Saliency Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 9 more not named here
lookup_list 7 other papers
5 dated earlier, 2 later
2110.09784 (2021-10)
SSAST: Self-Supervised Audio Spectrogram Transformer
2208.00061 (2022-08)
UAVM: Towards Unifying Audio and Visual Models
2307.03183 (2023-07)
Whisper-AT: Noise-Robust Automatic Speech Recognizers are Also Strong General Audio Event Taggers
and 4 more not named here
make_index_dict 7 other papers
5 dated earlier, 2 later
2110.09784 (2021-10)
SSAST: Self-Supervised Audio Spectrogram Transformer
2208.00061 (2022-08)
UAVM: Towards Unifying Audio and Visual Models
2307.03183 (2023-07)
Whisper-AT: Noise-Robust Automatic Speech Recognizers are Also Strong General Audio Event Taggers
and 4 more not named here
make_name_dict 7 other papers
5 dated earlier, 2 later
2110.09784 (2021-10)
SSAST: Self-Supervised Audio Spectrogram Transformer
2208.00061 (2022-08)
UAVM: Towards Unifying Audio and Visual Models
2307.03183 (2023-07)
Whisper-AT: Noise-Robust Automatic Speech Recognizers are Also Strong General Audio Event Taggers
and 4 more not named here
validate_ensemble 3 other papers
2 dated earlier, 1 later
2110.09784 (2021-10)
SSAST: Self-Supervised Audio Spectrogram Transformer
2402.04882 (2024-02)
LMUFormer: Low Complexity Yet Powerful Spiking Model With Legendre Memory Units
2406.03344 (2024-06)
Audio Mamba: Bidirectional State Space Model for Audio Representation Learning
validate_wa 1 other paper
1 dated earlier
2110.09784 (2021-10)
SSAST: Self-Supervised Audio Spectrogram Transformer

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-24.

Repositories linked to this paper

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

Abstract

Transformers have revolutionized deep learning across various tasks, including audio representation learning, due to their powerful modeling capabilities. However, they often suffer from quadratic complexity in both GPU memory usage and computational inference time, affecting their efficiency. Recently, state space models (SSMs) like Mamba have emerged as a promising alternative, offering a more efficient approach by avoiding these complexities. Given these advantages, we explore the potential of SSM-based models in audio tasks. In this paper, we introduce Self-Supervised Audio Mamba (SSAMBA), the first self-supervised, attention-free, and SSM-based model for audio representation learning. SSAMBA leverages the bidirectional Mamba to capture complex audio patterns effectively. We incorporate a self-supervised pretraining framework that optimizes both discriminative and generative objectives, enabling the model to learn robust audio representations from large-scale, unlabeled datasets. We evaluated SSAMBA on various tasks such as audio classification, keyword spotting, and speaker identification. Our results demonstrate that SSAMBA outperforms the Self-Supervised Audio Spectrogram Transformer (SSAST) in most tasks. Notably, SSAMBA is approximately 92.7% faster in batch inference speed and 95.4% more memory-efficient than SSAST for the tiny model size with an input token size of 22k. These efficiency gains, combined with superior performance, underscore the effectiveness of SSAMBA's architectural innovation, making it a compelling choice for a wide range of audio processing applications.

For agents

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

get_harvested_code_for_paper("2405.11831")
get_code_for_paper("2405.11831")
have("2405.11831")

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

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

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

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

Connect an agent — have() is free.