{"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/learning-data-augmentation-with-online","title":"Learning Data Augmentation with Online Bilevel Optimization for Image Classification","arxiv_id":"2006.14699","date":"2020-06-25","proceeding":null,"authors":["Saypraseuth Mounsaveng","Issam Laradji","Ismail Ben Ayed","David Vazquez","Marco Pedersoli"],"abstract":"Data augmentation is a key practice in machine learning for improving generalization performance. However, finding the best data augmentation hyperparameters requires domain knowledge or a computationally demanding search. We address this issue by proposing an efficient approach to automatically train a network that learns an effective distribution of transformations to improve its generalization. Using bilevel optimization, we directly optimize the data augmentation parameters using a validation set. This framework can be used as a general solution to learn the optimal data augmentation jointly with an end task model like a classifier. Results show that our joint training method produces an image classification accuracy that is comparable to or better than carefully hand-crafted data augmentation. Yet, it does not need an expensive external validation loop on the data augmentation hyperparameters.","url_abs":"https://arxiv.org/abs/2006.14699v2","url_pdf":"https://arxiv.org/pdf/2006.14699v2.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":"learning-data-augmentation-with-online","repo_url":"https://github.com/ElementAI/bilevel_augment","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"learning-data-augmentation-with-online","repo_url":"https://github.com/ComputerVisionTalks/Talk-01","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"bilevel-optimization","task_name":"Bilevel Optimization"},{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2006.14699","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2006.14699"}},"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/ComputerVisionTalks/Talk-01","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ElementAI/bilevel_augment","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":6,"ran":0,"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":"7f15b16f55aa1db2","entry":"accuracy","repo":"ElementAI/bilevel_augment","repo_kind":"official","path":"src/models/blvl.py","file_url":"https://github.com/ElementAI/bilevel_augment/blob/HEAD/src/models/blvl.py","link_basis":"plan_row","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":"7f15b16f55aa1db2"}},{"code_sha256_prefix":"3e8cf23b2ed72eb0","entry":"adjust_learning_rate_netA","repo":"ElementAI/bilevel_augment","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/ElementAI/bilevel_augment/blob/HEAD/src/utils.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":"3e8cf23b2ed72eb0"}},{"code_sha256_prefix":"df07458189899431","entry":"adjust_learning_rate_netC","repo":"ElementAI/bilevel_augment","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/ElementAI/bilevel_augment/blob/HEAD/src/utils.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":"df07458189899431"}},{"code_sha256_prefix":"74cb43245cb0b34d","entry":"csv_reader","repo":"ElementAI/bilevel_augment","repo_kind":"official","path":"src/datasets/bach.py","file_url":"https://github.com/ElementAI/bilevel_augment/blob/HEAD/src/datasets/bach.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":"74cb43245cb0b34d"}},{"code_sha256_prefix":"eb5490223b87bab3","entry":"decode_classes","repo":"ElementAI/bilevel_augment","repo_kind":"official","path":"src/datasets/bach.py","file_url":"https://github.com/ElementAI/bilevel_augment/blob/HEAD/src/datasets/bach.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":"eb5490223b87bab3"}},{"code_sha256_prefix":"4e019bff79f375f3","entry":"get_files","repo":"ElementAI/bilevel_augment","repo_kind":"official","path":"src/datasets/bach.py","file_url":"https://github.com/ElementAI/bilevel_augment/blob/HEAD/src/datasets/bach.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":"4e019bff79f375f3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}