[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-273562-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-273562-en":131,"doc-similar-273562":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","you-are-what-you-prompt-prompt-quality-domain-shift-and-uncertainty-in-agrifood-vision-language-models","You Are What You Prompt - Prompt Quality, Domain Shift, and Uncertainty in Agrifood Vision-Language Models","","Vision–language models support zero-shot classification via natural-language prompts, yet results vary strongly with prompt formulation, particularly in specialized agrifood settings. Zero-shot Prompt Ensembling (ZPE) mitigates this by weighting prompts according to discriminative signal, but its robustness under domain shift has been largely unexplored. Evaluations with CLIP and SigLIP across multiple datasets show limited gains in-distribution and substantial improvements in performance and calibration under shift, especially with domain-specific prompt pools. Lexical analysis indicates ZPE operates as an unsupervised domain-alignment detector without label access; Prompt-based Inconsistency Detection (PID) leverages prompt disagreement as epistemic uncertainty for failure detection under severe shift.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/you-are-what-you-prompt-prompt-quality-domain-shift-and-uncertainty-in-agrifood-vision-language-models/273562/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/you-are-what-you-prompt-prompt-quality-domain-shift-and-uncertainty-in-agrifood-vision-language-models/273562.png","ImageObject",300,407,{"name":42,"@type":43},"Noah","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-09-15",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",13,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why does prompt formulation matter for vision-language zero-shot classification?","Question",{"text":63,"@type":64},"Vision–language models align images with class descriptions in natural language, so the quality and wording of the text prompts directly affect classification performance, especially in specialized domains.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is Zero-shot Prompt Ensembling (ZPE) and how does it work?",{"text":68,"@type":64},"ZPE improves prompt ensembling by assigning higher weights to prompts with stronger discriminative signal, estimated without using an external validation set.",{"name":70,"@type":61,"acceptedAnswer":71},"How does ZPE behave under domain shift, and what additional method is proposed?",{"text":72,"@type":64},"ZPE brings limited benefit in-distribution but substantially improves performance and calibration under domain shift when using domain-specific prompt pools. The paper also introduces PID, which uses disagreement between prompts as a signal of epistemic uncertainty to detect failures under severe shift.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},273562,1789472061,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":80,"read_time":113,"preview_page_count":33,"preview_urls":145},8796095462418,"https://ap-avatar.wpscdn.com/avatar/80000253c1241d02b47?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778826106357471780","arXiv : 2608 . 18 1 16v 1 [cs .CL] 1 Jul 2026  \nYou Are What You Prompt: Prompt Quality, Domain Shift, and Uncertainty in Agrifood Vision-Language Models  \nCalidad de prompts, cambio de dominio e incertidumbre en modelos visi´on-lenguaje agroalimentarios  \nAndrea Morales-Garz´on 1 Salvador Lopez-Joya 1 Miguel L´opez-P´erez 1  \nMaria J. Martin-Bautista 1  \n1 Dept. Computer Science and Artificial Intelligence, University of Granada amoralesg@decsai.ugr.es, [slopezjoya@ugr.es](slopezjoya@ugr.es), {mlopez,[mbautis](mbautis}@decsai.ugr.es)[}](mbautis}@decsai.ugr.es)[@decsai.ugr.es](mbautis}@decsai.ugr.es)  \n[Resumen:](Resumen:) Los modelos de visi´on y lenguaje permiten la clasificaci´on zero-shot mediante descripciones en lenguaje natural, pero su rendimiento es sensible a la formulaci´on de los prompts, especialmente en dominios especializados. El m´etodo Zeroshot Prompt Ensembling (ZPE) aborda esto ponderando los prompts seg´un su se˜nal discriminativa, aunque su comportamiento bajo cambio de dominio permanece inexplorado. Evaluamos ZPE en el dominio agroalimentario usando CLIP y SigLIP sobre cuatro conjuntos de datos y cuatro colecciones de prompts, cubriendo benchmarks de comida (in-distribution, ID) y agricultura (out-of-distribution) . ZPE aporta beneficios limitados en condiciones ID, pero mejora sustancialmente el rendimiento y la calibraci´on bajo cambio de dominio, donde colecciones de prompts espec´ıficas de dominio (51–52 prompts) superan consistentemente a las gen´ericas (247–426) .  \nEl an´alisis l´exico muestra que ZPE act´ua como un detector no supervisado de alineaci´on de dominio sin acceso a etiquetas. Adem´as, introducimos PID (Prompt-based Inconsistency Detection), que reutiliza el desacuerdo entre prompts como se˜nal deincertidumbre epist´emica, mejorando la detecci´on de fallos bajo cambio de dominiosevero donde las medidas de confianza est´andar colapsan.  \nPalabras clave: Clasificaci´on zero-shot, Modelos de visi´on y lenguaje, Ingenier´ıade prompts, PLN espec´ıfico de dominio, Cuantificaci´on de incertidumbre  \nAbstract: Vision–language models enable zero-shot classification through natural language prompts, but performance is sensitive to prompt formulation, especially in specialized domains. Zero-shot Prompt Ensembling (ZPE) addresses this by weighting prompts by discriminative signal, yet its behavior under domain shift remains unexplored. We evaluate ZPE in the agrifood domain using CLIP and SigLIP across four datasets and four prompt pools, spanning in-distribution (ID) food and outof-distribution agricultural benchmarks. ZPE provides limited benefit under ID conditions but substantially improves performance and calibration under domain shift, where domain-specific pools of 51–52 prompts consistently outperform generic pools of 247–426 . Lexical analysis shows that ZPE acts as an unsupervised domainalignment detector without label access. We further introduce PID (Prompt-based Inconsistency Detection), which repurposes prompt disagreement as epistemic uncertainty, improving failure detection under severe domain shift where standard confidence measures collapse.  \nKeywords: Zero-shot Classification, Visual Language models, Prompt Engineering, Domain Specific NLP, Uncertainty Quantification  \n1 Introduction  \nVision–language models (VLMs) such as CLIP (Radford et al., 2021) and SigLIP (Zhaiet al., 2023) enable zero-shot classification by aligning images with natural language de-  \nscriptions of classes. In this setting, the formulation of text prompts plays a critical role in model performance. A widely adopted strategy to improve robustness is prompt ensembling (Liu et al., 2023), where multi-  \nple prompt templates are used to predict each class and their outputs are aggregated. The underlying assumption is that a diverse prompt pool can mitigate variability introduced by weaker individual prompts (Pitis et al., 2023) .  \nIn practice, prompt ensembling is not always beneficial. When VLMs trained on g","cbCaikhijd38m5Zz","https://ap.wps.com/l/cbCaikhijd38m5Zz","pdf",957216,12,"English","# Introduction\n## Prompt ensembling and robustness under specialized domains\n## Zero-shot Prompt Ensembling (ZPE) and domain shift\n## Study setup for agrifood in-distribution and out-of-distribution tasks","[{\"question\":\"Why does prompt formulation matter for vision-language zero-shot classification?\",\"answer\":\"Vision–language models align images with class descriptions in natural language, so the quality and wording of the text prompts directly affect classification performance, especially in specialized domains.\"},{\"question\":\"What is Zero-shot Prompt Ensembling (ZPE) and how does it work?\",\"answer\":\"ZPE improves prompt ensembling by assigning higher weights to prompts with stronger discriminative signal, estimated without using an external validation set.\"},{\"question\":\"How does ZPE behave under domain shift, and what additional method is proposed?\",\"answer\":\"ZPE brings limited benefit in-distribution but substantially improves performance and calibration under domain shift when using domain-specific prompt pools. The paper also introduces PID, which uses disagreement between prompts as a signal of epistemic uncertainty to detect failures under severe shift.\"}]","You Are What You Prompt - Prompt Quality, Domain Shift, and Uncertainty in Agrifood Vision-Language Models | PDF",[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/055b8bccf208e062b71951821dce51f1.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3f8d7985aab00895e62637eb4d2b100c.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d38bfd2a1c2cce716d0678af650f0871.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5958daaaa8be2e7922d5a55794919884.webp",980,1385,{"list":163,"token":11},[164,171,177,184,191,198,205,212,219,226],{"doc_id":165,"doc_title":166,"file_type":138,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},128044,"Dude - Dual Distribution-Aware Context Prompt Learning For Large Vision-Language Model - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839475111/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=iMlUjwup1OJCoJ2fBLzWQF8cTAY%3D","dude-dual-distribution-aware-context-prompt-learning-for-large-vision-language-model-abstract",27,1785944411,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":55,"category_name":29,"create_tm":176},327278,"CPG-PAD: Concept-Informed Prompts Guided Presentation Attack Detection - State-of-the-art Cross-Domain PAD Framework","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229908481469/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=D3n0oYLDi1I7hdrMxzJR8LcIJGQ%3D","cpg-pad-concept-informed-prompts-guided-presentation-attack-detection-state-of-the-art-cross-domain-pad-framework",1789976889,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},86096,"MED-DSLC: Multi-Expert-Domain Classification via Domain Supervision and Logit Calibration","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809503962/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=rDoO77cfLXXPagk35YKRMnK%2FQo4%3D","med-dslc-multi-expert-domain-classification-via-domain-supervision-and-logit-calibration",31,1784208483,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":29,"create_tm":190},83430,"ZipDepth Bringing Lightweight Zero-Shot Monocular Depth Anywhere on Any Device","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808975454/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=NuOcs0PKi%2FFeqNQqnTLZ4phDLyM%3D","zipdepth-bringing-lightweight-zero-shot-monocular-depth-anywhere-on-any-device",33,1784187623,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":29,"create_tm":197},82434,"Promptable Concept Segmentation from Above Evaluating SAM 3’s Zero-Shot and One-Shot Capabilities in Remote Sensing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808741604/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=Fu55dYjv1igotUoubiKRNPXiaTQ%3D","promptable-concept-segmentation-from-above-evaluating-sam-3s-zero-shot-and-one-shot-capabilities-in-remote-sensing",26,1784180358,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":29,"create_tm":204},113070,"Recipe for a Livable Planet - Achieving Net Zero Emissions in the Agrifood System - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229812932238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=xpMXoGSqXil5BQYfvxJSpIfSSJA%3D","recipe-for-a-livable-planet-achieving-net-zero-emissions-in-the-agrifood-system-overview",18,1784499714,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},82407,"TCLA Training-Free Class-wise Logit Adaptation for Medical Vision-Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808890590/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=ccyKscLjyB1ODn5igKUW%2FYdGUPY%3D","tcla-training-free-class-wise-logit-adaptation-for-medical-vision-language-models",25,1784180164,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},506019,"QUERY-DEPENDENT PROMPT EVALUATION AND OPTIMIZATION WITH OFFLINE INVERSE RL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933247329/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=6a4kMsVg3%2BZ0Hwdvk3IbQECrCkA%3D","query-dependent-prompt-evaluation-and-optimization-with-offline-inverse-rl",11,1791156763,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},137721,"On the Potential and Limits of Zero-Shot Out-of-Distribution Detection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229863057544/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=uoxA6aDChtMsUl7ljEUTL1lHZfs%3D","on-the-potential-and-limits-of-zero-shot-out-of-distribution-detection",17,1787438954,{"doc_id":227,"doc_title":228,"file_type":138,"home_preview_img_url":229,"slug":230,"view_count":203,"category_name":29,"create_tm":231},298182,"Large Language Models are Zero-Shot Reasoners - arXiv 2205.11916v4","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905783348/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796240759&Signature=4KjCK1wBPqnaSM4ySs8hGifDL5g%3D","large-language-models-are-zero-shot-reasoners-arxiv-220511916v4",1789752381]