<script data-pm-proxy="intercept"></script><?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Andrea Kainz]]></title><description><![CDATA[AI standards expert (CEN/CLC/JTC 21) with 8+ years building and assessing AI and data systems in banking, energy, and international organisations. Background in Technical Mathematics (TU Wien) and Software Engineering (University of Oxford).]]></description><link>https://andreakainz.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!HcCn!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d5a8168-f304-42e8-9596-83897b0fd7f4_1587x1587.jpeg</url><title>Andrea Kainz</title><link>https://andreakainz.substack.com</link></image><generator>Substack</generator><lastBuildDate>Fri, 04 Sep 2026 04:11:12 GMT</lastBuildDate><atom:link href="/__u/andreakainz.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Andrea Kainz]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[andreakainz@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[andreakainz@substack.com]]></itunes:email><itunes:name><![CDATA[Andrea Kainz]]></itunes:name></itunes:owner><itunes:author><![CDATA[Andrea Kainz]]></itunes:author><googleplay:owner><![CDATA[andreakainz@substack.com]]></googleplay:owner><googleplay:email><![CDATA[andreakainz@substack.com]]></googleplay:email><googleplay:author><![CDATA[Andrea Kainz]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Stanford's Ethics, Technology and Public Policy for Practitioners - Learnings, Perspectives, and Takeaways]]></title><description><![CDATA[Over the past seven weeks, I have had the pleasure of being part of this year&#8217;s cohort of the Stanford&#8217;s Ethics, Technology and Public Policy for Practitioners course.]]></description><link>https://andreakainz.substack.com/p/stanfords-ethics-technology-and-public</link><guid isPermaLink="false">https://andreakainz.substack.com/p/stanfords-ethics-technology-and-public</guid><dc:creator><![CDATA[Andrea Kainz]]></dc:creator><pubDate>Wed, 20 Nov 2024 13:39:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!HcCn!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d5a8168-f304-42e8-9596-83897b0fd7f4_1587x1587.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Over the past seven weeks, I have had the pleasure of being part of this year&#8217;s cohort of the Stanford&#8217;s Ethics, Technology and Public Policy for Practitioners course. In addition to the enriching readings and lectures, we gained valuable insights from distinguished guest speakers, including former New Zealand Prime Minister Jacinda Ardern; Elizabeth Kelly, Director of the US AI Safety Institute; James Manyika, Senior Vice President at Google-Alphabet; Joaquin Qui&#241;onero-Candela, Head of Preparedness at OpenAI; Sarah Myers West, Co-Executive Director at the AI Now Institute; and Ellen Pao, former CEO of Reddit. I highly recommend the program to anyone interested in the ethical implications of technology, and especially to practitioners of technology who want to use their power to shape the future and create a world where technology is used for good.</p><p>In this post, I will highlight some of the key learnings and takeaways from the course.</p><p><strong>The Ones Who Walk Away From Omelas</strong></p><p>We began our learning journey in the first week with &#8220;The Ones Who Walk Away from Omelas&#8221;. This truly inspiring story, written by Ursula K. Le Guin, raises societal questions that go beyond the moral dilemma of weighing the suffering of one against the happiness of many. It encourages readers to reflect on their responsibilities as members of society and to consider the impact of their own choices &#8211; to walk away, to stay and accept the status quo, or to stay and fight against existing inequalities.</p><p><strong>Algorithmic Decision-Making and Fairness</strong></p><p>Next, we explored the topic of algorithmic decision making and fairness, examining different interpretations of fairness, such as providing equal opportunities to individuals, or achieving equal outcomes. Our faculty lecturer, Prof. Mehran Sahami, highlighted the difficulty of optimizing algorithms for fairness due to mutually exclusive definitions of fairness. The Princeton case study &#8220;Hiring by Machine&#8221; provided us with insightful information on the barriers to implementing fairness in practice, alongside with a series of challenging and thought-provoking questions for the readers. One aspect that stood out for me was the consideration of compensating for the current &#8220;lack of moral flexibility or pragmatism&#8221; of AI systems compared to humans by incorporating randomness into decision-making processes. This reflection raised the question for me of whether we are limiting ourselves by assuming that replicating human decision-making as we know it is the ultimate goal, or whether the current discussions about algorithmic fairness are simply shedding more light on deeper, existing challenges within our perceptions of fairness.</p><p><strong>Data Collection, Privacy, and Civil Liberties</strong></p><p>In the course, we also talked about privacy and challenged the common belief that the concept is simply about &#8220;hiding a wrong&#8221;, as discussed in the essay &#8220;I&#8217;ve Got Nothing to Hide and Other Misunderstandings of Privacy&#8221; by Daniel Solove, published in the San Diego Law Review. The familiar &#8220;I&#8217;ve got nothing to hide&#8221; argument fails to capture the nuanced, pluralistic concept of privacy. For example, collected data could be aggregated or used for secondary purposes, potentially increasing state power. The risks of loss of privacy go beyond surveillance, as illustrated in George Orwell&#8217;s &#8220;1984&#8221;. They can also manifest in a sense of powerlessness, vulnerability or a lack of control, as outlined in Franz Kafka&#8217;s &#8220;The Trial&#8221;. Another common misunderstanding of the concept of privacy was analyzed in the article &#8220;What Is Privacy For?&#8221; by Lowry Pressly, published in The New Yorker in October 2024. One of the problems outlined in the article is the assumption that privacy is based solely on the principle of keeping already existing information &#8220;out of the wrong hands&#8221;. As an alternative approach, the author suggests that we should ask whether the main problem is the mere existence of that information. He also emphasizes the right to oblivion, pointing out that &#8220;the main interest in life and work is to become someone else that you were not in the beginning&#8221;. I strongly agree with this and believe that the use of our past behaviour data by social media platforms can limit our personal development and growth, as well as our ability to learn from mistakes.</p><p><strong>Private Platforms and the Political Economy of Technology</strong></p><p>In discussing the political economy of technology, we critically examined the business models of today&#8217;s big tech companies, which rely on targeted advertising. This approach inherently leads to harmful practices such as surveillance, maximizing user engagement, and the spread of extremist content. The common justification that these practices are essential to provide &#8220;free&#8221; services for the public can be challenged by proposing a fee-based model including financial support to ensure access for those who cannot afford it. We also discussed the challenges of balancing free speech on the Internet with the goal of tackling hate speech and extremist or violent content. One of the readings was John Stuart Mill&#8217;s &#8220;On Liberty&#8221;, which addresses the risks of social conformity and highlights the importance of allowing diverse perspectives and opinions to avoid confirmation bias. Mill argues that in the pursuit of truth, we must encourage an open discussion and gather and combine even conflicting ideas. Personally, I find the application of these principles challenging in today&#8217;s digital age, given the amount of misinformation and harmful content on the Internet and the speed at which it spreads.</p><p><strong>Generative AI and the Future of Work</strong></p><p>Finally, we explored generative AI and its impact on the labour market. We were encouraged to consider different possible futures: a world in which AI gradually replaces humans through automation, and another in which AI augments human capabilities by providing better information and supporting human decision-making. We also discussed how generative AI is expected to have a significant impact on &#8220;knowledge&#8221; work, unlike previous technological advances that have primarily affected physical work. Another interesting aspect we learned was that generative AI could particularly benefit average-skilled workers, potentially strengthening the middle class. I was struck by the fact that, according to one study, computer science and mathematics, my two majors at university, are expected to be the areas most complemented by generative AI in the future. Nevertheless, I remain optimistic about the future of work, and one of the quotes from the lecture that stuck with me was that AI will not replace your work, but a person using AI will. I am deeply impressed by the capabilities of generative AI, which can not only increase the productivity of people at work, but also support the learning process. In this context, I highly recommend Google&#8217;s NotebookLM. This tool allows users to upload documents, to generate summaries of the content and provide answers with citations. One of the most impressive features for me is the ability to create a podcast with two speakers having a casual conversation about the topics provided in the sources, which is definitely a nice addition when you are discovering complex topics.</p><p><strong>Application and Reflection</strong></p><p>My learning objective for this course was to deepen my understanding of the ethical dimensions of technology, broadening my focus beyond fairness and non-discrimination in artificial intelligence to a wider range of socially relevant issues in technology. Coming from an engineering background, where the focus is often on finding solutions to problems, it can be challenging to be comfortable with the ambiguity of ethics. However, as I have learnt and practiced throughout the course, the essence of ethics is about asking the right questions rather than seeking immediate solutions.</p><p>I would like to thank the course facilitators, cohort leaders, faculty lecturers, and guest speakers for making this course possible, which has reinforced my decision to pursue a career focused on the socially responsible use of technology. In conclusion, I would like to encourage everyone to continue to ask the tough questions, to actively fight against inequality, and to ensureence and mathematics, my two majors at university, are expected to be the areas most complemented by generative AI in the future. Nevertheless, I remain optimistic about the future of work, and one of the quotes from the lecture that stuck with me was that AI will not replace your work, but a person using AI will. I am deeply impressed by the capabilities of generative AI, which can not only increase the productivity of people at work, but also support the learning process. In this context, I highly recommend Google&#8217;s NotebookLM. This tool allows users to upload documents, to generate summaries of the content and provide answers with citations. One of the most impressive features for me is the ability to create a podcast with two speakers having a casual conversation about the topics provided in the sources, which is definitely a nice addition when you are discovering complex topics.</p><p><strong>Application and Reflection</strong></p><p>My learning objective for this course was to deepen my understanding of the ethical dimensions of technology, broadening my focus beyond fairness and non-discrimination in artificial intelligence to a wider range of socially relevant issues in technology. Coming from an engineering background, where the focus is often on finding solutions to problems, it can be challenging to be comfortable with the ambiguity of ethics. However, as I have learnt and practiced throughout the course, the essence of ethics is about asking the right questions rather than seeking immediate solutions.</p><p>I would like to thank the course facilitators, cohort leaders, faculty lecturers, and guest speakers for making this course possible, which has reinforced my decision to pursue a career focused on the socially responsible use of technology. In conclusion, I would like to encourage everyone to continue to ask the tough questions, to actively fight against inequality, and to ensure that technology benefits us all and is used to solve the most pressing problems in our world. that technology benefits us all and is used to solve the most pressing problems in our world.</p>]]></content:encoded></item><item><title><![CDATA[A comprehensive fairness assessment framework for artificial intelligence systems]]></title><description><![CDATA[In this article, I propose a comprehensive fairness assessment framework applicable to both downstream applications of LLMs as well as classical machine learning tasks across the lifecycle.]]></description><link>https://andreakainz.substack.com/p/a-comprehensive-fairness-assessment</link><guid isPermaLink="false">https://andreakainz.substack.com/p/a-comprehensive-fairness-assessment</guid><dc:creator><![CDATA[Andrea Kainz]]></dc:creator><pubDate>Wed, 02 Oct 2024 12:30:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!gtj8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!gtj8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 424w, /__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 848w, /__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 1272w, /__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!gtj8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png" width="1024" height="608" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:608,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 424w, /__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 848w, /__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 1272w, /__u/substackcdn.com/image/fetch/$s_!gtj8!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe27b76d7-f714-4b3c-ad1c-599f80306281_1024x608.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">artificial intelligence</figcaption></figure></div><h3>Abstract</h3><p>In recent years, AI fairness has gained considerable attention, as several machine learning applications have demonstrated systematic discrimination against certain population groups. A major focus of fairness research has been on classical machine learning models and supervised learning tasks, such as classification, particularly in the context of automated decision-making. General-purpose AI models, however, present unique challenges for fairness assessments due to their wide-ranging downstream applications and varied use case scenarios across different domains. It is crucial that both the underlying base model and downstream systems, such as applications built on fine-tuned models, undergo fairness assessments, as new biases can be introduced during the adaptation process. In this article, I propose a comprehensive fairness assessment framework applicable to both downstream applications of general-purpose AI, including LLMs, and classical machine learning tasks. The framework provides a comprehensive step-by-step guide throughout the AI development lifecycle and highlights the essential technical, legal, ethical, and domain-specific skills and responsibilities of the development team required at each stage. The recommended steps begin with a detailed examination of the use case, including the identification of potentially vulnerable groups, followed by the assessment and mitigation of bias in the training, fine-tuning, or retrieval data. Next, it addresses the design and evaluation of fairness-related measures on the trained model, such as a combination of fairness and performance metrics across different groups, along with red teaming to tackle the unique challenges of generative AI. Finally, the framework proposes the implementation of a monitoring platform and the establishment of regular internal and external audits. Three real-world examples of bias illustrate how applying the framework helps uncover a wide range of fairness issues in AI systems.</p><h3>Motivation</h3><p>Several AI governance frameworks address the risks of bias and discrimination in AI systems, and highlight the challenges of ensuring fairness in general-purpose AI. In the context of fairness assessments, several of these frameworks remain at a high level, as this approach offers greater flexibility and better adaptability to the rapid developments in AI. Moreover, the context-dependency and complexity of fairness make it challenging to establish universally applicable practical guidelines. However, a lack of sufficiently clear and actionable steps for AI development teams make it difficult to operationalize fairness effectively. Therefore, more concrete guidelines are needed to help development teams integrate fairness into their AI systems in an impactful way.</p><p>The designed fairness assessment framework offers a comprehensive guide for AI development teams, easily integrated into the AI development lifecycle. Its uniqueness lies in its applicability to both classical machine learning tasks, such as supervised learning, and general-purpose AI downstream applications, like LLM-based or generative AI applications. Each section of the framework outlines the relevant technical, legal, ethical, and domain-specific skills required, and it provides background information and highlights current gaps in regulation and research.</p><p>The fairness assessment framework is grounded in the current literature on fairness and several national and international AI regulations, including the UNESCO Recommendation on the Ethics of Artificial Intelligence and various AI governance frameworks from the United States. These include the NIST AI Risk Management Framework, its companion document on generative AI, and the paper &#8216;Towards a Standard for Identifying and Managing Bias in Artificial Intelligence.&#8217;</p><h3>Introduction to Fairness</h3><h4>Philosophical background</h4><p>From a philosophical perspective, fairness is concerned with the morality of an action. Different approaches, such as consequentialism and deontology, offer different views on the definition of fairness. <em>Consequentialism </em>evaluates actions based on their outcomes, while <em>deontological </em>approaches focus on the morality of the actions themselves. The well-known &#8216;trolley problem&#8217; illustrates the ethical dilemmas that arise in moral decision-making according to conflicting ethical theories, which are also reflected in some of the challenges and controversies in attempting to align AI systems with human values.</p><h4>Fairness in classical machine learning models</h4><p>In recent years, AI fairness has gained significant attention due to several prominent cases of bias embedded in AI systems. In 2014, for example, Amazon began building a tool to analyse job applications in order to identify suitable candidates. However, the system was trained on data based on previous applications to the tech company, mainly from men, and the resulting model rejected female applicants more often [1]. In 2018, Dr. Joy Buolamwini found in the Gender Shades Project that the gender classification tools of some leading tech companies performed significantly worse for women and darker-skinned people in terms of classification accuracy [2]. These real-life examples demonstrate, that there are different aspects and nuances within machine learning fairness and that the definition of a &#8216;fair&#8217; system strongly depends on the context and use case.</p><p><em>Fairness metrics for classical machine learning models</em></p><p>Several so-called<strong> fairness metrics</strong> have been introduced in the past, which aim to serve as comparable and quantitative measures to assess discrimination in machine learning models or on the training dataset. In general, most fairness metrics for trained machine learning models are defined for supervised learning, in particular, for binary classification tasks, and they are calculated based on error or decision rates. These metrics can be adapted for use in regression or multi-class classification. In total, there are more than 20 fairness metrics, and several of them are interrelated or even incompatible in non-trivial cases. Moreover, each metric reflects different considerations and interpretations of fairness in a given context, and the concept of a &#8216;fair&#8217; AI system may vary in different societal, legal and cultural settings. It is therefore important to carefully select a fairness metric in a given scenario that best reflects the nuances and subtleties of a setting. For example, in an AI-based hiring tool, fairness may be more related to achieving equal outcome rates across different demographic groups, whereas in an AI-based disease prediction tool, similar error rates are generally more relevant in the context of fairness.</p><h4>Fairness in general-purpose AI</h4><p>Unlike classical machine learning models, which are typically limited to specific use cases, general-purpose AI models can be adapted and applied to a wide variety of downstream tasks, making fairness assessments more complex and challenging [3][4]. In general, fairness must be evaluated both at the level of the base model and within each downstream application to account for the specifics of each use case. Common fairness metrics designed for classification can be applied in fairness assessments of specific general-purpose AI downstream applications, particularly when the use case resembles classification tasks. However, generally speaking, research on fairness metrics for general-purpose AI remains limited.</p><p><em>Fairness metrics for large language models</em></p><p>In the context of large language models, there are two main types of fairness metrics: <em>intrinsic</em> fairness metrics for the underlying LLM, and <em>extrinsic</em> fairness metrics, which evaluate the fairness for fine-tuned or adapted downstream tasks. The relationship between these two types of metrics is not fully understood, and some studies suggest that they are not necessarily correlated [5]. Fine-tuning can reduce or even override the fairness of the underlying base model, making it crucial to properly assess the fairness of downstream applications in the context of general-purpose AI.</p><p><em>Limitations of fairness metrics</em></p><p>In general, no single metric, or even combination of metrics, is likely to be able to fully capture all the relevant facets of a given situation. Due to the nuanced and dynamic nature of fairness, it should not be reduced to a purely technical concept or formula. Instead, fairness in AI systems must be assessed from a <strong>socio-technical</strong> perspective, requiring a multi-stage process that integrates both technical and human considerations. In addition to technical developers, experts from legal, philosophical, social, and domain-specific fields should be involved in the assessment of fairness. This interdisciplinary approach is crucial to account for as many fairness-relevant aspects of the real-world application as possible and to ensure that the complexities of fairness in practice are adequately addressed.</p><h4>Red teaming</h4><p>Due to the aforementioned challenges in fairness assessments, particularly in the context of general-purpose AI, red teaming has become a standard approach for identifying fairness-related vulnerabilities and risks beyond the calculation of fairness metrics. The National Institute for Standards in Technology (NIST) defines red teaming as &#8216;a group of people authorised and organised to emulate a potential adversary&#8217;s attack or exploitation capabilities against an organisation&#8217;s security posture&#8217; [6]. Originating from cybersecurity, red teaming in the context of fairness testing for general-purpose AI typically involves adversarial testing to challenge the model for discriminatory behavior or harmful content. Counterfactual testing evaluates how changes in inputs, such as those within a protected class, affect outputs and can therefore provide valuable insight into potentially discriminatory behaviour of an AI system.</p><p><em>Limitations of red teaming in fairness assessments</em></p><p>Red teaming offers significant advantages in fairness assessments, as it enables highly targeted tests and uncovers vulnerabilities in AI systems that might otherwise go undetected. However, there is currently a lack of standardized methodologies, and existing approaches are diverse and often vaguely formulated [7]. Therefore, red teaming alone is not a sufficiently reliable indicator of a fair model and should be integrated into a multi-stage process for fairness assessment.</p><h4>Additional Fairness-Relevant Aspects</h4><p>In addition to red teaming and the calculation of fairness metrics, the following factors are relevant to fairness assessments:</p><ol><li><p><strong>Representative and Diverse Data</strong>: Ensuring that the training data, or the data used for fine-tuning or retrieval, is representative of the intended use case and demographically diverse is essential for minimizing bias in AI systems.</p></li><li><p><strong>Usage of Sensitive Attributes: </strong>In addition, we must identify potentially sensitive attributes and their proxies, and assess whether their use may be prohibited by law or lead to discriminatory outcomes. On the other hand, in some cases, it may be beneficial to perform disaggregated analysis using sensitive attributes, particularly in medicine under specific circumstances. However, this must be approached with caution to avoid unintended biases or ethical concerns.</p></li><li><p><strong>Respect for Privacy</strong>: Protecting the privacy of individuals is fundamental to the ethical development of AI systems, particularly when dealing with sensitive attributes such as race, gender or health data.</p></li><li><p><strong>Monitoring and Auditing of Deployed Models</strong>: After deployment, model drift or changes in the data environment can introduce new biases into an AI system. It is essential to implement a monitoring system that continuously tracks the performance and fairness of the model and alerts the user in the event of performance degradation, new biases or other significant changes. In addition, regular audits should be conducted to identify additional vulnerabilities in the system.</p></li><li><p><strong>Accessible Design</strong>: Accessibility is a key factor in the design of fair AI systems. Development teams should create systems that are as inclusive as possible, ensuring that they can be used by people of all abilities. In doing so, they can help reduce the digital divide and promote wider access to technology.</p></li><li><p><strong>Diversity in the Development Team</strong>: Building a diverse development team is critical to responsible AI development. A diverse team brings a wider range of perspectives, making it easier to identify potential biases and vulnerabilities in the system. This diversity of thought helps mitigate risks that might otherwise go unnoticed.</p></li></ol><h3>The Fairness Assessment Framework</h3><h4>Access</h4><p>You can access the framework <strong><a href="https://drive.google.com/file/d/1ib8nynOGAVHkeQH86iX9XyKBlsyAlgJd/view?usp=sharing">here</a></strong>. For best quality, please download the file before viewing.</p><h4><strong>Stages</strong></h4><p>The fairness assessment framework consists of the following stages:</p><p>1. Use Case Analysis</p><p>2. Data Analysis and Debiasing</p><p>3. Fairness Metric Design</p><p>4. Design of General Tests</p><p>5. Red Teaming Test Design</p><p>6. Fair Application Development</p><p>7. Evaluations and Debiasing</p><p>8. Monitoring and Auditing</p><p>9. Documentation and Reporting</p><h4><strong>Use Case Analysis</strong></h4><p>The first part of the framework aims to provide a detailed analysis of the use case environment. It begins with identifying the stakeholders and assessing the diversity and skills of the individuals involved in the development of the AI system. Next, we recommend investigating whether there are established best practices for the use case, and identifying potentially vulnerable groups, as well as potential areas of discrimination, including biases and stereotypes. Additionally, it is important to evaluate whether the use of sensitive attributes could lead to discrimination or if differentiating between groups within a sensitive attribute is both desirable and essential. Lastly, the framework suggests identifying potentially harmful feedback loops in the model, specifying the societal goals of the application, and addressing inclusivity and accessibility standards. It also emphasizes defining the level of risk and impact of the application.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!bfT1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!bfT1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg" width="1456" height="710" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:710,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!bfT1!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8ea5a862-7a54-4411-b8d0-0325e4e7b85c_1800x878.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 1: Use Case Analysis</figcaption></figure></div><h4><strong>Data Analysis and Debiasing</strong></h4><p>The next part begins with a privacy assessment of the data used for training, fine-tuning, or retrieval. This involves ensuring compliance with privacy regulations, examining data collection methods, and potentially anonymizing the data. Based on the results of the use case analysis, it may be necessary to remove sensitive attributes and their proxies from the data or to disaggregate the data within groups. Additionally, we need to evaluate the representativeness, diversity, and inclusiveness of the data, while identifying any historical or social biases embedded within it. If discrepancies are found, they should be addressed by either collecting additional or higher-quality data, or by applying well-established debiasing techniques such as resampling or reweighing.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!R8MT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!R8MT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg" width="1456" height="1053" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1053,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!R8MT!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a786a5-6231-47a0-82fb-71d4fee1017e_1800x1302.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 2: Data Analysis and Debiasing</figcaption></figure></div><p><em>Identified gaps</em></p><ul><li><p>Due to the complexity of fairness and its dependence on cultural and societal factors, there is no clear standard or guidance on how to properly define a &#8216;diverse&#8217; or &#8216;representative&#8217; dataset. Simply reflecting real-world distributions may lead to poor outcomes for minority groups, thereby undermining democratic values. More research and the establishment of best practices in this area would be valuable to avoid reinforcing social inequalities through unbalanced data.</p></li><li><p>In addition, altering or manipulating real-world data, as some debiasing techniques do, has far-reaching ethical implications. Currently, there is a lack of guidelines or consensus on which methods are permissible and morally acceptable. However, since debiasing techniques are integral to ensuring fair AI systems, it is crucial to provide clear guidance to developers in this area.</p></li></ul><h4><strong>Fairness Metric Design</strong></h4><p>To assess the fairness of the trained model later in the AI development lifecycle, we can apply existing fairness metrics where appropriate, particularly for models based on labeled training data and categorical outputs. For non-categorical outputs, or when a suitable fairness metric does not yet exist, custom fairness metrics can be developed in collaboration with domain experts and potentially vulnerable groups, as recommended in the NIST Risk Assessment Framework [8].</p><p>In general, group fairness metrics require that certain values&#8202;&#8212;&#8202;such as the true positive rate&#8202;&#8212;&#8202;be the same across groups. However, this is rarely achievable in real-world scenarios. Therefore, as a final step in designing fairness metrics, we need to consider acceptable levels of difference or tolerance that can still indicate a fair system. This threshold should depend on factors such as the level of risk and the impact of the application.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!6xH8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!6xH8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg" width="1456" height="700" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:700,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!6xH8!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb6236b29-2ab5-4050-939a-8a901131afee_1800x865.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 3: Fairness Metric Design</figcaption></figure></div><p><em>Identified gaps</em></p><ul><li><p>Although there are some guidelines for selecting fairness metrics, they are often generalized and primarily focused on automated decision-making applications in (binary) classification. In my Master&#8217;s thesis at the University of Oxford, I developed a decision support system for binary classification that helps users select an appropriate metric based on the specifics of the use case and concepts from philosophy and law. However, as AI systems are introduced into more and more sensitive areas of our lives, more research in this area is needed.</p></li><li><p>Given the limited current knowledge of fairness metrics for general-purpose AI, I suggest encouraging further research in this area.</p></li><li><p>Another gap in the context of fairness metrics is the challenge of defining acceptable tolerance levels or intervals across groups, and determining which debiasing methods are morally acceptable. The 2023 paper <em>&#8216;The Unfairness of Fair Machine Learning: Levelling Down and Strict Egalitarianism by Default&#8217;</em> by S. Wachter, B. Mittelstadt, and C. Russell highlights that some current debiasing methods result in lower performance or outcome rates for better-performing groups, solely to achieve parity or meet a certain tolerance level across all groups [9]. This approach is highly controversial from a moral standpoint and underscores the need for further research in this area.</p></li><li><p>To address the gaps in fairness metrics beyond classification and regression, the NIST AI Risk Management Framework recommends creating and designing custom fairness metrics &#8216;in collaboration with domain experts and affected communities.&#8217; I propose promoting research and the development of standards or more detailed guidance for designing fairness metrics, as well as potentially establishing a best practice platform, so that AI development teams do not have to design metrics from scratch.</p></li></ul><h4><strong>Design of General Tests</strong></h4><p>In the next step of the framework, we design general tests for the AI model. These include selecting appropriate performance metrics and benchmark datasets, conducting accessibility testing through user experience evaluations, and, where appropriate, field testing to further investigate potential misbehavior of the model with vulnerable groups, as recommended by the NIST AI Risk Management Framework.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!-KGW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!-KGW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg" width="1200" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!-KGW!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae83a9d7-7e52-4d12-8369-71bd553f09d3_1200x1024.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 4: Design of General Tests</figcaption></figure></div><p><em>Identified gaps</em></p><ul><li><p>Over-reliance on the results of publicly available benchmarks carries certain risks. Studies have shown that incorporating benchmark datasets into the training or adaptation process can significantly improve test results when those same benchmarks are later used for bias testing. However, this does not necessarily indicate that the model itself is free of bias [10].</p></li></ul><h4><strong>Red Teaming Test Design</strong></h4><p>Next, we design red teaming tests as an integral part of fairness assessment, particularly for generative AI applications. Adversarial tests are generally aimed at provoking discriminatory behavior and harmful outcomes from the model, and counterfactual tests assess how changes in input affect the outcome, helping to uncover biases in the application. If necessary, we can use generative AI to carefully expand the number of test cases, ensuring human oversight to avoid introducing new biases into the test data.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!TxoH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!TxoH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg" width="1456" height="823" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:823,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!TxoH!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99605893-4ef5-4754-b4f9-3664d1af0ff9_1800x1018.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 5: Red Teaming Test Design (process flow from right to left)</figcaption></figure></div><p><em>Identified gaps</em></p><ul><li><p>Currently, there are no standards for red teaming general-purpose AI applications to identify discrimination, either in terms of test designs or the people involved in the red teaming process. Poorly designed tests may fail to properly identify risks in the model, and there is no consensus on how to standardize the interpretation of red teaming results [7].</p></li></ul><h4><strong>Fair Application Development</strong></h4><p>If technically feasible, fairness constraints in the form of fairness metrics can be incorporated into the training or adaptation process, or techniques such as fair representation learning or adversarial debiasing can be applied. We recommend training multiple models and selecting the one with the fewest fairness issues. For generative AI applications, extra care should be taken in designing the system prompt with potential fairness concerns in mind. Additionally, content moderation or output filtering can be implemented to prevent harmful content.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!yuqi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!yuqi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg" width="1200" height="1291" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1291,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!yuqi!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6a40eec-f41a-47b8-9d6d-24e3daeca8c4_1200x1291.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 6: Fair Application Development (process flow from right to left)</figcaption></figure></div><h4><strong>Evaluations and Debiasing</strong></h4><p>This stage focuses on executing all previously designed tests, including the calculation of performance and fairness metrics, as well as the execution of red teaming tests. The results should then be analyzed by experts to determine whether further action is necessary.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!wE_3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!wE_3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg" width="1456" height="794" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:794,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!wE_3!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F54d97a73-8a6f-4eed-9d1b-2f2c5025f938_1800x981.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 7: Evaluations and Debiasing (process flow from left to right)</figcaption></figure></div><p><em>Identified gaps</em></p><ul><li><p>Currently, there are no guidelines for the use of benchmark datasets to identify bias in generative AI applications.</p></li><li><p>Additionally, there is a lack of standards for interpreting the results of performance metrics, fairness metrics, benchmarking, red teaming, or field testing, as mentioned earlier.</p></li><li><p>Similar to the data analysis and debiasing stage, there are no clear ethical guidelines regarding the implications of directly modifying the model&#8217;s behavior or its outputs.</p></li></ul><h4>Monitoring and Auditing</h4><p>Assessing the fairness of an AI model before its initial deployment is just the first step in identifying risks early in the development lifecycle. Once the application is in production, ongoing monitoring and audits are necessary to address model drift, unforeseen events, or other changes in the system that may lead to bias and discrimination. Additionally, we should aim to regularly update the application to improve fairness as better data becomes available or as other enhancements to the model are identified.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!JUjE!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!JUjE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg" width="1456" height="774" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/af3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:774,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!JUjE!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf3ab5b1-66f0-43d6-9c68-6e49e680cbfa_1800x957.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 8: Monitoring and Auditing (process flow from right to left)</figcaption></figure></div><p><em>Identified gaps</em></p><ul><li><p>Most existing fairness metrics are designed for the development and testing phases of an AI system and rely on labeled training data. However, since fairness in production is crucial, we need to focus more on developing fairness metrics suitable for monitoring AI systems in production.</p></li><li><p>Additionally, it may be helpful to establish guidelines for the frequency of AI testing.</p></li></ul><h4><strong>Documentation and Reporting</strong></h4><p>Some AI regulations, such as the EU AI Act, require reporting on safety and fairness outcomes. Therefore, one of the final steps is to report the results in accordance with the requirements of the relevant regulations. As a final step in the framework, we recommend establishing a centralized, monitored best practice platform that contains a detailed description of all the previously defined fairness assessment steps. This platform would allow AI development teams to build on existing work related to fairness, rather than having to create all the metrics and test cases from scratch. However, I strongly recommend that this platform be expert-supervised to ensure high-quality examples and guidance.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!1wpv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_webp, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!1wpv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg" width="1200" height="848" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:848,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_424, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_848, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_1272, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!1wpv!, /__u/andreakainz.substack.com/w_1456, /__u/andreakainz.substack.com/c_limit, /__u/andreakainz.substack.com/f_auto, /__u/andreakainz.substack.com/q_auto:good, /__u/andreakainz.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff797081b-e6b6-4e10-b8b9-c01297b85128_1200x848.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Figure 9: Documentation and Reporting (process flow from right to left)</figcaption></figure></div><h3>Application of the fairness assessment framework to real-life examples of bias from the past</h3><p>This section discusses three real-life examples of biased AI applications from the past and how the use of the framework created would have helped identify and mitigate discriminatory behaviour.</p><h4>AMS Berufsinfomat</h4><p>The &#8216;Berufsinfomat&#8217; was launched by the Austrian Public Employment Service (AMS) in January 2024 as a GPT-3.5-based chatbot to support jobseekers. Shortly after its launch, several newspapers reported that the chatbot reproduced stereotypes, particularly those based on gender [11]. For example, the bot recommended IT jobs to a young man, but suggested studying gender studies when the same question was asked by a young woman. In response to these reports, AMS made improvements to the bot, including adjusting the system prompt to prevent distinctions based on gender.</p><p>This case highlights the need for extensive fairness and safety testing before releasing a high-impact application like the Berufsinfomat. It is likely that the developers would have identified the risk of perpetuating stereotypes in job recommendations had they conducted thorough bias testing. Assuming the application was fine-tuned using employment data from AMS, an early-stage analysis of the data for gender imbalances or job distribution across protected groups, along with acknowledgment of historical inequalities embedded in the data, would have helped detect bias. At the latest, during the red teaming phase, counterfactual testing&#8202;&#8212;&#8202;such as submitting similar prompts for both a man and a woman&#8202;&#8212;&#8202;would have revealed the fairness issues within the application.</p><h4>Predictive Policing</h4><p>Another example of bias is the predictive policing tool &#8216;PredPol&#8217; in the US [12]. The tool is a classic machine learning application that uses historical crime data to identify areas where crime is likely to occur. However, historical bias in the data&#8202;&#8212;&#8202;stemming from over-policed areas and potentially biased policing practices in the past&#8202;&#8212;&#8202;led to negative feedback loops, further reinforcing bias by sending even more police to those areas. This example illustrates the interconnectedness of technology and society, as well as their dynamic relationship and interdependence.</p><p>The fairness framework could have helped identify the risk of racial bias in the historical data during the initial &#8216;use case analysis&#8217; phase, and recognize the feedback loop created by increasing police presence in certain areas. Additionally, a demographic analysis of the data could have highlighted disparities in high-risk outcomes.</p><h4>Healthcare</h4><p>In the third example of bias, researchers at University College London discovered that an algorithm for predicting liver disease failed to detect the disease in women twice as often as in men [13]. Gender bias is a well-known risk in healthcare applications, and the framework would have helped to identify this issue. If the symptoms of a disease vary between genders, it may be necessary to include the sensitive attribute or its proxies as input data. Calculating a fairness metric based on the false negative rates across genders could have further revealed the bias present in the model.</p><h3>Conclusion and further improvements</h3><p>The framework developed offers a comprehensive set of measures for identifying discrimination and fairness issues in AI systems. The three real-life examples highlight its strengths in uncovering biases within AI systems. This framework serves as an initial step in supporting AI development teams with the complex task of implementing and operationalizing fairness in their AI applications.</p><p>Possible suggestions for the future include:</p><ul><li><p><strong>Integration of the guidance for fairness metric selection developed in my Master&#8217;s thesis into the framework: </strong>Integrating the decision support system for fairness metrics, as developed in my Master&#8217;s thesis, would provide the development teams of classical machine learning models with a structured approach to choose the most appropriate fairness metrics.</p></li><li><p><strong>A clearer distinction between general-purpose AI and classical machine learning in terms of required framework steps</strong>: General-purpose AI downstream applications may require additional steps such as field testing and red teaming to address fairness, whereas classical machine learning models, typically built for specific tasks, may need fewer steps. Clearly distinguishing which steps are essential for each type would help development teams focus their efforts where needed.</p></li><li><p><strong>Provide additional best practice examples of the framework</strong>: Providing concrete, real-world examples of the framework in action would illustrate its application in both classical machine learning and general-purpose AI. Detailed examples of how fairness metrics were applied, how red teaming was designed and executed, and how mitigations were implemented would offer development teams valuable insights.</p></li><li><p><strong>Further investigate the identified gaps</strong>: Several gaps in fairness assessments, such as the lack of standardized fairness metrics for general-purpose AI or the absence of ethical guidelines for altering model behavior, need further research. Future work should focus on exploring these gaps and proposing practical solutions, standards or best practices.</p></li></ul><h3>Final remark</h3><p>I acknowledge that it is difficult, if not impossible, to fully address all the identified gaps in the framework. Given my technical background, I may also be biased or overly optimistic in attempting to break down the sophisticated concept of fairness into a logical sequence of steps to provide comprehensive guidance. However, I believe it is better to make an effort to transform highly complex socio-technical concepts into actionable steps rather than prematurely conclude that no satisfactory solution exists. If we do not try, we accept the status quo as it is.</p><h3>References</h3><p>[1] <a href="https://www.reuters.com/article/world/insight-amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK0AG/">Insight&#8202;&#8212;&#8202;Amazon scraps secret AI recruiting tool that showed bias against women | Reuters</a></p><p>[2] Joy Buolamwini and Timnit Gebru. Gender shades: Intersectional accuracy dispari ties in commercial gender classification. In Conference on fairness, accountability and transparency, pages 77&#8211;91. PMLR, 2018.</p><p>[3] <a href="https://unesdoc.unesco.org/ark:/48223/pf0000385629">Foundation models such as ChatGPT through the prism of the UNESCO Recommendation on the Ethics of Artificial Intelligence&#8202;&#8212;&#8202;UNESCO Digital Library</a></p><p>[4] <a href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf">Towards a Standard for Identifying and Managing Bias in Artificial Intelligence (nist.gov)</a></p><p>[5] Li, Yingji, et al. &#8220;A survey on fairness in large language models.&#8221; <em>arXiv preprint arXiv:2308.10149</em> (2023).</p><p>[6] <a href="https://csrc.nist.gov/glossary/term/red_team_blue_team_approach">Red Team/Blue Team Approach&#8202;&#8212;&#8202;Glossary | CSRC (nist.gov)</a></p><p>[7] Feffer, Michael, et al. &#8220;Red-Teaming for Generative AI: Silver Bullet or Security Theater?.&#8221; <em>arXiv preprint arXiv:2401.15897</em> (2024).</p><p>[8] <a href="https://www.nist.gov/itl/ai-risk-management-framework">AI Risk Management Framework | NIST</a></p><p>[9] Mittelstadt, Brent, Sandra Wachter, and Chris Russell. &#8220;The Unfairness of Fair Machine Learning: Levelling down and strict egalitarianism by default.&#8221; <em>arXiv preprint arXiv:2302.02404</em> (2023).</p><p>[10] Zhou, Kun, et al. &#8220;Don&#8217;t make your llm an evaluation benchmark cheater.&#8221; <em>arXiv preprint arXiv:2311.01964</em> (2023).</p><p>[11] <a href="https://www.technologyreview.com/2020/07/17/1005396/predictive-policing-algorithms-racist-dismantled-machine-learning-bias-criminal-justice/">Predictive policing algorithms are racist. They need to be dismantled. | MIT Technology Review</a></p><p>[12] <a href="https://www.derstandard.at/story/3000000201774/vorurteile-und-zweifelhafte-umsetzung-der-ams-ki-chatbot-trifft-auf-spott-und-hohn">Vorurteile und zweifelhafte Umsetzung: AMS-KI-Chatbot trifft auf Spott und Hohn&#8202;&#8212;&#8202;Netzpolitik&#8202;&#8212;&#8202;derStandard.at &#8250; Web</a></p><p>[13] <a href="https://www.ucl.ac.uk/news/2022/jul/gender-bias-revealed-ai-tools-screening-liver-disease#:~:text=Artificial%20intelligence%20models%20built%20to,by%20UCL%20researchers%20has%20found.">Gender bias revealed in AI tools screening for liver disease | UCL News&#8202;&#8212;&#8202;UCL&#8202;&#8212;&#8202;University College London</a></p>]]></content:encoded></item><item><title><![CDATA[Guidance for selecting fairness metrics in binary classification]]></title><description><![CDATA[In today&#8217;s world, machine learning systems are used in many sensitive areas of our lives such as credit scoring, disease prediction and job recruiting.]]></description><link>https://andreakainz.substack.com/p/guidance-for-selecting-fairness-metrics</link><guid isPermaLink="false">https://andreakainz.substack.com/p/guidance-for-selecting-fairness-metrics</guid><dc:creator><![CDATA[Andrea Kainz]]></dc:creator><pubDate>Fri, 28 Jul 2023 12:01:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!HcCn!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d5a8168-f304-42e8-9596-83897b0fd7f4_1587x1587.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In today&#8217;s world, machine learning systems are used in many sensitive areas of our lives such as credit scoring, disease prediction and job recruiting. In recent years, the concept of machine learning fairness has gained increasing attention as some prominent examples have demonstrated bias in computer systems. Within binary classification algorithms, there exist several definitions of the fairness of a machine learning model; however, it is impossible to fulfil all of them at the same time, and some of these metrics are interrelated or even incompatible in non-trivial scenarios. Publicly available fairness toolkits do not sufficiently support their users in selecting suitable fairness metrics. Therefore, the aim of my master&#8217;s thesis was to create a user-friendly, fairness tool with an integrated selection guidance for post-processing fairness metrics.</p><p>The complete selection guidance is available for download below.</p><div class="file-embed-wrapper" data-component-name="FileToDOM"><div class="file-embed-container-reader"><div class="file-embed-container-top"><image class="file-embed-thumbnail-default" src="/__u/substackcdn.com/image/fetch/$s_!0Cy0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Fattachment_icon.svg"></image><div class="file-embed-details"><div class="file-embed-details-h1">Fairness Metric Selection Guidance</div><div class="file-embed-details-h2">224KB &#8729; PDF file</div></div><a class="file-embed-button wide" href="/__u/andreakainz.substack.com/api/v1/file/04f784a9-91d4-490b-90d1-027234dea7b7.pdf"><span class="file-embed-button-text">Download</span></a></div><a class="file-embed-button narrow" href="/__u/andreakainz.substack.com/api/v1/file/04f784a9-91d4-490b-90d1-027234dea7b7.pdf"><span class="file-embed-button-text">Download</span></a></div></div><p> </p>]]></content:encoded></item></channel></rss>