[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-327684-105":59,"doc-detail-327684-en":131,"doc-similar-327684":164},{"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":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","which-algorithm-specification-formats-help-language-models-implement-machine-learning-algorithms","Which Algorithm Specification Formats Help Language Models Implement Machine Learning Algorithms?","","Large language models (LLMs) increasingly translate research manuscripts into executable algorithms, yet many papers omit implementation choices. This study tests how algorithm specification formats influence first-pass LLM implementation accuracy. It compares ordinary prose, LaTeX algorithm-style pseudocode, extracted pseudocode, Markdown, YAML-like, JSON-like formats, and Python stubs across five machine-learning tasks, three models, and four settings. Hidden tests cover tie-breaking, array shapes, numerical rules, return structures, and invalid-input behavior.",{"@graph":69,"@context":123},[70,84,106],{"@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/which-algorithm-specification-formats-help-language-models-implement-machine-learning-algorithms/327684/",{"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/which-algorithm-specification-formats-help-language-models-implement-machine-learning-algorithms/327684.png","ImageObject",300,407,{"name":92,"@type":93},"Noah","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",16,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What does the study examine about algorithm specifications for LLM implementation?","Question",{"text":113,"@type":114},"It examines how the written format of an algorithm specification affects first-pass LLM implementation accuracy, isolating changes to representation while holding the target implementation and tests fixed.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Which specification formats are compared in the experiment?",{"text":118,"@type":114},"The study compares ordinary prose, LaTeX algorithm-style pseudocode, PDF-like extracted pseudocode, Markdown fields, YAML-like specifications, JSON-like specifications, and Python code stubs.",{"name":120,"@type":111,"acceptedAnswer":121},"What factors determine whether a format improves hidden-test correctness?",{"text":122,"@type":114},"The results show the effect direction depends on the model and on how much implementation information the prompt contains, including numerical rules, tie-breaking, array shapes, return structures, and invalid-input behavior.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},327684,1790192502,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},8796095462418,"https://ap-avatar.wpscdn.com/avatar/80000253c1241d02b47?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778826106357471780","arXiv :2607 .03 158v 1 [ cs . SE] 3 Jul 2026  \nWhich Algorithm Specification Formats Help Language Models Implement Machine Learning Algorithms?  \nMasahiro Kato∗ and Taka Kato†  \n∗ Data Analytics Department, Mizuho-DL Financial Technology, Co. , Ltd.  \n†NP-hard Inc.  \nJuly 7, 2026  \nAbstract  \nLarge language models (LLMs) are increasingly used to implement algorithms from research manuscripts, but papers often leave implementation choices implicit. This study examines how the written format of an algorithm specification affects first-pass LLM implementation accuracy. We compare ordinary prose, LaTeX algorithm-style pseudocode, PDF-like extracted pseudocode, Markdown fields, YAML-like specifications, JSON-like specifications, and Python code stubs across five machine learning tasks, three models, and four experimental settings, yielding 4,020 generated implementations. Hidden tests evaluate details that often determine correctness, including tie-breaking, array shapes, numerical rules, return structures, and invalid-input behavior. Under the core-information setting, LaTeX algorithm-style pseudocode has the largest average format effect, with YAML-like specifications and ordinary prose close behind. Under complete information, GPT-5.4 mini shows no format differences in the matched comparisons, whereas Gemma 3 4B and Llama 3 .2 3B still do. Code stubs do not consistently improve correctness despite specifying the function signature. The results support a writing recommendation: authors should state the interface, computation steps, numerical rules, and boundary-case behavior explicitly, instead of relying on a particular surface format to carry those details.  \n1 Introduction  \nLarge language models (LLMs) are increasingly used in workflows that extract implementation details from research manuscripts, generate code, run tests, and revise failed attempts. This study investigates how algorithm specifications in academic articles should be written when  \n∗ Email: [mkato-csecon@g.ecc.u-tokyo.ac.jp](mkato-csecon@g.ecc.u-tokyo.ac.jp)  \n†Email: [taka@np-hard.co.jp](taka@np-hard.co.jp)  \nthey may be used as inputs to LLM-based implementation. We test whether conventional pseudocode is sufficient for this purpose, or whether other representation formats convey implementation-relevant details more effectively.  \nThis motivation is connected to recent benchmarks on paper-to-code generation and research reproduction. PaperBench evaluates agents on the replication of 20 ICML 2024 Spotlight and Oral papers and decomposes the replications into 8,316 gradable subtasks (Starace et al., 2025) . ResearchCodeBench builds 212 coding challenges from academic articles and reports that the best evaluated models solve fewer than 40 percent of the tasks (Hua et al. , 2025) . SciReplicate-Bench evaluates code generation from algorithm descriptions in recent natural language processing papers and emphasizes algorithm comprehension and coding expertise as separate requirements (Xiang et al. , 2025) . Movassaghi et al. (2026) asks whether publications alone can serve as specifications for regenerating core algorithms, and finds that focused, well-described methods can often be reproduced reliably. Together, these studies point to a common source of error: implementation details that are missing, scattered, or underspecified in the paper. This study isolates one part of that problem by changing the representation format of the algorithm specification while holding the target function and tests fixed.  \n1.1 Contributions  \nThis study asks what authors should specify when an algorithm description may be used for LLM-based implementation. We compare formats within matched model, task, informationsetting, prompt, and repeat groups, so each comparison changes the written form while keeping the target implementation and tests fixed. The results show that format can affect hidden-test correctness, but the direction of the effect depends on the model and on how muc","cbCairFJI03gkZTB","https://ap.wps.com/l/cbCairFJI03gkZTB","pdf",482125,22,"English","# Abstract\n# 1 Introduction\n## 1.1 Contributions","[{\"question\":\"What does the study examine about algorithm specifications for LLM implementation?\",\"answer\":\"It examines how the written format of an algorithm specification affects first-pass LLM implementation accuracy, isolating changes to representation while holding the target implementation and tests fixed.\"},{\"question\":\"Which specification formats are compared in the experiment?\",\"answer\":\"The study compares ordinary prose, LaTeX algorithm-style pseudocode, PDF-like extracted pseudocode, Markdown fields, YAML-like specifications, JSON-like specifications, and Python code stubs.\"},{\"question\":\"What factors determine whether a format improves hidden-test correctness?\",\"answer\":\"The results show the effect direction depends on the model and on how much implementation information the prompt contains, including numerical rules, tie-breaking, array shapes, return structures, and invalid-input behavior.\"}]","Which Algorithm Specification Formats Help Language Models Implement Machine Learning Algorithms? | PDF",1789977806,55,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/df22384f1f84e29d8b493fba62e2205a.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8fef7f2a6693b8622f46e1847a3928af.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/e350fdb2a7172b9bf89590c253b9e0b5.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d49a53b5f731389a0ee2631c53e77de4.webp",980,1268,{"list":165,"token":66},[166,172,178,184,191,198,204,210,217,223],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":29,"category_name":40,"create_tm":171},657560,"StructEval - Benchmarking LLMs' Capabilities to Generate Structural Outputs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975559259/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=KLHZXVx%2FKdGdIuWEl4g%2B1xmgckI%3D","structeval-benchmarking-llms-capabilities-to-generate-structural-outputs",1792982824,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":81,"category_name":40,"create_tm":177},687460,"LaTeX is NOT Easy - Creating Accessible Scientific Documents with R Markdown","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000648754/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=0Slfai%2FG8cJ9es8fmaObjS6LFBg%3D","latex-is-not-easy-creating-accessible-scientific-documents-with-r-markdown",1794083739,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":105,"category_name":40,"create_tm":183},291250,"MACHINE LEARNING IN CYBERSECURITY - EXPLORING APPROACHES FOR MALWARE DETECTION AND CATEGORIZATION - Master’s Degree Thesis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903762311/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=QUxTOEpNdWo42srSZ3nUEcSYnO8%3D","machine-learning-in-cybersecurity-exploring-approaches-for-malware-detection-and-categorization-masters-degree-thesis",1789643874,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":40,"create_tm":190},86202,"Fuss-free cumulative universes theory and practice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809511353/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Bo%2Fw1efGXPcASCgvF81wZXWw%2B70%3D","fuss-free-cumulative-universes-theory-and-practice",21,1784209372,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":40,"create_tm":197},86267,"Knowledge Guided Synthetic Bug Feedback for LLM Based Unit Test Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809514675/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=7klUWlBY9o9NkEmU81ajG0CNE4g%3D","knowledge-guided-synthetic-bug-feedback-for-llm-based-unit-test-generation",31,1784209928,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":140,"category_name":40,"create_tm":203},86220,"From GUI Tests to Conversational Interaction: A New Perspective on App-Specific Voice Assistants","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809390303/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=%2BC7lxWxvs2jjHLDfogqKsk6I3Ts%3D","from-gui-tests-to-conversational-interaction-a-new-perspective-on-app-specific-voice-assistants",1784209575,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":189,"category_name":40,"create_tm":209},82967,"A Mechanistic Lens on Semantic Conflicts Using Activation Patching to Understand LLM Behavior","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808810243/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=JdPzRciOOGssVw4ZNX%2BZOMdnoxo%3D","a-mechanistic-lens-on-semantic-conflicts-using-activation-patching-to-understand-llm-behavior",1784184377,{"doc_id":211,"doc_title":212,"file_type":138,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},388329,"State of play of the CPC Implementation at Hellenic Industrial Property Organization (OBI) - Presentation - Search, Quality Assurance, Training","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916031531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=ji4G7YUPgSbNdLyUOgw5mhRuGbc%3D","state-of-play-of-the-cpc-implementation-at-hellenic-industrial-property-organization-obi-presentation-search-quality-assurance-training",15,1790300111,{"doc_id":218,"doc_title":219,"file_type":138,"home_preview_img_url":220,"slug":221,"view_count":46,"category_name":40,"create_tm":222},84136,"Specification Grounding Drives Test Effectiveness for LLM Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809140543/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=%2FaFiT6VQssqt2KMJbqGwPQKi5G4%3D","specification-grounding-drives-test-effectiveness-for-llm-code",1784193248,{"doc_id":224,"doc_title":225,"file_type":138,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":40,"create_tm":229},86028,"Opti Agent Bench: Benchmarking End-to-End Optimization R&D Agents on Real-World Business Problems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809498507/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=mJmZ4sYEW17Rdtq2Ca1PhgBcESM%3D","opti-agent-bench-benchmarking-end-to-end-optimization-rd-agents-on-real-world-business-problems",23,1784207904]