SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.21289 · 2026

Reconstructing Randomly Masked Spectra Helps DNNs Identify Discriminant Wavenumbers

Yan Wang, Yingying Wu, Yongchun Fang, Jinchao Liu, Stuart Gibson, Margarita Osadchy

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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.21289.json · badge: /api/ran/2606.21289.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
Chaoscendence/TeaNet community
Papers with Code archive
10 ran · 4 no recorded run
FunctionStatusWhere it lives
LeNet Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("b09b28e95e2bfa57")
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 an instance of its own class, LeNet: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

# Define settings dict for PyramidLeNet
settings = {
    'ConvLayers': [16, 'M', 32, 'M'],
    'class_num': 5,
    'linear_dim': 128
}

# Create a small input tensor: batch_size=2, channels=1, length=4
x_input = torch.randn(2, 1, 4)

ARGS = {
    'settings': settings
}
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 LeNet — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LeNet 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
MyLossFunc Ran
ran on a synthesized input
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("de6da2086756928d")
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 0, 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 torch
import torch.nn as nn

class MyLossFunc(nn.Module):
    def __init__(self):
        super(MyLossFunc, self).__init__()

    def forward(self, prob, target):
        tmp = torch.sub(prob, target)
        loss = torch.pow(tmp, 2)
        return torch.mean(torch.sum(loss, 2))

INIT_ARGS = {}

ARGS = {
    'prob': torch.randn(2, 3, 4),
    'target': torch.randn(2, 3, 4)
}
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 0, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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)
PyramidLeNet Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("4438ebf9ad877d62")
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 an instance of its own class, PyramidLeNet: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

settings = {
    'ConvLayers': [8, 'M', 16, 'M']
}

ARGS = {
    'settings': settings
}
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 PyramidLeNet — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PyramidLeNet 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
Unet Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("93427dc71f549566")
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 an instance of its own class, Unet: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

# Define the settings dictionary required by Unet.__init__
settings = {
    'kernel_unet': 3,
    'width': 2
}

# The Unet class expects a settings dict as its only parameter
ARGS = {
    'settings': settings
}
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 Unet — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Unet 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
convs Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("51c9dd322487ea0c")
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 an instance of its own class, convs: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

ARGS = {
    'in_ch': 3,
    'out_ch': 16,
    'kernel': 3,
    'width': 2
}
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 convs — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a convs 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
decode Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("b5a388dbcf749e86")
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 an instance of its own class, decode: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

class convs(nn.Module):
    """Conv => BN =>ReLU => Conv1d => BN => ReLU
    """

    def __init__(self, in_ch, out_ch, kernel, width):
        super(convs, self).__init__()
        conv_layers = []
        for _ in range(width):
            conv_layers += [nn.Conv1d(in_ch, out_ch, kernel_size=kernel, padding=math.floor(kernel * 0.5))]
            conv_layers += [nn.BatchNorm1d(out_ch)]
            conv_layers += [nn.ReLU(inplace=True)]
            in_ch = out_ch
        self.conv = nn.Sequential(*conv_layers)

    def forward(self, x):
        x = self.conv(x)
        return x

class decode(nn.Module):
    """upsample decode
    """

    def __init__(self, in_ch, out_ch, kernel, width):
        super(decode, self).__init__()
        self.up = nn.ConvTranspose1d(in_ch, in_ch // 2, 2, stride=2)
        self.conv = convs(in_ch, out_ch, kernel, width)

    def forward(self, x1, x2):
        x1 = self.up(x1)
        tmp = nn.ZeroPad2d((0, x2.size(2) - x1.size(2), 0, 0))
        x = torch.cat([x2, tmp(x1)], dim=1)
        x = self.conv(x)
        return x

# Create a decode module instance
in_ch = 8
out_ch = 4
kernel = 3
width = 2

decode_module = decode(in_ch=in_ch, out_ch=out_ch, kernel=kernel, width=width)

ARGS = {
    "in_ch": 8,
    "out_ch": 4,
    "kernel": 3,
    "width": 2
}
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 decode — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a decode 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
encode Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("6b9632428e530107")
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 an instance of its own class, encode: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

# The encode class takes: in_ch, out_ch, kernel, width
# in_ch: input channels (int)
# out_ch: output channels (int)
# kernel: kernel size (int)
# width: number of conv layers (int)

# Looking at the forward pass, encode expects input x with shape (batch, in_ch, length)
# MaxPool1d with kernel_size=2 reduces the length dimension
# convs applies Conv1d operations

ARGS = {
    "in_ch": 4,
    "out_ch": 8,
    "kernel": 3,
    "width": 2
}
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 encode — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a encode 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
inconv Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("6ad3bcd888e853f6")
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 an instance of its own class, inconv: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

ARGS = {
    "out_ch": 16,
    "kernel": 3,
    "width": 2,
}
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 inconv — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a inconv 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
outconv Ran
ran on a synthesized input · constructed an object; no result was computed
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("a777abb14c01d5ce")
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 an instance of its own class, outconv: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    'in_ch': 16
}
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 outconv — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a outconv 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
test_model_one_epoch Ran
ran, honoured the contract we drafted
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("5ef62aad138dcff7")
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 float, ndim 0, 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 torch
import torch.nn as nn
import torch.utils.data as data

torch.manual_seed(0)

# Set global device to CPU
import sys
sys.modules[__name__]._g_device = torch.device('cpu')

# Create a simple classifier model
class SimpleClassifier(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.fc1 = nn.Linear(input_dim, 8)
        self.fc2 = nn.Linear(8, num_classes)
    
    def forward(self, x):
        # x shape: (batch_size, 1, 4) after unsqueeze in the function
        x = x.view(x.size(0), -1)  # flatten to (batch_size, 4)
        x = torch.relu(self.fc1(x))
        x = self.fc2(x)
        return x

# Create small tensors for episodes
# episodes[0]: input features, shape (6, 4) - 6 samples, 4 features
# episodes[1]: class labels, shape (6,) - 6 class labels
episodes_X = torch.randn(6, 4)
episodes_y = torch.randint(0, 3, (6,))
episodes = [episodes_X, episodes_y]

# Create classifier instance
classifier = SimpleClassifier(input_dim=4, num_classes=3)

# Define batch size
batch_size = 2

ARGS = {
    'episodes': episodes,
    'batch_size': batch_size,
    'classifier': classifier
}
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 float, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (fixture:KeyError)
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
run_model_one_epoch Not yet run
unverified (harvested, no recorded run)
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("7a7acaf319c4cff7")
How it ran

no invocation recorded.

save_checkpoint Not yet run
unverified (harvested, no recorded run)
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("e52190ad3ffc2484")
How it ran

no invocation recorded.

train_TEA Not yet run
unverified (harvested, no recorded run)
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("2cdb002a63ba3ead")
How it ran

no invocation recorded.

valid_model_one_epoch Not yet run
unverified (harvested, no recorded run)
Chaoscendence/TeaNet/code/train_model.py
code served (permissive licence) · get_code("9f1868883bc96386")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 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.

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

Nondestructive detection methods, based on vibrational spectroscopy, are vitally important in a wide range of applications including industrial chemistry, pharmacy and national defense. Recently, deep learning has been introduced into vibrational spectroscopy showing great potential. Different from images, text, etc. that offer large labeled data sets, vibrational spectroscopic data is very limited, which requires novel concepts beyond transfer and meta learning. To tackle this, we propose a task-enhanced augmentation network (TeaNet). The key component of TeaNet is a reconstruction module that inputs randomly masked spectra and outputs reconstructed samples that are similar to the original ones, but include additional variations learned from the domain. These augmented samples are used to train the classification model. The reconstruction and prediction parts are trained simultaneously, end-to-end with backpropagation. Results on both synthetic and real-world datasets verified the superiority of the proposed method. In the most difficult synthetic scenarios TeaNet outperformed CNN by 17%. We visualized and analysed the neuron responses of TeaNet and CNN, and found that TeaNet's ability to identify discriminant wavenumbers was excellent compared to CNN. Our approach is general and can be easily adapted to other domains, offering a solution to more accurate and interpretable few-shot learning.

For agents

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

get_harvested_code_for_paper("2606.21289")
get_code_for_paper("2606.21289")
have("2606.21289")

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

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

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

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

Connect an agent — have() is free.