{"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/sio-synthetic-in-distribution-data-benefits","title":"SIO: Synthetic In-Distribution Data Benefits Out-of-Distribution Detection","arxiv_id":"2303.14531","date":"2023-03-25","proceeding":null,"authors":["Jingyang Zhang","Nathan Inkawhich","Randolph Linderman","Ryan Luley","Yiran Chen","Hai Li"],"abstract":"Building up reliable Out-of-Distribution (OOD) detectors is challenging, often requiring the use of OOD data during training. In this work, we develop a data-driven approach which is distinct and complementary to existing works: Instead of using external OOD data, we fully exploit the internal in-distribution (ID) training set by utilizing generative models to produce additional synthetic ID images. The classifier is then trained using a novel objective that computes weighted loss on real and synthetic ID samples together. Our training framework, which is termed SIO, serves as a \"plug-and-play\" technique that is designed to be compatible with existing and future OOD detection algorithms, including the ones that leverage available OOD training data. Our experiments on CIFAR-10, CIFAR-100, and ImageNet variants demonstrate that SIO consistently improves the performance of nearly all state-of-the-art (SOTA) OOD detection algorithms. For instance, on the challenging CIFAR-10 v.s. CIFAR-100 detection problem, SIO improves the average OOD detection AUROC of 18 existing methods from 86.25\\% to 89.04\\% and achieves a new SOTA of 92.94\\% according to the OpenOOD benchmark. Code is available at https://github.com/zjysteven/SIO.","url_abs":"https://arxiv.org/abs/2303.14531v1","url_pdf":"https://arxiv.org/pdf/2303.14531v1.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":"sio-synthetic-in-distribution-data-benefits","repo_url":"https://github.com/zjysteven/sio","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2303.14531","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2303.14531"}},"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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zjysteven/sio","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":3,"ran_draft_wrong":3,"unverified":9},"by_repo_kind":{"official":{"samples":15,"ran":6,"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":0,"samples":[{"code_sha256_prefix":"05eda95f9800a1e9","entry":"cosine_annealing","repo":"zjysteven/sio","repo_kind":"official","path":"imagenet_train_subclasses.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/imagenet_train_subclasses.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":2,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"05eda95f9800a1e9"}},{"code_sha256_prefix":"ee80cf467065076b","entry":"conv1x1","repo":"zjysteven/sio","repo_kind":"official","path":"openood/networks/bit.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/networks/bit.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ee80cf467065076b"}},{"code_sha256_prefix":"f01b8d3901f0b289","entry":"conv3x3","repo":"zjysteven/sio","repo_kind":"official","path":"openood/networks/bit.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/networks/bit.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f01b8d3901f0b289"}},{"code_sha256_prefix":"d8339d591bbd7f52","entry":"rew_ce","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/reweight.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/reweight.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8339d591bbd7f52"}},{"code_sha256_prefix":"61492b343324d2ea","entry":"soft_cross_entropy","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/sce.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/sce.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61492b343324d2ea"}},{"code_sha256_prefix":"7023eb86801bb3a3","entry":"tf2th","repo":"zjysteven/sio","repo_kind":"official","path":"openood/networks/bit.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/networks/bit.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7023eb86801bb3a3"}},{"code_sha256_prefix":"3cce4936256bdc33","entry":"Discriminator32","repo":"zjysteven/sio","repo_kind":"official","path":"openood/networks/arpl_net.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/networks/arpl_net.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3cce4936256bdc33"}},{"code_sha256_prefix":"797cd0913159403b","entry":"Generator","repo":"zjysteven/sio","repo_kind":"official","path":"openood/networks/arpl_net.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/networks/arpl_net.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"797cd0913159403b"}},{"code_sha256_prefix":"893f424fd19a9b6c","entry":"Generator32","repo":"zjysteven/sio","repo_kind":"official","path":"openood/networks/arpl_net.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/networks/arpl_net.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"893f424fd19a9b6c"}},{"code_sha256_prefix":"45b6edb2cf78cda2","entry":"create_window","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/ssim.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"45b6edb2cf78cda2"}},{"code_sha256_prefix":"e2424ce033ba3a0f","entry":"gaussian","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/ssim.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e2424ce033ba3a0f"}},{"code_sha256_prefix":"4c1d0e3674921db5","entry":"loss_function","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/rd4ad_loss.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/rd4ad_loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4c1d0e3674921db5"}},{"code_sha256_prefix":"e1014da2309b3946","entry":"rew_sce","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/reweight.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/reweight.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1014da2309b3946"}},{"code_sha256_prefix":"d1619ad1bb7ea0f7","entry":"ssim","repo":"zjysteven/sio","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/openood/losses/ssim.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d1619ad1bb7ea0f7"}},{"code_sha256_prefix":"02f1e9718544189d","entry":"validate","repo":"zjysteven/sio","repo_kind":"official","path":"imagenet_train_subclasses.py","file_url":"https://github.com/zjysteven/sio/blob/HEAD/imagenet_train_subclasses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"02f1e9718544189d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}