{"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/patchrot-a-self-supervised-technique-for","title":"PatchRot: A Self-Supervised Technique for Training Vision Transformers","arxiv_id":"2210.15722","date":"2022-10-27","proceeding":null,"authors":["Sachin Chhabra","Prabal Bijoy Dutta","Hemanth Venkateswara","Baoxin Li"],"abstract":"Vision transformers require a huge amount of labeled data to outperform convolutional neural networks. However, labeling a huge dataset is a very expensive process. Self-supervised learning techniques alleviate this problem by learning features similar to supervised learning in an unsupervised way. In this paper, we propose a self-supervised technique PatchRot that is crafted for vision transformers. PatchRot rotates images and image patches and trains the network to predict the rotation angles. The network learns to extract both global and local features from an image. Our extensive experiments on different datasets showcase PatchRot training learns rich features which outperform supervised learning and compared baseline.","url_abs":"https://arxiv.org/abs/2210.15722v1","url_pdf":"https://arxiv.org/pdf/2210.15722v1.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":"patchrot-a-self-supervised-technique-for","repo_url":"https://github.com/s-chh/patchrot","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2210.15722","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.15722"}},"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":"deterministic:regex_extraction","url":"https://github.com/s-chh/PatchRot","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/s-chh/patchrot","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"ran_draft_wrong":4,"unverified":2},"by_repo_kind":{"official":{"samples":8,"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":"b4ae597a4c851ff5","entry":"PatchRot","repo":"s-chh/patchrot","repo_kind":"official","path":"solver_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/solver_pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b4ae597a4c851ff5"}},{"code_sha256_prefix":"aae32c86517c932d","entry":"patchrot_classifier","repo":"s-chh/patchrot","repo_kind":"official","path":"solver_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/solver_pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aae32c86517c932d"}},{"code_sha256_prefix":"85b0c6fbda1d906b","entry":"reshape_batch","repo":"s-chh/patchrot","repo_kind":"official","path":"solver_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/solver_pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"85b0c6fbda1d906b"}},{"code_sha256_prefix":"ac07af3582dad042","entry":"tiny_deit","repo":"s-chh/patchrot","repo_kind":"official","path":"solver_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/solver_pretrain.py","link_basis":"first_harvest_node","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":"ac07af3582dad042"}},{"code_sha256_prefix":"8b39df55e726edfc","entry":"update_args","repo":"s-chh/patchrot","repo_kind":"official","path":"main_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/main_pretrain.py","link_basis":"first_harvest_node","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":"8b39df55e726edfc"}},{"code_sha256_prefix":"b38402b1e21ea7bd","entry":"update_args","repo":"s-chh/patchrot","repo_kind":"official","path":"main_finetune.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/main_finetune.py","link_basis":"first_harvest_node","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":"b38402b1e21ea7bd"}},{"code_sha256_prefix":"decc3f36ccf0b149","entry":"Solver","repo":"s-chh/patchrot","repo_kind":"official","path":"solver_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/solver_pretrain.py","link_basis":"first_harvest_node","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":"decc3f36ccf0b149"}},{"code_sha256_prefix":"e2218153f44c5613","entry":"patchrot_loader","repo":"s-chh/patchrot","repo_kind":"official","path":"solver_pretrain.py","file_url":"https://github.com/s-chh/patchrot/blob/HEAD/solver_pretrain.py","link_basis":"first_harvest_node","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":"e2218153f44c5613"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}