{"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/errors-are-useful-prompts-instruction-guided","title":"Errors are Useful Prompts: Instruction Guided Task Programming with Verifier-Assisted Iterative Prompting","arxiv_id":"2303.14100","date":"2023-03-24","proceeding":null,"authors":["Marta Skreta","Naruki Yoshikawa","Sebastian Arellano-Rubach","Zhi Ji","Lasse Bjørn Kristensen","Kourosh Darvish","Alán Aspuru-Guzik","Florian Shkurti","Animesh Garg"],"abstract":"Generating low-level robot task plans from high-level natural language instructions remains a challenging problem. Although large language models have shown promising results in generating plans, the accuracy of the output remains unverified. Furthermore, the lack of domain-specific language data poses a limitation on the applicability of these models. In this paper, we propose CLAIRIFY, a novel approach that combines automatic iterative prompting with program verification to ensure programs written in data-scarce domain-specific language are syntactically valid and incorporate environment constraints. Our approach provides effective guidance to the language model on generating structured-like task plans by incorporating any errors as feedback, while the verifier ensures the syntactic accuracy of the generated plans. We demonstrate the effectiveness of CLAIRIFY in planning chemistry experiments by achieving state-of-the-art results. We also show that the generated plans can be executed on a real robot by integrating them with a task and motion planner.","url_abs":"https://arxiv.org/abs/2303.14100v1","url_pdf":"https://arxiv.org/pdf/2303.14100v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"errors-are-useful-prompts-instruction-guided","repo_url":"https://github.com/ac-rad/xdl-generation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2303.14100","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2303.14100"}},"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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ac-rad/xdl-generation","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":5},"by_repo_kind":{"official":{"samples":5,"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":"d16937f3e14c4e6e","entry":"parse_hardware","repo":"ac-rad/xdl-generation","repo_kind":"official","path":"verifier/verify.py","file_url":"https://github.com/ac-rad/xdl-generation/blob/HEAD/verifier/verify.py","link_basis":"harvester_set","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":"d16937f3e14c4e6e"}},{"code_sha256_prefix":"587bd4e532a071a5","entry":"parse_reagents","repo":"ac-rad/xdl-generation","repo_kind":"official","path":"verifier/verify.py","file_url":"https://github.com/ac-rad/xdl-generation/blob/HEAD/verifier/verify.py","link_basis":"harvester_set","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":"587bd4e532a071a5"}},{"code_sha256_prefix":"df986891d666d276","entry":"prompt","repo":"ac-rad/xdl-generation","repo_kind":"official","path":"xdlgenerator/nlp2xdl.py","file_url":"https://github.com/ac-rad/xdl-generation/blob/HEAD/xdlgenerator/nlp2xdl.py","link_basis":"harvester_set","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":"df986891d666d276"}},{"code_sha256_prefix":"ed440996ec61cb75","entry":"verify_procedure","repo":"ac-rad/xdl-generation","repo_kind":"official","path":"verifier/verify.py","file_url":"https://github.com/ac-rad/xdl-generation/blob/HEAD/verifier/verify.py","link_basis":"harvester_set","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":"ed440996ec61cb75"}},{"code_sha256_prefix":"27e356b060935484","entry":"verify_procedure","repo":"ac-rad/xdl-generation","repo_kind":"official","path":"web-interface/verify.py","file_url":"https://github.com/ac-rad/xdl-generation/blob/HEAD/web-interface/verify.py","link_basis":"harvester_set","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":"27e356b060935484"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}