{"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/on-the-use-of-cortical-magnification-and-1","title":"On the use of Cortical Magnification and Saccades as Biological Proxies for Data Augmentation","arxiv_id":"2112.07173","date":"2021-12-14","proceeding":"NeurIPS Workshop SVRHM 2021 12","authors":["Binxu Wang","David Mayo","Arturo Deza","Andrei Barbu","Colin Conwell"],"abstract":"Self-supervised learning is a powerful way to learn useful representations from natural data. It has also been suggested as one possible means of building visual representation in humans, but the specific objective and algorithm are unknown. Currently, most self-supervised methods encourage the system to learn an invariant representation of different transformations of the same image in contrast to those of other images. However, such transformations are generally non-biologically plausible, and often consist of contrived perceptual schemes such as random cropping and color jittering. In this paper, we attempt to reverse-engineer these augmentations to be more biologically or perceptually plausible while still conferring the same benefits for encouraging robust representation. Critically, we find that random cropping can be substituted by cortical magnification, and saccade-like sampling of the image could also assist the representation learning. The feasibility of these transformations suggests a potential way that biological visual systems could implement self-supervision. Further, they break the widely accepted spatially-uniform processing assumption used in many computer vision algorithms, suggesting a role for spatially-adaptive computation in humans and machines alike. Our code and demo can be found here.","url_abs":"https://arxiv.org/abs/2112.07173v1","url_pdf":"https://arxiv.org/pdf/2112.07173v1.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":"on-the-use-of-cortical-magnification-and-1","repo_url":"https://github.com/animadversio/foveated_saccade_simclr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2112.07173","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.07173"}},"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/animadversio/foveated_saccade_simclr","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"unverified":13},"by_repo_kind":{"official":{"samples":14,"ran":1,"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":"b0f936d4d6ae3b8c","entry":"accuracy","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"utils.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b0f936d4d6ae3b8c"}},{"code_sha256_prefix":"3a12f4bfe3b890b0","entry":"cortical_magnif_tsr_demo","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/cort_magnif_tfm.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/cort_magnif_tfm.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":"3a12f4bfe3b890b0"}},{"code_sha256_prefix":"bc27f8b82d39e6b2","entry":"get_RandomMagnifTfm","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/cort_magnif_tfm.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/cort_magnif_tfm.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":"bc27f8b82d39e6b2"}},{"code_sha256_prefix":"6733c1958029ef68","entry":"get_cifar10_data_loaders","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"feature_eval.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/feature_eval.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":"6733c1958029ef68"}},{"code_sha256_prefix":"b56100c441687ff7","entry":"get_stl10_data_loaders","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"feature_eval.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/feature_eval.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":"b56100c441687ff7"}},{"code_sha256_prefix":"ff4b28634ac96b47","entry":"get_test_transform","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"linear_eval.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/linear_eval.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":"ff4b28634ac96b47"}},{"code_sha256_prefix":"634e4b67c5d926aa","entry":"image_standardize","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/calc_saliency.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/calc_saliency.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":"634e4b67c5d926aa"}},{"code_sha256_prefix":"4ae0f89119053f65","entry":"img_cortical_magnif_tsr","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/cort_magnif_tfm.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/cort_magnif_tfm.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":"4ae0f89119053f65"}},{"code_sha256_prefix":"9ba1efd225f82356","entry":"inference","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"linear_eval.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/linear_eval.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":"9ba1efd225f82356"}},{"code_sha256_prefix":"6d7a88514f669cac","entry":"prep_feature_readout","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"feature_eval.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/feature_eval.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":"6d7a88514f669cac"}},{"code_sha256_prefix":"1f6329a8b051f08b","entry":"resnet_forward","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/calc_saliency.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/calc_saliency.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":"1f6329a8b051f08b"}},{"code_sha256_prefix":"fe7cfba0bbfa81d5","entry":"showimg","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/calc_saliency.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/calc_saliency.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":"fe7cfba0bbfa81d5"}},{"code_sha256_prefix":"a6fbbdfce6406411","entry":"unravel_indices","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"data_aug/aug_utils.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/data_aug/aug_utils.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":"a6fbbdfce6406411"}},{"code_sha256_prefix":"5f0e459393da7338","entry":"yaml_config_hook","repo":"animadversio/foveated_saccade_simclr","repo_kind":"official","path":"linear_eval.py","file_url":"https://github.com/animadversio/foveated_saccade_simclr/blob/HEAD/linear_eval.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":"5f0e459393da7338"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}