{"about":{"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.","site":"https://codewithpapers.app","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","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/student-teacher-feature-pyramid-matching-for","title":"Student-Teacher Feature Pyramid Matching for Anomaly Detection","arxiv_id":"2103.04257","date":"2021-03-07","proceeding":null,"authors":["Guodong Wang","Shumin Han","Errui Ding","Di Huang"],"abstract":"Anomaly detection is a challenging task and usually formulated as an one-class learning problem for the unexpectedness of anomalies. This paper proposes a simple yet powerful approach to this issue, which is implemented in the student-teacher framework for its advantages but substantially extends it in terms of both accuracy and efficiency. Given a strong model pre-trained on image classification as the teacher, we distill the knowledge into a single student network with the identical architecture to learn the distribution of anomaly-free images and this one-step transfer preserves the crucial clues as much as possible. Moreover, we integrate the multi-scale feature matching strategy into the framework, and this hierarchical feature matching enables the student network to receive a mixture of multi-level knowledge from the feature pyramid under better supervision, thus allowing to detect anomalies of various sizes. The difference between feature pyramids generated by the two networks serves as a scoring function indicating the probability of anomaly occurring. Due to such operations, our approach achieves accurate and fast pixel-level anomaly detection. Very competitive results are delivered on the MVTec anomaly detection dataset, superior to the state of the art ones.","url_abs":"https://arxiv.org/abs/2103.04257v3","url_pdf":"https://arxiv.org/pdf/2103.04257v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/CuberrChen/STFPM-Paddle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"paddle","reach":{"status":"unanswered"}},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/Rthete/STPM-mindspore","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"mindspore","reach":{"status":"unanswered"}},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/SimonThomine/DistillationAD","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/SimonThomine/RememberingNormality","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/gdwang08/STFPM","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/hcw-00/STPM_anomaly_detection","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/open-edge-platform/geti","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/xiahaifeng1995/STPM-Anomaly-Detection-Localization-master","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/kingcong/models/tree/main/stpm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"student-teacher-feature-pyramid-matching-for","repo_url":"https://github.com/openvinotoolkit/anomalib","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"anomaly-detection","task_name":"Anomaly Detection"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"unsupervised-anomaly-detection","task_name":"Unsupervised Anomaly Detection"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/anomaly-detection-on-mvtec-ad","task":"Anomaly Detection","dataset":"MVTec AD","model":"STPM","rank_in_archive_order":88,"of":148,"metrics":{"Detection AUROC":"95.5","Segmentation AUROC":"97.0"},"uses_additional_data":false},{"leaderboard":"/sota/anomaly-detection-on-visa","task":"Anomaly Detection","dataset":"VisA","model":"STPM","rank_in_archive_order":37,"of":50,"metrics":{"Detection AUROC":"83.3","Segmentation AUPRO (until 30% FPR)":"62.0"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2103.04257","atlas_url":"https://app.syntology.ai/?focus=2103.04257","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"2103.04257"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2103.04257\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2103.04257"},"call":"get_concepts_for_paper(arxiv_id=\"2103.04257\")"}],"by_repo":[{"repo":"CuberrChen/STFPM-Paddle","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"Rthete/STPM-mindspore","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"SimonThomine/DistillationAD","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2201.10703"],"harvested_for_calls":[{"arxiv_id":"2201.10703","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2201.10703"},"call":"get_harvested_code_for_paper(arxiv_id=\"2201.10703\")"}]},{"repo":"SimonThomine/RememberingNormality","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2201.10703"],"harvested_for_calls":[{"arxiv_id":"2201.10703","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2201.10703"},"call":"get_harvested_code_for_paper(arxiv_id=\"2201.10703\")"}]},{"repo":"gdwang08/STFPM","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"hcw-00/STPM_anomaly_detection","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"open-edge-platform/geti","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"xiahaifeng1995/STPM-Anomaly-Detection-Localization-master","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"kingcong/models","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2111.12294"],"harvested_for_calls":[{"arxiv_id":"2111.12294","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2111.12294"},"call":"get_harvested_code_for_paper(arxiv_id=\"2111.12294\")"}]},{"repo":"openvinotoolkit/anomalib","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_harvested_for_is":"harvested_for: the arXiv ids (as Syntology's graph holds them) of every paper whose samples Syntology's graph links to this repository, in arXiv-id order, complete; the page names the first 3 and says how many more. A link only: it does not say the papers are the same work, that one copied the other, or that the code implements this paper's method; harvested_for_calls gives the get_harvested_code_for_paper call for each arXiv-shaped id among them","by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"f863e65632a8628f8164f3b3635db3c955c2c1f1c4bc856049251b192b7aba4e","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}