{"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-2603-23136","title":"HGNet: Scalable Foundation Model for Automated Knowledge Graph Generation from Scientific Literature","arxiv_id":"2603.23136","date":"2026-03-24","proceeding":null,"authors":["Devvrat Joshi","Islem Rekik"],"abstract":"Automated knowledge graph (KG) construction is essential for navigating the rapidly expanding body of scientific literature. However, existing approaches struggle to recognize long multi-word entities, often fail to generalize across domains, and typically overlook the hierarchical nature of scientific knowledge. While general-purpose large language models (LLMs) offer adaptability, they are computationally expensive and yield inconsistent accuracy on specialized tasks. As a result, current KGs are shallow and inconsistent, limiting their utility for exploration and synthesis. We propose a two-stage framework for scalable, zero-shot scientific KG construction. The first stage, Z-NERD, introduces (i) Orthogonal Semantic Decomposition (OSD), which promotes domain-agnostic entity recognition by isolating semantic \"turns\" in text, and (ii) a Multi-Scale TCQK attention mechanism that captures coherent multi-word entities through n-gram-aware attention heads. The second stage, HGNet, performs relation extraction with hierarchy-aware message passing, explicitly modeling parent, child, and peer relations. To enforce global consistency, we introduce two complementary objectives: a Differentiable Hierarchy Loss to discourage cycles and shortcut edges, and a Continuum Abstraction Field (CAF) Loss that embeds abstraction levels along a learnable axis in Euclidean space. This is the first approach to formalize hierarchical abstraction as a continuous property within standard Euclidean embeddings, offering a simpler alternative to hyperbolic methods. We release SPHERE (https://github.com/basiralab/SPHERE), a multi-domain benchmark for hierarchical relation extraction. Our framework establishes a new state of the art on SciERC, SciER, and SPHERE, improving NER by 8.08% and RE by 5.99% on out-of-distribution tests. In zero-shot settings, gains reach 10.76% for NER and 26.2% for RE.","url_abs":"https://arxiv.org/abs/2603.23136","url_pdf":"https://arxiv.org/pdf/2603.23136","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":{"atlas_url":"https://app.syntology.ai/?focus=2603.23136","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.23136"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/basiralab/HGNet","reach":null}],"summary":{"unverified":20},"by_repo_kind":{"found_in_text":{"samples":20,"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":0,"samples":[{"code_sha256_prefix":"79c6aef5fe941ce2","entry":"create_custom_label_maps","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"NER/proposed_solution/Z-NERD/znerd.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/NER/proposed_solution/Z-NERD/znerd.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":"79c6aef5fe941ce2"}},{"code_sha256_prefix":"5e5f51beecce3560","entry":"create_l2_prompt","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/generate_concepts.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/generate_concepts.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":"5e5f51beecce3560"}},{"code_sha256_prefix":"a71c6067d98f0b80","entry":"create_model_with_config","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"NER/proposed_solution/Z-NERD/znerd_neural_scaling_laws_analysis_iclr.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/NER/proposed_solution/Z-NERD/znerd_neural_scaling_laws_analysis_iclr.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":"a71c6067d98f0b80"}},{"code_sha256_prefix":"15f2da988c1b38ad","entry":"evaluate_conll","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/PL-Marker/conll.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/PL-Marker/conll.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":"15f2da988c1b38ad"}},{"code_sha256_prefix":"150fa6d1890c5543","entry":"find_entity_in_text","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/fix_sphere_spans.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/fix_sphere_spans.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":"150fa6d1890c5543"}},{"code_sha256_prefix":"f300a33fe05fc609","entry":"get_doc_key","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/PL-Marker/conll.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/PL-Marker/conll.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":"f300a33fe05fc609"}},{"code_sha256_prefix":"98a7c13fab8f4b94","entry":"get_entity_types_from_data","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"NER/proposed_solution/Z-NERD/znerd.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/NER/proposed_solution/Z-NERD/znerd.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":"98a7c13fab8f4b94"}},{"code_sha256_prefix":"e54f1fe179178f6b","entry":"get_original_token","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/PL-Marker/preprocess_ontonotes.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/PL-Marker/preprocess_ontonotes.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":"e54f1fe179178f6b"}},{"code_sha256_prefix":"5fd358d232781554","entry":"get_saved_checkpoint","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/HGERE/run_hgnn.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/HGERE/run_hgnn.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":"5fd358d232781554"}},{"code_sha256_prefix":"ad1fb87a387fa034","entry":"is_text_duplicate","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/generate_main_data.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/generate_main_data.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":"ad1fb87a387fa034"}},{"code_sha256_prefix":"4529163604f4d452","entry":"load_and_convert_scierc","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"NER/proposed_solution/Z-NERD/znerd.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/NER/proposed_solution/Z-NERD/znerd.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":"4529163604f4d452"}},{"code_sha256_prefix":"900674fcafa5fc6f","entry":"load_custom_data","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"NER/proposed_solution/Z-NERD/znerd_neural_scaling_laws_analysis_iclr.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/NER/proposed_solution/Z-NERD/znerd_neural_scaling_laws_analysis_iclr.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":"900674fcafa5fc6f"}},{"code_sha256_prefix":"3a2ea5a81c2031b2","entry":"load_json_file","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/generate_concepts.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/generate_concepts.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":"3a2ea5a81c2031b2"}},{"code_sha256_prefix":"d796bc0f8d962649","entry":"load_jsonl","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"datasets/SPHERE/prepare_sphere.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/datasets/SPHERE/prepare_sphere.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":"d796bc0f8d962649"}},{"code_sha256_prefix":"362a1fab2c7b79e8","entry":"normalize_relation_type","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/fix_sphere_spans.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/fix_sphere_spans.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":"362a1fab2c7b79e8"}},{"code_sha256_prefix":"ba4eb9ed094dc59e","entry":"normalize_word","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/PL-Marker/preprocess_ontonotes.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/PL-Marker/preprocess_ontonotes.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":"ba4eb9ed094dc59e"}},{"code_sha256_prefix":"b12f4137ab9599e7","entry":"official_conll_eval","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/PL-Marker/conll.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/PL-Marker/conll.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":"b12f4137ab9599e7"}},{"code_sha256_prefix":"d132cfb64d61d6cd","entry":"save_sentences_thread_safe","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/generate_main_data.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/generate_main_data.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":"d132cfb64d61d6cd"}},{"code_sha256_prefix":"4d88e67fe857597d","entry":"set_logger","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"RE/baselines/HGERE/run_hgnn.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/RE/baselines/HGERE/run_hgnn.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":"4d88e67fe857597d"}},{"code_sha256_prefix":"e5b6fb6c78dd4e95","entry":"strip_parenthetical","repo":"basiralab/HGNet","repo_kind":"found_in_text","path":"dataset_generation/fix_sphere_spans.py","file_url":"https://github.com/basiralab/HGNet/blob/HEAD/dataset_generation/fix_sphere_spans.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":"e5b6fb6c78dd4e95"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":"us.anthropic.claude-sonnet-4-5-20250929-v1:0","prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":3,"rejected_by_independent_check":2,"refused_by_a_rule":1,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}