{"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-2509-20295","title":"FAST: Foreground-aware Diffusion with Accelerated Sampling Trajectory for Segmentation-oriented Anomaly Synthesis","arxiv_id":"2509.20295","date":"2025-09-24","proceeding":"NeurIPS","authors":["Xichen Xu","Yanshu Wang","Jinbao Wang","Xiaoning Lei","Guoyang Xie","Guannan Jiang","Zhichao Lu"],"abstract":"Industrial anomaly segmentation relies heavily on pixel-level annotations, yet real-world anomalies are often scarce, diverse, and costly to label. Segmentation-oriented industrial anomaly synthesis (SIAS) has emerged as a promising alternative; however, existing methods struggle to balance sampling efficiency and generation quality. Moreover, most approaches treat all spatial regions uniformly, overlooking the distinct statistical differences between anomaly and background areas. This uniform treatment hinders the synthesis of controllable, structure-specific anomalies tailored for segmentation tasks. In this paper, we propose FAST, a foreground-aware diffusion framework featuring two novel modules: the Anomaly-Informed Accelerated Sampling (AIAS) and the Foreground-Aware Reconstruction Module (FARM). AIAS is a training-free sampling algorithm specifically designed for segmentation-oriented industrial anomaly synthesis, which accelerates the reverse process through coarse-to-fine aggregation and enables the synthesis of state-of-the-art segmentation-oriented anomalies in as few as 10 steps. Meanwhile, FARM adaptively adjusts the anomaly-aware noise within the masked foreground regions at each sampling step, preserving localized anomaly signals throughout the denoising trajectory. Extensive experiments on multiple industrial benchmarks demonstrate that FAST consistently outperforms existing anomaly synthesis methods in downstream segmentation tasks. We release the code at: https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis.","url_abs":"https://arxiv.org/abs/2509.20295","url_pdf":"https://arxiv.org/pdf/2509.20295","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":{"syntology_url":"https://syntology.ai/paper/2509.20295","atlas_url":"https://app.syntology.ai/?focus=2509.20295","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.20295"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/Chhro123/fast-foreground-aware-anomaly-synthesis","reach":{"status":"ok"}}],"summary":{"ran_honours":1,"unverified":10},"by_repo_kind":{"found_in_text":{"samples":11,"ran":1,"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":11,"samples":[{"code_sha256_prefix":"c56b7ef16f309a45","entry":"gaussian","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"unet_utils/loss.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/unet_utils/loss.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c56b7ef16f309a45"}},{"code_sha256_prefix":"18c9bfa7e94951e9","entry":"collect_anomaly_scores","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"unet_utils/au_pro_util.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/unet_utils/au_pro_util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"18c9bfa7e94951e9"}},{"code_sha256_prefix":"49b5692178958afe","entry":"compute_pro","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"unet_utils/au_pro_util.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/unet_utils/au_pro_util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"49b5692178958afe"}},{"code_sha256_prefix":"443341084ce76798","entry":"create_window","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"unet_utils/loss.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/unet_utils/loss.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"443341084ce76798"}},{"code_sha256_prefix":"efa7e04a6a1d4161","entry":"dilation","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"efa7e04a6a1d4161"}},{"code_sha256_prefix":"c6be01c80da65814","entry":"erosion","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c6be01c80da65814"}},{"code_sha256_prefix":"4de91a4627a51ea2","entry":"lerp_np","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"perlin.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/perlin.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4de91a4627a51ea2"}},{"code_sha256_prefix":"c23b317a405ae12c","entry":"make_batch","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"generate_with_mask_mvtec.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/generate_with_mask_mvtec.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c23b317a405ae12c"}},{"code_sha256_prefix":"bff794bd9bd73f94","entry":"ssim","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"unet_utils/loss.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/unet_utils/loss.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bff794bd9bd73f94"}},{"code_sha256_prefix":"9d72c1f1f0d6dea4","entry":"trapezoid","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"unet_utils/au_pro_util.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/unet_utils/au_pro_util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d72c1f1f0d6dea4"}},{"code_sha256_prefix":"c405f4afe08413a5","entry":"unnormalize","repo":"Chhro123/fast-foreground-aware-anomaly-synthesis","repo_kind":"found_in_text","path":"global_GLASS.py","file_url":"https://github.com/Chhro123/fast-foreground-aware-anomaly-synthesis/blob/HEAD/global_GLASS.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c405f4afe08413a5"}}]},"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_api"},"syntology_extracted_results":null}