{"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/tailoring-mixup-to-data-using-kernel-warping","title":"Tailoring Mixup to Data for Calibration","arxiv_id":"2311.01434","date":"2023-11-02","proceeding":null,"authors":["Quentin Bouniot","Pavlo Mozharovskyi","Florence d'Alché-Buc"],"abstract":"Among all data augmentation techniques proposed so far, linear interpolation of training samples, also called Mixup, has found to be effective for a large panel of applications. Along with improved predictive performance, Mixup is also a good technique for improving calibration. However, mixing data carelessly can lead to manifold mismatch, i.e., synthetic data lying outside original class manifolds, which can deteriorate calibration. In this work, we show that the likelihood of assigning a wrong label with mixup increases with the distance between data to mix. To this end, we propose to dynamically change the underlying distributions of interpolation coefficients depending on the similarity between samples to mix, and define a flexible framework to do so without losing in diversity. We provide extensive experiments for classification and regression tasks, showing that our proposed method improves predictive performance and calibration of models, while being much more efficient.","url_abs":"https://arxiv.org/abs/2311.01434v3","url_pdf":"https://arxiv.org/pdf/2311.01434v3.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":"tailoring-mixup-to-data-using-kernel-warping","repo_url":"https://github.com/qbouniot/sim_kernel_mixup","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"tailoring-mixup-to-data-using-kernel-warping","repo_url":"https://github.com/ensta-u2is/torch-uncertainty","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"diversity","task_name":"Diversity"}],"methods":[{"method_slug":"mixup","method_name":"Mixup"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.01434","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.01434"}},"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/qbouniot/sim_kernel_mixup","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ensta-u2is/torch-uncertainty","reach":null}],"summary":{"ran":2,"ran_honours":3,"ran_violates":1,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"repositories":2}},"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":5,"samples":[{"code_sha256_prefix":"b243271a19b70154","entry":"AbstractMixup","repo":"qbouniot/sim_kernel_mixup","repo_kind":"official","path":"classification/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/qbouniot/sim_kernel_mixup/blob/HEAD/classification/torch_uncertainty/transforms/mixup.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":"b243271a19b70154"}},{"code_sha256_prefix":"fe7d51ce23416862","entry":"QuantileMixup","repo":"qbouniot/sim_kernel_mixup","repo_kind":"official","path":"classification/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/qbouniot/sim_kernel_mixup/blob/HEAD/classification/torch_uncertainty/transforms/mixup.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":"fe7d51ce23416862"}},{"code_sha256_prefix":"56667175bf0ca63c","entry":"beta_warping","repo":"qbouniot/sim_kernel_mixup","repo_kind":"official","path":"classification/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/qbouniot/sim_kernel_mixup/blob/HEAD/classification/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"56667175bf0ca63c"}},{"code_sha256_prefix":"a3c6463165b6305a","entry":"beta_warping","repo":"qbouniot/sim_kernel_mixup","repo_kind":"official","path":"classification/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/qbouniot/sim_kernel_mixup/blob/HEAD/classification/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3c6463165b6305a"}},{"code_sha256_prefix":"ad006d57e5e7c02f","entry":"sim_gauss_kernel","repo":"qbouniot/sim_kernel_mixup","repo_kind":"official","path":"classification/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/qbouniot/sim_kernel_mixup/blob/HEAD/classification/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ad006d57e5e7c02f"}},{"code_sha256_prefix":"a5b0d4bc46cebb2b","entry":"sim_gauss_kernel","repo":"ensta-u2is/torch-uncertainty","repo_kind":"official","path":"src/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/ensta-u2is/torch-uncertainty/blob/HEAD/src/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a5b0d4bc46cebb2b"}},{"code_sha256_prefix":"5cb2cae19b553538","entry":"AbstractMixup","repo":"ensta-u2is/torch-uncertainty","repo_kind":"official","path":"src/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/ensta-u2is/torch-uncertainty/blob/HEAD/src/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5cb2cae19b553538"}},{"code_sha256_prefix":"e438659ca790343b","entry":"WarpingMixup","repo":"ensta-u2is/torch-uncertainty","repo_kind":"official","path":"src/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/ensta-u2is/torch-uncertainty/blob/HEAD/src/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e438659ca790343b"}},{"code_sha256_prefix":"b7f0e8b7bdcb76ef","entry":"beta_warping","repo":"ensta-u2is/torch-uncertainty","repo_kind":"official","path":"src/torch_uncertainty/transforms/mixup.py","file_url":"https://github.com/ensta-u2is/torch-uncertainty/blob/HEAD/src/torch_uncertainty/transforms/mixup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b7f0e8b7bdcb76ef"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}