SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2007.10469 · 2020

Active MR k-space Sampling with Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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 1 has no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2007.10469.json · badge: /api/ran/2007.10469.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
facebookresearch/active-mri-acquisition canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
check_masks_complete Ran
ran; our contract draft was wrong, not the code
facebookresearch/active-mri-acquisition/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
facebookresearch/active-mri-acquisition/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
facebookresearch/active-mri-acquisition/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
save_checkpoint_function Ran
ran on a synthesized input
facebookresearch/active-mri-acquisition/activemri/experimental/cvpr19_models/trainer.py
pointer only (licence: MIT) · get_code("c579bc5ee3c1f0ff")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, facebookresearch/active-mri-acquisition, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

update_masks_from_indices Ran
ran; our contract draft was wrong, not the code
facebookresearch/active-mri-acquisition/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)
facebookresearch/active-mri-acquisition/activemri/envs/util.py
code served (permissive licence) · get_code("cd25081a4c499255")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 1 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
check_masks_complete 1 other paper
1 later
2604.12709 (2026-04)
Information-Theoretic Optimization for Task-Adapted Compressed Sensing Magnetic Resonance Imaging
compute_psnr 1 other paper
1 later
2604.12709 (2026-04)
Information-Theoretic Optimization for Task-Adapted Compressed Sensing Magnetic Resonance Imaging
compute_ssim 1 other paper
1 later
2604.12709 (2026-04)
Information-Theoretic Optimization for Task-Adapted Compressed Sensing Magnetic Resonance Imaging
import_object_from_str 1 other paper
1 later
2604.12709 (2026-04)
Information-Theoretic Optimization for Task-Adapted Compressed Sensing Magnetic Resonance Imaging
update_masks_from_indices 1 other paper
1 later
2604.12709 (2026-04)
Information-Theoretic Optimization for Task-Adapted Compressed Sensing Magnetic Resonance Imaging

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

Repositories linked to this paper

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

Abstract

Deep learning approaches have recently shown great promise in accelerating magnetic resonance image (MRI) acquisition. The majority of existing work have focused on designing better reconstruction models given a pre-determined acquisition trajectory, ignoring the question of trajectory optimization. In this paper, we focus on learning acquisition trajectories given a fixed image reconstruction model. We formulate the problem as a sequential decision process and propose the use of reinforcement learning to solve it. Experiments on a large scale public MRI dataset of knees show that our proposed models significantly outperform the state-of-the-art in active MRI acquisition, over a large range of acceleration factors.

For agents

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

get_harvested_code_for_paper("2007.10469")
get_code_for_paper("2007.10469")
have("2007.10469")

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

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

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

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

Connect an agent — have() is free.