{"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/robust-classification-by-coupling-data","title":"Robust Classification by Coupling Data Mollification with Label Smoothing","arxiv_id":"2406.01494","date":"2024-06-03","proceeding":null,"authors":["Markus Heinonen","Ba-Hien Tran","Michael Kampffmeyer","Maurizio Filippone"],"abstract":"Introducing training-time augmentations is a key technique to enhance generalization and prepare deep neural networks against test-time corruptions. Inspired by the success of generative diffusion models, we propose a novel approach of coupling data mollification, in the form of image noising and blurring, with label smoothing to align predicted label confidences with image degradation. The method is simple to implement, introduces negligible overheads, and can be combined with existing augmentations. We demonstrate improved robustness and uncertainty quantification on the corrupted image benchmarks of CIFAR, TinyImageNet and ImageNet datasets.","url_abs":"https://arxiv.org/abs/2406.01494v3","url_pdf":"https://arxiv.org/pdf/2406.01494v3.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":"robust-classification-by-coupling-data","repo_url":"https://github.com/markusheinonen/supervised-mollification","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"robust-classification","task_name":"Robust classification"},{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[{"method_slug":"align","method_name":"ALIGN"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.01494","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.01494"}},"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/markusheinonen/supervised-mollification","reach":{"status":"ok"}}],"summary":{"ran":17,"unverified":3},"by_repo_kind":{"official":{"samples":20,"ran":17,"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":20,"samples":[{"code_sha256_prefix":"f0a00e81baf0e177","entry":"DenseNet12x100","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/densenet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/densenet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f0a00e81baf0e177"}},{"code_sha256_prefix":"ccb13c7c13a4d913","entry":"DenseNet12x40","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/densenet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/densenet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ccb13c7c13a4d913"}},{"code_sha256_prefix":"397de955665b5839","entry":"PreActResNet18","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/presnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/presnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"397de955665b5839"}},{"code_sha256_prefix":"13ae2d9448f36c6c","entry":"PreActResNet34","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/presnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/presnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"13ae2d9448f36c6c"}},{"code_sha256_prefix":"555b7fd003bacfe8","entry":"PreActResNet50","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/presnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/presnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"555b7fd003bacfe8"}},{"code_sha256_prefix":"fc70aa6b2f78beb1","entry":"ResNet18","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fc70aa6b2f78beb1"}},{"code_sha256_prefix":"1756cb6f79386fd3","entry":"ResNet34","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1756cb6f79386fd3"}},{"code_sha256_prefix":"3be9a2bd8d6db878","entry":"ResNet50","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3be9a2bd8d6db878"}},{"code_sha256_prefix":"3d5aee33467f99af","entry":"ResNext29","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnext.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnext.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d5aee33467f99af"}},{"code_sha256_prefix":"9e81826d8a615588","entry":"WRN40x10","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/wrn.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/wrn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9e81826d8a615588"}},{"code_sha256_prefix":"671ac220b371711a","entry":"WRN40x2","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/wrn.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/wrn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"671ac220b371711a"}},{"code_sha256_prefix":"bb33f10b137e0050","entry":"evaluate_likelihood","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/results.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/results.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bb33f10b137e0050"}},{"code_sha256_prefix":"1a01cd3167837bc1","entry":"linearscale","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/data.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1a01cd3167837bc1"}},{"code_sha256_prefix":"cec2c92b1206664a","entry":"load_batch","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/results.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/results.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cec2c92b1206664a"}},{"code_sha256_prefix":"1abab4e0bd33edbf","entry":"make_layers","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/allconvnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/allconvnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1abab4e0bd33edbf"}},{"code_sha256_prefix":"26408fb3c5c566c7","entry":"skip","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/data.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"26408fb3c5c566c7"}},{"code_sha256_prefix":"58f4238970d935c9","entry":"tvresnet34","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnet_tv.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnet_tv.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"58f4238970d935c9"}},{"code_sha256_prefix":"e20203aa9d686c88","entry":"NasNet","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/nasnet.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/nasnet.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":"e20203aa9d686c88"}},{"code_sha256_prefix":"f98b8782e2b31be0","entry":"tvresnet18","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnet_tv.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnet_tv.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":"f98b8782e2b31be0"}},{"code_sha256_prefix":"f4e0809214da94e5","entry":"tvresnet50","repo":"markusheinonen/supervised-mollification","repo_kind":"official","path":"src/networks/resnet_tv.py","file_url":"https://github.com/markusheinonen/supervised-mollification/blob/HEAD/src/networks/resnet_tv.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":"f4e0809214da94e5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}