{"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/beyond-categorical-label-representations-for-1","title":"Beyond Categorical Label Representations for Image Classification","arxiv_id":"2104.02226","date":"2021-04-06","proceeding":"ICLR 2021 1","authors":["Boyuan Chen","Yu Li","Sunand Raghupathi","Hod Lipson"],"abstract":"We find that the way we choose to represent data labels can have a profound effect on the quality of trained models. For example, training an image classifier to regress audio labels rather than traditional categorical probabilities produces a more reliable classification. This result is surprising, considering that audio labels are more complex than simpler numerical probabilities or text. We hypothesize that high dimensional, high entropy label representations are generally more useful because they provide a stronger error signal. We support this hypothesis with evidence from various label representations including constant matrices, spectrograms, shuffled spectrograms, Gaussian mixtures, and uniform random matrices of various dimensionalities. Our experiments reveal that high dimensional, high entropy labels achieve comparable accuracy to text (categorical) labels on the standard image classification task, but features learned through our label representations exhibit more robustness under various adversarial attacks and better effectiveness with a limited amount of training data. These results suggest that label representation may play a more important role than previously thought. The project website is at \\url{https://www.creativemachineslab.com/label-representation.html}.","url_abs":"https://arxiv.org/abs/2104.02226v1","url_pdf":"https://arxiv.org/pdf/2104.02226v1.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":"beyond-categorical-label-representations-for-1","repo_url":"https://github.com/BoyuanChen/label_representations","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"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":{"syntology_url":"https://syntology.ai/paper/2104.02226","atlas_url":"https://app.syntology.ai/?focus=2104.02226","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2104.02226"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/BoyuanChen/label_representations","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":5,"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":"fac5364e2f53c6db","entry":"conv3x3","repo":"BoyuanChen/label_representations","repo_kind":"official","path":"models/cifar/preresnet.py","file_url":"https://github.com/BoyuanChen/label_representations/blob/HEAD/models/cifar/preresnet.py","link_basis":"harvester_set","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":"fac5364e2f53c6db"}},{"code_sha256_prefix":"547edd068c51546f","entry":"get_test_loader","repo":"BoyuanChen/label_representations","repo_kind":"official","path":"cifar.py","file_url":"https://github.com/BoyuanChen/label_representations/blob/HEAD/cifar.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":"547edd068c51546f"}},{"code_sha256_prefix":"48a09f848ac92a77","entry":"get_train_loader","repo":"BoyuanChen/label_representations","repo_kind":"official","path":"cifar.py","file_url":"https://github.com/BoyuanChen/label_representations/blob/HEAD/cifar.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":"48a09f848ac92a77"}},{"code_sha256_prefix":"3c986b931d036568","entry":"get_valid_loader","repo":"BoyuanChen/label_representations","repo_kind":"official","path":"cifar.py","file_url":"https://github.com/BoyuanChen/label_representations/blob/HEAD/cifar.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":"3c986b931d036568"}},{"code_sha256_prefix":"653eb1478e6a86cc","entry":"get_vec_from_names","repo":"BoyuanChen/label_representations","repo_kind":"official","path":"labels/cifar100_glove_generation.py","file_url":"https://github.com/BoyuanChen/label_representations/blob/HEAD/labels/cifar100_glove_generation.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":"653eb1478e6a86cc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}