Papers › SafeRestore: Detector-Relative Risk Certificates for Selective Industrial Image Restoration

SafeRestore: Detector-Relative Risk Certificates for Selective Industrial Image Restoration

3 Sep 2026arXiv:2609.03475added by Syntology

Shaoliang Yang, Jun Wang

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Industrial inspection pipelines often restore a measured image before a detector acts on it, yet restoration can suppress detector-supported defect structure or create clean-region activations. We formulate restoration as a selective action problem over the measured display, five restored candidates, and review. SafeRestore ranks candidates with action-specific fitted scores, chooses a gate on threshold-tuning data, and evaluates the fixed gate on a disjoint certification sample with two one-sided exact binomial bounds: one for the positive-conditional evidence-loss incident rate and one for the all-accepted excess-activation incident rate. The guarantee is marginal for one policy fixed before its certification outcomes are observed, under an image-level i.i.d. working model. In a retrospective split-sample study of 4,591 public Carinthia-S images, the protocol yields auditable risk-coverage behavior. The primary all-action policy passes in one of five training repetitions (12.0% +/- 26.9% pass-gated test coverage when failures count as zero), whereas fixed bicubic and reduced-complexity variants pass more often. On reserved morphologies, evidence-loss incidence rises to 81.1-90.3%, and KolektorSDD lacks both detector competence and enough positive certification images for the stated target. The contribution is therefore an auditable, detector-relative framework for deciding when a transformed image may be returned automatically and when review remains necessary -- not a claim that adaptive routing outperforms simpler policies on the present evidence.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 14 code samples harvested from 1 repository linked to this paper: 13 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 9 where Syntology's instrument failed) · 1 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 13 ran (4 with no instrument failure; 9 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

nbbllxx0/SafeRestore found in paper text by SyntologyNOASSERTIONSyntology: 14 samples, 13 ran (9 instrument-failed) · 1 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested: 13 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 9 where Syntology's instrument failed) · 1 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

9ran · our draft was wrong
4ran
1unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from nbbllxx0/SafeRestore. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

nbbllxx0/SafeRestore found in paper text by Syntology 14 samples, 13 ran (9 instrument-failed) · 1 unverified
build_detector src/saferestore/torch_models.py ran · our draft was wrong licence not identified · pointer only · 78b4c1455f0aa696 · report fixture: signature family:str/0/str, base:int/0/int, dropout:float/0/float · returned AttentionUNet · level recorded 2026-09-26
build_restorer src/saferestore/torch_models.py ran · our draft was wrong licence not identified · pointer only · 733a1615dbab679a · report fixture: signature family:str/0/str, channels:int/0/int, blocks:int/0/int · returned CompactRestorer · level recorded 2026-09-26
choose_threshold src/saferestore/certification.py ran licence not identified · pointer only · f2d8329df4fbda17 · report fixture: signature scores:ndarray/1/float, positive:ndarray/1/bool, deletion_errors:ndarray/1/bool, invention_errors:ndarray/1/bool, targets:DualRiskTargets/0/? · returned float · level recorded 2026-09-26
clopper_pearson_upper src/saferestore/certification.py ran fingerprinted licence not identified · pointer only · 356e969b2091c75e · report fixture: signature errors:int/0/int, count:int/0/int, delta:float/0/float · returned float · level recorded 2026-09-26
degrade_batch src/saferestore/degradation.py ran · our draft was wrong licence not identified · pointer only · 3ac5072227ec45b4 · report fixture: signature high_resolution:Tensor/4/float, scale:int/0/int, blur_sigma:float/0/float, noise_std:float/0/float, generator:Generator/0/? · returned tuple · level recorded 2026-09-26
evaluate_threshold src/saferestore/certification.py ran licence not identified · pointer only · 8d66fbfe34d5bd87 · report fixture: signature scores:ndarray/1/float, threshold:float/0/float, positive:ndarray/1/bool, deletion_errors:ndarray/1/bool, invention_errors:ndarray/1/bool, prevalences:tuple/1/float · returned dict · level recorded 2026-09-26
forward_consistency src/saferestore/degradation.py ran · our draft was wrong fingerprinted licence not identified · pointer only · 15aca1baec96308b · report fixture: signature restored:Tensor/4/float, low:Tensor/4/float · returned Tensor · level recorded 2026-09-26
inventory_sha256 src/saferestore/datasets/carinthia_s.py ran · our draft was wrong licence not identified · pointer only · 0f7ca407247e48fc · report fixture: signature items:list/1/CarinthiaSItem · returned str · level recorded 2026-09-26
level_for_sample src/saferestore/degradation_schedule.py ran · our draft was wrong licence not identified · pointer only · b3c6a061ea606108 · report fixture: signature sample_id:str/0/str, split:str/0/str, corruption_key:str/0/str · returned DegradationLevel · level recorded 2026-09-26
load_carinthia_s src/saferestore/datasets/carinthia_s.py ran · our draft was wrong licence not identified · pointer only · 85ba7dd9702a45d3 · report fixture: signature root:PosixPath/0/? · returned list · level recorded 2026-09-26
quantile_evidence_scores src/saferestore/scores.py ran · our draft was wrong licence not identified · pointer only · c9450247acb60341 · report fixture: signature raw_probability:ndarray/2/float, restored_probability:ndarray/2/float, restoration_ensemble:ndarray/3/float, data_consistency:ndarray/1/float, quantile:float/0/float · returned dict · level recorded 2026-09-26
restore_methods src/saferestore/degradation.py ran · our draft was wrong licence not identified · pointer only · 7e5ed4366c393c96 · report fixture: signature low:Tensor/4/float, target_size:tuple/1/int · returned dict · level recorded 2026-09-26
soft_dice_loss src/saferestore/torch_models.py ran fingerprinted licence not identified · pointer only · 6eebe82792a3fe01 · report fixture: signature logits:Tensor/3/float, target:Tensor/3/float, eps:float/0/float · returned Tensor · level recorded 2026-09-26
degrade_mixed_batch src/saferestore/degradation_schedule.py unverified licence not identified · pointer only · 1b6eddd23399644a · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2609.03475, was issued in September 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections