{"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-19070","title":"TRN-R1-Zero: Text-rich Network Reasoning via LLMs with Reinforcement Learning Only","arxiv_id":"2604.19070","date":"2026-04-21","proceeding":null,"authors":["Yilun Liu","Ruihong Qiu","Zi Huang"],"abstract":"Zero-shot reasoning on text-rich networks (TRNs) remains a challenging frontier, as models must integrate textual semantics with relational structure without task-specific supervision. While graph neural networks rely on fixed label spaces and supervised objectives, recent large language model (LLM)-based approaches often overlook graph context or depend on distillation from larger models, limiting generalisation. We propose TRN-R1-Zero, a post-training framework for TRN reasoning trained solely via reinforcement learning. TRN-R1-Zero directly optimises base LLMs using a Neighbour-aware Group Relative Policy Optimisation objective that dynamically adjusts rewards based on a novel margin gain metric for the informativeness of neighbouring signals, effectively guiding the model toward relational reasoning. Unlike prior methods, TRN-R1-Zero requires no supervised fine-tuning or chain-of-thought data generated from large reasoning models. Extensive experiments across citation, hyperlink, social and co-purchase TRN benchmarks demonstrate the superiority and robustness of TRN-R1-Zero. Moreover, relying strictly on node-level training, TRN-R1-Zero achieves zero-shot inference on edge- and graph-level tasks, extending beyond cross-domain transfer. The codebase is publicly available at https://github.com/superallen13/TRN-R1-Zero.","url_abs":"https://arxiv.org/abs/2604.19070","url_pdf":"https://arxiv.org/pdf/2604.19070","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":null,"atlas_url":"https://app.syntology.ai/?focus=2604.19070","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.19070"}},"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/superallen13/TRN-R1-Zero","reach":null}],"summary":{"ran_honours":2,"ran_draft_wrong":4,"ran_fixture":1,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":13,"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":0,"samples":[{"code_sha256_prefix":"262a0372fe03385b","entry":"encode_texts","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","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":"262a0372fe03385b"}},{"code_sha256_prefix":"0c1ae8f9a6249233","entry":"format_labels","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","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":"0c1ae8f9a6249233"}},{"code_sha256_prefix":"f08ad274808dce0d","entry":"mean_pooling","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f08ad274808dce0d"}},{"code_sha256_prefix":"7c2bef04d409c50e","entry":"pick_neighbors","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","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":"7c2bef04d409c50e"}},{"code_sha256_prefix":"02f53132b25aede2","entry":"render_context","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","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":"02f53132b25aede2"}},{"code_sha256_prefix":"5164b8f5205160b9","entry":"to_adj_list","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5164b8f5205160b9"}},{"code_sha256_prefix":"c442d508e706ca37","entry":"truncate_text","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.py","link_basis":"first_harvest_node","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":"c442d508e706ca37"}},{"code_sha256_prefix":"6092081bb8b831da","entry":"SGCAugment","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.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":"6092081bb8b831da"}},{"code_sha256_prefix":"5a255c92908ad7d4","entry":"TagData","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.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":"5a255c92908ad7d4"}},{"code_sha256_prefix":"d32dd84bbf934b57","entry":"build_one_problem","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.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":"d32dd84bbf934b57"}},{"code_sha256_prefix":"088948840d28dc1b","entry":"build_training_dataset","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.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":"088948840d28dc1b"}},{"code_sha256_prefix":"d7692c6887a15d61","entry":"compute_margin_gain_scores","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.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":"d7692c6887a15d61"}},{"code_sha256_prefix":"940c1c0307ef2489","entry":"load_tag","repo":"superallen13/TRN-R1-Zero","repo_kind":"found_in_text","path":"trn_r1_zero/prompts/build_training_dataset.py","file_url":"https://github.com/superallen13/TRN-R1-Zero/blob/HEAD/trn_r1_zero/prompts/build_training_dataset.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":"940c1c0307ef2489"}}]},"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":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 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":6795},"entries":[],"not_placed":{"boards":1,"rejected_by_independent_check":0,"refused_by_a_rule":1,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}