[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-711269-105":59,"doc-detail-711269-en":130,"doc-similar-711269":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","automating-thought-of-search-a-journey-towards-soundness-and-completeness","Automating Thought of Search - A Journey Towards Soundness and Completeness","","Large language models are applied to planning tasks that rely on search, where prior work often defines the search space with LLM world models and sacrifices soundness for flexibility. Thought of Search (ToS) instead generates code for the successor function and goal test, yielding verifiable sound and complete symbolic models with perfect accuracy, but still requires human-in-the-loop code feedback. AutoToS removes that interaction by using generic and domain-specific unit tests, guiding step-by-step code generation until correctness reaches 100% across evaluated domains.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/automating-thought-of-search-a-journey-towards-soundness-and-completeness/711269/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/automating-thought-of-search-a-journey-towards-soundness-and-completeness/711269.png","ImageObject",300,407,{"name":92,"@type":93},"Aditya","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-02","2026-11-15",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is Thought of Search (ToS) and why is it effective?","Question",{"text":112,"@type":113},"ToS uses LLMs to generate the search space via code, specifically a successor function and a goal test. It produces symbolic models whose soundness and completeness can be verified, achieving 100% accuracy on tested datasets.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What key limitation does ToS have?",{"text":117,"@type":113},"ToS requires a human expert in the loop. The expert iteratively provides feedback to the model on the produced code to improve correctness.",{"name":119,"@type":110,"acceptedAnswer":120},"How does AutoToS automate ToS without human interaction?",{"text":121,"@type":113},"AutoToS guides the language model step by step using feedback from both generic and domain-specific unit tests. This replaces the human feedback loop and enables 100% accuracy with a small number of LLM calls across evaluated domains.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},711269,1794784099,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":36,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},962085564549,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Automating Thought of Search: A Journey Towards Soundness and Completeness  \narXiv :2408 . 11326v2 [ cs .AI] 28 May 2025  \nDaniel Cao􀀃  \nCornell University Ithaca, NY 14850 [dyc33@cornell.edu](dyc33@cornell.edu)  \nMichael Katz  \nIBM T. J. Watson Research Center Yorktown Heights, NY 10598 [michael.katz1@ibm.com](michael.katz1@ibm.com)  \nHarsha Kokel  \nIBM Almaden Research Center San Jose, CA 95120 [harsha.kokel@ibm.com](harsha.kokel@ibm.com)  \nKavitha Srinivas  \nIBM T. J. Watson Research Center Yorktown Heights, NY 10598 [kavitha.srinivas@ibm.com](kavitha.srinivas@ibm.com)  \nShirin Sohrabi  \nIBM T. J. Watson Research Center  \nYorktown Heights, NY 10598  \n[ssohrab@us.ibm.com](ssohrab@us.ibm.com)  \nAbstract  \nLarge language models (LLMs) are being used to solve planning problems that require search. Most of the literature uses LLMs as world models to de􀀂ne the search space, forgoing soundness for the sake of 􀀃exibility. A recent work, Thought of Search (ToS), proposed de􀀂ning the search space with code, having LLMs produce that code. ToS requires a human in the loop, collaboratively producing a sound successor function and goal test. The result, however, is worth the effort: all the tested datasets were solved with 100% accuracy. Consequently, there is great potential to automate the ToS process. We take a 􀀂rst major step towards automating ToS (AutoToS), taking the human out of the loop of interactions with the language model. AutoToS guides the language model step by step towards the generation of sound and complete search components, through feedback from both generic and domain speci􀀂c unit tests. We show that AutoToS is able to achieve 100% accuracy on all the evaluated domains with a small number of LLM calls.  \n1 Introduction  \nLarge language models (LLMs) have shown great promise across countless domains and 􀀂elds, especially as their architectures become more advanced. Spurred by their abilities in natural language tasks, several recent works have studied AI planning in LLMs as a subset of code generation and code re􀀂nement. The approaches vary from giving a planning problem to an LLM and asking it to output an entire plan in a single call [39, 21, 31] to asking an LLM to generate a planning model tobe given to an automated planner [12, 30, 10] . Between these two extremes, lies a body of work on using LLMs to plan by performing a combinatorial search [14, 48, 3, 37] . Among these, Thought of Search (ToS) [23] stands out; it uses LLMs to de􀀂ne the search space for the entire domain at once. It is done simply by soliciting two crucial search components, a successor function and a goal  \n􀀃 This work was conducted while the author was at IBM Research.  \nPreprint.  \nFigure 1: An overview of ToS and AutoToS.  \ntest. These components are then plugged into a standard search algorithm, such as Breadth-First Search (BFS) or Depth-First Search (DFS) [6] . ToS has an impressive accuracy of 100% on all tested benchmarks and it produces a symbolic model whose soundness and completeness can be veri􀀂ed. However, ToS has a signi􀀂cant limitation-it requires a human expert in the loop, iteratively providing feedback to the model on the produced code. Our contribution is precisely there. We take the 􀀂rst step towards automating the ToS process, starting with the feedback loop.  \nWe automate the iterative feedback and exception handling process through the use of unit tests and print debugging statements, which we incorporate with Chain of Thought (CoT) style prompting [45, 24] to remove the human expert interaction with the LLM and thus, shift the human involvement to specifying unit tests. We note that unit tests often exist already for search problems or can be generated with the help of LLM [33] . Our approach leverages these existing unit tests (referred to henceforth as domain-speci􀀂c unit tests), along with a small number of prede􀀂ned generic domainindependent unit tests. The manual involvement in creation of unit tests is therefore ","cbCaikH8XC6mwPnV","https://ap.wps.com/l/cbCaikH8XC6mwPnV","pdf",1674547,"English","# Introduction\n## Related Works\n# Figure 1 overview of ToS and AutoToS","[{\"question\":\"What is Thought of Search (ToS) and why is it effective?\",\"answer\":\"ToS uses LLMs to generate the search space via code, specifically a successor function and a goal test. It produces symbolic models whose soundness and completeness can be verified, achieving 100% accuracy on tested datasets.\"},{\"question\":\"What key limitation does ToS have?\",\"answer\":\"ToS requires a human expert in the loop. The expert iteratively provides feedback to the model on the produced code to improve correctness.\"},{\"question\":\"How does AutoToS automate ToS without human interaction?\",\"answer\":\"AutoToS guides the language model step by step using feedback from both generic and domain-specific unit tests. This replaces the human feedback loop and enables 100% accuracy with a small number of LLM calls across evaluated domains.\"}]","Automating Thought of Search - A Journey Towards Soundness and Completeness | PDF",101,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/fee5341f0fd3b9aba518e305e9acc9cd.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/3aad2fbd467677cbcc7321a4c17c8e17.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/73c407445918206f294db31be0e342c9.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/9f2ba63816f13474436dd62ebc33777a.webp",980,1268,{"list":162,"token":66},[163,169,176,182,189,196,203,209,215,222],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":81,"category_name":40,"create_tm":168},724943,"Thought of Search: Planning with Language Models Through The Lens of Efficiency","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028810049/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=VjbdcCZNLCVkr%2BNZRy5JQ3ZKy7Q%3D","thought-of-search-planning-with-language-models-through-the-lens-of-efficiency",1795204891,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":40,"create_tm":175},84907,"Harnessing Code Agents for Automatic Software Verification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809219203/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=3UrhTeFhmPXM9nftortZVmOFwAM%3D","harnessing-code-agents-for-automatic-software-verification",23,1784199283,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":81,"category_name":40,"create_tm":181},724927,"Thought of Search - Planning with Language Models Through the Lens of Efficiency - NeurIPS 2024 Paper Conference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028806570/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=jW4qjH5vgvG3%2BoosjI%2BOUuoGWBg%3D","thought-of-search-planning-with-language-models-through-the-lens-of-efficiency-neurips-2024-paper-conference",1795203924,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":40,"create_tm":188},119960,"TinyNS - Platform-Aware Neurosymbolic Auto Tiny Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835166261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=mfQAInmvACnPDBTOS9%2BKw2Hz1Rs%3D","tinyns-platform-aware-neurosymbolic-auto-tiny-machine-learning",24,1785727228,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":40,"create_tm":195},82680,"TAG A Lightweight Framework for Test-Driven Agentic Artifact Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808777673/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=aHE9WWOeYUjFfXdZhquZM6ePaW8%3D","tag-a-lightweight-framework-for-test-driven-agentic-artifact-generation",33,1784182245,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":40,"create_tm":202},83597,"Kani: A Model Checker for Rust","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808871230/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=28sqadB%2BOGhzzC93Jk4W1kTwdjI%3D","kani-a-model-checker-for-rust",35,1784189102,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":174,"category_name":40,"create_tm":208},82790,"Language models guide symbolic equation discovery by controlling search","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808789989/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=9gJJTno2coYn0R6F61OyGZfbcs4%3D","language-models-guide-symbolic-equation-discovery-by-controlling-search",1784182950,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":194,"category_name":40,"create_tm":214},84838,"INVWEAVER Deductive Feedback for Invariant Synthesis in Interacting Loop Programs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809210508/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=ccja6HHaNG9VuFoni7BqekuVeZ4%3D","invweaver-deductive-feedback-for-invariant-synthesis-in-interacting-loop-programs",1784198640,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":40,"create_tm":221},442754,"SR-LLM: An incremental symbolic regression framework driven by LLM-based retrieval-augmented generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924332317/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=OhUc5pQU9ROHZvVJx4RxFeRvOHE%3D","sr-llm-an-incremental-symbolic-regression-framework-driven-by-llm-based-retrieval-augmented-generation",18,1790701524,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":19,"category_name":40,"create_tm":227},732964,"The Coding Agent Economy - A 12-Month Observation of Coding Agent Economics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031414697/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235119&Signature=IsBplmP8ZB7vhAohXaN5I7SmuHU%3D","the-coding-agent-economy-a-12-month-observation-of-coding-agent-economics",1795383111]