SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.12709 · 2026

Information-Theoretic Optimization for Task-Adapted Compressed Sensing Magnetic Resonance Imaging

Wenrui Dai, Hongkai Xiong, Chenglin Li, Junni Zou, Ziyang Zheng, Peng, Shaohui Li, Xinyu Peng

arXiv · PDF · Open in the Atlas

Code that ran

13 of 14 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; 2 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 9 failures of our instrument; 1 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/2604.12709.json · badge: /api/ran/2604.12709.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
tianweiy/SeqMRI canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
FunctionStatusWhere it lives
MaximumBinarize Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/baselines/loupe_codes/layers.py
code served (permissive licence) · get_code("b7fd61a0bfa70e28")
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 3, dtype family float, shape (2, 4, 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

torch.manual_seed(0)

# Create a small batch of float tensors
# The function expects input to be indexable with len() and sliceable
# Each element should be a tensor that can be reshaped, summed, and have topk applied
input = torch.rand(2, 4, 3)  # batch_size=2, with shape (4, 3) per element

ARGS = {
    "input": input
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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: none by the harness; any seed is in the setup block
RescaleProbMap Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/baselines/loupe_codes/layers.py
code served (permissive licence) · get_code("01efa6a6e77d97a5")
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

torch.manual_seed(0)

# batch_x: a batch of probability maps
# The function iterates through batch dimension and operates on each element
# Each element should be a tensor with at least 1 dimension (the spatial/feature dimension)
# We'll create a batch of 2 probability maps, each with shape [1, 4] (1 channel, 4 spatial dims)
batch_x = torch.rand(2, 4)  # shape: [batch_size=2, features=4]

# sparsity: a float value between 0 and 1 representing desired sparsity
sparsity = 0.3

ARGS = {
    "batch_x": batch_x,
    "sparsity": sparsity,
}
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
build_lr_scheduler Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/baselines/non_rl.py
code served (permissive licence) · get_code("da4e439ae86acb52")
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 StepLR. 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 argparse

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.1)

# Create options object with required attributes
class Options:
    def __init__(self):
        self.lr_step_size = 10
        self.lr_gamma = 0.1

options = Options()

ARGS = {
    "options": options,
    "optimizer": optimizer
}
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 StepLR — a StepLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a StepLR 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
build_model Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/baselines/non_rl.py
code served (permissive licence) · get_code("b5a9e50c6853a306")
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 DummyLOUPE. 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)

class StubModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x):
        return self.linear(x)

class Options:
    def __init__(self):
        self.model = 'LOUPE'
        self.input_chans = 2
        self.output_chans = 2
        self.num_chans = 8
        self.num_pools = 2
        self.drop_prob = 0.1
        self.accelerations = [2.0]
        self.resolution = (32, 32)
        self.conjugate_mask = False
        self.line_constrained = False
        self.bi_dir = False
        self.preselect_num = 10
        self.preselect = False
        self.random = False
        self.poisson = False
        self.spectrum = False
        self.equispaced = False
        self.device = 'cpu'
        self.num_step = 4
        self.binary_sampler = False
        self.clamp = False
        self.old_recon = False
        self.uncertainty_loss = False
        self.detach_kspace = False
        self.fixed_input = False
        self.pretrained_recon = False

class DummyLOUPE(nn.Module):
    def __init__(self, in_chans, out_chans, chans, num_pool_layers, drop_prob, 
                 sparsity, shape, conjugate_mask, line_constrained, bi_dir, 
                 preselect_num, preselect, random, poisson, spectrum, equispaced):
        super().__init__()
        self.in_chans = in_chans
        self.out_chans = out_chans
        self.linear = nn.Linear(chans, chans)
    
    def forward(self, x):
        return self.linear(x)

class DummySequentialUnet(nn.Module):
    def __init__(self, in_chans, out_chans, chans, num_pool_layers, drop_prob,
                 sparsity, shape, conjugate_mask, num_step, preselect, bi_direction,
                 preselect_num, binary_sampler, clamp, line_constrained, old_recon,
                 with_uncertainty, detach_kspace, fixed_input, pretrained_recon):
        super().__init__()
        self.in_chans = in_chans
        self.out_chans = out_chans
        self.linear = nn.Linear(chans, chans)
    
    def forward(self, x):
        return self.linear(x)

# Monkey patch the module constructors for testing
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'LOUPE', DummyLOUPE)
setattr(current_module, 'SequentialUnet', DummySequentialUnet)

ARGS = {
    'options': Options()
}
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 DummyLOUPE — a DummyLOUPE output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DummyLOUPE 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
build_optimizer Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/baselines/non_rl.py
code served (permissive licence) · get_code("bd3d70deee491106")
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 Adam. 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)

# Create a simple model with parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'lr': 0.001,
    'weight_decay': 1e-5,
    'model_parameters': model.parameters(),
    'type': 'adam'
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
check_masks_complete Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/envs/masks.py
code served (permissive licence) · get_code("4d1985323982489e")
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 torch

torch.manual_seed(0)

# The function expects a torch.Tensor of masks
# It iterates through each mask, converts to bool, and checks if all elements are True
# We'll create a small tensor with shape (2, 4) - batch of 2 masks, each with 4 elements

masks = torch.tensor([
    [1, 1, 1, 1],  # Complete mask (all True)
    [1, 0, 1, 1]   # Incomplete mask (has a False)
], dtype=torch.uint8)

ARGS = {
    "masks": masks
}
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 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
compute_psnr Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/envs/util.py
code served (permissive licence) · get_code("818735d3069334bf")
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 ndarray, ndim 1, dtype family float, shape (2,) 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)

# Create two small tensors with batch size 2
# Shape: (batch_size=2, height=4, width=3, channels=3) - images
xs = torch.rand(2, 4, 3, 3, dtype=torch.float32)
ys = torch.rand(2, 4, 3, 3, dtype=torch.float32)

ARGS = {
    "xs": xs,
    "ys": ys,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
import_object_from_str Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/envs/util.py
code served (permissive licence) · get_code("939a9acd64cf6672")
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 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 importlib
import torch

torch.manual_seed(0)

# The function import_object_from_str takes a classname string and dynamically imports it
# Looking at the body:
# - It uses classname.rsplit('.', 1) to split module and object name
# - It uses classname.split('.')[-1] to get the object name
# - It uses importlib.import_module(the_module) to import the module
# - It uses getattr(module, the_object) to get the object from the module

# A valid classname would be something like 'os.path.join' or 'torch.nn.Linear'
# Let's use a built-in module to avoid any external dependencies

ARGS = {
    "classname": "torch.nn.Linear"
}
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 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
mse Ran
ran, violated the contract we drafted
tianweiy/SeqMRI/activemri/baselines/loupe_codes/evaluate.py
code served (permissive licence) · get_code("f8ee64e99d4c3f8e")
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 float64, 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 numpy as np

# Create small ground truth and prediction arrays
gt = np.array([[1.0, 2.0, 3.0, 4.0],
               [5.0, 6.0, 7.0, 8.0]])

pred = np.array([[1.1, 2.1, 2.9, 4.2],
                 [4.9, 6.1, 7.1, 7.8]])

ARGS = {
    "gt": gt,
    "pred": pred
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
nmse Ran
ran, violated the contract we drafted
tianweiy/SeqMRI/activemri/baselines/loupe_codes/evaluate.py
pointer only (licence: MIT); the stored copy get_code serves, from j-duan/VS-Net, is pointer only (licence: NONE) · get_code("d6ba4d694236aa92")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from j-duan/VS-Net, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

psnr Ran
ran, honoured the contract we drafted
tianweiy/SeqMRI/activemri/baselines/loupe_codes/evaluate.py
code served (permissive licence) · get_code("4a7be730747edfe9")
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 float64, 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 numpy as np
import torch

torch.manual_seed(0)

# The function psnr takes two arguments: gt (ground truth) and pred (prediction)
# Both are used with .max() method and passed to peak_signal_noise_ratio
# which expects array-like inputs (numpy arrays or similar)
# The function computes image quality metrics, so inputs should be image-like arrays

# Create ground truth image: small 2D array
gt = np.random.rand(4, 3).astype(np.float32) * 255

# Create prediction image: similar shape to gt
pred = np.random.rand(4, 3).astype(np.float32) * 255

ARGS = {
    "gt": gt,
    "pred": pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
transform Ran
ran, honoured the contract we drafted
tianweiy/SeqMRI/activemri/envs/loupe_envs.py
code served (permissive licence) · get_code("c88cee9f022c5604")
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 numpy as np

torch.manual_seed(0)

# Construct kspace as numpy array (function converts with torch.from_numpy)
kspace = np.random.randn(2, 4, 3, 2).astype(np.complex64)

# Construct mask as torch.Tensor
mask = torch.randn(2, 4, 1)

# Construct target as numpy array (function converts with torch.from_numpy)
target = np.random.randn(2, 4, 3).astype(np.float32)

# Construct attrs as List[Dict[str, Any]]
attrs = [
    {"patient_id": 1, "acquisition": "GRAPPA"},
    {"patient_id": 2, "acquisition": "SENSE"}
]

# Construct fname as List[str]
fname = ["file_001.h5", "file_002.h5"]

# Construct slice_id as List[int]
slice_id = [10, 15]

ARGS = {
    "kspace": kspace,
    "mask": mask,
    "target": target,
    "attrs": attrs,
    "fname": fname,
    "slice_id": slice_id
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
update_masks_from_indices Ran
ran; our contract draft was wrong, not the code
tianweiy/SeqMRI/activemri/envs/masks.py
code served (permissive licence) · get_code("09b91568694b7508")
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 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

torch.manual_seed(0)

# Construct arguments for update_masks_from_indices
# masks: torch.Tensor - should be shape (batch_size, ..., feature_dim)
# indices: Sequence[int] - indices to set to 1, one per batch element

batch_size = 2
feature_dim = 4
spatial_dim = 3

# Create masks tensor with shape (batch_size, spatial_dim, feature_dim)
masks = torch.zeros(batch_size, spatial_dim, feature_dim)

# Create indices list - one index per batch element, each in range [0, feature_dim)
indices = [1, 2]

ARGS = {
    "masks": masks,
    "indices": indices,
}
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 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: none by the harness; any seed is in the setup block
compute_ssim Not yet run
unverified (harvested, no recorded run)
tianweiy/SeqMRI/activemri/envs/util.py
code served (permissive licence) · get_code("cd25081a4c499255")
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, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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
nmse 3 other papers
3 dated earlier
1907.10033 (2019-07)
VS-Net: Variable splitting network for accelerated parallel MRI reconstruction
1912.09278 (2019-12)
$Σ$-net: Systematic Evaluation of Iterative Deep Neural Networks for Fast Parallel MR Image Reconstruction
2010.16262 (2020-10)
Experimental design for MRI by greedy policy search
mse 2 other papers
2 dated earlier
1912.09278 (2019-12)
$Σ$-net: Systematic Evaluation of Iterative Deep Neural Networks for Fast Parallel MR Image Reconstruction
2010.16262 (2020-10)
Experimental design for MRI by greedy policy search
check_masks_complete 1 other paper
1 dated earlier
2007.10469 (2020-07)
Active MR k-space Sampling with Reinforcement Learning
compute_psnr 1 other paper
1 dated earlier
2007.10469 (2020-07)
Active MR k-space Sampling with Reinforcement Learning
compute_ssim 1 other paper
1 dated earlier
2007.10469 (2020-07)
Active MR k-space Sampling with Reinforcement Learning
import_object_from_str 1 other paper
1 dated earlier
2007.10469 (2020-07)
Active MR k-space Sampling with Reinforcement Learning
update_masks_from_indices 1 other paper
1 dated earlier
2007.10469 (2020-07)
Active MR k-space Sampling with Reinforcement Learning

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

Task-adapted compressed sensing magnetic resonance imaging (CS-MRI) is emerging to address the specific demands of downstream clinical tasks with significantly fewer k-space measurements than required by Nyquist sampling. However, existing task-adapted CS-MRI methods suffer from the uncertainty problem for medical diagnosis and cannot achieve adaptive sampling in end-to-end optimization with reconstruction or clinical tasks. To address these limitations, we propose the first task-adapted CS-MRI from the information-theoretic perspective to simultaneously achieve probabilistic inference for uncertainty prediction and adapt to arbitrary sampling ratios and versatile clinical applications. Specifically, we formalize the task-adapted CS-MRI optimization problem by maximizing the mutual information between undersampled k-space measurements and clinical tasks to enable probabilistic inference for addressing the uncertainty problem. We leverage amortized optimization and construct tractable variational bounds for mutual information to jointly optimize sampling, reconstruction, and task-inference models, which enables flexible sampling ratio control using a single end-to-end trained model. Furthermore, the proposed framework addresses two kinds of distinct clinical scenarios within a unified approach, i.e., i) joint task and reconstruction, where reconstruction serves as an auxiliary process to enhance task performance; and ii) task implementation with suppressed reconstruction, applicable for privacy protection. Extensive experiments on large-scale MRI datasets demonstrate that the proposed framework achieves highly competitive performance on standard metrics like Dice compared to deterministic counterpart but provides better distribution matching to the ground-truth posterior distribution as measured by the generalized energy distance (GED).

For agents

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

get_harvested_code_for_paper("2604.12709")
get_code_for_paper("2604.12709")
have("2604.12709")

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

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

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

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

Connect an agent — have() is free.