[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-503478-105":59,"doc-detail-503478-en":130},{"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","casper-bridging-discrete-and-continuous-prompt-optimization-through-feedback-guided-gradient-descent","CASPER - Bridging Discrete and Continuous Prompt Optimization through Feedback-Guided Gradient Descent","","Workflow automation reduces manual labor, yet standard pipelines struggle with generative capabilities such as summarization and extraction because they lack ready-made optimization tools. LLM-based agents still rely on costly prompt engineering, and existing methods face a trade-off: discrete search overfits without convergence guarantees in non-convex spaces, while continuous embedding gradients can yield semantically incoherent prompts. CASPER bridges both views via feedback-guided gradient descent, fluency regularization, and failure-amplifying synthetic oversampling.",{"@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/casper-bridging-discrete-and-continuous-prompt-optimization-through-feedback-guided-gradient-descent/503478/",{"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/casper-bridging-discrete-and-continuous-prompt-optimization-through-feedback-guided-gradient-descent/503478.png","ImageObject",300,407,{"name":92,"@type":93},"Hazel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-06","2026-10-03",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does CASPER address in prompt optimization for LLM agents?","Question",{"text":112,"@type":113},"CASPER targets the difficulty of optimizing prompts for generative tasks without costly, manual prompt engineering, where discrete and continuous methods each have major limitations.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does CASPER combine discrete and continuous prompt optimization?",{"text":117,"@type":113},"CASPER represents prompts as continuous embeddings and uses gradient descent, while injecting the LLM’s textual error feedback as optimization signals to steer convergence.",{"name":119,"@type":110,"acceptedAnswer":120},"Which strategies does CASPER use to improve convergence and prompt quality?",{"text":121,"@type":113},"It uses fluency regularization to penalize incomprehensible tokens and accelerates convergence with synthetic data generation that oversamples failure cases, addressing data scarcity.","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},503478,1791286016,{"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":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},137441390410,"https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984","CASPER: Bridging Discrete and Continuous Prompt Optimization through  \nFeedback-Guided Gradient Descent  \nAryan Jain, Pushpendu Ghosh, Promod Yenigalla  \nRBS Tech Sciences, Amazon  \n{arynjn, gpushpen, [promy}@amazon.com](promy}@amazon.com)  \nAbstract  \nWorkflow automation is critical for reducing manual efforts in industries, yet existing pipelines fail to handle generative tasks like summarization and extraction without pre-built tools, forcing human intervention. While LLMbased agents offer solutions, their creation depends heavily on prompt engineering—aresource-intensive process often yielding suboptimal results. Current automated approaches face a fundamental trade-off: discrete optimization produces overfitted prompts without convergence guarantees due to non-convex landscapes, while continuous gradient-based methods generate semantically incoherent prompts through embedding optimization. We propose CASPER, a framework bridging discrete and continuous prompt optimization through feedback-guided gradient descent in embedding space. CASPER employs a feedback module producing detailed error analyses that capture failure modes as optimization signals. These insights are projected with prompt tokens into embedding space to steer gradient descent. To preserve interpretability, we incorporate fluency regularization that penalizes incomprehensible tokens. We further accelerate convergence through synthetic data generation that oversamples failure cases, while also addressing data scarcity in industrial settings. We evaluate CASPER on WDC, DROP, GSM8K with F1 improvements of 2.3%, 1.6%, 2.3% and VQA, internal benchmarks showing accuracy improvements of 1.1%, 3%, demonstrating cross-domain generalizability.  \n1 Introduction  \nModern industries are increasingly shifting towards automation of redundant workflows through agentic solutions. However, they face a fundamental obstacle: workflows now depend on generative AI capabilities—summarization, information extraction, and content generation which are non-deterministic in nature. While Large Language Model (LLM)  \nagents offer a path toward end-to-end automation, their effectiveness critically hinges on prompt engineering, a process demanding extensive manual effort, domain expertise, and costly iterative refinement to achieve task-optimal performance.  \nThis challenge persists despite recent automated prompt optimization advances. Discrete optimization approaches (Zhou et al., 2023 ; Yang et al., 2024) iteratively refine prompts through LLMgenerated feedback, but the non-convex optimization landscape offers limited control, frequently yielding overly complex, suboptimal prompts without convergence guarantees. Continuous optimization methods (Wen et al., 2023 ; Pryzantet al., 2023) learn soft prompt embeddings through gradient-based optimization, enabling targeted search through continuous embedding space. However, these produce model-specific prompts that hamper cross-model portability and often yield incomprehensible results, impacting scalability and interpretability.  \nOur key insight is that discrete and continuous prompt optimization approaches are complementary; by representing prompts as continuous embeddings and optimizing via gradients while injecting the LLM’s textual feedback about its errors to accelerate convergence to the optimal prompt, we treat it as a co-optimization problem where textual feedback guides gradient descent toward effective convergence.  \nOur main contributions include: 1) A novel framework combining textual feedback as optimization signals for gradient-based prompt refinement, enabling faster convergence than continuous methods. 2) A failure amplification data generation strategy that synthetically boosts error case distributions, accelerating gradient optimization while also making it achievable with sparse industrial datasets. 3) A fluency-preserving loss function that penalizes random token insertion during gradient descent, ensuring optimized pro","cbCaigS13gURxhim","https://ap.wps.com/l/cbCaigS13gURxhim","pdf",2726757,13,"English","# Abstract\n# 1 Introduction\n# 2 Related Works","[{\"question\":\"What problem does CASPER address in prompt optimization for LLM agents?\",\"answer\":\"CASPER targets the difficulty of optimizing prompts for generative tasks without costly, manual prompt engineering, where discrete and continuous methods each have major limitations.\"},{\"question\":\"How does CASPER combine discrete and continuous prompt optimization?\",\"answer\":\"CASPER represents prompts as continuous embeddings and uses gradient descent, while injecting the LLM’s textual error feedback as optimization signals to steer convergence.\"},{\"question\":\"Which strategies does CASPER use to improve convergence and prompt quality?\",\"answer\":\"It uses fluency regularization to penalize incomprehensible tokens and accelerates convergence with synthetic data generation that oversamples failure cases, addressing data scarcity.\"}]","CASPER - Bridging Discrete and Continuous Prompt Optimization through Feedback-Guided Gradient Descent | PDF",1791056912,33,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7306a9e867099fffb05688b7ade22c47.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/61d98faf9fbe3ba241da0f7d417fee9b.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/98a5d678e47360f35f2b3cfc735a228d.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fefe4cc84b406621ad71daf5ce8c5cd9.webp",980,1385]