SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.20295 · NeurIPS · 2025

FAST: Foreground-aware Diffusion with Accelerated Sampling Trajectory for Segmentation-oriented Anomaly Synthesis

Jinbao Wang, Guannan Jiang, Xichen Xu, Yanshu Wang, Xiaoning Lei, Guoyang Xie, Zhichao Lu

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2509.20295.json · badge: /api/ran/2509.20295.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
Chhro123/fast-foreground-aware-anomaly-synthesis canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
collect_anomaly_scores Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Chhro123/fast-foreground-aware-anomaly-synthesis/unet_utils/au_pro_util.py
pointer only (licence: NONE) · get_code("18c9bfa7e94951e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

compute_pro Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Chhro123/fast-foreground-aware-anomaly-synthesis/unet_utils/au_pro_util.py
pointer only (licence: NONE) · get_code("49b5692178958afe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

create_window Ran
ran, honoured the contract we drafted
Chhro123/fast-foreground-aware-anomaly-synthesis/unet_utils/loss.py
pointer only (licence: NONE) · get_code("443341084ce76798")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

dilation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Chhro123/fast-foreground-aware-anomaly-synthesis/utils.py
pointer only (licence: NONE) · get_code("efa7e04a6a1d4161")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

erosion Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Chhro123/fast-foreground-aware-anomaly-synthesis/utils.py
pointer only (licence: NONE) · get_code("c6be01c80da65814")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

gaussian Ran
ran, honoured the contract we drafted
Chhro123/fast-foreground-aware-anomaly-synthesis/unet_utils/loss.py
pointer only (licence: NONE) · get_code("c56b7ef16f309a45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

lerp_np Ran
ran, honoured the contract we drafted
Chhro123/fast-foreground-aware-anomaly-synthesis/perlin.py
pointer only (licence: NONE) · get_code("4de91a4627a51ea2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

ssim Ran
ran; our contract draft was wrong, not the code
Chhro123/fast-foreground-aware-anomaly-synthesis/unet_utils/loss.py
pointer only (licence: NONE) · get_code("bff794bd9bd73f94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

trapezoid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Chhro123/fast-foreground-aware-anomaly-synthesis/unet_utils/au_pro_util.py
pointer only (licence: NONE) · get_code("9d72c1f1f0d6dea4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

unnormalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Chhro123/fast-foreground-aware-anomaly-synthesis/global_GLASS.py
pointer only (licence: NONE) · get_code("c405f4afe08413a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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.

make_batch Not yet run
unverified (harvested, no recorded run)
Chhro123/fast-foreground-aware-anomaly-synthesis/generate_with_mask_mvtec.py
pointer only (licence: NONE) · get_code("c23b317a405ae12c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Chhro123/fast-foreground-aware-anomaly-synthesis when it was checked. 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 1 later) and 3 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
gaussian 160 other papers
150 dated earlier, 1 the same month, 6 later, 3 same year, order not determinable · 7 only as an assembly brick
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
and 157 more not named here
create_window 19 other papers
18 dated earlier, 1 same year, order not determinable
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
and 16 more not named here
lerp_np 8 other papers
8 dated earlier
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
2308.06748 (2023-08)
Target before Shooting: Accurate Anomaly Detection and Localization under One Millisecond via Cascade Patch Retrieval
and 5 more not named here
ssim 5 other papers
5 dated earlier
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
2302.08769 (2023-02)
Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization
and 2 more not named here
collect_anomaly_scores 3 other papers
3 dated earlier
2203.05550 (2022-03)
Back to the Feature: Classical 3D Features are (Almost) All You Need for 3D Anomaly Detection
2303.00601 (2023-03)
Multimodal Industrial Anomaly Detection via Hybrid Fusion
2312.05767 (2023-12)
AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion Model
compute_pro 3 other papers
3 dated earlier
2203.05550 (2022-03)
Back to the Feature: Classical 3D Features are (Almost) All You Need for 3D Anomaly Detection
2303.00601 (2023-03)
Multimodal Industrial Anomaly Detection via Hybrid Fusion
2312.05767 (2023-12)
AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion Model
trapezoid 3 other papers
3 dated earlier
2203.05550 (2022-03)
Back to the Feature: Classical 3D Features are (Almost) All You Need for 3D Anomaly Detection
2303.00601 (2023-03)
Multimodal Industrial Anomaly Detection via Hybrid Fusion
2312.05767 (2023-12)
AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion Model
make_batch 1 other paper
1 dated earlier
2312.05767 (2023-12)
AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion Model

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

Repositories linked to this paper

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

Abstract

Industrial anomaly segmentation relies heavily on pixel-level annotations, yet real-world anomalies are often scarce, diverse, and costly to label. Segmentationoriented 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 in https: //github.com/Chhro123/fast-foreground-aware-anomaly-synthesis.

For agents

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

get_harvested_code_for_paper("2509.20295")
get_code_for_paper("2509.20295")
have("2509.20295")

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

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

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

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

Connect an agent — have() is free.