{"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/pretrained-generalized-autoregressive-model","title":"Pretrained Generalized Autoregressive Model with Adaptive Probabilistic Label Clusters for Extreme Multi-label Text Classification","arxiv_id":"2007.02439","date":"2020-07-05","proceeding":null,"authors":["Hui Ye","Zhiyu Chen","Da-Han Wang","Brian D. Davison"],"abstract":"Extreme multi-label text classification (XMTC) is a task for tagging a given text with the most relevant labels from an extremely large label set. We propose a novel deep learning method called APLC-XLNet. Our approach fine-tunes the recently released generalized autoregressive pretrained model (XLNet) to learn a dense representation for the input text. We propose Adaptive Probabilistic Label Clusters (APLC) to approximate the cross entropy loss by exploiting the unbalanced label distribution to form clusters that explicitly reduce the computational time. Our experiments, carried out on five benchmark datasets, show that our approach has achieved new state-of-the-art results on four benchmark datasets. Our source code is available publicly at https://github.com/huiyegit/APLC_XLNet.","url_abs":"https://arxiv.org/abs/2007.02439v2","url_pdf":"https://arxiv.org/pdf/2007.02439v2.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":"pretrained-generalized-autoregressive-model","repo_url":"https://github.com/huiyegit/APLC_XLNet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"pretrained-generalized-autoregressive-model","repo_url":"https://github.com/xmc-aalto/adv-xmtc","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"multi-label-text-classification","task_name":"Multi-Label Text Classification"},{"task_slug":"text-classification","task_name":"Text Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2007.02439","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.02439"}},"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/huiyegit/APLC_XLNet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xmc-aalto/adv-xmtc","reach":null}],"summary":{"ran_honours":1,"ran_draft_wrong":2,"unverified":11},"by_repo_kind":{"official":{"samples":13,"ran":3,"repositories":1},"listed":{"samples":1,"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":1,"samples":[{"code_sha256_prefix":"f6b944f50d3f15ae","entry":"count_parameters","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/utils_multi_label.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/utils_multi_label.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f6b944f50d3f15ae"}},{"code_sha256_prefix":"d30d6c3098df2c42","entry":"prune_linear_layer","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/modeling_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/modeling_utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d30d6c3098df2c42"}},{"code_sha256_prefix":"5eff22fa0a651276","entry":"url_to_filename","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/file_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/file_utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5eff22fa0a651276"}},{"code_sha256_prefix":"d936cc90c2b43022","entry":"AdaptiveBCEWithLogitsLoss","repo":"xmc-aalto/adv-xmtc","repo_kind":"listed","path":"utils/aplc_scripts/models/Adapative_label_clusters.py","file_url":"https://github.com/xmc-aalto/adv-xmtc/blob/HEAD/utils/aplc_scripts/models/Adapative_label_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d936cc90c2b43022"}},{"code_sha256_prefix":"c92ba449e48ecffe","entry":"build_tf_xlnet_to_pytorch_map","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/modeling_xlnet.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/modeling_xlnet.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":"c92ba449e48ecffe"}},{"code_sha256_prefix":"2345788978cb5056","entry":"cached_path","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/file_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/file_utils.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":"2345788978cb5056"}},{"code_sha256_prefix":"c16630f5bccfef87","entry":"clean_up_tokenization","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/tokenization_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/tokenization_utils.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":"c16630f5bccfef87"}},{"code_sha256_prefix":"8eaf09fc07e42122","entry":"convert_examples_to_features","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/utils_multi_label.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/utils_multi_label.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":"8eaf09fc07e42122"}},{"code_sha256_prefix":"621132bc94fe080b","entry":"eval_precision","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/utils_multi_label.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/utils_multi_label.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":"621132bc94fe080b"}},{"code_sha256_prefix":"a6aab787fcf8b10d","entry":"filename_to_url","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/file_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/file_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":"a6aab787fcf8b10d"}},{"code_sha256_prefix":"b05b2bb38c0e4e72","entry":"gelu","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/modeling_xlnet.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/modeling_xlnet.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":"b05b2bb38c0e4e72"}},{"code_sha256_prefix":"4a94662ff3b5c5cf","entry":"load_tf_weights_in_xlnet","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/modeling_xlnet.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/modeling_xlnet.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":"4a94662ff3b5c5cf"}},{"code_sha256_prefix":"7183a17dd79327a8","entry":"prune_conv1d_layer","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/modeling_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/modeling_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":"7183a17dd79327a8"}},{"code_sha256_prefix":"e31093ffc8275cff","entry":"prune_layer","repo":"huiyegit/APLC_XLNet","repo_kind":"official","path":"code/pytorch_transformers/modeling_utils.py","file_url":"https://github.com/huiyegit/APLC_XLNet/blob/HEAD/code/pytorch_transformers/modeling_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":"e31093ffc8275cff"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}