SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.17967 · 2026

Learning task-specific subspaces via interventional post-training of speech foundation models

Jack Cox, Jon Barker

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 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 8 have no contract verdict; 4 failures of our instrument; 6 no recorded run), measured 2026-11-24; 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/2606.17967.json · badge: /api/ran/2606.17967.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
s3prl/s3prl community
Papers with Code archive
12 ran · 6 no recorded run
FunctionStatusWhere it lives
ConvFeatureExtractionModel Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("8cc78a720715c054")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 8, 3) 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
from torch import nn
import torch.nn.functional as F

class Fp32GroupNorm(nn.GroupNorm):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def forward(self, input):
        output = F.group_norm(input.float(), self.num_groups, self.weight.float() if self.weight is not None else None, self.bias.float() if self.bias is not None else None, self.eps)
        return output.type_as(input)

class Fp32LayerNorm(nn.LayerNorm):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def forward(self, input):
        output = F.layer_norm(input.float(), self.normalized_shape, self.weight.float() if self.weight is not None else None, self.bias.float() if self.bias is not None else None, self.eps)
        return output.type_as(input)

class TransposeLast(nn.Module):

    def __init__(self, deconstruct_idx=None):
        super().__init__()
        self.deconstruct_idx = deconstruct_idx

    def forward(self, x):
        if self.deconstruct_idx is not None:
            x = x[self.deconstruct_idx]
        return x.transpose(-2, -1)

class ConvFeatureExtractionModel(nn.Module):

    def __init__(self, conv_layers, dropout=0.0, mode='default', conv_bias=False):
        super().__init__()
        assert mode in {'default', 'layer_norm'}

        def block(n_in, n_out, k, stride, is_layer_norm=False, is_group_norm=False, conv_bias=False):

            def make_conv():
                conv = nn.Conv1d(n_in, n_out, k, stride=stride, bias=conv_bias)
                nn.init.kaiming_normal_(conv.weight)
                return conv
            assert (is_layer_norm and is_group_norm) == False, 'layer norm and group norm are exclusive'
            if is_layer_norm:
                return nn.Sequential(make_conv(), nn.Dropout(p=dropout), nn.Sequential(TransposeLast(), Fp32LayerNorm(dim, elementwise_affine=True), TransposeLast()), nn.GELU())
            elif is_group_norm:
                return nn.Sequential(make_conv(), nn.Dropout(p=dropout), Fp32GroupNorm(dim, dim, affine=True), nn.GELU())
            else:
                return nn.Sequential(make_conv(), nn.Dropout(p=dropout), nn.GELU())
        in_d = 1
        self.conv_layers = nn.ModuleList()
        for i, cl in enumerate(conv_layers):
            assert len(cl) == 3, 'invalid conv definition: ' + str(cl)
            dim, k, stride = cl
            self.conv_layers.append(block(in_d, dim, k, stride, is_layer_norm=mode == 'layer_norm', is_group_norm=mode == 'default' and i == 0, conv_bias=conv_bias))
            in_d = dim

    def forward(self, x):
        x = x.unsqueeze(1)
        for conv in self.conv_layers:
            x = conv(x)
        return x


INIT_ARGS = {
    'conv_layers': [(4, 3, 2), (8, 3, 2)],
    'dropout': 0.1,
    'mode': 'default',
    'conv_bias': False,
}

ARGS = {
    'x': torch.randn(2, 16),
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 8, 3) — shape (2, 8, 3) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
FairseqDropout Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("4859ddfcc0771af0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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
from torch import nn
import torch.nn.functional as F
import logging

logging.basicConfig(level=logging.INFO)

from torch import nn
import torch.nn.functional as F
import logging
from typing import Callable, Dict, List, Optional, Tuple

logger = logging.getLogger(__name__)

class FairseqDropout(nn.Module):

    def __init__(self, p, module_name=None):
        super().__init__()
        self.p = p
        self.module_name = module_name
        self.apply_during_inference = False

    def forward(self, x, inplace: bool=False):
        if self.p > 0 and (self.training or self.apply_during_inference):
            return F.dropout(x, p=self.p, training=True, inplace=inplace)
        else:
            return x

    def make_generation_fast_(self, name: str, retain_dropout: bool=False, retain_dropout_modules: Optional[List[str]]=None, **kwargs):
        if retain_dropout:
            if retain_dropout_modules is not None and self.module_name is None:
                logger.warning('Cannot enable dropout during inference for module {} because module_name was not set'.format(name))
            elif retain_dropout_modules is None or self.module_name in retain_dropout_modules:
                logger.info('Enabling dropout during inference for module: {}'.format(name))
                self.apply_during_inference = True
            else:
                logger.info('Disabling dropout for module: {}'.format(name))


INIT_ARGS = {
    'p': 0.5,
    'module_name': 'test_dropout'
}

ARGS = {
    'x': torch.randn(2, 4),
    'inplace': False
}

if __name__ == '__main__':
    dropout_layer = FairseqDropout(**INIT_ARGS)
    dropout_layer.train()
    output = dropout_layer(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
FairseqIncrementalState Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("4b11f0fa0352f104")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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 torch
import numpy as np
from torch import Tensor
from typing import Dict, Optional

# FairseqIncrementalState is a mixin/base class that manages incremental state
# It doesn't have any required __init__ parameters beyond what object takes
# The main computation methods are get_incremental_state and set_incremental_state

INIT_ARGS = {}

# We'll test the set_incremental_state method since it's the primary computation
METHOD = 'set_incremental_state'

# Create a sample incremental_state dictionary structure
# This is typically used in autoregressive decoding to cache previous states
incremental_state_dict = {}

# Create some sample tensor values to store
sample_tensor_1 = torch.randn(2, 4, 6)
sample_tensor_2 = torch.randn(2, 3, 5)

# The value to set is a dictionary mapping string keys to optional tensors
value_dict = {
    'prev_key': sample_tensor_1,
    'prev_value': sample_tensor_2,
    'prev_key_padding_mask': None
}

ARGS = {
    'incremental_state': incremental_state_dict,
    'key': 'attn_state',
    'value': value_dict
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Fp32GroupNorm Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("a7167401660fd02e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) 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
from torch import nn
import torch.nn.functional as F

class Fp32GroupNorm(nn.GroupNorm):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def forward(self, input):
        output = F.group_norm(input.float(), self.num_groups, self.weight.float() if self.weight is not None else None, self.bias.float() if self.bias is not None else None, self.eps)
        return output.type_as(input)


INIT_ARGS = {
    'num_groups': 2,
    'num_channels': 4,
}

ARGS = {
    'input': torch.randn(2, 4, 3, 3),
}

if __name__ == '__main__':
    model = Fp32GroupNorm(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output dtype: {output.dtype}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Fp32LayerNorm Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("03e24ae4b36c63b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 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
from torch import nn
import torch.nn.functional as F

class Fp32LayerNorm(nn.LayerNorm):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def forward(self, input):
        output = F.layer_norm(input.float(), self.normalized_shape, self.weight.float() if self.weight is not None else None, self.bias.float() if self.bias is not None else None, self.eps)
        return output.type_as(input)


INIT_ARGS = {
    'normalized_shape': (4,),
}

ARGS = {
    'input': torch.randn(2, 3, 4, dtype=torch.float16),
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
SamePad Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("c709dbdd2bd7c5df")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 7) 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
from torch import nn

class SamePad(nn.Module):

    def __init__(self, kernel_size, causal=False):
        super().__init__()
        if causal:
            self.remove = kernel_size - 1
        else:
            self.remove = 1 if kernel_size % 2 == 0 else 0

    def forward(self, x):
        if self.remove > 0:
            x = x[:, :, :-self.remove]
        return x


INIT_ARGS = {
    'kernel_size': 4,
    'causal': False,
}

ARGS = {
    'x': torch.randn(2, 3, 8),
}

if __name__ == '__main__':
    module = SamePad(**INIT_ARGS)
    output = module(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Remove value: {module.remove}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 3, 7) — shape (2, 3, 7) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
SplitLinear Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("22259f8c7ae1b6a2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 5, 6) 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
from torch import nn

class SplitLinear(nn.Module):
    """Split Linear Layer"""

    def __init__(self, in_dim, in_split, out_dim):
        super().__init__()
        self.in_dim = in_dim
        self.in_split = in_split
        self.out_dim = out_dim
        if in_split > 1:
            weight = torch.zeros((self.in_split, self.in_dim, self.out_dim))
            self.weight = nn.Parameter(weight, requires_grad=True)
            nn.init.uniform_(self.weight, -self.in_dim ** (-0.5), self.in_dim ** (-0.5))
            bias = torch.zeros((1, 1, self.in_split, self.out_dim))
            self.bias = nn.Parameter(bias, requires_grad=True)
            nn.init.uniform_(self.bias, -self.in_dim ** (-0.5), self.in_dim ** (-0.5))
        else:
            self.layer = nn.Linear(self.in_dim, self.out_dim)

    def forward(self, x: torch.Tensor):
        if self.in_split == 1:
            return self.layer(x)
        else:
            x = x.reshape(x.shape[0], x.shape[1], self.in_split, 1, self.in_dim)
            out = torch.einsum('...klm,kmn->...kln', x, self.weight).squeeze(3)
            out = out + self.bias
            return out.reshape(x.shape[0], x.shape[1], -1)


INIT_ARGS = {
    'in_dim': 4,
    'in_split': 2,
    'out_dim': 3,
}

ARGS = {
    'x': torch.randn(2, 5, 8),
}

if __name__ == '__main__':
    model = SplitLinear(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 5, 6) — shape (2, 5, 6) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
TransposeLast Ran
ran on a synthesized input
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("45c85df56598f109")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 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
from torch import nn

class TransposeLast(nn.Module):

    def __init__(self, deconstruct_idx=None):
        super().__init__()
        self.deconstruct_idx = deconstruct_idx

    def forward(self, x):
        if self.deconstruct_idx is not None:
            x = x[self.deconstruct_idx]
        return x.transpose(-2, -1)


INIT_ARGS = {
    "deconstruct_idx": None
}

ARGS = {
    "x": torch.randn(2, 4, 3)
}

module = TransposeLast(**INIT_ARGS)
output = module(**ARGS)
print(output.shape)

INIT_ARGS_WITH_IDX = {
    "deconstruct_idx": 0
}

ARGS_WITH_IDX = {
    "x": torch.randn(2, 4, 3)
}

module_with_idx = TransposeLast(**INIT_ARGS_WITH_IDX)
output_with_idx = module_with_idx(**ARGS_WITH_IDX)
print(output_with_idx.shape)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
get_activation_fn Ran
ran; our contract draft was wrong, not the code
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("6f76d015b2817409")
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 function. 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 math
import torch.nn.functional as F
from typing import Callable

torch.manual_seed(0)

ARGS = {
    'activation': 'gelu'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
quant_noise Ran
ran; our contract draft was wrong, not the code
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("3c3d94a70fabed2c")
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 Linear. 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
from torch import nn

torch.manual_seed(0)

# Create a Linear module for testing
linear_module = nn.Linear(in_features=8, out_features=4)

# Create an Embedding module for testing
embedding_module = nn.Embedding(num_embeddings=10, embedding_dim=8)

# Create a Conv2d module with 1x1 kernel for testing
conv_1x1_module = nn.Conv2d(in_channels=8, out_channels=4, kernel_size=1)

# Create a Conv2d module with larger kernel for testing
conv_module = nn.Conv2d(in_channels=8, out_channels=4, kernel_size=2)

ARGS = {
    "module": linear_module,
    "p": 0.5,
    "block_size": 4,
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
relu_squared Ran
ran; our contract draft was wrong, not the code
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("6b0a4e5722e9a3db")
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 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.functional as F

torch.manual_seed(0)

# The function relu_squared takes a single parameter x which is a torch.Tensor
# It applies F.relu to x, then raises the result to the power of 2
# So x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
with_incremental_state Ran
ran; our contract draft was wrong, not the code
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("9796f8130e50f5a7")
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 type. 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 Dict, Optional
from torch import Tensor

torch.manual_seed(0)

# Create a simple test class to apply the decorator to
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# The with_incremental_state function takes a class as its only parameter
ARGS = {
    'cls': SimpleModule
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
DistillerConfig Not yet run
unverified (harvested, no recorded run)
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("f52becf27ab38826")
How it ran

no invocation recorded.

DistillerModel Not yet run
unverified (harvested, no recorded run)
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("1d25c97a22e09703")
How it ran

no invocation recorded.

MultiheadAttention Not yet run
unverified (harvested, no recorded run)
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("8ae62a892bc13c8d")
How it ran

no invocation recorded.

TransformerEncoder Not yet run
unverified (harvested, no recorded run)
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("ba94e6ef368e1e9d")
How it ran

no invocation recorded.

TransformerSentenceEncoderLayer Not yet run
unverified (harvested, no recorded run)
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("629597df2e30f167")
How it ran

no invocation recorded.

init_bert_params Not yet run
unverified (harvested, no recorded run)
s3prl/s3prl/s3prl/upstream/distiller/model.py
code served (permissive licence) · get_code("2cd4ae1cc984e4c1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 0 later) and 10 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
with_incremental_state
brick of this paper's assembly: helper
10 other papers
9 dated earlier, 1 the same month · 1 only as an assembly brick
2105.11084 (2021-05)
Unsupervised Speech Recognition
2203.09163 (2022-03)
Modeling Dual Read/Write Paths for Simultaneous Machine Translation
2203.09173 (2022-03)
On Vision Features in Multimodal Machine Translation
and 7 more not named here
FairseqIncrementalState
brick of this paper's assembly: helper
4 other papers
4 dated earlier · 1 only as an assembly brick
2203.09163 (2022-03)
Modeling Dual Read/Write Paths for Simultaneous Machine Translation
2203.09173 (2022-03)
On Vision Features in Multimodal Machine Translation
2303.00257 (2023-03)
Hidden Markov Transformer for Simultaneous Machine Translation
and 1 more not named here
quant_noise
brick of this paper's assembly: helper
4 other papers
4 dated earlier · 1 only as an assembly brick
2203.15610 (2022-03)
LightHuBERT: Lightweight and Configurable Speech Representation Learning with Once-for-All Hidden-Unit BERT
2307.13424 (2023-07)
Holistic Exploration on Universal Decompositional Semantic Parsing: Architecture, Data Augmentation, and LLM Paradigm
2407.03575 (2024-07)
DGR-MIL: Exploring Diverse Global Representation in Multiple Instance Learning for Whole Slide Image Classification
and 1 more not named here
Fp32GroupNorm
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2602.15537 (2026-02)
ZeroSyl: Simple Zero-Resource Syllable Tokenization for Spoken Language Modeling
Fp32LayerNorm
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2602.15537 (2026-02)
ZeroSyl: Simple Zero-Resource Syllable Tokenization for Spoken Language Modeling
SamePad
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2602.15537 (2026-02)
ZeroSyl: Simple Zero-Resource Syllable Tokenization for Spoken Language Modeling
TransposeLast
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2602.15537 (2026-02)
ZeroSyl: Simple Zero-Resource Syllable Tokenization for Spoken Language Modeling
init_bert_params
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2602.15537 (2026-02)
ZeroSyl: Simple Zero-Resource Syllable Tokenization for Spoken Language Modeling

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

Speech foundation models, pre-trained on large corpora of unlabelled speech data, produce general-purpose representations which are useful across tasks. However, these representations encode information about salient speech variables in a distributed manner, while downstream speech tasks rely on only some of this variability. In this work, we propose a posttraining refinement approach using interventional contrastive learning. By leveraging an interventional dataset and multi-part contrastive loss, we learn a transformation from the entangled representation space of speech foundation models into separate content and speaker subspaces. We evaluate the learnt representations on speaker verification and keyword spotting tasks, showing improved out-of-domain speaker verification performance and evidence that speaker and content information are separated across the learned subspaces.

For agents

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

get_harvested_code_for_paper("2606.17967")
get_code_for_paper("2606.17967")
have("2606.17967")

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

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

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

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

Connect an agent — have() is free.