<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prabhant Singh on Medium]]></title>
        <description><![CDATA[Stories by Prabhant Singh on Medium]]></description>
        <link>https://medium.com/@prabhant?source=rss-c8d7c5692c9a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9BTfYOxSJI17ykBoUawC9g.jpeg</url>
            <title>Stories by Prabhant Singh on Medium</title>
            <link>https://medium.com/@prabhant?source=rss-c8d7c5692c9a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:14:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prabhant/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[OKTA: The only security stock worth investing in!]]></title>
            <link>https://medium.com/ml-stocks/okta-the-only-security-stock-worth-investing-in-3e5d9c7c0bc4?source=rss-c8d7c5692c9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e5d9c7c0bc4</guid>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[investment]]></category>
            <category><![CDATA[okta]]></category>
            <category><![CDATA[invest]]></category>
            <dc:creator><![CDATA[Prabhant Singh]]></dc:creator>
            <pubDate>Wed, 02 Dec 2020 14:57:13 GMT</pubDate>
            <atom:updated>2020-12-02T14:59:28.418Z</atom:updated>
            <content:encoded><![CDATA[<p>Nobody might be really aware of OKTA (NASDAQ: OKTA). This is by far the only identity, and access management stock available right now in the public domain which does operate on cutting edge. Though you can find a ton of security companies in the market and say “hey this one looks like they know what they are doing” but OKTA enticed me more because of their focus on developer relations. Okta seems to be working more and more on developer adoption to make this company go in the right direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjDKi7Dp54by-DJlmWDxfg.png" /></figure><h3>Why this company is important:</h3><p>OKTA fills a lot of gaps traditional security companies avoid. Whenever I look at any security company it’s hard to tell what’s the exact product and why is this company&#39;s product better than its competitors. Okta provides a good amount of transparency regarding its products, the developer blog <a href="https://developer.okta.com/blog/">https://developer.okta.com/blog/</a> From the first 5 minutes on their website I know what the company exactly does and what is their plan. okta fills up the requirement for programming libraries for developers to seamlessly integrate authentication libraries without hassle which is attractive.</p><h3>Competition:</h3><p>Okta does offer a lot of fo services hence it does have a foot in a very competitive market. Apart from traditional security companies, the biggest competitor for okta I can see is Auth0 which is yet to go public. Okta seems to be way bigger than Auth0 in size and product range.</p><h3>Product:</h3><p>Okta does seem to offer a number of security services but in my opinion, the strongest suite is libraries and extensions to its core auth libraries which are available. Okta does have extensions and integrations with every major provider. The product range includes essentials like SSO, MFA, 2FA (these are security terms don&#39;t worry if you don’t understand them), API access management access gateways, and lifecycle management. They also have a solutions department which looks like a consultancy part of the company which does have strong suites too.</p><h3>Growth:</h3><p>Okta does have huge growth potential. The company seems to be expanding itself in every area from critical infrastructure to websites. Okta also has a thriving developer ecosystem which provides it with a huge upside and adoption support. Growth aspects for okta look really good to me.</p><h3>Projections:</h3><p>The current price of OKTA is 244$. My one-year projection for okta is around 400$.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e5d9c7c0bc4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ml-stocks/okta-the-only-security-stock-worth-investing-in-3e5d9c7c0bc4">OKTA: The only security stock worth investing in!</a> was originally published in <a href="https://medium.com/ml-stocks">ML Stocks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ELASTIC NV, an essential stock for the tech ecosystem]]></title>
            <link>https://medium.com/ml-stocks/elastic-nv-an-essential-stock-for-the-tech-ecosystem-53fa8c7cc2ed?source=rss-c8d7c5692c9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/53fa8c7cc2ed</guid>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[invest]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[softwarestocks]]></category>
            <dc:creator><![CDATA[Prabhant Singh]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 16:00:05 GMT</pubDate>
            <atom:updated>2020-11-20T16:00:05.410Z</atom:updated>
            <content:encoded><![CDATA[<p>When you hear the name Elastic NV(NYSE: ESTC) it might not ring a bell to anyone whether you are an investor or a techie. Though in my opinion, this company is one of the most important companies in the current software ecosystem. Elastic NV is the creator of Elasticsearch, every software engineer I know and met have used this tool at one point or at least heard of it. Every team I talked to use this tool in some capacity either an open-source free version or enterprise version. Elastic NV uses the <a href="https://twitter.com/MLDAQ/status/1324441240532824064">adoption strategy</a> for growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*sXUiNvmKw61Eshpo9J6_2Q.png" /></figure><h4>Why this company is important:</h4><p>Elasticsearch provides the industry with querying and searching abilities. This search software is used by almost every major or minor tech company including my own project because of how powerful it is and how easy it is to use it. major clients include Microsoft, Walmart, Twilio, Netflix.</p><h4>Competition:</h4><p>In my opinion, Elasticsearch is a monopoly right now. I tried but wasn’t able to find any other product with similar features and which can actually replace this software. The migration costs are also pretty high for software like Elastic because it’s more of a foundational product which is included at the start of the product rather than a plug-in plug-out software</p><h4>Product:</h4><p>Elastic’s product <a href="https://www.elastic.co/products/">portfolio</a> is Elasticsearch, Kibana, observability, security, and <a href="https://www.elastic.co/integrations">extensions</a> to all major cloud providers. The ELK stack is part of most of the cloud software you might be using right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NM06cwaM2GXanC7fNHxI4w.png" /></figure><h4>Growth:</h4><p>Elasticsearch introduced great new features to their product portfolio like Machine learning stack and End to End cybersecurity. The company’s revenue comes from their enterprise products and support which is pretty consistent and impressive. This company is really active in open-source which provides it with a large contributor base.</p><p>The company is spread out in all prospect, from engineering to sales every team is located in AMER, EMEA, and APAC region which I consider a good sign. The company is still investing a lot in R&amp;D and engineering infrastructure. which is a great sign.</p><p><strong>I think it’s a must buy stock for a tech portfolio.</strong></p><h4>Projections:</h4><p>I believe that this stock can be around 150$ by next year. For the long term, I see huge growth potential and my 3–4 year projections will be between 250–350$.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53fa8c7cc2ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ml-stocks/elastic-nv-an-essential-stock-for-the-tech-ecosystem-53fa8c7cc2ed">ELASTIC NV, an essential stock for the tech ecosystem</a> was originally published in <a href="https://medium.com/ml-stocks">ML Stocks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making data driven web apps with Dash Part-2]]></title>
            <link>https://prabhant.medium.com/making-data-driven-web-apps-with-dash-part-2-f40076239fa8?source=rss-c8d7c5692c9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40076239fa8</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[dash]]></category>
            <dc:creator><![CDATA[Prabhant Singh]]></dc:creator>
            <pubDate>Sat, 15 Sep 2018 12:13:12 GMT</pubDate>
            <atom:updated>2018-09-15T12:13:12.285Z</atom:updated>
            <content:encoded><![CDATA[<p>In the last blog post, I discussed about the basics of the Dash app, you can make almost any dashboard with that approach, so I won’t focus on giving more examples of Dash applications. When I was developing <a href="https://github.com/toladata-ce/TolaReports">TolaReports</a> at <a href="https://medium.com/u/dcb2954f73a0">TolaData</a> I faced some challenges which I think should be discussed in this blog post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4N8_DZG8znvfJyC7lHLmmw.png" /><figcaption>Tolareports</figcaption></figure><p><strong><em>Sharing data between callbacks: </em></strong>In the initial version of Tolareports I made a mistake to do the same computation again and again in every callback function. The problem with that was the pandas dataframe was being manipulated 4 times for every query. So how to get rid of this code redundancy and optimize the app, <strong>JSON objects </strong>was the solution to this. As we cannot return pandas dataframes inside the Dash app(As it’s a web app) we have to return JSON objects instead of pandas dataframe as intermediate children. The code sample below will give an example of this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fb03933b24c272a308e3a3fcefd7300/href">https://medium.com/media/8fb03933b24c272a308e3a3fcefd7300/href</a></iframe><p><strong><em>External CSS for dash app: </em></strong>I said in the last blogpost that Dash app doesn’t require any other code than python, well that line is only conditionally true. We don’t need to add CSS/HTML unless we are making a bit complex app. For a beautiful front-end I would recommend to not rely on Dash components but use an external CSS. At first, it was a problem before Dash 0.20 as there was no support to attach local CSS and other assets then the amazing community came up with the latest release which supports the local external css in a very manageable format. The format can be really easy to manage and understand now.</p><pre>- app.py<br>- assets/<br>    |-- typography.css<br>    |-- header.css<br>    |-- custom-script.js</pre><p><strong><em>Deployment: </em></strong>Dash was by far the easiest app I have deployed on yet. You only need to follow 4 commands (for heroku):</p><pre>$ git status <br>$ git add .  <br>$ git commit -m &#39;change&#39;<br>$ git push heroku master</pre><p>I’ll be discussing Multipage dash app in the next blog with some more features.</p><p><strong>References:</strong></p><ol><li><a href="https://dash.plot.ly/external-resources">For more on external CSS: https://dash.plot.ly/external-resources</a></li><li>For more on deployment: <a href="https://dash.plot.ly/deployment">https://dash.plot.ly/deployment</a></li><li>For more on sharing data between callbacks: <a href="https://dash.plot.ly/sharing-data-between-callbacks">https://dash.plot.ly/sharing-data-between-callbacks</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40076239fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making data driven web apps with Dash Part-1]]></title>
            <link>https://prabhant.medium.com/making-data-driven-web-apps-with-dash-part-1-1dbba3f2a74c?source=rss-c8d7c5692c9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dbba3f2a74c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[web-applications]]></category>
            <dc:creator><![CDATA[Prabhant Singh]]></dc:creator>
            <pubDate>Wed, 12 Sep 2018 14:40:58 GMT</pubDate>
            <atom:updated>2018-09-12T14:40:58.262Z</atom:updated>
            <content:encoded><![CDATA[<p>As a developer with training in data science making web applications always seems like a hassle to me. Then like any other masters student, I applied for a summer internship (at <a href="https://medium.com/u/dcb2954f73a0">TolaData</a>) and my internship task to deploy an interactive web app in 2 days. After googling for 2 hours i thought ill do it with django(bad choice, wasted 3 hours on trying various django third party apps) or flask(It’s ok but still not easy enough to learn in a day) then I landed on the Github page of Dash and the rest is history. I developed and deployed the web app for the task in less than 3 hours!!(<a href="http://toladata-task-app.herokuapp.com/">http://toladata-task-app.herokuapp.com/</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkWtQckkfeDIdlMJ5lFETw.png" /></figure><p>I continued to work in Dash during my internship at <a href="https://medium.com/u/dcb2954f73a0">TolaData</a> and now it’s the end of my internship so i decided to share my work in this series of blog posts. The first blog (this one) will contain the basic introduction to dash, the second one will include more interactive features and the third one will include features like optimization, authentication, and deployment of dash app and multipage dash app. I’ll also be sharing the code of my Dash app during next posts.</p><p>So let’s get started with Dash, it’s an open source tool by Plotly build on top of flask and you can use various tools like D3.js, React, Plotly.js etc with it. I’ll try to show how to make a web app with Dash here but first let’s Learn about the components of Dash.</p><p>Basically there are two component libraries for a Dash app:</p><ul><li>Dash core components: Contains most of the plotly’s features like dcc.dropdown, dcc.link and dcc.graph.</li><li>Dash HTML components: Contains the HTML components for the application like html.div, html.H1 etc.</li></ul><p>Now let’s talk about the parts for out dash app:</p><ol><li><strong>Layout:</strong> “The Dash layout describes what your app will look like and is composed of a set of declarative Dash components”. It acts as a HTML layout for our application, you simply list the elements you want in your application in the layout section.</li><li><strong>Callbacks: </strong>So callbacks are basically I/O functions for our Dash applications, if you want to compute something every time an input is provided then we use callbacks. They can be a bit hard to understand at first but they are very useful.</li></ol><p>For installation follow the instructions here: <a href="https://dash.plot.ly/installation">https://dash.plot.ly/installation</a></p><p>Now let’s make a simple Dash app which takes the index of a file and outputs the row.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0a272ec556b6972e6979fcf4bdd8f58/href">https://medium.com/media/f0a272ec556b6972e6979fcf4bdd8f58/href</a></iframe><p>As you can see the app looks a lot like a simple flask app and it’s written in pure python(No CSS, HTML or JS). Though we can still add those extra assets in dash, I’ll be describing them in the next part of this series.</p><p>Dash is an amazing tool for developing and prototyping data-driven web applications. Though it’s still quite a young project so there are still few bugs and lack of features, but it’s definitely worth a try. Plus Plotly’s community is super awesome.</p><p><strong>Resources:</strong></p><ol><li>Dash user guide: <a href="https://dash.plot.ly/">https://dash.plot.ly/</a></li><li>Plotly’s community <a href="https://community.plot.ly/">https://community.plot.ly/</a></li><li>Dash show and tell thread : <a href="https://community.plot.ly/t/show-and-tell-community-thread/7554">https://community.plot.ly/t/show-and-tell-community-thread/7554</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dbba3f2a74c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This year in Adversarial Machine Learning]]></title>
            <link>https://medium.com/buzzrobot/this-year-in-adversarial-machine-learning-105707177122?source=rss-c8d7c5692c9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/105707177122</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Prabhant Singh]]></dc:creator>
            <pubDate>Sat, 23 Dec 2017 13:45:12 GMT</pubDate>
            <atom:updated>2017-12-28T01:34:39.376Z</atom:updated>
            <content:encoded><![CDATA[<p>I started with adversarial machine learning this year after reading “<a href="https://arxiv.org/abs/1412.6572">Explaining and Harnessing Adversarial Examples</a>” in January. Here, after looking at the field after a year, it’s hard to follow up the recent papers on the field. In this blog post, I’m trying to compile the list of few of my favorite papers and papers on my wishlist to be read.</p><ol><li><a href="https://research.google.com/pubs/pub46153.html">The Space of Transferable Adversarial Examples</a>: One of my favorite papers about the transferability of adversarial examples.</li><li><a href="https://infoscience.epfl.ch/record/230235/files/Thesis.pdf?version=1">Measuring Robustness of Classifiers to Geometric Transformations</a>: Master’s thesis by Can Kanbak. This thesis was a good summary to understand geometric attacks on ML systems.</li><li><a href="https://infoscience.epfl.ch/record/228329/files/universal_perturbations_theory.pdf?version=2">Analysis of universal adversarial perturbations</a>: Continuation of their last paper on Universal adversarial perturbation.</li><li><a href="http://proceedings.mlr.press/v70/pinto17a.html/">Robust Adversarial Reinforcement Learning</a>:robust adversarial reinforcement learning (RARL)</li><li><a href="https://research.google.com/pubs/pub46154.html">Adversarial Attacks on Neural Network Policies</a></li><li><a href="https://research.google.com/pubs/pub45816.html">Adversarial Machine Learning at Scale</a>: Adversarial training at scale</li><li><a href="https://arxiv.org/abs/1705.07263">Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methods</a>: One of the best papers I read this year</li><li><a href="https://arxiv.org/abs/1706.04701">Adversarial Example Defenses: Ensembles of Weak Defenses are not Strong</a>: Ensembles were claimed to be robust to the adversarial examples, this paper denies that claim(read the previous paper on ensembles before reading this)</li><li><a href="https://arxiv.org/abs/1709.10207">Ground-Truth Adversarial Examples</a>: This paper is still on my to be read list, though the abstract sounds awesome.</li><li><a href="https://arxiv.org/abs/1711.08478">MagNet and “Efficient Defenses Against Adversarial Attacks” are Not Robust to Adversarial Examples</a>: Fooling MagNet which was claimed to be robust to adversarial examples, this paper also shows that which metrics we should keep in mind before checking the robustness of classifiers.</li><li><a href="https://arxiv.org/pdf/1712.03141.pdf">Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning</a>: Pretty nice paper, a must-read.</li><li><a href="http://evademl.org/">http://evademl.org</a>: This project was started last year but i loved the idea of creating adversarial examples with genetic programming and most of the papers are published this year, so read it if you’re interested in the combination of both.</li><li><a href="https://www.youtube.com/watch?time_continue=3887&amp;v=8dwkJCBN9No">ICCV tutorial on adversarial pattern recognition:</a> A pretty long tutorial on AdvML, a must-watch.</li><li><a href="http://bethgelab.org/publications/165/">Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Models</a>: By BethgeLab</li><li><a href="https://github.com/bethgelab/foolbox">FOOLBOX</a></li><li><a href="http://vorobeychik.com/2017/poisonlr.pdf">Robust Linear Regression Against Training Data Poisoning</a>: Awarded as best paper @ AISEC2017</li><li>Cleverhans V2.0 released with a number of attacks like Deepfool, Carlini Wagner L2, basic iterative method, and EAD.</li><li><a href="https://arxiv.org/abs/1707.07397">Synthesizing Robust Adversarial Examples</a>: One of the most important highlights of this year in Adversarial ML. The authors were able to reproduce Robust adversarial examples and <strong>3D adversarial examples </strong>by a new algorithm called EOT. I implemented the same paper for ICLR reproducibility challenge.</li><li><a href="https://arxiv.org/abs/1712.07113">Query-Efficient Black-box Adversarial Examples</a>: This was a recent paper published just 4 days ago. This paper is by the same team(<a href="http://www.labsix.org/">labsix</a>). They combined natural evolution with EOT to generate adversarial examples and were able to fool even Google cloud vision API. I’m still reading this paper and trying to understand Natural evolution.</li><li><a href="https://research.fb.com/publications/houdini-fooling-deep-structured-visual-and-speech-recognition-models-with-adversarial-examples/">Houdini: Fooling Deep Structured Visual and Speech Recognition Models with Adversarial Examples</a>: paper by FAIR, published at NIPS.</li><li><a href="https://arxiv.org/pdf/1703.04318.pdf">Blocking Transferability of Adversarial Examples in Black-Box Learning Systems:</a> Paper by UoW lab on blocking transferability by NULL labelling.</li><li><a href="https://arxiv.org/pdf/1708.04301v1.pdf">Attacking Automatic Video Analysis Algorithms</a>: I think it’s the first paper about attacking video classification models. This paper fools Google cloud vision API!, So it’s definitely a must-read.</li><li><a href="https://sites.google.com/view/psml">Privacy and Security ML workshop at ICML 2017</a></li><li><a href="https://www.machinedeception.com/">Machine Deception workshop at NIPS</a></li><li><a href="https://machine-learning-and-security.github.io/">Machine learning and computer security workshop at NIPS</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*9fFZIzMm_P0u4MkgDGUZJA.png" /></figure><p>So this was my list of some highlights of adversarial machine learning this year(I’m sorry if your favourite paper isn’t here). This is basically my To-read list for next year, hopefully, it might help you too. Feel free to comment some more papers, videos or your own blog post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=105707177122" width="1" height="1" alt=""><hr><p><a href="https://medium.com/buzzrobot/this-year-in-adversarial-machine-learning-105707177122">This year in Adversarial Machine Learning</a> was originally published in <a href="https://medium.com/buzzrobot">BuzzRobot</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adversarial Machine Learning: A Closer Look]]></title>
            <link>https://prabhant.medium.com/adversarial-machine-learning-a-closer-look-3f2d04b8a295?source=rss-c8d7c5692c9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f2d04b8a295</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Prabhant Singh]]></dc:creator>
            <pubDate>Thu, 19 Oct 2017 03:30:21 GMT</pubDate>
            <atom:updated>2017-12-27T16:29:41.948Z</atom:updated>
            <content:encoded><![CDATA[<p>Adversarial examples were the only thing that drove me towards machine learning, so after studying adversarial examples for last 4 months (not intensively) I decided to write a blog post about the same. Though the field of adversarial ML is quite wide, I’ll be focusing in Neural Networks here(not in a very technical way). First let’s understand what is adversarial machine learning:</p><blockquote>“Adversarial Machine Learning is a novel research area that lies at the intersection of machine learning and computer security.”</blockquote><p><strong>History:</strong></p><p>The first set of papers on adversarial ML PRALab@ University of Cagliari. Their papers are really amazing with topics ranging from poisoning datasets to adversarial clustering and adversarial feature selection(read them, plus they also have a lot of open source tools related to adversarial machine learning).</p><p>But the paper which really paved a way for the research around adversarial examples in neural networks was a paper <em>“Intriguing properties of neural networks” </em>by Christian Szegedy. In this paper they perturbations by optimizing the input to maximize the error rate, the paper also discusses the transferability of adversarial examples.</p><p><strong>How adversarial attack work?</strong></p><p>As said in the first paper the input is optimized to maximize the output, though in case of CNN’s we basically try to decrease the cost by changing our parameters to move in the direction of gradient. Adversarial examples are just opposite of, it they try to change the parameters in such a way that the cost function as well, as error rate is maximized but they do it by changing the input image(I’m describing FGSM here).</p><p><strong>Goals of adversarial examples:</strong></p><ul><li>Confidence reduction</li><li>Targeted Misclassification</li><li>Non Targeted Misclassification: Just adding random noise to produce</li></ul><p><strong>Types of Attacks:</strong></p><p>Just like any kind of computer attack we have two kinds of adversarial attacks:</p><ul><li>Whitebox Attack: Having the knowledge of the model or network architecture of the target,</li><li>Blackbox: Without having the knowledge of the target architecture.</li></ul><p><strong>Main algorithms to craft adversarial examples:</strong></p><ul><li>FGSM: Fast gradient sign method</li><li>JSMA: Jacobian saliency map attack</li><li>DeepFool</li></ul><p>I won’t be describing the algorithms here as there are already a lot of resources to describe them.</p><p><strong>What if nobody knows my network architecture?</strong></p><p>Like described in the first paper adversarial examples are transferable, means that one adversarial example crafted on one CNN architecture will most likely cause a misclassification on another architecture.(More information in resources section)</p><p><strong>That’s okay, but why people are suddenly interested in adversarial ML:</strong></p><p>Because we only have Neural nets outperforming the humans now, especially in computer vision. So making a neural net classify incorrectly is not a design fault anymore and can be really harmful for some applications.</p><p><strong>But why should I care, these scenarios are just lab based?</strong></p><p>We’ll as a developer, data scientist or ML researcher you should really care about adversarial examples as they have real life physical threats to ML, DL even RL systems. For example, there have been a lot of papers on Physical adversarial examples to fool self driving cars and probably there will be more in future related to robust examples in NLP and RL too. Plus there are a lot of Malware detectors and IDS(Intrusion detection systems) based on neural networks, so having these applications vulnerable to the adversarial examples totally defeats the purpose of these applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*IkMiz3Wivi3U4F993J1c2w.png" /><figcaption>Robust Physical-World Attacks on Deep Learning Models: <a href="https://arxiv.org/pdf/1707.08945.pdf">https://arxiv.org/pdf/1707.08945.pdf</a></figcaption></figure><p><strong>Tools to study and research more:</strong></p><ul><li><a href="https://github.com/tensorflow/cleverhans">Cleverhans</a></li><li><a href="https://github.com/bethgelab/foolbox">FoolBox</a></li></ul><p><strong>Resources:</strong></p><ol><li><a href="https://www.youtube.com/watch?v=NcrRA9SXQU0&amp;t=">My talk at PyconUK: https://www.youtube.com/watch?v=NcrRA9SXQU0&amp;t</a></li><li>Notes on adversarial examples: I’m planning to start writing summary of research papers on adversarial examples in this repo so you can follow for more info on adversarial examples: <a href="https://github.com/prabhant/Adversarial-examples-for-Machine-Learning">https://github.com/prabhant/Adversarial-examples-for-Machine-Learning</a></li><li>Ian Goodfellow talk on adversarial examples(heavily influencing this post): <a href="https://www.youtube.com/watch?v=Z98huoix02s">https://www.youtube.com/watch?v=Z98huoix02s</a></li><li>Explaining and Harnessing Adversarial Examples: <a href="https://research.google.com/pubs/pub43405.html">https://research.google.com/pubs/pub43405.html</a></li><li>Transferable adversarial examples: <a href="https://arxiv.org/pdf/1611.02770.pdf">https://arxiv.org/pdf/1611.02770.pdf</a></li><li>Black box attacks: <a href="https://arxiv.org/pdf/1602.02697.pdf">https://arxiv.org/pdf/1602.02697.pdf</a></li><li><a href="https://blog.openai.com/robust-adversarial-inputs/">https://blog.openai.com/robust-adversarial-inputs/</a></li><li><a href="http://www.cleverhans.io/">http://www.cleverhans.io/</a></li><li>People to follow if you want to know more about the research related to adversarial examples: Ian goodfellow, Nicholas Papernot, Nicholas Carlini</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f2d04b8a295" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>