[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-497348-105":59,"doc-detail-497348-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","specifying-and-testing-k-safety-properties-for-machine-learning-models-497348","Specifying and Testing k-Safety Properties for Machine-Learning Models","","Machine-learning models are widely used for image classification and decision-making, making reliability, robustness, and fairness essential. Beyond narrow property validation, expressing general functional-correctness requirements is difficult, especially to check them effectively. This paper introduces k-safety properties, inspired by formal-methods specifications, and provides the first specification language for expressing such functional-correctness expectations. A metamorphic-testing framework automatically validates k-safety properties, and experiments show it detects violations and supports training improved models.",{"@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/specifying-and-testing-k-safety-properties-for-machine-learning-models-497348/497348/",{"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/specifying-and-testing-k-safety-properties-for-machine-learning-models-497348/497348.png","ImageObject",300,407,{"name":92,"@type":93},"pop out","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-10-02",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 are k-safety properties in this paper?","Question",{"text":112,"@type":113},"They are functional-correctness expectations expressed by reasoning about k different executions of a machine-learning model, generalizing standard safety properties.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the paper validate k-safety properties automatically?",{"text":117,"@type":113},"It operationalizes a newly proposed specification language within a metamorphic-testing framework to automatically validate these properties and identify violations.",{"name":119,"@type":110,"acceptedAnswer":120},"What kinds of machine-learning domains does the paper demonstrate with examples?",{"text":121,"@type":113},"It provides examples across tabular data, images (MNIST), speech (SpeechCommand), natural language (HotelReview), and action policies.","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},497348,1791236876,{"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":52,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144,"preview_page_count":19,"preview_urls":145},962090760408,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Specifying and Testing k-Safety Properties for Machine-Learning Models  \nMaria Christakis 1 , Hasan Ferit Eniser2 , Jörg Hoffmann3 ,4 , Adish Singla2 and  \nValentin Wüstholz5  \n1TU Wien, Austria  \n2MPI-SWS, Germany  \n3 Saarland University, Saarland Informatics Campus, Germany  \n4 German Research Center for Artificial Intelligence (DFKI), Germany  \n5 ConsenSys, Austria  \n[maria.christakis@tuwien.ac.at](maria.christakis@tuwien.ac.at), {hfeniser, [adishs}@mpi-sws.org](adishs}@mpi-sws.org), [hoffmann@cs.uni-saarland.de](hoffmann@cs.uni-saarland.de),  \n[valentin.wustholz@consensys.net](valentin.wustholz@consensys.net)  \nAbstract  \nMachine-learning models are becoming increasingly prevalent in our lives, for instance assisting in image-classification or decision-making tasks. Consequently, the reliability of these models is of critical importance and has resulted in the development of numerous approaches for validating and verifying their robustness and fairness. However, beyond such specific properties, it is challenging to specify, let alone check, general functional-correctness expectations from models. In this paper, we take inspiration from specifications used in formal methods, expressing functional-correctness properties by reasoning about k different executions—so-called k-safety properties. Considering a credit-screening model of a bank, the expected property that \"if a person is denied a loan and their income decreases, they should still be denied the loan\" is a 2-safety property. Here, we show the wide applicability of ksafety properties for machine-learning models and present the first specification language for expressing them. We also operationalize the language in a framework for automatically validating such properties using metamorphic testing. Our experiments show that our framework is effective in identifying property violations, and that detected bugs could be used to train better models.  \n1 Introduction  \nDue to the impressive advances in machine learning and the unlimited availability of data, machine-learning (ML) models, e.g., neural networks, are rapidly becoming prevalent in our lives, for instance by assisting in image-classification or decision-making tasks. As a result, there is growing concern about the reliability of these models in performing such tasks. For example, it could be disastrous if an autonomous vehicle misclassifies a street sign, or if a recidivism-risk algorithm, which predicts whether a criminal is likely to re-offend, is unfair with respect to race. The research community is, of course, aware of these issues and has devised numerous  \ntechniques to validate and verify robustness and fairness properties of machine-learning models (e.g., [Huang et al., 2017; Gehr et al., 2018; Singh et al., 2019; Albarghouthi et al., 2017; Bastani et al., 2019; Urban et al., 2020; Carlini and Wagner, 2017; Goodfellow et al., 2015; Madry et al., 2018; Galhotra et al., 2017; Udeshi et al., 2018; Tramèr et al., 2017]) .  \nBeyond such specific properties however, it is challenging to express general functional-correctness expectations from such models, let alone check them, e.g., how can we specify that an image classifier should label images correctly? We take inspiration from specifications used in formal methods—so-called hyperproperties [Clarkson and Schneider, 2008]—capturing functional-correctness properties by simultaneously reasoning about multiple system executions. For example, consider a credit-screening model of a bank. The expected property that \"if a person is denied a loan and their income decreases, they should still be denied the loan\", or conversely\"if a person is granted a loan and their income increases, they should still be granted the loan\", is a 2-safety hyperproperty—we need two model executions to validate its correctness. In contrast, the property that \"a person with no income should be denied a loan\" is a standard (1-)safety property since it can be validated by individual model e","cbCaiabpXK2O5Oc9","https://ap.wps.com/l/cbCaiabpXK2O5Oc9","pdf",279297,"English","# Abstract\n# 1 Introduction\n## Machine-learning reliability concerns\n## Hyperproperties and functional-correctness\n## Examples across domains","[{\"question\":\"What are k-safety properties in this paper?\",\"answer\":\"They are functional-correctness expectations expressed by reasoning about k different executions of a machine-learning model, generalizing standard safety properties.\"},{\"question\":\"How does the paper validate k-safety properties automatically?\",\"answer\":\"It operationalizes a newly proposed specification language within a metamorphic-testing framework to automatically validate these properties and identify violations.\"},{\"question\":\"What kinds of machine-learning domains does the paper demonstrate with examples?\",\"answer\":\"It provides examples across tabular data, images (MNIST), speech (SpeechCommand), natural language (HotelReview), and action policies.\"}]","Specifying and Testing k-Safety Properties for Machine-Learning Models | PDF",1790952453,25,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1c0ecd9e7eb1b4394fa8437d12e0b5c5.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/890136f46c9cc74771eb51aa3155badd.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e5ac864168955f4d54f295a60a020d7c.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7c7032c46fb91ad45f7fba96395719ef.webp",980,1268]