{"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/relationmatch-matching-in-batch-relationships","title":"RelationMatch: Matching In-batch Relationships for Semi-supervised Learning","arxiv_id":"2305.10397","date":"2023-05-17","proceeding":null,"authors":["Yifan Zhang","Jingqin Yang","Zhiquan Tan","Yang Yuan"],"abstract":"Semi-supervised learning has achieved notable success by leveraging very few labeled data and exploiting the wealth of information derived from unlabeled data. However, existing algorithms usually focus on aligning predictions on paired data points augmented from an identical source, and overlook the inter-point relationships within each batch. This paper introduces a novel method, RelationMatch, which exploits in-batch relationships with a matrix cross-entropy (MCE) loss function. Through the application of MCE, our proposed method consistently surpasses the performance of established state-of-the-art methods, such as FixMatch and FlexMatch, across a variety of vision datasets. Notably, we observed a substantial enhancement of 15.21% in accuracy over FlexMatch on the STL-10 dataset using only 40 labels. Moreover, we apply MCE to supervised learning scenarios, and observe consistent improvements as well.","url_abs":"https://arxiv.org/abs/2305.10397v2","url_pdf":"https://arxiv.org/pdf/2305.10397v2.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":"relationmatch-matching-in-batch-relationships","repo_url":"https://github.com/yifanzhang-pro/relationmatch","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"semi-supervised-image-classification","task_name":"Semi-Supervised Image Classification"}],"methods":[{"method_slug":"fixmatch","method_name":"FixMatch"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/semi-supervised-image-classification-on-cifar-7","task":"Semi-Supervised Image Classification","dataset":"CIFAR-10, 40 Labels","model":"RelationMatch","rank_in_archive_order":4,"of":21,"metrics":{"Percentage error":"4.96"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-image-classification-on-stl-3","task":"Semi-Supervised Image Classification","dataset":"STL-10, 40 Labels","model":"RelationMatch","rank_in_archive_order":2,"of":4,"metrics":{"Accuracy":"86.06"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.10397","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.10397"}},"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/yifanzhang-pro/relationmatch","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1},"by_repo_kind":{"official":{"samples":1,"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":"8605dc8a088f3db8","entry":"str2bool","repo":"yifanzhang-pro/relationmatch","repo_kind":"official","path":"pimodel.py","file_url":"https://github.com/yifanzhang-pro/relationmatch/blob/HEAD/pimodel.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8605dc8a088f3db8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}