[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-273740-105":59,"doc-detail-273740-en":131,"doc-similar-273740":163},{"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","beyond-prompt-engineering-a-systematic-analysis-of-prompt-lexical-sensitivity-and-its-impacts-on-quality","Beyond Prompt Engineering - A Systematic Analysis of Prompt Lexical Sensitivity and Its Impacts on Quality","","Large Language Models (LLMs) show extreme sensitivity to surface-level prompt wording, where small lexical edits can cause disproportionate performance swings. Moving beyond black-box tuning and template heuristics, this work offers a large-scale n-gram, token-level mechanistic study using 132,000 prompt variants. Results establish a scaling law for prompt stability: higher mean task quality aligns with lower variance. Two linguistic drivers—domain-specific terminology and explicit action directives—constrain interpretation, enabling more robust behavior. An automated prompt-refining agent reduces variance by 40.7% in code generation while maintaining or improving average performance.",{"@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/beyond-prompt-engineering-a-systematic-analysis-of-prompt-lexical-sensitivity-and-its-impacts-on-quality/273740/",{"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/beyond-prompt-engineering-a-systematic-analysis-of-prompt-lexical-sensitivity-and-its-impacts-on-quality/273740.png","ImageObject",300,407,{"name":92,"@type":93},"Skyler","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-09-15",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why does prompt instability occur in large language models?","Question",{"text":113,"@type":114},"LLMs exhibit extreme sensitivity to surface-level lexical changes, where minor wording variations can trigger large performance fluctuations on the same task. This instability reduces reliability and reproducibility for deployment.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What is the core contribution of this paper’s analysis approach?",{"text":118,"@type":114},"The study performs a large-scale n-gram, token-level mechanistic analysis rather than template-level or gradient-saliency methods. It analyzes token-level patterns across 132,000 prompt evaluations.",{"name":120,"@type":111,"acceptedAnswer":121},"Which linguistic factors drive robustness, according to the findings?",{"text":122,"@type":114},"The robustness is attributed to domain-specific terminology that anchors semantic boundaries and explicit action directives that formalize reasoning trajectories. Together, they constrain the model’s interpretative space for more deterministic generation.","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},273740,1789472683,{"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":130,"read_time":145,"preview_page_count":19,"preview_urls":146},2336464648746,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Beyond Prompt Engineering: A Systematic Analysis of Prompt Lexical Sensitivity and Its Impacts on Quality  \nQipeng Xie1,5 * , Zi Liang2 * , Jiafei Wu3†, Yufei Chen3 , Weizheng Wang2 ,  \nWenao Ma4†, Zhong Ming1 , Haiqin Yang1†, Kaishun Wu5  \n1 Shenzhen Technology University, 2The Hong Kong Polytechnic University, 3Zhejiang Lab  \n4The Chinese University of Hong Kong, 5HKUST (Guangzhou) [1](1{qxieaf@connect.ust.hk)[{qxieaf@connect.ust.hk](1{qxieaf@connect.ust.hk), [wuks@hkust-gz.edu.cn}](wuks@hkust-gz.edu.cn}2{zi1415926.liang@connect.polyu.hk)[2](wuks@hkust-gz.edu.cn}2{zi1415926.liang@connect.polyu.hk)[{zi1415926.liang@connect.polyu.hk](wuks@hkust-gz.edu.cn}2{zi1415926.liang@connect.polyu.hk), [weizheng.wang@ieee.org}](weizheng.wang@ieee.org})  \n[3](3{wujiafei@zhejianglab.org)[{wujiafei@zhejianglab.org](3{wujiafei@zhejianglab.org), [cyf200409@gmail.com}](cyf200409@gmail.com}4wenaoma@gmail.com5{yanghaiqin@sztu.edu.cn})[4](cyf200409@gmail.com}4wenaoma@gmail.com5{yanghaiqin@sztu.edu.cn})[wenaoma@gmail.com](cyf200409@gmail.com}4wenaoma@gmail.com5{yanghaiqin@sztu.edu.cn})[5](cyf200409@gmail.com}4wenaoma@gmail.com5{yanghaiqin@sztu.edu.cn})[{yanghaiqin@sztu.edu.cn}](cyf200409@gmail.com}4wenaoma@gmail.com5{yanghaiqin@sztu.edu.cn})  \narXiv : 2608 .20349v 1 [cs .CL] 16 Jun 2026  \nAbstract  \nLarge Language Models (LLMs) exhibit extreme sensitivity to surface-level prompt variations, in which minor lexical changes can trigger disproportionate performance fluctuations. Moving beyond black-box optimization and coarse-grained templates, we present the first large-scale, n-gram token-level mechanistic analysis of prompt stability, leveraging adataset of 132,000 prompt variants. Our investigation reveals a fundamental Scaling Law of Prompt Performance Stability: higher average task performance is strongly associated with lower variance and greater robustness across prompt perturbation. We identify two core linguistic drivers underlying this robustness: (1) Domain-Specific Terminology, which tightly anchors semantic boundaries, and (2) Explicit Action Directives, which formalize reasoning trajectories. Together, these elements constrain the model’s interpretative space, effectively “locking in” more deterministic generation behavior. Building on these insights, we introduce an automated Prompt-Refining Agent that systematically restructures input queries by injecting domain anchoring and operational constraints. Empirical evaluation shows that our approach reduces performance variance by 40.7% in code generation task, while preserving or improving mean performance. These findings provide a statistically grounded and mechanistically interpretable framework for achieving robust prompt engineering.  \n1 Introduction  \nWith the rapid advancement of large language models (LLMs), systematically evaluating their robustness and consistency across different prompt formulations has become increasingly critical (Liu et al., 2023a ; Dong et al., 2024 ; Mei et al., 2025) . As illustrated in Fig. 1 (top), prompt engineering often  \n*Equal contributions.  \n†Corresponding authors.  \nFigure 1: The Prompt Sensitivity Challenge vs. Our Solution. Top: Minor lexical variations in prompts trigger drastic performance fluctuations (high variance) . Bottom: Our Automated Prompt-Refining Agent stabilizes generation by injecting domain-specific terminology and explicit action directives (low variance) .  \nsuffers from a “butterfly effect”: even minor lexical variations can lead to substantial performance fluctuations on the same task (Lu et al., 2024) .  \nThis phenomenon, termed prompt instability, undermines the reliability and reproducibility required for trustworthy LLM deployment. While prompt engineering has emerged as a practical solution to alleviate this issue, it remains largely heuristic and reliant on trial-and-error, lacking a principled understanding of the underlying mechanisms. Consequently, a fundamental question persists: What determines whether a prompt ach","cbCainn2FLhJ3yiW","https://ap.wps.com/l/cbCainn2FLhJ3yiW","pdf",6367620,15,"English","# Abstract\n# 1 Introduction\n## Prompt instability and motivation\n## Related work\n## Mechanism-oriented approach\n## Key contributions","[{\"question\":\"Why does prompt instability occur in large language models?\",\"answer\":\"LLMs exhibit extreme sensitivity to surface-level lexical changes, where minor wording variations can trigger large performance fluctuations on the same task. This instability reduces reliability and reproducibility for deployment.\"},{\"question\":\"What is the core contribution of this paper’s analysis approach?\",\"answer\":\"The study performs a large-scale n-gram, token-level mechanistic analysis rather than template-level or gradient-saliency methods. It analyzes token-level patterns across 132,000 prompt evaluations.\"},{\"question\":\"Which linguistic factors drive robustness, according to the findings?\",\"answer\":\"The robustness is attributed to domain-specific terminology that anchors semantic boundaries and explicit action directives that formalize reasoning trajectories. Together, they constrain the model’s interpretative space for more deterministic generation.\"}]","Beyond Prompt Engineering - A Systematic Analysis of Prompt Lexical Sensitivity and Its Impacts on Quality | PDF",38,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/eed6141d74aec8583f7e79f983b607be.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6f38988e961b3a6258886f87095f0c6e.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0729455031c48e9e18ae39f98eb99ea7.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/fc06c34da34c46cba6d3428e825e128c.webp",980,1385,{"list":164,"token":66},[165,172,178,185,192,199,206,212,219,225],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":40,"create_tm":171},82850,"Turning Off-Policy Tokens On-Policy: A Plug-in Approach for Improving LLM Alignment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808796863/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=%2F0CgT72WoyKCOc8eUeMbZs%2B%2BaQE%3D","turning-off-policy-tokens-on-policy-a-plug-in-approach-for-improving-llm-alignment",36,1784183409,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":44,"category_name":40,"create_tm":177},327141,"TokenScope - Token-Level Explainability and Interpretability - for Code-Oriented Tasks in Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909305026/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=8J5KqDvcUhlTwYjqULtiaIVhGp0%3D","tokenscope-token-level-explainability-and-interpretability-for-code-oriented-tasks-in-large-language-models",1789976523,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},82134,"Sensitivity Aware Thresholding and Token Routing for Activation Sparsification in Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808714711/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=ijhqakVtUhuPsCIgfKDvke%2B%2BvsU%3D","sensitivity-aware-thresholding-and-token-routing-for-activation-sparsification-in-large-language-models",27,1784178384,{"doc_id":186,"doc_title":187,"file_type":138,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":40,"create_tm":191},395266,"Beyond Tokens - Part 1 - A Survey on Decoding Methods for Large Language Models and Large Vision-Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918623728/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=YC5VpDnnjuhFRZnl2WtIvhcpI%2BA%3D","beyond-tokens-part-1-a-survey-on-decoding-methods-for-large-language-models-and-large-vision-language-models",14,1790417402,{"doc_id":193,"doc_title":194,"file_type":138,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":40,"create_tm":198},160109,"DO LLMS “KNOW” INTERNALLY WHEN THEY FOLLOW INSTRUCTIONS?","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229871952602/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=KgeGIkVMX45RgAqEanrlY%2FhcjXA%3D","do-llms-know-internally-when-they-follow-instructions",24,1788050589,{"doc_id":200,"doc_title":201,"file_type":138,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":40,"create_tm":205},327665,"ACPO: Adaptive Credit Policy Optimization via Fine-Grained Surrogate Entropy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909339300/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=TnTsJcHbkErJYQEs1OOov5YqtXc%3D","acpo-adaptive-credit-policy-optimization-via-fine-grained-surrogate-entropy",13,1789977769,{"doc_id":207,"doc_title":208,"file_type":138,"home_preview_img_url":209,"slug":210,"view_count":183,"category_name":40,"create_tm":211},83484,"BT-APE: A Computationally Light Backtracking Approach to Automatic Prompt Engineering for Requirements Classification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808859342/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=yIO%2B8rpZJriOZHn%2Fc8veZkvK8Hc%3D","bt-ape-a-computationally-light-backtracking-approach-to-automatic-prompt-engineering-for-requirements-classification",1784188343,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":40,"create_tm":218},507098,"Controlling Difficulty of Generated Text for AI-Assisted Language Learning - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933457197/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=P%2Faw7J3%2Fbjscxp7c1X%2By1sBe53s%3D","controlling-difficulty-of-generated-text-for-ai-assisted-language-learning-paper",12,1791173269,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":105,"category_name":40,"create_tm":224},506798,"Toward Beginner-Friendly LLMs for Language Learning - Controlling Difficulty in Conversation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933669448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=9oFr4fn14vUNFMWakquGy3l9ns4%3D","toward-beginner-friendly-llms-for-language-learning-controlling-difficulty-in-conversation",1791168994,{"doc_id":226,"doc_title":227,"file_type":138,"home_preview_img_url":228,"slug":229,"view_count":230,"category_name":40,"create_tm":231},86236,"TOFU: White-Box, Token-Efficient Agent Harness for Researchers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809513357/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796231879&Signature=KGcCRyaXwymV0rOl2hEyjehidt8%3D","tofu-white-box-token-efficient-agent-harness-for-researchers",22,1784209704]