What security risks can arise from bias in AI?
Guest(s): Maksad Donayorov, Specialist in Strategic AI Implementation and machine learning models
In this episode, we speak to Maksad Donayorov. He is a specialist in Strategic AI Implementation and machine learning models.
He shares his insights on the security risks that can arise from bias in AI systems. This includes the most effective ways of mitigating bias in AI systems in the security sector, and the stages at which biases are manifested.
Featured Quotes
Key takeaways
- AI bias can emerge at every stage of development. Even seemingly neutral choices can reinforce existing social inequalities and discrimination.
- AI systems can reproduce and reinforce existing societal biases. Historical discrimination, unbalanced datasets and subjective human feedback can influence predictions.
- Mitigating AI bias requires a structured approach to governance and oversight.
Maritie Gaidon
Thank you for listening to Shaping Security, the podcast where we put security governance at the heart of the conversation and update you on today's security challenges. What security risks can arise from bias in AI? This is what we are going to talk about today with Maksad Donayorov.
In a nutshell, he is a specialist in strategic AI implementation and machine learning models. Hi Maksad, welcome to the show.
Maksad Donayorov
Hi, thanks for having me.
Maritie Gaidon
So given your experience as an AI developer, at what stage do you think biases are manifested in AI systems?
Maksad Donayorov
Right, so bias could essentially enter any AI system at multiple levels. There's not a specific area where bias could enter, but there are essentially multiple levels. It could be as far as to problem formulation.
Imagine you haven't even created an AI model and you are just defining the problem. It is essentially possible that bias could enter at that level. What that means is that there is a concept called proxy bias.
To give you some example, let's say we are trying to do predictions for healthcare need. To do that, let's assume hypothetically that we have only data for how much patients spend on healthcare. So essentially what we are doing is we are taking that data and we are trying to do predictions for healthcare need.
What we are essentially doing is we are already formalising the problem in a very bias-prone way. We are trying to define it so that we can use healthcare spending. Because it turns out that traditionally people who have more wealth, more rich, they will spend more money on health.
And people who are low-income families, they will be spending less. So essentially we define the problem already before implementation and anything, just formalising the problem. It already is having very high prompter bias.
Then of course there are other stages. Let's say they could be data collection and processing. They could be model design.
It could be fine-tuning and probably worst of all, if you have a model that is essentially doing predictions based on its own past prediction. This is something called feedback loop. In the data collection process, you could have things like unbalanced data, over-representation of certain individual or communities or certain essentially aspects.
And you might have under-representation of certain aspects. You could have things like annotated bias. So all the data sets that we use to create AI models, they are either somehow annotated by human or in some cases they are annotated using algorithms.
So you essentially could have that kind of annotation bias within the model itself. And of course, the kind of more traditional is the historical bias. It could be things like segregations, people have been treated differently, discriminations and so forth.
And that could essentially enter into the data collection and pre-processing. And once you do the model training itself, the choice of algorithm could also be like certain algorithms could be more prone to bias versus others. And like with the large language models, what you have is that you have a fine-tuning process that is done based on human feedback.
And essentially that could also create that huge subjectivity and bias towards certain things. And imagine like if you are having this LLM deployed in certain region versus other, but then you are fine-tuning it for the entire world. And then majority of your human feedback is coming from specific demographics.
Then you also have that kind of like unbalanced data issues. As I already said, like the feedback loop is probably the worst. When you have a model that is actively learning, it does predictions and humans do not really question that prediction.
And then they use it to do decisions. And based on those decisions, they probably will aggregate and create more data. Then that data is fed back to the AI.
Then AI does more predictions based on like biassed data and the bias, which could be like a small problem, could compound to much bigger issues.
Maritie Gaidon
Yeah, I think feedback loop is quite fascinating, this concept. And once you explain it like it makes real sense, you will certainly have a chance later in other questions to mention it. But like human feedback definitely is not neutral.
And I think it really relates to the other question that is like the accountability of AI system and what challenges in your work you have already identified that make it difficult to hold this development and use of AI system accountable.
Maksad Donayorov
Yes, I think the biggest issue with AI is that it basically breaks this traditional, let's say, legal institution or technical boundaries. We would consider, let's say, the latest development in AI, especially large language models, they could have like billions, if not trillion parameters. That makes it really, really complex to hold either the AI accountable or the developer.
Let's say if you are thinking about the traditional machine learning models, statistical models, they are usually much more confined, much smaller, and much easier to control and also see and explain how the decision is made and so forth, right? But if you are using a very complex deep neural network, that in itself is a black box. So then the question of how do you hold accountable the developer or even the user becomes really complex.
Now, to give you some perspective, there's an entire supply chain and it's a complex distributed supply chain in order to make these complex AI models available for us, right? It goes all the way to data collectors. It goes to experts in creating base and foundation models, to fine tuning labs, to things like cloud infrastructure, and even AI developers, right?
But now I think the biggest risk is then if you have this entire section happening and now you have technical developers, software engineers, who are also becoming much more reliant on AI generated code or AI generated solutions without really looking into the complexity of the issue, then that becomes even more complex. In order for you to essentially hold anybody accountable in a traditional sense, essentially, or in a legal sense, you really have to establish that legal liability base, right? And for you to do the legal liability base, you really need to understand the causation.
I could say, okay, you cannot deploy this model or you cannot use this model in specific area because it has these limitations. And for me to do that, I have to be able to understand the limitations of the models, right? And in order for me to understand it, I really have to have access to the entire pipeline.
But now think about it like the lack of transparency and lack of auditability. Then you have a growing secrecy around the AI models. So it makes it really hard to do the auditing itself.
Essentially, what we are doing is we are holding these AI provider companies or parties. We are saying that we can essentially rely on what you are saying. And we can just take your word for it without having an actual system.
And then now think about like the new tendency of agentic AI models that could make decisions or they could take actions completely independently and they could be quite unpredictable and undeterministic. So the accountability becomes probably quite hard and really complex to solve.
Maritie Gaidon
I like your point about the fact that now some machine can also take decision. I mean, it's really hard to say, okay, the company is accountable. The company has made this security mistake.
And also, I think your point of like nobody has the full perspective is really important because if you use something that you don't really understand, also because you don't see everything. So you don't have the capacity to understand everything. I mean, the limitations are huge.
Okay. And my next question will be, what are the most effective ways of mitigating bias in AI in the security sector? And with what you have said before, it's like, okay, it's not even the machine themselves bias apparently.
Maksad Donayorov
I guess the question is probably more formally the question, not just in the security, but in a just broader phase. Right. And I think this just goes back to like the fundamentals.
And these fundamentals are very well taught in academia and universities and other like essentially communities. And the ideas are also not new back decades. You know, essentially the goal is to really understand your data and really understand where the application of that algorithm model or AI is.
But if you are really trying to do it within the security framework, you really have to look into the data creation, the algorithmic debiasing, and then having some human in the loop. You have to ensure that there's constantly auditing happening and you really need to have transparency around the algorithm and some level of governance. Essentially for the data curation, this could be things like systematic and social issues, things like over policing problem, like you essentially send the patrol to specific area and then the police basically detects more issues in that area.
Then it reports back to the AI model and the AI model uses that data to send more patrol. And if you have more patrol, it will create more data and so forth and so forth. So to essentially find this gap, you have to have some transparency explainability mechanism built around the model.
And when we talk about like algorithmic debiasing, you have to have definitions of like fairness and mathematically essentially calculated. The fairness definition itself is quite broad and it could probably change from one area and domain to another area. But another approach could be having a parallel model that is trained alongside the model that does the prediction.
And that parallel model is trying to detect any kind of protective attributes, things like age, race, nationality, and so forth. And you could essentially try to reduce the model biasness in those scenarios. We already talked about like explainability.
There are a lot of open source tools that you could build around the model. But I think this issue of like governance auditability and so forth and really understanding when is it a time to take the AI model down because these are also like pretty complex and very, very expensive solutions. So I think they kind of like having that governance body to say that, okay, now the problem has become much more worse than we thought and we probably have to take now some actions.
Maritie Gaidon
And when you talk about like calculating fairness and you have also given the example of feedback loop, how is it really possible to calculate fairness?
Maksad Donayorov
Oh, that's a very good question, but I have no idea. I think this is more for people with social studies and interdisciplinary with the technologies who are building the AI model. And I think the problem and also the setup of that thing has to be also studied.
It's not only for the AI developers and the engineers to define like what is the fairness mathematically, but I think it's also like, okay, what kind of implication it could have in society such a system is deployed and what does it mean if you would define, let's say, fairness this way or the other way?
Maritie Gaidon
Thank you. And you have worked actually with DCAF on an interactive tool to demonstrate the danger of bias in AI system, such as the use of AI in predictive policing. So what are your key insights?
You know, what the key insights will be useful for listeners to understand this risk?
Maksad Donayorov
Yeah, I think the hardest and also the probably most important thing is to make these complex ideas as intuitive and simple as possible so that they are accessible to general public without going into the buzzwords and without going into the technicalities, but being really able to speak to these like complex things in the social framework and trying to make it as simple as possible, as clear as transparent, so that we can talk about these issues much more broadly.
Maritie Gaidon
At the beginning, you mentioned feedback loop. When you're just looking at all the algorithm and how you get there and so on, it's complicated. So can you explain to our listeners what is a feedback loop?
Maksad Donayorov
Yeah, I think this is like well documented in multiple academic research, one of which was, and this is based on which I created this interactive example. Essentially, it was a practise in Chicago where they were deploying police in different region and the patrol would essentially use whatever observed data they have, and then they will inject it back to the AI. And the AI would say, okay, now I see that this region has less crime or less kind of like police reporting happening, but this region has much more police activity happening.
Now, let's go to the question of like the feedback loop itself. So imagine you have an AI model that basically just takes one single data point. It says that, okay, I have, let's say, 20, 30 areas within a city or municipality, and I can see that there's a lot of activity happening in this region versus that region.
And by activity, we mean any kind of police reporting. So that means that, okay, we, as a police department who has quite a small resources and patrol cars, we have to decide where our patrol car should go in order to effectively police the city. So now you have a model that promises to kind of optimise and make things much more easier for us for the decision making so that we don't have to look into all kinds of things.
And we say, okay, like this AI model tells us that I need three, four patrol car in this specific area. Now, what happens is that as the time passes, there is going to be more reporting happening from those particular area. But because you haven't sent the police to the other areas, there's no reporting, meaning that the AI doesn't really see the true data.
All it sees is that what has been reported. Now, imagine that you are doing the next iteration of the model, or even worse, if you are having this automated retraining and fine tuning of the model. And then you're injecting that data back to the AI to do new predictions.
So it turns out that after like half a year or one year, you are going to have a very, very segregated area where certain areas are over-policed and other are under-policed. And this is essentially the feedback loop problem.
Maritie Gaidon
Thank you very much. That was my last question. So I again want to thank you for joining the podcast today.
I think this discussion is a good reminder that building good AI starts with many, many factors and at the roots. It's not just about creating laws for protection, as you mentioned. Yes, governance is important, but it's also about like transparency, be sure that audits have been done, that different factors have been taken into account.
So I think it's really important. Thank you very much for your insight.
Maksad Donayorov
Thank you.
Maritie Gaidon
I'm back for the second part of the show, in which I share two resources related to today's episode topic. As always, you can find additional resources on the episode page at dcaf.ch. I'll start with a resource from our guests. It's a report on bias in algorithms.
The fact that AI is everywhere and affects everyone underlines the need for technology to be regulated. This report takes a closer look to help understand how algorithms really work. I have to warn you, this report is more than 100 pages long.
So it's definitely not for beginners, but rather for those who want to delve deeply into the topic. Remember the feedback loops that Maksad Donayorov has mentioned in the show? There is a whole section dedicated to them, covering the challenges linked to the use of predictive policing and how to address these feedback loops, among other things.
It also includes lots of other resources in its sources and further reading section. The second resource is an interactive demo created with the support of DCAF. It's called When the Data Fights Back.
What is really nice is the interactive nature of this tool. You will access two case studies. One focusses on predictive policing and the other on border security.
For each case, you can access several variations of the scenario via buttons. You will see how a system built to be fair and neutral can harm fundamental rights on a large scale. And that's all for today.
If you like the show, please share it with a friend and subscribe to be the first informed of the next episode. Please share it with a friend or leave us a review on your preferred podcast platform. You can find out more about DCAF on our website and our social media channels.
We also have a monthly newsletter that shares the latest resources. Don't miss the next episode of Shaping Security. Thank you.