Skip to content

Add compressive sensing and MRI benchmarks, rename existing ones - #15

Merged
mrava87 merged 8 commits into
mainfrom
new-benchmarks
Oct 6, 2026
Merged

mrava87 merged 8 commits into
mainfrom
new-benchmarks

Conversation

@mrava87

@mrava87 mrava87 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Two new benchmarks based on the PyLops/PyProximal tutorials, one new solver, and a renaming of three existing benchmarks.

  • compressive_sensing (new): recovery of a sparse vector (256 samples, 16 spikes) from 64 random Gaussian measurements. Compares L1 solvers (ISTA, FISTA, AA-ISTA, TwIST, IRLS, ADMM basis pursuit, primal-dual BPDN), greedy/L0 solvers (OMP, IHT) and an LSQR baseline. At this sparsity the convex L1 solvers recover the model (~51 dB) and the greedy ones do not (~21–23 dB).
  • mri (new): Shepp-Logan phantom from k-space sampled along 30 seeded random radial lines (pylops.medical.MRI2D with an explicit mask, since the random masks of MRI2D are not seeded). Compares zero filling, FISTA-DWT2D, isotropic and anisotropic TV (Split Bregman, primal-dual, linearized ADMM), and Plug-and-Play and RED with BM3D. Anisotropic TV is best (~42–43 dB), isotropic TV ~36 dB, PnP/RED 23–27 dB.
  • image_deblurring: new LinearizedADMM-rMS solver (relaxed Mumford-Shah), 21.7 dB, close to the current leader.
  • Shared code: PyProximal upgraded to >= 0.13.0 (ships RED), bm3d added as a dependency, and a shared pylops_bench.denoisers.bm3d_denoise helper for PnP/RED.
  • Renaming: denoising → image_denoising, poststack → seismic_poststack, prestack → seismic_prestack, with their result tables (moved with git mv, so existing leaderboards carry over), tests and page titles. Objective names are unchanged, as they are part of the results upsert key. The README table is sorted.

Since shared code changed, CI will rerun every benchmark.

Notes

Test plan

  • uv run pytest (45 passed)
  • uv run benchopt test benchmarks/<name> --skip-env for all eight benchmarks, including the existing ones after the PyProximal upgrade and after the renaming
  • uv run benchopt run of compressive_sensing and mri (with run_config.yml) and of the new deblurring solver; results collected with scripts/collect_results.py
  • uv run sphinx-build -W docs ... with those results and after the renaming
  • .github/scripts/find_benchmarks.py --all lists the eight benchmarks with the new names

🤖 Generated with Claude Code

mrava87 and others added 8 commits October 6, 2026 21:27
PyProximal 0.13 ships Regularization by Denoising (RED). bm3d is added as a
dependency, wrapped in pylops_bench.denoisers.bm3d_denoise for the
Plug-and-Play and RED solvers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recovery of a sparse vector (256 samples, 16 spikes) from 64 random Gaussian
measurements, comparing L1 solvers (ISTA, FISTA, AA-ISTA, TwIST, IRLS,
ADMM basis pursuit, primal-dual BPDN), greedy/L0 solvers (OMP, IHT) and LSQR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reconstruction of the Shepp-Logan phantom from k-space data sampled along 30
seeded random radial lines (pylops.medical.MRI2D with an explicit mask),
comparing zero filling, FISTA in the wavelet domain, isotropic and
anisotropic TV (Split Bregman, primal-dual, linearized ADMM), and
Plug-and-Play and RED with the BM3D denoiser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
denoising -> image_denoising, poststack -> seismic_poststack and
prestack -> seismic_prestack, with their result tables, tests and page
titles, so that names follow the domain_problem pattern. The objective
names are unchanged, as they are part of the results upsert key. The
benchmark table in the README lists the new benchmarks and is sorted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seeded mask with 30 radial lines samples about 18 % of k-space, not 16 %.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mrava87
mrava87 merged commit e96c462 into main Oct 6, 2026
10 checks passed
@mrava87
mrava87 deleted the new-benchmarks branch October 6, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant