[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82603-en":3,"doc-seo-82603-105":29,"detail-sidebar-cat-0-en-105":82},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82603,8796095360427,"Lucas Martin","https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d",8,"Research & Report","Fixed-Set Robustness in Programming by Example: Example Corruption and Semantic Partition Recovery","Programming-by-example (PBE) systems infer programs from a small input–output example set, but robustness work often assumes wrong examples arise from random noise. This paper analyzes a stronger, fixed-set adversary who observes the synthesizer and selects corruptions that maximally damage the returned program. It formalizes worst-case corruption for finite PBE version spaces, implements exact and heuristic corruption searches for a string-transformation DSL, and proposes version-space partition aggregation (VPA) with semantic-signature voting. Experiments bound and partially negate robustness: low-margin tasks expose an adversarial dimension missed by noisy-PBE evaluation, and VPA recovers only when clean semantics preserve a vote margin.","Fixed-Set Robustness in Programming by Example: Example Corruption and Semantic Partition  \nRecovery  \nYuan Si and Jialu Zhang∗  \nUniversity of Waterloo, Waterloo, Canada  \n[yuan.si@uwaterloo.ca](yuan.si@uwaterloo.ca), [jialu.zhang@uwaterloo.ca](jialu.zhang@uwaterloo.ca)  \narXiv :2607 .0 1280v 1 [ cs .LG] 1 Jul 2026  \nAbstract—Programming-by-example systems infer programs from a small set of input-output examples. Robust PBE work usually models wrong examples as samples from a stochastic noise process and then minimizes an expected or empirical loss. This paper studies a different failure mode: an adversary who sees the synthesizer and chooses the examples whose corruption most damages the returned program. We formalize fixed-set worstcase corruption for finite PBE version spaces, implement exactwithin-bounded-pool and heuristic corruption searches for a string-transformation DSL, and introduce version-space partition aggregation (VPA), a defense that synthesizes on disjoint example groups and votes by semantic signatures. The central claim is deliberately bounded and partly negative: low-margin PBE tasks have an adversarial robustness dimension that randomtypo and noisy-PBE evaluations miss, while semantic partition aggregation helps only when the clean semantics keep a partition vote margin, which often fails on realistic tasks. Evidence from curated/generated DSL tasks, accepted public SyGuS PBE SLIA slices, SYNTRA Playgol v2, and noisy-PBE objective baselines supports that boundary. One curated edit flips all 8 spike tasks while 200-trial typo, DSL-pool, and distance-matched random controls succeed on 10.3%, 11.0%, and 16.7%; generated margin- 1 rows flip under budget 1 yet VPA recovers them; on public SyGuS the vote margin is near one, so an adaptive attacker drives VPA accuracy to zero; accepted public SyGuS slices move across exact-within-pool budget boundaries; and Playgol shows positive paired-bootstrap gaps against typo and same-pool random controls on the 141 accepted rows. A small exact-output prompt harness over 20 controlled margin-1 tasks shows the same qualitative clean-to-attacked pattern across local and API models, but it is treated as a scope check, not a broad LLM benchmark.  \nI. INTRODUCTION  \nProgramming by example (PBE) is attractive because it turns a few concrete input-output pairs into an executable transformation. Spreadsheet users, data-cleaning tools, code assistants, and LLM prompts all rely on this interface. The interface also creates a small and high-leverage attack surface. When a PBE solver sees only three or five examples, a single corrupted example can change the set of programs that are consistent with the specification. If the wrong program is simpler, better ranked, or better supported by the remaining  \nexamples, the synthesizer can return code that is exactly conCorresponding author: Jialu Zhang.  \nsistent with the corrupted examples and semantically wrong on future inputs.  \nExisting robust PBE work gives important tools for noisy data. Handa and Rinard synthesize over noisy inputoutput examples with finite-tree-automata encodings and loss/complexity objectives, then formalize guarantees under noise-source assumptions [14], [15] . Rose accelerates this objective with abstraction refinement [16] . RobustFill trains neural PBE models to tolerate realistic I/O noise such as typos [17], and Raychev et al. learn programs from noisy datasets through a sampler and regularized generator [18] . These models are a natural first line of defense, yet they optimize for noise drawn from a source or observed in adataset. They leave open the fixed-set question: which small edit would an informed adversary choose after seeing the synthesizer?  \nThis distinction matters in deployed workflows. FlashFill’s original paper opens from the observation that more than 500 million people use spreadsheets and describes an Excel addin that synthesizes string transformations from input-output examples [33] . Micr","cbCairlbqhJO3L7N","https://ap.wps.com/l/cbCairlbqhJO3L7N","pdf",358213,1,12,"English","en",105,"# Introduction\n## Background on Programming by Example (PBE)\n## Related Robust PBE and Noisy-Example Models\n## Motivation from Deployed Spreadsheet/DSL Workflows\n## Research Question and Scope","[{\"question\":\"What is version-space partition aggregation (VPA), and when does it help?\",\"answer\":\"VPA synthesizes on disjoint example groups and votes by semantic signatures. It helps only when clean semantics maintain a partition-vote margin; adaptive attacks can drive VPA accuracy to zero when the margin is near one.\"}]",1784181746,30,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":77,"head_meta":79,"extra_data":81,"updated_unix":27},"fixed-set-robustness-in-programming-by-example-example-corruption-and-semantic-partition-recovery","",{"@graph":35,"@context":76},[36,53,67],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/fixed-set-robustness-in-programming-by-example-example-corruption-and-semantic-partition-recovery/82603/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-16",true,{"@type":64,"interactionType":65,"userInteractionCount":4},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70],{"name":71,"@type":72,"acceptedAnswer":73},"What is version-space partition aggregation (VPA), and when does it help?","Question",{"text":74,"@type":75},"VPA synthesizes on disjoint example groups and votes by semantic signatures. It helps only when clean semantics maintain a partition-vote margin; adaptive attacks can drive VPA accuracy to zero when the margin is near one.","Answer","https://schema.org",{"og:url":51,"og:type":78,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":80,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":83},[84,88,92,96,101,106,111,113,118,121,125],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":45,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":45,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":28,"slug":112},"research-report",{"id":114,"doc_module":4,"doc_module_name":45,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":45,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":45,"category_name":127,"show_sort_weight":97,"slug":128},19,"General","general"]