{"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-12493","title":"Latent Planning Emerges with Scale","arxiv_id":"2604.12493","date":"2026-04-14","proceeding":null,"authors":["Michael Hanna","Emmanuel Ameisen"],"abstract":"LLMs can perform seemingly planning-intensive tasks, like writing coherent stories or functioning code, without explicitly verbalizing a plan; however, the extent to which they implicitly plan is unknown. In this paper, we define latent planning as occurring when LLMs possess internal planning representations that (1) cause the generation of a specific future token or concept, and (2) shape preceding context to license said future token or concept. We study the Qwen-3 family (0.6B-14B) on simple planning tasks, finding that latent planning ability increases with scale. Models that plan possess features that represent a planned-for word like \"accountant\", and cause them to output \"an\" rather than \"a\"; moreover, even the less-successful Qwen-3 4B-8B have nascent planning mechanisms. On the more complex task of completing rhyming couplets, we find that models often identify a rhyme ahead of time, but even large models seldom plan far ahead. However, we can elicit some planning that increases with scale when steering models towards planned words in prose. In sum, we offer a framework for measuring planning and mechanistic evidence of how models' planning abilities grow with scale.","url_abs":"https://arxiv.org/abs/2604.12493","url_pdf":"https://arxiv.org/pdf/2604.12493","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.12493","atlas_url":"https://app.syntology.ai/?focus=2604.12493","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.12493"}},"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/hannamw/model-planning-public","reach":null}],"summary":{"ran":15,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":20,"ran":15,"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":"67782b3d40e314be","entry":"chattify","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"couplets/compute_graphs.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/couplets/compute_graphs.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"67782b3d40e314be"}},{"code_sha256_prefix":"ace61a5456ab6a29","entry":"clean_response","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/interventions.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/interventions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ace61a5456ab6a29"}},{"code_sha256_prefix":"f34738e6e0cc2759","entry":"detect_animal_in_text","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/evaluate_animal_stories.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/evaluate_animal_stories.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f34738e6e0cc2759"}},{"code_sha256_prefix":"e3b3bb3933dce84b","entry":"load_animals_list","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/evaluate_animal_stories.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/evaluate_animal_stories.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3b3bb3933dce84b"}},{"code_sha256_prefix":"b7d77e2e505c932f","entry":"load_animals_list","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/interventions.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/interventions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b7d77e2e505c932f"}},{"code_sha256_prefix":"2e859dc76e06610b","entry":"load_feature_from_binary","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/load_feature_from_binary.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/load_feature_from_binary.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e859dc76e06610b"}},{"code_sha256_prefix":"ab3fbd5f8bb96735","entry":"load_features_batch","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/load_feature_from_binary.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/load_feature_from_binary.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ab3fbd5f8bb96735"}},{"code_sha256_prefix":"7b0a327f0cbb50b6","entry":"pick_filtered_in_context_index","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/evaluate_a_an.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/evaluate_a_an.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7b0a327f0cbb50b6"}},{"code_sha256_prefix":"766fdd7c6f816d0e","entry":"pick_in_context_index","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/evaluate_a_an.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/evaluate_a_an.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"766fdd7c6f816d0e"}},{"code_sha256_prefix":"0d0d2876aed050a4","entry":"strip_think","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"couplets/local_planning_features.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/couplets/local_planning_features.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d0d2876aed050a4"}},{"code_sha256_prefix":"7908932bb26cd3a3","entry":"term_in_logits","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/planning_node_intervention.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/planning_node_intervention.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7908932bb26cd3a3"}},{"code_sha256_prefix":"53c1b20a18e3517a","entry":"term_in_logits","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"couplets/local_planning_features.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/couplets/local_planning_features.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53c1b20a18e3517a"}},{"code_sha256_prefix":"0d69db4b28210314","entry":"term_in_logits","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"el_la/planning_node_intervention.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/el_la/planning_node_intervention.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d69db4b28210314"}},{"code_sha256_prefix":"7107312a9f379978","entry":"term_in_logits","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"is_are/planning_node_intervention.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/is_are/planning_node_intervention.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7107312a9f379978"}},{"code_sha256_prefix":"8674d9a18fef0cbd","entry":"train_probe","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/probing.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/probing.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8674d9a18fef0cbd"}},{"code_sha256_prefix":"04449161930fea6b","entry":"extract_last_token_representations","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/probing.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/probing.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":"04449161930fea6b"}},{"code_sha256_prefix":"61b70730e382355d","entry":"get_features_top_acts_batch","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/load_feature_from_binary.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/load_feature_from_binary.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":"61b70730e382355d"}},{"code_sha256_prefix":"09fd84d63d8f2a44","entry":"load_model","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/evaluate_animal_stories.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/evaluate_animal_stories.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":"09fd84d63d8f2a44"}},{"code_sha256_prefix":"fcdffa1e12fc52ec","entry":"load_model_and_tokenizer","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"animal_stories/probing.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/animal_stories/probing.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":"fcdffa1e12fc52ec"}},{"code_sha256_prefix":"51a5e810aee900e6","entry":"predict_next_token","repo":"hannamw/model-planning-public","repo_kind":"found_in_text","path":"a_an/evaluate_a_an.py","file_url":"https://github.com/hannamw/model-planning-public/blob/HEAD/a_an/evaluate_a_an.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":"51a5e810aee900e6"}}]},"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":{"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}}}