{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2609-03475","title":"SafeRestore: Detector-Relative Risk Certificates for Selective Industrial Image Restoration","arxiv_id":"2609.03475","date":"2026-09-03","proceeding":null,"authors":["Shaoliang Yang","Jun Wang"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2609.03475","url_pdf":"https://arxiv.org/pdf/2609.03475","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2609.03475","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2609.03475"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/nbbllxx0/SafeRestore","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"unverified":14},"by_repo_kind":{"found_in_text":{"samples":14,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":14,"samples":[{"code_sha256_prefix":"78b4c1455f0aa696","entry":"build_detector","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/torch_models.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/torch_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"78b4c1455f0aa696"}},{"code_sha256_prefix":"733a1615dbab679a","entry":"build_restorer","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/torch_models.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/torch_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"733a1615dbab679a"}},{"code_sha256_prefix":"f2d8329df4fbda17","entry":"choose_threshold","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/certification.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/certification.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"f2d8329df4fbda17"}},{"code_sha256_prefix":"356e969b2091c75e","entry":"clopper_pearson_upper","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/certification.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/certification.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"356e969b2091c75e"}},{"code_sha256_prefix":"3ac5072227ec45b4","entry":"degrade_batch","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/degradation.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/degradation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"3ac5072227ec45b4"}},{"code_sha256_prefix":"1b6eddd23399644a","entry":"degrade_mixed_batch","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/degradation_schedule.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/degradation_schedule.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1b6eddd23399644a"}},{"code_sha256_prefix":"8d66fbfe34d5bd87","entry":"evaluate_threshold","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/certification.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/certification.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8d66fbfe34d5bd87"}},{"code_sha256_prefix":"15aca1baec96308b","entry":"forward_consistency","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/degradation.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/degradation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"15aca1baec96308b"}},{"code_sha256_prefix":"0f7ca407247e48fc","entry":"inventory_sha256","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/datasets/carinthia_s.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/datasets/carinthia_s.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"0f7ca407247e48fc"}},{"code_sha256_prefix":"b3c6a061ea606108","entry":"level_for_sample","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/degradation_schedule.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/degradation_schedule.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b3c6a061ea606108"}},{"code_sha256_prefix":"85ba7dd9702a45d3","entry":"load_carinthia_s","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/datasets/carinthia_s.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/datasets/carinthia_s.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"85ba7dd9702a45d3"}},{"code_sha256_prefix":"c9450247acb60341","entry":"quantile_evidence_scores","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/scores.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/scores.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c9450247acb60341"}},{"code_sha256_prefix":"7e5ed4366c393c96","entry":"restore_methods","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/degradation.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/degradation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7e5ed4366c393c96"}},{"code_sha256_prefix":"6eebe82792a3fe01","entry":"soft_dice_loss","repo":"nbbllxx0/SafeRestore","repo_kind":"found_in_text","path":"src/saferestore/torch_models.py","file_url":"https://github.com/nbbllxx0/SafeRestore/blob/HEAD/src/saferestore/torch_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6eebe82792a3fe01"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_daily_20260904.json"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}