{"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/arxiv-2604-15998","title":"SCHK-HTC: Sibling Contrastive Learning with Hierarchical Knowledge-Aware Prompt Tuning for Hierarchical Text Classification","arxiv_id":"2604.15998","date":"2026-04-17","proceeding":null,"authors":["Ke Xiong","Qian Wu","Wangjie Gan","Yuke Li","Xuhong Zhang"],"abstract":"Few-shot Hierarchical Text Classification (few-shot HTC) is a challenging task that involves mapping texts to a predefined tree-structured label hierarchy under data-scarce conditions. While current approaches utilize structural constraints from the label hierarchy to maintain parent-child prediction consistency, they face a critical bottleneck, the difficulty in distinguishing semantically similar sibling classes due to insufficient domain knowledge. We introduce an innovative method named Sibling Contrastive Learning with Hierarchical Knowledge-aware Prompt Tuning for few-shot HTC tasks (SCHK-HTC). Our work enhances the model's perception of subtle differences between sibling classes at deeper levels, rather than just enforcing hierarchical rules. Specifically, we propose a novel framework featuring two core components: a hierarchical knowledge extraction module and a sibling contrastive learning mechanism. This design guides model to encode discriminative features at each hierarchy level, thus improving the separability of confusable classes. Our approach achieves superior performance across three benchmark datasets, surpassing existing state-of-the-art methods in most cases. Our code is available at https://github.com/happywinder/SCHK-HTC.","url_abs":"https://arxiv.org/abs/2604.15998","url_pdf":"https://arxiv.org/pdf/2604.15998","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2604.15998","atlas_url":"https://app.syntology.ai/?focus=2604.15998","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.15998"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/happywinder/SCHK-HTC","reach":null}],"summary":{"ran":7,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":10,"ran":7,"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":10,"samples":[{"code_sha256_prefix":"d0609b22f6776b04","entry":"flat_contrastive_loss_func","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"models/loss.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/models/loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d0609b22f6776b04"}},{"code_sha256_prefix":"b9730a1f561ca16e","entry":"get_umls_neighbors","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"KG/add_neighbor.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/KG/add_neighbor.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b9730a1f561ca16e"}},{"code_sha256_prefix":"0c201bdd1b74c3ac","entry":"load_edge_index","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"KG/deepwalk.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/KG/deepwalk.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0c201bdd1b74c3ac"}},{"code_sha256_prefix":"c290744aae4d1f42","entry":"load_kg_data","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"KG/create_embedding.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/KG/create_embedding.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c290744aae4d1f42"}},{"code_sha256_prefix":"242fbb2b44aea26a","entry":"load_umls_relations","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"KG/add_neighbor.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/KG/add_neighbor.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"242fbb2b44aea26a"}},{"code_sha256_prefix":"0cc82608dcded677","entry":"query_conceptnet","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"query.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/query.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0cc82608dcded677"}},{"code_sha256_prefix":"7f715d5aa1c04819","entry":"sim","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"models/loss.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/models/loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7f715d5aa1c04819"}},{"code_sha256_prefix":"77936f8eb7dd305f","entry":"constraint_multi_depth_loss_func_inverse","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"models/loss.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/models/loss.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":"77936f8eb7dd305f"}},{"code_sha256_prefix":"a7954e23a612ae67","entry":"get_hybrid_entity_info","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"KG/linker.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/KG/linker.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":"a7954e23a612ae67"}},{"code_sha256_prefix":"0c34c5f611850333","entry":"train_with_deepwalk","repo":"happywinder/SCHK-HTC","repo_kind":"found_in_text","path":"KG/deepwalk.py","file_url":"https://github.com/happywinder/SCHK-HTC/blob/HEAD/KG/deepwalk.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":"0c34c5f611850333"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}