{"id":400,"date":"2019-10-31T15:59:42","date_gmt":"2019-10-31T22:59:42","guid":{"rendered":"https:\/\/dfan.engineering.asu.edu\/?page_id=400"},"modified":"2019-10-31T15:59:42","modified_gmt":"2019-10-31T22:59:42","slug":"ai-security-bit-flip-adversarial-weight-attack","status":"publish","type":"page","link":"https:\/\/faculty.engineering.asu.edu\/dfan\/ai-security-bit-flip-adversarial-weight-attack\/","title":{"rendered":"AI Security: memory bit-flip based adversarial weight attack"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"> This repository contains a Pytorch implementation of the paper, titled \u201c<a href=\"http:\/\/openaccess.thecvf.com\/content_ICCV_2019\/papers\/Rakin_Bit-Flip_Attack_Crushing_Neural_Network_With_Progressive_Bit_Search_ICCV_2019_paper.pdf\">Bit-Flip Attack: Crushing Neural Network with Progressive Bit Search<\/a>\u201d, which is published in&nbsp;<a href=\"http:\/\/iccv2019.thecvf.com\/\">ICCV-2019<\/a>. It introduces a Bit-Flip Attack (BFA) algorithm which search and identify the vulnerable bits within a quantized deep neural network.&nbsp;<a href=\"https:\/\/elliothe.github.io\/Neural_Network_Weight_Attack\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">[code in GitHub]<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Publication<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[ICCV&#8217;19]<\/strong>&nbsp;Adnan Siraj Rakin, Zhezhi He, Deliang Fan, \u201cBit-Flip Attack: Crushing Neural Network with Progressive Bit Search,\u201d IEEE International Conference on Computer Vision, Seoul, Korea, Oct 27 &#8211; Nov 3, 2019&nbsp;<a href=\"https:\/\/arxiv.org\/abs\/1903.12269\">[pdf]<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA-1024x517.png\" alt=\"\" class=\"wp-image-511\" width=\"512\" height=\"259\" srcset=\"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA-1024x517.png 1024w, https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA-300x152.png 300w, https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA-768x388.png 768w, https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA.png 1067w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><figcaption>Concept illustration of quantized DNN under Bit-Flip Attack <\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2019\/10\/bfa-1024x893.jpg\" alt=\"\" class=\"wp-image-408\" width=\"512\" height=\"447\" srcset=\"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2019\/10\/bfa-1024x893.jpg 1024w, https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2019\/10\/bfa-300x262.jpg 300w, https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2019\/10\/bfa-768x670.jpg 768w, https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2019\/10\/bfa.jpg 1183w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><figcaption>proposed progressive bit search algorithm to identify most vulnerable bits in the memory<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Method Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Several important security issues of Deep Neural Network (DNN) have been raised recently associated with different applications and components. The most widely investigated security concern of DNN is from its malicious input, a.k.a adversarial example. Nevertheless, the security challenge of DNN\u2019s parameters is not well explored yet. In this work, we are the first to propose a novel DNN weight attack methodology called Bit-Flip Attack (BFA) which can crush a neural network through maliciously flipping extremely small amount of bits within its weight storage memory system (i.e., DRAM). The bit-flip operations could be conducted through well-known Row-Hammer attack, while our main contribution is to develop an algorithm to identify the most vulnerable bits of DNN weight parameters (stored in memory as binary bits), that could maximize the accuracy degradation with a minimum number of bit-flips. Our proposed BFA utilizes a Progressive Bit Search (PBS) method which combines gradient ranking and progressive search to identify the most vulnerable bit to be flipped. With the aid of PBS, we can successfully attack a ResNet-18 fully malfunction (i.e., top-1 accuracy degrade from 69.8% to 0.1%) only through 13 bit-flips out of 93 million bits, while randomly flipping 100 bits merely degrades the accuracy by less than 1%.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"mb-2\">This repository contains a Pytorch implementation of the paper, titled \u201cBit-Flip Attack: Crushing Neural Network with Progressive Bit Search\u201d, which is published in&nbsp;ICCV-2019. It introduces a Bit-Flip Attack (BFA) algorithm which search and identify the vulnerable bits within a quantized deep neural network.&nbsp;[code in GitHub] Related Publication [ICCV&#8217;19]&nbsp;Adnan Siraj Rakin, Zhezhi He, Deliang Fan, \u201cBit-Flip&#8230;<\/p>\n","protected":false},"author":381,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-400","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AI Security: memory bit-flip based adversarial weight attack - Deliang Fan<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI Security: memory bit-flip based adversarial weight attack - Deliang Fan\" \/>\n<meta property=\"og:description\" content=\"This repository contains a Pytorch implementation of the paper, titled \u201cBit-Flip Attack: Crushing Neural Network with Progressive Bit Search\u201d, which is published in&nbsp;ICCV-2019. It introduces a Bit-Flip Attack (BFA) algorithm which search and identify the vulnerable bits within a quantized deep neural network.&nbsp;[code in GitHub] Related Publication [ICCV&#8217;19]&nbsp;Adnan Siraj Rakin, Zhezhi He, Deliang Fan, \u201cBit-Flip...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/\" \/>\n<meta property=\"og:site_name\" content=\"Deliang Fan\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ece.jhu.edu\/dfan\/wp-content\/uploads\/2020\/04\/BFA-1024x517.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/\",\"url\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/\",\"name\":\"AI Security: memory bit-flip based adversarial weight attack - Deliang Fan\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/wp-content\\\/uploads\\\/sites\\\/201\\\/2020\\\/04\\\/BFA-1024x517.png\",\"datePublished\":\"2019-10-31T22:59:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/#primaryimage\",\"url\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/wp-content\\\/uploads\\\/sites\\\/201\\\/2020\\\/04\\\/BFA.png\",\"contentUrl\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/wp-content\\\/uploads\\\/sites\\\/201\\\/2020\\\/04\\\/BFA.png\",\"width\":1067,\"height\":539},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/developed-tools__trashed\\\/ai-security-bit-flip-adversarial-weight-attack\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Security: memory bit-flip based adversarial weight attack\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/#website\",\"url\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/\",\"name\":\"Deliang Fan\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/faculty.engineering.asu.edu\\\/dfan\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI Security: memory bit-flip based adversarial weight attack - Deliang Fan","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/","og_locale":"en_US","og_type":"article","og_title":"AI Security: memory bit-flip based adversarial weight attack - Deliang Fan","og_description":"This repository contains a Pytorch implementation of the paper, titled \u201cBit-Flip Attack: Crushing Neural Network with Progressive Bit Search\u201d, which is published in&nbsp;ICCV-2019. It introduces a Bit-Flip Attack (BFA) algorithm which search and identify the vulnerable bits within a quantized deep neural network.&nbsp;[code in GitHub] Related Publication [ICCV&#8217;19]&nbsp;Adnan Siraj Rakin, Zhezhi He, Deliang Fan, \u201cBit-Flip...","og_url":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/","og_site_name":"Deliang Fan","og_image":[{"url":"https:\/\/www.ece.jhu.edu\/dfan\/wp-content\/uploads\/2020\/04\/BFA-1024x517.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/","url":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/","name":"AI Security: memory bit-flip based adversarial weight attack - Deliang Fan","isPartOf":{"@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/#website"},"primaryImageOfPage":{"@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/#primaryimage"},"image":{"@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/#primaryimage"},"thumbnailUrl":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA-1024x517.png","datePublished":"2019-10-31T22:59:42+00:00","breadcrumb":{"@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/#primaryimage","url":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA.png","contentUrl":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-content\/uploads\/sites\/201\/2020\/04\/BFA.png","width":1067,"height":539},{"@type":"BreadcrumbList","@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/developed-tools__trashed\/ai-security-bit-flip-adversarial-weight-attack\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/faculty.engineering.asu.edu\/dfan\/"},{"@type":"ListItem","position":2,"name":"AI Security: memory bit-flip based adversarial weight attack"}]},{"@type":"WebSite","@id":"https:\/\/faculty.engineering.asu.edu\/dfan\/#website","url":"https:\/\/faculty.engineering.asu.edu\/dfan\/","name":"Deliang Fan","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/faculty.engineering.asu.edu\/dfan\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/pages\/400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/users\/381"}],"replies":[{"embeddable":true,"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/comments?post=400"}],"version-history":[{"count":0,"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/pages\/400\/revisions"}],"wp:attachment":[{"href":"https:\/\/faculty.engineering.asu.edu\/dfan\/wp-json\/wp\/v2\/media?parent=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}