<?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 Deepa Mamtani on Medium]]></title>
        <description><![CDATA[Stories by Deepa Mamtani on Medium]]></description>
        <link>https://medium.com/@deepa.mamtani?source=rss-f36e3c08d3a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G7aU0yyf5WBsNdJRCKTM7w.jpeg</url>
            <title>Stories by Deepa Mamtani on Medium</title>
            <link>https://medium.com/@deepa.mamtani?source=rss-f36e3c08d3a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:04:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deepa.mamtani/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[MLOps: the Importance of Problem Formulation]]></title>
            <link>https://medium.com/sogetiblogsnl/mlops-the-importance-of-problem-formulation-ee438f9987e?source=rss-f36e3c08d3a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee438f9987e</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Deepa Mamtani]]></dc:creator>
            <pubDate>Wed, 09 Mar 2022 12:26:47 GMT</pubDate>
            <atom:updated>2022-03-09T12:26:47.701Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Original article: </em><a href="https://www.sogeti.nl/nieuws/data-business-analytics/blogs/mlops-waarom-het-formuleren-van-het-probleem-zo-belangrijk"><em>https://www.sogeti.nl/nieuws/data-business-analytics/blogs/mlops-waarom-het-formuleren-van-het-probleem-zo-belangrijk</em></a><em> — posting on behalf of Sanne Bouwmann</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2kiGJbIr8VzV-_i7" /><figcaption>Photo by <a href="https://unsplash.com/@towfiqu999999?utm_source=medium&amp;utm_medium=referral">Towfiqu barbhuiya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We recently published a blog, the first of a six-part series, about the importance and necessity of having a solid MLOps implementation. There, we introduced the diagram seen in Figure 1. It is a simplified depiction of the framework used to operationalize Machine Learning models, and — just as important, though less evident — keep them operational. In this second blog post we aim to elaborate on the first step in the framework: Problem Formulation. We will formulate the problem in the literal sense. Furthermore, we will generalize by introducing the players involved in this first phase, as well as the other roles active in the whole MLOps process. Using this as a basis, we will address the requirements for the roles in the problem formulation phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VptofsFcK6moNpGMAtfiDA.png" /><figcaption>Figure 1: High level overview MLOps — phases and the involved players</figcaption></figure><h3>Who are the players and what do they need from MLOps?</h3><p>As the above diagram shows, different roles collaborate in the MLOps process. Alongside data scientists — whose main responsibility is to develop the ML (Machine Learning) models — there are data engineers, software engineers, subject matter experts (SME’s), analytics architects, and risk managers. All of whom make the ML models worth the investment, and make sure it stays that way.</p><h3>Data Scientist</h3><p>Adopting the MLOps strategy has a significant impact on the work of data scientists — in a positive sense of course! The fact that they use different tools and work in isolated (data) environments causes difficulties for them to translate their ideas and initiatives into scalable solutions. MLOps address these difficulties for them and reward their efforts in the long run. To elaborate on the difficulties that we are talking about, consider the following example:</p><p>Pete is part of a small team of data scientists. The team has the assignment to develop a ML model and — in a later stage — put it into production. Initially, they only have access to a data dump that has been casually queried for them, since “we’ll work on that data pipeline at some point in the future”. In good spirits, the team starts with all the facets of the data science pipeline: data cleaning, feature engineering, exploration, modeling, model hyperparameter tuning, etc.<a href="https://capgemini.sharepoint.com/sites/AITeamK6D/Shared%20Documents/MLOps/Blogs/Sanne%20Bouwman%20-%20MLOps%20Problem%20Formulation%20(English)_blog2_0.1.docx#_ftn1">[1]</a> Soon, during standup, the product owner is delighted to hear about the progress that they have made; there’s even an actual first model! Though it should be mentioned that the model must be finetuned, as its performance is suboptimal, and the team has run into several oddities. During the same standup, it is put forward that a new query can be run to provide the team with up-to-date data that would contain recent developments of the company. Oh, and since they’re working on it anyway… could they train a similar model for their branch in France? “The business and data are almost the same, but not quite.”</p><p>Standup is over, nearly everyone is excited by the approval of their model; they will receive fresh data and there is no lack of ideas on how to improve the model. Only Pete walks away in quiet disappointment, as it is not the first time he has been through this. He knows what this entails, and what will likely happen. He knows that the workload will be distributed. Someone will work on data processing (of the new data), and new features will be created. Someone else will work on the model, and yet another will work in parallel on the model for France. Soon there will be confusion about functions and models that only work on one set of data, while other functions only apply to “the France model”. Distinct pipelines will intertwine, and it will seem as if all performance measurements are comparing apples to pears. Pete is worried and foresees chaos.</p><p>Pete is desperate for a MLOps framework that provides structure and enables version control. For example, the team would like to track when, how frequent, which model, and with which hyperparameters the model has run, and which version of the source code and data matches that combination. Furthermore, they would like to be able to push their models to production quickly and safely. This means that a pipeline is in place that packages their models, tests them, and provides them with an environment in the IT landscape that allows other applications to call on them.</p><p>Also, we should remember managing the model versions (France’s model, the model for product series X, the model that is only applicable for the data of the first half year, etc.). Finally, the team would like to be able to develop and run tests that determine the quality of the produced models. This needs to be monitored and should be accessible from a central location. When this is needed, they wish to have a mechanism or pipeline in place that can automatically adjust the model to improve the quality. Because the model is dependent on data that comes in by being trained in a certain way, they also want to be alerted whenever the data format changes, or the ‘content’ of the data slowly drifts.</p><h3>Subject Matter Expert (SME)</h3><p>Where most team members possess the technical skills to turn data into models, they often lack a deeper understanding of the business domain they operate in. For this reason, subject matter experts are needed in the team who provide the team with the proper context and data understanding. During the process, the SME will closely monitor whether the ML model’s outputs make sense and adjust the team’s course where needed. It is important for the SME to grasp the model evolution from a business perspective. Furthermore, the SME needs a way to provide feedback on the model. For example, if they notice that a model prediction is incorrect, they should have a mechanism at hand to provide the required information to improve performance. Since their role is especially important in the first phase (i.e., problem formulation), we will elaborate further on the subject matter expert after touching on the other roles.</p><h3>Analytics Architect</h3><p>The (data) analytics architect role requires additional skills when compared to that of the traditional data architect. Besides knowledge in the field of data storage and data pipelines, the analytics architect should know how ML models consume this data. They can select the right technologies from the wide range available on the modern market, varying from commercial to open source. This role comes with great responsibility, as the performance of models are highly dependent on the technologies that support them. Furthermore, the analytics architect evaluates non-functional attributes, such as security, utility, and stability. Thus, within MLOps, the analytics architect demands an overview of the models and their corresponding resources. Likewise, the pipeline should be flexible and accessible enough for them to make precise architectural adjustments whenever needed.</p><h3>Risk Manager</h3><p>The risk manager’s task is to assess — from beginning to end of the MLOps process — whether the ML model carries a risk for the organization from a regulatory or privacy aspect. A lot of manual labor in auditing can be spared when they have a clear overview of every version of model, data, and performance measurements.</p><h3>Data Engineer</h3><p>Every ML model is highly dependent on the data on which it is trained and tested. The data engineer is responsible for the creation of the data pipelines that provide this. At the beginning of a MLOps cycle, the data engineer collaborates with the SME in identifying the correct data (sources), such that the domain knowledge shapes the data preparation. In the phase of model realization, the data engineer and data scientist work together to construct even more specific data pipelines that measure up to the input needs of the models. An important requirement of the data engineer is that the MLOps framework should provide a detailed view on every individual step in the data pipeline.</p><h3>Software Engineer</h3><p>A machine learning model on its own doesn’t do well to serve an organization. The model should be validated as an asset to the business. The software engineer takes care of placing the ML model in the organization’s application landscape. Starting from the model development phase, they closely collaborate with the data scientist to ensure that the model smoothly integrates with the application CI/CD pipelines and thus is automatically deployed as soon as it is done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*TOS4UR1I8E2LjUmkvSBd8A.png" /><figcaption>Figure 2: MLOps phase 1 — corresponding steps and involved players</figcaption></figure><h3>Business Opportunity</h3><p>Now that we have met the main players of MLOps, let’s zoom in on the first phase: problem formulation. This is primarily a non-technical phase, where understanding the business is the first and highly decisive step in the process. As the diagram in Figure 2 shows, the MLOps process starts with “business opportunity”. Should there be either a business problem or an opportunity to improve, then — no matter the nature of the problem — it is imperative to identify and analyze it without immediately considering any solutions. The SME plays a key role here. Finally, it is important to establish clear communication between all the stakeholders. This way all relevant information and requirements for the next steps can be uncovered.</p><h3>Requirements</h3><p>The ‘problem formulation’ phase starts with an understanding of the requirements relevant to the business opportunity. The functional requirements of the players of MLOps have already been mentioned above and these must be considered as such in advance and can possibly be included in a checklist. The checklist can then be used to determine whether the next phase of MLOps can begin. However, the conditions that we specifically have in mind in this phase have to do with drawing up ‘Objective Key Results’ (OKRs) — this would encompass both business related as well as technical specifications. The more we pay attention to these requirements in this phase, the easier it will be to evaluate whether the model is successful or not.</p><p>Since not every problem can be solved with machine learning, this is the moment where a data scientist needs to be involved. It may not be obvious, but a data scientist’s role is not limited to the model development phase. They should be involved in formulating the business problem and they will discuss the OKR’s with a business expert to decide whether machine learning is the right tool for the job. Though it may take a significant amount of time, it is necessary! As it is the first decision in whether to kick off model development, or to pull the plug on the MLOps process entirely and start looking elsewhere. After this moment of go/no go, we have enough context based on the concrete problem and the quantified OKRs to know what data is needed. This information becomes part of the requirements list.</p><p>Again, this phase helps us to clarify the problem, what the solution should look like, and what the value is to the organization.</p><h3>Explore</h3><p>To clarify on this part, we assume for the sake of convenience that we have access to the required data and that the DataOps module of MLOps is in place as well. The main goal of this step is to answer the question of if the data is sufficient for the requirements. We do this by exploring the data, during which there should be open communication between the SME, business stakeholders, and the data scientist so that we discover and understand the relationships within the data. Here too, we can start brainstorming on the ML models only after the data has met the requirements. Furthermore, we can determine the more specific ML metrics and KPI’s to be used.</p><h3>Analytical Framework Selection</h3><p>Now that we have a clear view on the problem that we will solve and the part that machine learning will play therein, we can move on to selecting the right frameworks. This does not necessarily mean that every choice we make here is set in stone. However, some frameworks and libraries are better fit to specific use cases than others. For example, consider ML driven services such as image and speech recognition on mobile devices. If you want to apply your model in real-time, with limited connectivity, or where latency plays a role and you want to maintain security and privacy compliancy, you are better served to use a ML framework that is optimized for that exact goal (examples are Core ML, TensorFlow Lite, PyTorch Mobile, and Firebase ML Kit). Or suppose there is a demand for a bot that answers a user’s questions. In that case, you may choose to start from nothing, but you could also make use of cognitive services offered by certain cloud providers. Every one of them has its own pros and cons. The analytics architect plays a vital role during these selections, since they are always aware of the latest developments and can foresee what the long-term consequences could be with regards to scalability and performance of the solution.</p><h3>Conclusion</h3><p>To summarise, the first step in the MLOps process is a vital first step. Spending more time here with all the stakeholders mentioned above can save a lot of time and money and investments can be driven to the right projects and solutions. Setting up the problem formulation phase successfully paves the way for the next steps within the MLOps process. We will address many of the mentioned concepts in later blogposts. The next topic will be on ‘DataOps’ and how it fits within the MLOps process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee438f9987e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/mlops-the-importance-of-problem-formulation-ee438f9987e">MLOps: the Importance of Problem Formulation</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps: For those who are serious about AI]]></title>
            <link>https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e?source=rss-f36e3c08d3a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a415d257cf4e</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Deepa Mamtani]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 14:59:30 GMT</pubDate>
            <atom:updated>2022-02-28T14:59:30.642Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The original article by Sanne Bouwman is in Dutch and can be found </em><a href="https://www.sogeti.nl/nieuws/data-business-analytics/blogs/mlops-voor-wie-ai-serieus-neemt"><em>here</em></a><em>. This is the translated version and is published on behalf of Sanne here on Medium.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*juV3Bv-HFCixM3OT" /><figcaption>Photo by <a href="https://unsplash.com/@sigmund?utm_source=medium&amp;utm_medium=referral">Sigmund</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Everywhere around us, we see the need arise to apply <a href="https://www.sogeti.nl/expertises/themas/artificial-intelligence-ai">AI</a> and Machine Learning to increase efficiency and/or speed up decision making. However, we see that it takes a long time for the cool AI solutions, where a lot of work has been put in, to be put into production. Or worse, they are not put into production at all! At the same time, a model that was lucky enough to be in production may turn out to make predictions with degrading accuracy. Not only does this have a negative impact on the business, but it also betrays trust in AI. It also negatively impacts the credibility of the employees who are involved in the development of an AI solution. What a shame! Unfortunately, we must conclude that pushing ML models into production and maintaining them is not an easy task.</p><p>Common causes of the forementioned issues prove to be a factor of increasing complexity on the fields of modelling, the many available frameworks, computational challenges, team compositions, and so on. This is exactly the problem that MLOps addresses. MLOps offers the structure that is needed to be successful in the implementation of your data mission and vision, in which AI plays a crucial part.</p><h3><strong>MLOps vs. DevOps</strong></h3><p>MLOps is the standardization and streamlining of Machine Learning (ML) lifecycle management, where we make use of, amongst other things, traditional DevOps processes within the context of ML.</p><p>However, there are some fundamental differences between the lifecycle management of a Machine Learning model and that of traditional software. Dependency is an important aspect: not only is data continuously subject to change, but the business requirements are also shifting all the time. This influences the way in which we test and monitor results. The fact that we run through the ML lifecycle with people from different disciplines, offers a consecutive challenge. Data engineers, domain/business experts, data scientists, IT teams: no two of them use the exact same tools or have the same skillsets. For example, most data scientists aren’t practiced software engineers. Their expertise lies in building and evaluating a model, not in building an application; which is why MLOps tends to be more experimental by nature. Data scientists sample different features, parameters, and models. With each iteration, they are required to manage the code base, while maintaining reproducibility of the results.</p><h3>Why is MLOps a must-have?</h3><p>To answer this question, it is important to review the difficulties we experience in the absence of a solid MLOps implementation. You will soon realize that — especially in these unpredictable, unknown, and constantly changing times — problems arise in model quality and continuity. If left unchecked, you risk that your model outputs <em>biased</em> predictions, which in turn results in negative business impact. Furthermore, deploying Machine Learning models to production may result in a conflict with GDPR regulations or other compliancy agreements that are intended to protect your customers from unlawful use of data. A good MLOps implementation contains the right means and functionality to be assured that these aspects are addressed and correctly logged, and thus are explainable whenever an audit takes place.</p><h3>What does a solid MLOps implementation look like?</h3><p>The diagram below shows an overview of the minimum requirements of an MLOps implementation. In practice, some additional dimensions will rear their head. We will elaborate on these in our upcoming blog posts.</p><p>When your organization shifts towards adopting MLOps , we advise you to start with the bare minimum of components. They immediately impact the MLOps strategy and are tool and framework agnostic. Depending on the organization and the measure of maturity of the process, not all aspects of MLOps — such as CI/CD — need to be in place in a fully automated way. The architecture of MLOps is modular and offers the possibility of phased deployments of separate modules regardless of the current maturity and tech landscape of the organisation. Carrying out a gap analysis helps to sketch a roadmap from the current situation towards the desired MLOps architecture and is a crucial first step in any MLOps implementation. To this end, Sogeti has developed an MLOps Maturity Assessment based on best practices and MLOps principles that provides an insight into the maturity of the organisation and helps map out the gap analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*c1Hw86rVKx1L4JNwt53DAg.png" /><figcaption>The MLOps process</figcaption></figure><p>Each of the modules in the MLOps architecture has a defined function in the development cycle. We are excited to elaborate on these in the forthcoming blog posts where we will take a closer look at the modules and discuss them within the context of MLOps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a415d257cf4e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e">MLOps: For those who are serious about AI</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Predictions for 2022]]></title>
            <link>https://medium.com/sogetiblogsnl/ai-predictions-for-2022-92acc5492fab?source=rss-f36e3c08d3a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/92acc5492fab</guid>
            <category><![CDATA[arificialinterlligence]]></category>
            <dc:creator><![CDATA[Deepa Mamtani]]></dc:creator>
            <pubDate>Wed, 15 Dec 2021 19:47:18 GMT</pubDate>
            <atom:updated>2021-12-16T11:45:19.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nXnTOuUqXB5R4Yja" /><figcaption>Photo by <a href="https://unsplash.com/@drew_beamer?utm_source=medium&amp;utm_medium=referral">Drew Beamer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>I wrote this blog for Sogeti’s technology predictions for 2022 on the trends that I see emerging for artificial intelligence for 2022 and beyond.</em></p><p>The use cases for artificial intelligence (AI) continue to grow, from applications in autonomous vehicles and intelligent industry, to chatbots, smart software testing, fast prototyping and transformed business processes. Whatever the use case, however, there are several common themes emerging that will be part of AI in the coming year — and further ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*rqMtYaLb3wRPyyZh.png" /></figure><p><strong>Prediction 1: Responsible AI moves from theory to practical application</strong></p><p>The conversation around the ethical and responsible use of AI remains critical as the use cases grow and AI adoption accelerates. I expect to see an increasing number of organizations moving beyond the talk to more practical applications and I am already seeing this within our own AI Center of Excellence. There is a huge focus for us on creating trustworthy, transparent AI. This means having a clear understanding of the outcomes of the AI models we’re creating, along with knowledge of the end-to-end process of what it takes to create each AI model. This transparency begins with an understanding of both the business need and the use case.</p><p>We’ve developed a quality AI framework as a foundation for the entire development process with a number of gates that act as sanity checks for ethics and responsible outcomes — is there unintentional bias, under-sampling, invasion of privacy, or unjustified outcomes? This type of framework, along with the supporting platform and tools, will be increasingly important to ensure trust in AI and the outcomes delivered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*OqRAmV_QeNxOpE1c.png" /></figure><p><strong>Prediction 2: Hyper-scalers democratize AI with low code</strong></p><p>Hyper-scalers like Microsoft, Google, AWS, and IBM are changing the AI game. They’re pushing the democratization of AI by offering more and more low-code AI solutions to the market. This is something of a double-edged sword. Why? Because while it is making it much easier for more people to train AI models, the specter of responsible and ethical AI rears its head once again. If you’re using a low-code approach to AI, you may not know fully what you’re doing, which can cause a lot of complications and problems, depending on the underlying use case. I return here to the need for frameworks to manage this and I hope to see a wider debate on this topic to raise awareness of what is possible, ethical, and responsible when it comes to AI — and what is not. So, while we will see a lot of low-code AI solutions in the year ahead, this should be matched with an understanding of what could go wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*_mulhErYaHcvEPHs.png" /></figure><p><strong>Prediction 3: Scaling AI with MLOps</strong></p><p>I envisage a stronger focus on how AI solutions are engineered and scaled. We’ve seen AI teams building amazing proofs of concept in the past few years but then they struggle to push these solutions into production. These teams are now maturing, and they need to start focusing on creating a good foundation so that they can mature their solutions as well. And this is where MLOps comes into play. First, what is MLOps? The Capgemini Research Institute defines it as “a set of practices to shorten the time to update and go live of analytics and self-learning systems”. The sound principles of MLOps will help teams scale up faster and more consistently.</p><p>Essentially, MLOps offers best practice design principles that help teams build quality AI with transparency and auditability embedded into it — all this within a data centric framework. The data centric approach ensures that data is managed and used as an asset. MLOps also enables teams to have feedback loops, and to keep maintainability cycles running so that they can identify risks like model drifts or biases coming out when datasets change, etc. MLOps will be key to AI teams becoming more effective in production or when scaling up. Consequently, we will see a number of platforms and solutions in the market catering to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*j-PYNRza6AyYyT6b.png" /></figure><p><strong>Prediction 4: AI drives collaboration and creativity in the metaverse</strong></p><p>We’ve seen AI accelerate creativity with the evolution of Generative Adversarial Networks, especially in the field of arts. We will see a similar acceleration when it comes to collaboration with the development of the metaverse. Although it’s almost 30 years since the term metaverse was coined, we’re hearing more and more about it today from the likes of Facebook and Microsoft — the latter announcing at its Ignite Conference that it was introducing tools to create a metaverse for connecting employees. In a digital metaverse people can connect in virtual spaces, such as a virtual workspace to brainstorm the next company innovation.</p><p>And all of this is going to be driven by multiple AI models in the background. As we look ahead, we will see AI inspiring more creativity and enabling a new era of collaboration in the metaverse.</p><h3>A sustainable future</h3><p>I am ending this article with reference to one of the most important topics of the day, that of sustainability. It’s clear that this is gaining more and more traction in the AI space because it is becoming so relevant in the broader IT and business community as well. Like all industries, the AI industry must also start considering ways to be more sustainable and raise awareness amongst practitioners. How much computational power is being used and what is the carbon footprint of training models? How do we create better, more efficient AI solutions? Yes, AI will fix a lot of things, but we must also consider — and talk about — the environmental impact of training AI models or, at best, how to offset it. So, as we look to the future, we need to start talking now about how sustainable AI can be.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92acc5492fab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/ai-predictions-for-2022-92acc5492fab">AI Predictions for 2022</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Toughen up — Building more robust models with adversarial training]]></title>
            <link>https://medium.com/sogetiblogsnl/toughen-up-building-more-robust-models-with-adversarial-training-fbecc9618fd3?source=rss-f36e3c08d3a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbecc9618fd3</guid>
            <category><![CDATA[adversarial-training]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[adversarial-attack]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Deepa Mamtani]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 12:31:10 GMT</pubDate>
            <atom:updated>2021-02-26T12:31:10.104Z</atom:updated>
            <content:encoded><![CDATA[<h3>Toughen up — Building more robust models with adversarial training</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yxn3tqlnGtX0rd0x" /><figcaption>Photo by <a href="https://unsplash.com/@jotomas?utm_source=medium&amp;utm_medium=referral">Jonathan Tomas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you are to believe cartoons and old timey comedy slapstick humour, the protagonist putting on a moustache was enough of a disguise to fool people into thinking they are someone completely different. Of course, the comedy lies in the complete absurdity of that moustache being able to change someone’s identity completely. But what if you are a machine learning algorithm? As it turns out, it is not so funny anymore as it becomes more fact than fiction.</p><p>Adversarial attacks against deep neural networks try to do exactly what our protagonist is doing — to fool the model into thinking it is someone else. A paper done by <a href="https://arxiv.org/pdf/1312.6199.pdf">Szegedy et al.</a> in 2014 was the first to note some interesting weaknesses of deep neural networks, for instance that they can be easily fooled by adversarial examples into giving the wrong output. Studies of this weakness have turned a panda into a gibbon (<a href="https://arxiv.org/pdf/1412.6572.pdf">Goodfellow et.al, 2014</a>), a turtle into a rifle (<a href="https://arxiv.org/abs/1707.07397">Athalye, Engstrom, Ilyas and Kwok, 2017</a>) and a person into Milla Jovovich (<a href="https://www.cs.cmu.edu/~sbhagava/papers/face-rec-ccs16.pdf">Sharif et.al, 2017</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*ht7O9P4huCfpRw1c0cjd2w.png" /><figcaption>From top left to right: Goodfellow et.al, 2014. Athalye et.al, 2017. Sharif et.al, 2017.</figcaption></figure><p>In an adversarial attack, what the attacker attempts to do is to get the model to give a wrong prediction or classification. In a real world scenario, the attacker could want to fool a facial recognition model to make it think it is someone else in order to avoid detection. This is similar to what the researchers Sharif et.al attempted to do by using glasses specifically designed to add extra pixels to someone’s face so that the model would classify this person as someone else. In the simplest sense, an image recognition model learns patterns and pixel values associated with the images that the model is designed to recognise — cats or apples, for example. The model will train on images of cats and apples and we tell the model what it is looking at is a cat or an apple. Eventually, when we show a new image of an apple to this trained model, the model will need to decide if the patterns and pixel values correspond more to a cat or to an apple. However, I can add some extra noise and change pixel values to the original image of an apple to trick the model into thinking it is looking at a cat instead. I can do this if I can somehow know how the model separates what is a cat and what is an apple. This information can be inferred if I know details of the model or even the prediction scores the model gives to any image that it gets. Below is an example of how an input image can be changed to get a model to give it another result. These changes to an input are called perturbations and a perturbed image designed to fool a neural network is called an adversarial example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*k4Lgq0gBQ869ophHDoLSkA.png" /><figcaption>From <a href="https://arxiv.org/pdf/1801.02612.pdf">Xiao et al., 2018</a></figcaption></figure><p>Adversarial examples are designed by changing the inputs to a machine learning model ever so slightly, sometimes not even noticeable to humans. This could be very minute perturbations to pixels in the images to confuse the model into classifying it into another class or it could be physical additions to the image like in the case of the glasses and the 3D printed turtle. The implications of this is far more sinister when we think about adversaries using this weakness for malicious purposes. The examples so far have all been image related but the same can be done to text models, audio as well as to confuse reinforcement learning agent models.</p><p>There are different kinds of attacks on machine learning models:</p><p>- <strong>White box</strong> attacks assume that the attacker has all knowledge of your machine learning model including its structure, parameters and inputs.</p><p>- <strong>Black box </strong>attacks are different in that they assume that the attacker has no knowledge of the internal workings of the model and can only give an input to the model and see the output result/decision of the model.</p><p>- Finally, <strong>grey box</strong> attacks are when the attacker creates adversarial examples from another model that is known to the attacker (white box) to attack another black box model.</p><h3>Toughening up</h3><p>There are several strategies to employ in order to defend against such adversarial attacks. Broadly speaking, one can either focus on improving the AI/ML model and making it more robust against attacks or one can focus on removing any malicious perturbations on the inputs before sending it to the AI/ML model. In a paper by <a href="https://arxiv.org/pdf/2012.01701.pdf">Qiu et.al (2020)</a>, they suggest using pre-processing and data augmentation strategies on the inputs to remove any malicious perturbations before sending it to the model. To this end, the researchers have developed a toolkit called <a href="https://github.com/YiZeng623/FenceBox">FenceBox </a>that allows the users to select from different processing and augmentation strategies to help mitigate against most attacks. The main advantage of this strategy is that it is simple to implement and does not cost too much in terms of computational costs since no retraining of models is required. The disadvantage is that it cannot prevent against some advanced attacks.</p><p>Strategies focused on improving the AI/ML model aim to retrain existing models. The most effective strategy to defend against adversarial attacks is <strong>adversarial training</strong> where adversarial examples are generated and added to the training data when training the model. Think of it as how boxers train with other boxers to improving their skills. Training this way ensures that the model does not get fooled by malicious inputs as it has already been trained on them. Training with examples of adversarial/perturbed images along with clean images increases robustness of models. This means that the model can perform better on new and unseen data. It can, however, reduce the accuracy of a model on clean/non-malicious images so there is a small trade-off when using adversarial training as a defensive strategy.</p><p>There are several open source packages available that benchmark AI model vulnerability against attacks like the <a href="https://github.com/cleverhans-lab/cleverhans">CleverHans </a>library. For text models there is a python framework called <a href="https://github.com/QData/TextAttack">TextAttack </a>which finds vulnerabilities in your models and allows you to do adversarial training to make your models more robust. Finally, there are also new techniques using GANs to generate adversarial examples for your model to then use for adversarial training like the ones researched by <a href="https://arxiv.org/pdf/1712.09196.pdf">Jalal et.al (2019)</a>, <a href="https://arxiv.org/pdf/1801.02610.pdf">Xiao et.al (2019)</a> and <a href="https://arxiv.org/pdf/2002.02196.pdf">Bai et.al (2021)</a> to highlight a few.</p><p>There are other practical steps that AI/ML model developers can do to prevent attacks like avoid showing probability scores. When confidence scores are provided to the end user, a malicious attacker can use them to numerically estimate the gradient of the loss function and therefore be able to create adversarial examples. The best strategy can be a combination of the above but it is something that needs to be built into the design when building AI/ML models. At Sogeti, we use a Quality AI framework which is a framework to guide the AI/ML developer to think about important topics around ethics, transparency, bias etc. Adversarial training is one of those important topics that needs to be considered in the development cycle to ensure we are building responsible robust and <em>tough </em>models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbecc9618fd3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/toughen-up-building-more-robust-models-with-adversarial-training-fbecc9618fd3">Toughen up — Building more robust models with adversarial training</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>