{"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-2605-25954","title":"Step-TP: A Grounded, Step-Level Dataset with Chain-of-Thought Reasoning for LLM-Guided Tensor Program Optimization","arxiv_id":"2605.25954","date":"2026-05-25","proceeding":null,"authors":["Mengfan Liu","Da Zheng","Junwei Su","Chuan Wu"],"abstract":"Despite the strong reasoning capabilities of large language models (LLMs), optimizing the execution efficiency of tensor programs remains challenging due to the need for precise, composable transformation decisions. Recent LLM-guided approaches frame tensor program optimization as an iterative decision process, but existing datasets provide only end-to-end optimized program pairs using token-inefficient representations, lacking verifiable step-level supervision and interpretability. As a result, LLMs struggle to make reliable single-step decisions in large combinatorial optimization spaces. We introduce Step-TP, a post-training dataset for tensor program optimization that provides grounded, atomic, step-level supervision with structured chain-of-thought (CoT) reasoning. Step-TP forms a closed reasoning loop over intermediate program states, enabling reliable multi-step optimization rather than outcome imitation. Its design is guided by four principles: (i) a token-efficient, verifiable intermediate representation (IR) that deterministically lowers to TVM TIR; (ii) atomic and composable optimization strategies that decompose complex trajectories into interpretable single-step decisions; (iii) structured CoT supervision coupled with explicit IR-to-IR state transitions; and (iv) strategy filtering to balance coverage while preventing shortcut exploitation. The dataset and implementation are available at a GitHub link, https://github.com/LIUMENGFAN-gif/StepTP.","url_abs":"https://arxiv.org/abs/2605.25954","url_pdf":"https://arxiv.org/pdf/2605.25954","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/2605.25954","atlas_url":"https://app.syntology.ai/?focus=2605.25954","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.25954"}},"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/LIUMENGFAN-gif/StepTP","reach":null}],"summary":{"ran":10,"unverified":9},"by_repo_kind":{"found_in_text":{"samples":19,"ran":10,"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":19,"samples":[{"code_sha256_prefix":"6ae452711fb56855","entry":"construct_multiple_lable_sentence","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"handle_dataset_v2.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/handle_dataset_v2.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":"6ae452711fb56855"}},{"code_sha256_prefix":"51c228756c450465","entry":"deal_with_string_answer_dict","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"eval_verification_main.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/eval_verification_main.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":"51c228756c450465"}},{"code_sha256_prefix":"ad542b99322bb255","entry":"filter_simple_data","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"filtering.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/filtering.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":"ad542b99322bb255"}},{"code_sha256_prefix":"e17d0eb8a6405af8","entry":"generate_IR_related_info","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"pytorch_model_to_IR.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/pytorch_model_to_IR.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":"e17d0eb8a6405af8"}},{"code_sha256_prefix":"b3fad6ee8be47744","entry":"judge_if_equivalent","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"eval_verification.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/eval_verification.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":"b3fad6ee8be47744"}},{"code_sha256_prefix":"e2814942a37bb070","entry":"obtain_collected_num","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"handle_dataset_v2.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/handle_dataset_v2.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":"e2814942a37bb070"}},{"code_sha256_prefix":"80a2770b2798f25a","entry":"obtain_known_info","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"handle_dataset_v2.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/handle_dataset_v2.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":"80a2770b2798f25a"}},{"code_sha256_prefix":"b0716888f60c3b0c","entry":"obtain_store_dict","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"eval_verification.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/eval_verification.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":"b0716888f60c3b0c"}},{"code_sha256_prefix":"2699ddfaf23ef967","entry":"obtain_store_dict","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"handle_dataset_multi_IRs.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/handle_dataset_multi_IRs.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":"2699ddfaf23ef967"}},{"code_sha256_prefix":"c0f4530ea2420cea","entry":"select_model","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"pytorch_model_to_IR.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/pytorch_model_to_IR.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":"c0f4530ea2420cea"}},{"code_sha256_prefix":"ca8f8373fa7a9b4d","entry":"apply_strategy_to_IR","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"apply_strategy_to_IR.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/apply_strategy_to_IR.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":"ca8f8373fa7a9b4d"}},{"code_sha256_prefix":"2b17f4884a543a8a","entry":"construct_compute_inline_CoT","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"construct_CoT_dataset.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/construct_CoT_dataset.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":"2b17f4884a543a8a"}},{"code_sha256_prefix":"34266cf76d9619db","entry":"construct_operator_fission_CoT","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"construct_CoT_dataset.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/construct_CoT_dataset.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":"34266cf76d9619db"}},{"code_sha256_prefix":"8214d007e8f72eda","entry":"construct_operator_fusion_CoT","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"construct_CoT_dataset.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/construct_CoT_dataset.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":"8214d007e8f72eda"}},{"code_sha256_prefix":"512edd8504186ac1","entry":"obtain_basic_info","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"eval_verification.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/eval_verification.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":"512edd8504186ac1"}},{"code_sha256_prefix":"a57f27ee886cffa2","entry":"obtain_basic_info","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"handle_dataset_multi_IRs.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/handle_dataset_multi_IRs.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":"a57f27ee886cffa2"}},{"code_sha256_prefix":"ded67774241da023","entry":"obtain_store_dict","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"eval_verification_update.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/eval_verification_update.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":"ded67774241da023"}},{"code_sha256_prefix":"7db14147f091c03a","entry":"process_one_answer","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"handle_dataset_multi_IRs.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/handle_dataset_multi_IRs.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":"7db14147f091c03a"}},{"code_sha256_prefix":"1685cbae8d3ce30a","entry":"select_model_for_store","repo":"LIUMENGFAN-gif/StepTP","repo_kind":"found_in_text","path":"pytorch_model_to_IR.py","file_url":"https://github.com/LIUMENGFAN-gif/StepTP/blob/HEAD/pytorch_model_to_IR.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":"1685cbae8d3ce30a"}}]},"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,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}