<?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 Wouter Zirkzee on Medium]]></title>
        <description><![CDATA[Stories by Wouter Zirkzee on Medium]]></description>
        <link>https://medium.com/@zirkzee?source=rss-ef401ffaa4c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uQG-WUfDKmWWvTK4RJfgRA.png</url>
            <title>Stories by Wouter Zirkzee on Medium</title>
            <link>https://medium.com/@zirkzee?source=rss-ef401ffaa4c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:38:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zirkzee/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[ChatGPT and I have trust issues: testing LLMs, the playbook.]]></title>
            <link>https://medium.com/sogetiblogsnl/chatgpt-and-i-have-trust-issues-testing-llms-the-playbook-14dba62c484a?source=rss-ef401ffaa4c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/14dba62c484a</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai-testing-framework]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Wouter Zirkzee]]></dc:creator>
            <pubDate>Wed, 03 May 2023 10:43:18 GMT</pubDate>
            <atom:updated>2023-05-03T10:43:18.055Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Part two</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*4hC2RkKwohIoY9gLesankQ.png" /><figcaption><a href="https://www.marketingweek.com/strategic-knowledge-suffers-at-the-expense-of-buzzwords/">Source</a></figcaption></figure><p><em>Co-written by: </em><a href="https://medium.com/u/d516e94e162"><em>Sven Hendrikx</em></a><em>, </em><a href="https://medium.com/u/1197a48c0367"><em>Shahryar Masoumi</em></a><em>, </em><a href="https://medium.com/u/1c0a6d7dfa8f"><em>Tijana Nikolic</em></a><em>, </em><a href="https://medium.com/u/d813dcdf85a9"><em>Almira Pillay</em></a><em> and myself.</em></p><p><em>Disclaimer: This is the second and final part of our LLM playbook as part of our Testing Generative AI series. This is a technical blog that assumes you have knowledge on large language models (LLMs), reinforcement learning and that you have read the first part of our blog.</em></p><p><a href="https://medium.com/sogetiblogsnl/chatgpt-and-i-have-trust-issues-testing-llms-the-playbook-5498de8855be">ChatGPT and I have trust issues: testing LLMs, the playbook.</a></p><p>In the <a href="https://medium.com/sogetiblogsnl/chatgpt-and-i-have-trust-issues-testing-llms-the-playbook-5498de8855be">first part</a> of our LLM testing playbook we introduced the concept of a human centered framework that should govern the entire test process for generative AI solutions. In this approach, the system should be designed with ethical principles and user safety in mind. We covered practical quality control checks for testing the data and model including bias, toxicity, privacy, and model robustness.</p><p>In this second part of the playbook, we focus on <strong>system tests</strong> for model integration &amp; monitoring and expand on human in the loop — where the system learns from human input to provide a better and safer user experience. We introduce the topics of prompt engineering, explainability, drift monitoring, LLMOPs and reinforcement learning from human feedback (RLHF). Lastly, we expand on our governance framework for risk management and validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIypPxKHywYDOkO-7BZm3A.png" /><figcaption>Quality control checks for our operational LLM playbook</figcaption></figure><h3>System tests</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMkIWYHbXa2o_IkiQvmvXQ.png" /><figcaption>Overview of system tests</figcaption></figure><h4>Prompt engineering for user acceptance testing</h4><p><a href="https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw?galleryTag=generative-modeling#%F0%9F%92%A1-putting-on-my-thinking-cap:-how-to-effectively-prompt-engineer">Prompt engineering</a> refers to the process of crafting the prompts or instructions given to a model <a href="https://www.allabtai.com/prompt-engineering-tips-zero-one-and-few-shot-prompting/">to achieve a more desirable output</a> without fine tuning. This can involve techniques such as refining the wording, specifying the format, or providing additional context to guide the model’s responses and improve its performance in generating accurate and relevant outputs.</p><p>This approach can be used when crafting <strong>user acceptance tests </strong>(UAT), once the model is deployed in a system. This is a very important step in AI model evaluation where we validate the consistency of the model, its robustness, and its fairness with targeted tests.</p><p>So, how does prompt engineering fit into this? Considering the model application, we can use different types of prompts to test the model, as well as ensure that ethics principles are preserved. The output of the UAT is then used to improve the model and the prompts, identify errors, and test the interaction with the system.</p><p>We propose the following UAT cases, which can be split into tasks — summarization, Q&amp;A, information extraction, conversation, code generation and reasoning:</p><p>First, <strong>zero-shot prompt tests</strong> for consistency and fairness. Since zero-shot prompts are ones where no context and prior information is provided, these can be used to test consistency and bias of the model answers.</p><blockquote><a href="https://wandb.ai/capecape/gpt3vsgpt4/reports/Testing-GTP3-5-vs-GPT4-Which-Model-Writes-Better-Code---VmlldzozODAzMzQz?galleryTag=generative-modeling">In this blog</a>, the author is testing GPT3.5 and GPT4 on code generation using zero-shot prompts. Notice how they use their domain knowledge to check the consistency of these models. Same idea applies to other domains and tasks.</blockquote><blockquote>For example, if you give the model a specific context, will it give a biased answer?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*NjiBGuZxeahQlSnPi396lw.png" /><figcaption>An <a href="https://twitter.com/trentster/status/1620798458709037057?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1620798458709037057%7Ctwgr%5E383c7701a128675ae396beae54468a70c8505e2c%7Ctwcon%5Es1_&amp;ref_url=https%3A%2F%2Ftimesofindia.indiatimes.com%2Fviral-news%2Fmy-wife-says-258-chatgpt-is-being-tricked-with-weird-questions-tweets-viral%2Farticleshow%2F97794111.cms">example </a>of bias in ChatGPT</figcaption></figure><p>Second, <strong>few-shot prompt tests</strong> for poisoning, leaking information and jail-breaking. Given few-shot prompts can provide more context to get the model to a specific answer, we can use this to test if the constraints in our model are programmed properly, and if the model will leak information in a specific context.</p><blockquote>One of the most popular examples here is <a href="https://gist.github.com/coolaj86/6f4f7b30129b0251f61fa7baaa881516">DAN</a>, where the data science community has come together to try and break ChatGPT. This technique should also be used when testing your model — it’s the devil on your shoulder’s time to shine ;)</blockquote><p>These tests should be performed <a href="https://www.surgehq.ai/blog/how-good-is-hugging-faces-bloom-a-real-world-human-evaluation-of-language-models">by humans</a> so proper documentation structure and reproducibility is important. We suggest using <a href="https://python.langchain.com/en/latest/modules/prompts.html">LangChain</a>’s prompt templates together with <a href="https://wandb.ai/a-sh0ts/langchain_callback_demo/reports/Prompt-Engineering-LLMs-with-LangChain-and-W-B--VmlldzozNjk1NTUw?galleryTag=generative-modeling#%F0%9F%94%8D-how-to-track-your-langchain-prompts-with-weights-&amp;-biases">weights &amp; biases</a> to track how the model reasons and answers.</p><blockquote>An interesting distinction can be made between testing the model at the prediction level, e.g., testing for coherence of the output, and on a more meta level, testing the reasoning which is captured by the outputted text. As models become more performant, the extent of reasoning capabilities will only increase. Therefore, it’s important that we not only check whether the generated text achieves the desired goal, but we also check if the underlying reasoning is correct, safe and fair.</blockquote><p>Improving prompts used in UAT by asking the <em>model for its own opinion</em> is quite an interesting way of introducing reflection in tests (be careful though, this should only be done once the system is tested and trained well). We can ask the model itself to <a href="https://arxiv.org/abs/2303.11366">re-evaluate its own performance</a> after a first attempt at solving a task or learn from its mistakes. This is called <a href="https://evjang.com/2023/03/26/self-reflection.html">self-reflection</a> and is quite an interesting way of inducing human-like learning in LLMs by using output from testing.</p><h4>Prompt engineering for explainability</h4><p>We can use <a href="https://arxiv.org/abs/2202.07371">prompts to provide explainability</a> on the system level. We can give instructions, specify a context, ask questions, explore <a href="https://github.com/eric-ai-lab/CPL">counterfactuals</a>, or use <a href="https://cobusgreyling.medium.com/prompt-chaining-large-language-models-a7c9b66eb5f9">multi-turn prompts</a> to guide the model’s outputs. Experimenting with different prompts can be a way to unlock the model’s explanations and make it more transparent. Furthermore, by being engaged in the prompt designing process, we can get a more nuanced grasp of the model’s behavior and intricacies.</p><p>There are broadly two approaches to achieve some level of explainability for LLMs — <a href="https://arxiv.org/abs/2201.11903">chain of thought prompting</a> and <a href="https://python.langchain.com/en/latest/modules/chains/index_examples/qa_with_sources.html">receiving reference-based answers</a>. With chain of thought prompting, the model breaks down its reasoning by providing intermediary steps on how it derived its final answer. Not only can we use this technique to better understand how the model came to a specific conclusion by following its steps, but also it has been shown that it can improve the reasoning capabilities of the model.</p><p>The second approach to explainability requires the model provide a reference in its output answer. Using LangChain with vector databases makes it easier for LLMs to provide references and be more accurate in answering. This provides a layer of explainability to the user.</p><p>In more complex LLM systems (like <a href="https://autogpt.net/">AutoGPT</a>, <a href="https://huggingface.co/spaces/microsoft/HuggingGPT">HuggingGPT </a>etc.) where one LLM interacts and works with another to provide an output, we need to consider that prompts might not always originate from human agents. Systems that prompt themselves don’t help in explaining the model’s output any further therefore, using vector databases and chain of thought prompting would again provide more accuracy and explainability.</p><p>These methods help shed light on how the model works and why it makes certain assumptions. However, achieving a satisfactory level of explainability can be challenging with LLMs, and it’s important to strike a balance between model performance and explainability based on the specific needs of the use case.</p><h4>Monitoring drift</h4><p>LLMs are also susceptible to model performance degradation over time, otherwise known as model drift. Since LLM outputs are text, monitoring the <a href="https://towardsdatascience.com/measuring-embedding-drift-aa9b7ddb84ae">embedding<strong> </strong>drift</a> is useful to track changes in predictive performance. Embeddings are a representation of the model’s output that can be used to compare different outputs to identify changes in the model’s behavior over time. By continuously retraining an embeddings model on the current data, we can check if the current distribution matches the distribution of the embeddings we use in production. Once the difference between these distributions exceeds some threshold, we can deploy the new model to production.</p><h4>LLMOPs (MLOPs for LLMs)</h4><p>Finally, we use LLMOPs to help us orchestrate the implementation of these safeguards and monitoring procedures as well as prepare us for the unpredictable complexities of LLMs. If you are familiar with <a href="https://medium.com/sogetiblogsnl/tagged/mlops">MLOPs</a>, the landscape for LLMOPs looks similar. There are platforms to manage infrastructure for fine tuning, versioning and deploying models; frameworks which make it easier to develop LLM applications and ancillary tools that are used to streamline smaller parts of the workflow like reinforcement learning from human feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*jB-1VMLuHH-3yLuIlIHVyA.png" /><figcaption>A (non-exhaustive) overview of an LLMOPs stack components</figcaption></figure><h3>RLHF &amp; alignment testing</h3><p><strong>Reinforcement learning from human feedback (</strong><a href="https://huggingface.co/blog/rlhf"><strong>RLHF</strong></a><strong>) </strong>is a novel approach that takes us one step further to Artificial General Intelligence. OpenAI used this method to fine-tune ChatGPT, hiring a group of human writers and domain experts and asking them to write answers to a set of prompts. They then used the dataset of prompt-answer pairs to finetune the model.</p><p>Testing <a href="https://www.lesswrong.com/posts/g3pbJPQpNJyFfbHKd/the-alignment-stability-problem">alignment stability</a> is complex. How do we test people’s preferences over time and how do we ensure these alignments in the system don’t cause severe changes in the inner workings of the model?</p><p>This is well illustrated by the <a href="https://www.lesswrong.com/posts/k4AQqboXz8iE5TNXK/a-shot-at-the-diamond-alignment-problem">the diamond-alignment problem</a>. The author of this interesting story sets up a hypothetical experiment where a reinforcement learning agent is rewarded for diamond mining but also aligned by using other rewards. The model can be self-stabilized to keep the initial goal as the main one, even though it is rewarded for other smaller goals. This translates well to LLMs, if we teach them to become more human-like though alignment, they don’t necessarily forget about their main goal of helping humans by providing correct information. But does it work like that in the real world?</p><p>To ensure <a href="https://vinija.ai/concepts/RLHF/#bias-concerns-and-mitigation-strategies">fairness in alignment</a>, and make sure the feedback provided to the model is not biased, we can continuously evaluate the performance of the model on specific tasks. Repeating acceptance tests can be useful to evaluate the changes in performance, based on defined test cases. Additionally, making sure both the testing and human feedback teams are diverse will play a big role in creating a test strategy that is fair and robust. Training testers on how to evaluate the model performance and to provide feedback is crucial. These initiatives come from the organizational level and involve a governance framework to ensure that all ethical principles are covered at the most granular, operational level.</p><h3>Governance framework</h3><p>We will continue to see the use and development of LLMs and generative AI becoming more accessible and widely used. And as we have <a href="https://medium.com/sogetiblogsnl/chatgpt-and-i-have-trust-issues-c31a2a372a60">demonstrated</a>, these models have the potential to produce biased, toxic, and harmful outputs which can ultimately have a significant social, ethical and legal impact. Therefore, it is essential to have a clear set of guidelines and principles that ensure the responsible and ethical use of these technologies. A governance framework can help to identify potential risks and address them before they become major issues. The framework should be aligned with societal, ethical, and organizational values. This governance framework should be used in conjunction with the Testing LLM Playbook to create a comprehensive testing strategy that is aligned with the ethics and values of the organization. We propose a 3-layer human centered governance framework consisting of:</p><ol><li>The context layer: these are the principles and laws we need to abide by to be ethical and legally compliant. This should include Fairness, Transparency, Safety, Robustness, Privacy, and Accountability. These principles should be embedded in the AI system design.</li><li>The organizational layer: this is where we strategically align corporate values and policies into our AI governance and risk framework and ensure we are building user-centered, value-creating applications.</li><li>The operational layer: this is the technical build layer which includes system design, testing methods, tools, and monitoring. We cover data, model, and system tests. The test requirements will be based on the previous two pillars.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*_ZDM1CrBNXNuXw4guaxMVg.gif" /><figcaption><em>Governance framework for Generative AI</em></figcaption></figure><h3>Conclusion</h3><p>As you can see, it’s no easy feat to test LLMs. There are multiple methods that can be used and many coverage areas to consider, from the data to the model and finally ensuring the system is user centered.</p><p>We hope this LLM playbook has shed light on how you can ensure that you have a high performing, quality performant, yet safe and fair LLM in production. This blog is to be used as a guide to create a practical checklist for testing, based on your specific use cases.</p><p>Regardless, there should always be an oversight and validation team in place to enforce the governance framework, assess any harmful risks, and to provide due diligence for the model, processes, and outcomes. This governance team should be a diverse team that can recognize risks and biases and mitigate them as best as possible. This team should consist of leadership, legal, domain expertise and AI practitioners.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14dba62c484a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/chatgpt-and-i-have-trust-issues-testing-llms-the-playbook-14dba62c484a">ChatGPT and I have trust issues: testing LLMs, the playbook.</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[The EU’s regulated limitations for AI]]></title>
            <link>https://medium.com/sogetiblogsnl/the-eus-regulated-limitations-for-ai-22e350fc6390?source=rss-ef401ffaa4c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/22e350fc6390</guid>
            <category><![CDATA[regulation]]></category>
            <category><![CDATA[xai]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <dc:creator><![CDATA[Wouter Zirkzee]]></dc:creator>
            <pubDate>Tue, 02 Aug 2022 08:23:56 GMT</pubDate>
            <atom:updated>2022-08-02T08:23:56.915Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*uDr3T3SPRLZQT1_qR1n0Rg.jpeg" /><figcaption>Image from shutterstock.com</figcaption></figure><p>Not everyone might fully realize it yet, but Artificial Intelligence (AI) is starting to play a larger role in many aspects of our lives. And as we all know, AI needs data, preferably lots of it.</p><p>Due to big scandals over the years where personal data has been leaked and/or misused, and the –rightfully deserved- growing awareness about data privacy and ownership, society has been paying more attention to with whom their data is shared.</p><p>To help and protect European citizens in their data rights, the European Union introduced the General Data Protection Regulation (GDPR)[1] on May 25 2018. This regulation introduced and defined rules to protect the fundamental rights of (natural) people and their data in the EU. Obviously, this also heavily impacts the use and development of AI, especially when concerning sensitive or personally identifiable information. Moreover, the GDPR even makes some remarks about Automated Decision-Making, directly targeting AI solutions.</p><p>Many companies have high expectations of what AI can do for them, and its unrivalled performance in comparison to ‘traditional’ systems. However, this increased performance comes at a price: the models’ transparency. More complex `black-box` models (e.g. Deep Neural Networks (DNNs)) often outperform simpler `white-box` models (e.g. Decision tree).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*IUcwfFAleEIM4z2v1xE2mQ.jpeg" /></figure><p>This accuracy-interpretability trade-off of AI techniques is something that must be carefully considered [2]. Answers such as `Computer says: no` are rarely considered to be of any value. It can even be dangerous with regard to under-represented groups, as AI can favor certain outcomes based on basic characteristics such as race, sex, age, or any other factor.</p><p>Broadly speaking the GDPR is based on 7 principles[3]:</p><ol><li>Lawfulness, fairness and transparency — Processing must be lawful, fair, and transparent to the data subject.</li><li>Purpose limitation — You must process data for the legitimate purposes specified explicitly to the data subject when you collected it.</li><li>Data minimization — You should collect and process only as much data as absolutely necessary for the purposes specified.</li><li>Accuracy — You must keep personal data accurate and up to date.</li><li>Storage limitation — You may only store personally identifying data for as long as necessary for the specified purpose.</li><li>Integrity and confidentiality — Processing must be done in such a way as to ensure appropriate security, integrity, and confidentiality (e.g. by using encryption).</li><li>Accountability — The data controller is responsible for being able to demonstrate GDPR compliance with all these principles</li></ol><p>It is not difficult to see that all these principles have a significant impact on the way AI models can be developed and used. It can be limiting to AI development especially in relation to the aforementioned usage of high-performing black-box models — how do we make them adhere to the first principle of being lawful, fair and transparent to the data subject?</p><h3>Automated Decision-Making under the GDPR</h3><p>The fact that automated decision-making should be lawful, fair and transparent is often referred to as the `right to explanation`. Unlike other outlined rights, such as the also relatively well known `right to erasure` (also known as `right to be forgotten`), the right to explanation is not outright defined in the GDPR, however article 134 through 15 of chapter 3, which outlines the rights of the data subject, all state:</p><blockquote>“the existence of automated decision-making, including profiling, referred to in Article 22(1) and (4) and, at least in those cases, meaningful information about the logic involved, as well as the significance and the envisaged consequences of such processing for the data subject.”</blockquote><p>This is what is usually referred to by the Right to Explanation; the right to obtain an explanation on any automated decision-making and applies to all automated decision-making processes, that are allowed under Article 22 of the GDPR[5]:</p><blockquote>“The data subject shall have the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects concerning him or her or similarly significantly affects him or her.”</blockquote><h3>Explaining AI models</h3><p>Early AI systems were easily understandable, but over time research has created more complex, better performing models. Deep learning models have taken advantage of the rise in scalable computation power, advanced algorithms, and large data sets. Every so often a new model is released, dwarfing the previous largest model. In June 2022 Google published regarding one of their latest models, a 1.6 trillion (10⁹) parameters language model[6]. As the size and complexity of deep learning models rise, it becomes more challenging to explain and interpret the outcomes of these models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMu1-edk_qU1_J6le7KPBw.jpeg" /><figcaption>Growth of model sizes over time; note the logarithmic scale[7]</figcaption></figure><h4>Interpretable vs Explainable</h4><p>Interpretable Machine Learning models consists of most of the traditional `white-box` models and are inherently interpretable with regard to how they come to the outcomes or decisions they produce. Thus, we can understand the reasoning behind the decisions of the model.</p><p>The easiest example can be given with one of the most well-known models, a decision tree, which repeatedly splits the dataset based on an optimum criterion (i.e. gini, entropy) dividing a feature. By following the path from the root node down to a leaf node, we obtain a list of decisions made to end at the resulting conclusion.</p><p>When it comes to ‘black-box’ models, eXplainable AI (XAI) is a set of techniques that can be used to create a more interpretable layer to understand the outcomes of these models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*gLXEyGzfv1XCo1DMYnZqcw.png" /><figcaption>Illustration displaying the XAI concept by DARPA [8]</figcaption></figure><p>In XAI there are two approaches that mostly dominate the field: Shapely Additive exPlanations (SHAP)[9] and Local Interpretable Model-Agnostic Explanation (LIME)[10].</p><p>Both approaches are usually targeted to obtain a <em>local</em> explanation, meaning an explanation for a specific outcome. However, SHAP is also capable of creating a <em>global </em>explanation, creating an aggregate model taking all possible outcomes into account, and therefore explaining the entire model.</p><p>On a high-level these techniques imply assumptions to simplify a model (e.g. independence or linearity) and evaluate the difference in outcome as a result of perturbations on the input data.</p><p>But how do these techniques relate to an explanation? Exactly to what extent an explanation is required by the GDPR is unclear, but most agree that neither an interpretable model or feature importance are interpretable to most of the data subjects defined by the GDPR.</p><h3>What qualifies as an explanation?</h3><p>There is no clear definition of what qualifies as an explanation under the GDPR, and to whom it should be addressed. Ideally, it should provide human-like explanations, but in order to define what we as humans see as an explanation, a sociological approach is required.</p><p>In essence an explanation can be defined as a conversation with the goal of knowledge transfer in order to close or reduce a knowledge gap between the questionee and the questioner.</p><p>Imagine someone asks the question: Why does it snow?</p><p>The answer varies both on the one who asks the question, as well as the one who answers.</p><p>If a 5-year-old asks his dad, the answer will be along the lines of</p><blockquote><em>“if it is raining and it is cold, the rain freezes and becomes snow.”</em></blockquote><p>If an adult would ask a knowledgeable biologist, the answer can be far more detailed and complex:</p><blockquote><em>“Snow is most common in the high-altitude and high-latitude areas of the world, so the closer you are to the poles or the top of a mountain the more likely you are to find snow. When temperatures reach or dip below freezing with minimal moisture in the air, snow crystals begin to form in the atmosphere and grow into snowflakes. If temperatures are warm enough on the ground, around 41° Fahrenheit (5° Celsius), the snow will land and begin to accumulate, but if it’s any warmer it will simply melt. It can never be too cold to snow, but heavy snowfalls are more common when the air on the ground is relatively warm.”</em></blockquote><p>An answer can be followed-up by any related question trying to close the knowledge gap even further. For example, related to the aforementioned scenario, “But where does rain come from?”. Through such a conversation, the knowledge gap decreases incrementally. Although generating clear explanations based on any two knowledge levels is clearly a difficult task, explanation interfaces should try to be as human-like as possible.</p><h3>Impact of AI legislation (My Opinion)</h3><p>Through the limitation of lawfulness, fairness and transparency in automated decision-making, productionizing an AI solution in a business environment is clearly hindered. But this is a good thing. We need the GDPR to protect us citizens from possible business value as a result of the amazing performance some models can offer, because mistakes will always be made. Many might argue that humans are (even more) susceptible to the same danger. In some cases AI has already shown to be able to be on par with, or even outperform humans in some cases[11]. But we need to where the negative implications were quite clear: Amazon’s AI recruiting tool showed bias against women[12] or even a case of wrongful imprisonment due to wrong face detection[13].</p><p>These days big corporations are aware of these risks and societal impact of their models, and try to take appropriate measures. Although this recent example is not directly related to automated-decision making, Google has shown two new text-to-image models Imagen[14] and Parti[15], but has chosen not to release the code or a public demo as with these complicated models “there is a risk that Imagen has encoded harmful stereotypes and representations”.</p><p>But not all corporations take their responsibility, for example, Clearview AI[16] is a facial recognition company that has been getting a lot of attention over the last years. Clearview has been scraping the internet to collect over 20 billion images to build up their biometrics database. As a reaction to this, regulators from countries such as Canada, UK, Germany have started procedures to condemn and halt the Clearview’s data hoarding, and privacy breaching, practices.</p><p>In this fast-paced world where AI has accomplished some startling super-human achievements, we do need to be protected of becoming exactly that what the GDPR describes us as: ; data subjects. Like is often the case in law-making, the boundaries of the rights are still very vague, and usually left for judicial interpretation. And this is for good reason, as this post has shown it is hard to encapsulate what an explanation should look like. In many business cases the explanation will be added as an afterthought, instead of as an integral part of the model.</p><p>But the limitations and regulations of AI will likely not end with the GDPR. On April 21 2021 EU has made a proposal introducing overlapping with the GDPR directly aimed at AI, the `Artificial Intelligence Act`[17]. In this act, the EU is attempting to harmonize the rules of development and use for all AI within the EU. Different from the GDPR, the AI Act takes a risk-based approach and defines sets of rules based on four levels of risk: unacceptable, high, limited, and minimal. For example, AI systems deemed an unacceptable risk, such as social scoring, are to be prohibited, while specific high-risk systems (e.g. medical, judicial, critical infrastructure) are allowed but need to be confirmed and validated before being marketed. According to the current timeline, somewhere mid 2023 the AI Act should be published and taken into effect.</p><p>[1] <a href="https://gdpr.eu/tag/gdpr/">GDPR Archives — GDPR.eu</a></p><p>[2] <a href="https://arxiv.org/pdf/1910.10045.pdf">Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI 1910.10045.pdf (arxiv.org)</a></p><p>[3] <a href="https://gdpr-info.eu/art-5-gdpr/">Art. 5 GDPR — Principles relating to processing of personal data — General Data Protection Regulation (GDPR) (gdpr-info.eu)</a></p><p>[4] <a href="https://gdpr-info.eu/art-13-gdpr/">Art. 13 GDPR — Information to be provided where personal data are collected from the data subject — General Data Protection Regulation (GDPR) (gdpr-info.eu)</a></p><p>[5] <a href="https://gdpr-info.eu/art-22-gdpr/">Art. 22 GDPR — Automated individual decision-making, including profiling — General Data Protection Regulation (GDPR) (gdpr-info.eu)</a></p><p>[6] <a href="https://arxiv.org/pdf/2101.03961.pdf">Switch Transformers: Scaling to Trillion Parameter Models: 2101.03961 (arxiv.org)</a></p><p>[7] <a href="https://www.microsoft.com/en-us/research/blog/using-deepspeed-and-megatron-to-train-megatron-turing-nlg-530b-the-worlds-largest-and-most-powerful-generative-language-model/">Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, the World’s Largest and Most Powerful Generative Language Model — Microsoft Research</a></p><p>[8] <a href="https://www.darpa.mil/attachments/DARPA-BAA-16-53.pdf">https://www.darpa.mil/attachments/DARPA-BAA-16-53.pdf</a></p><p>[9] <a href="https://shap.readthedocs.io/en/latest/index.html">https://shap.readthedocs.io/en/latest/index.html</a></p><p>[10] <a href="https://www.kdd.org/kdd2016/papers/files/rfp0573-ribeiroA.pdf">https://www.kdd.org/kdd2016/papers/files/rfp0573-ribeiroA.pdf</a></p><p>[11] <a href="https://med.stanford.edu/news/all-news/2018/11/ai-outperformed-radiologists-in-screening-x-rays-for-certain-diseases.html">https://med.stanford.edu/news/all-news/2018/11/ai-outperformed-radiologists-in-screening-x-rays-for-certain-diseases.html</a></p><p>[12] <a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight-idUSKCN1MK08G">https://www.reuters.com/article/us-amazon-com-jobs-automation-insight-idUSKCN1MK08G</a></p><p>[13] <a href="https://edition.cnn.com/2021/04/29/tech/nijeer-parks-facial-recognition-police-arrest/index.html">https://edition.cnn.com/2021/04/29/tech/nijeer-parks-facial-recognition-police-arrest/index.html</a></p><p>[14] <a href="https://imagen.research.google/">https://imagen.research.google/</a></p><p>[15] <a href="https://parti.research.google/">https://parti.research.google/</a></p><p>[16] <a href="https://www.clearview.ai/">Clearview AI | Facial Recognition</a></p><p>[17] <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A52021PC0206">Proposal for a REGULATION OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL LAYING DOWN HARMONISED RULES ON ARTIFICIAL INTELLIGENCE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22e350fc6390" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/the-eus-regulated-limitations-for-ai-22e350fc6390">The EU’s regulated limitations for 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>
    </channel>
</rss>