Latest / The FIT4Privacy Podcast | Exploring ISO Standards AI Privacy | Grow Skills Store / How to Evaluate AI You Can Trust E166
Transcript
- 0:00AI is machine that are good at making guesses based on data.
- 0:08In fact, this is the answer. So I was doing the AI Literacy
- 0:12for Kids programme in January at my local library and this is the
- 0:17this is the definition I gave to the kids in AI evaluations.
- 0:21What we are trying to do is we're trying to use different
- 0:25techniques, different methods or methodologies to catch those
- 0:31issues and also to understand the behaviour patterns of AI for
- 0:37traditional software. When we do testing, we're
- 0:40testing the logic written in the code.
- 0:44Hi, my name is Punit Patia and you're listening to Fit for
- 0:47Privacy podcast where AI meets privacy.
- 0:50This is not legal advice. Thanks for listening.
- 0:54How do you evaluate AI? Yes, we talk about AI being
- 0:58responsible, AI being compliant, AI being relevant, AI being
- 1:03private, AI being ethical and so on.
- 1:06But how do you make sure? How do you evaluate that?
- 1:09AI is compliant, AI is good enough, AI is fit for purpose?
- 1:13Well, that's a very interesting question.
- 1:15And for that, we have a very interesting guest, Stella Liu,
- 1:19who's going to guide us on how to evaluate AI.
- 1:22And as we discussed that with her, do take advantage of the
- 1:26fit for privacy consulting and visit Grow Skills dot store and
- 1:32take a look at ISO related trainings, EU regulation related
- 1:36training. We talk about AI.
- 1:38You can learn about ISO 42,001. You can be a certified AI
- 1:42professional, you can be a certified AI risk manager and
- 1:46also visit our new website www.fitforprivacy.com.
- 1:51For now, let's go and talk to Stella.
- 1:54Hello and welcome to another episode of the Fit for Privacy
- 1:56podcast. And today we are with Stella
- 1:58Liu. Stella, welcome to Fit for
- 2:00Privacy podcast. Thank you for having me.
- 2:04It's a pleasure to have you and I'd like to start with a very
- 2:07basic question. How would you define AI?
- 2:11Because you do so much work in AI.
- 2:13But I like to see in a few words, how do you define AI?
- 2:17Yeah, I have a very high level answer for that.
- 2:21So AI is machine that are good at making guesses based on data.
- 2:30In fact, this is the answer. So I was doing the AI Literacy
- 2:35for Kids programme in January at my local library and this is the
- 2:40this is the definition I gave to the kids.
- 2:43That's a good one, the machine that makes kisses.
- 2:46And I think in future people expect a lot of things from
- 2:50them. But that's in future, not now.
- 2:52And that future is what the media scares us about.
- 2:55There are lots of challenges that are associated with AI,
- 2:59Yeah. And the challenge, one of the
- 3:01challenges companies are facing or people are facing is how do
- 3:06you identify or evaluate if it's trustworthy AI, responsible AI,
- 3:12ethical AI, or in the legal partners we say compliant AI.
- 3:16So do you have methodology guidance on how can anybody, if
- 3:23they want to check a certain compliance, maybe say with the
- 3:26EUAI Act, maybe say with ISO 42,001 or NIST AI framework or
- 3:31any of the other responsible AI frameworks, how would they go
- 3:34about it? What should they start with?
- 3:37Yeah. So this is definitely a
- 3:39challenge that we all face in the industry today.
- 3:43Again, like going back to the definition I just gave, because
- 3:47AI is machine making gases, it means it is non deterministic.
- 3:53And what that entails is it can sometimes it makes good gases,
- 3:58but occasionally it makes bad gases.
- 4:01And in AI evaluations, what we are trying to do is we're trying
- 4:05to use different techniques, different methods or
- 4:10methodologies to catch those issues and also to understand
- 4:18the behaviour patterns of AI before it goes into release to
- 4:24help us and doing all that to help us understand and predict
- 4:28what AI will perform in production.
- 4:31So I would say that is what we try to do with AI evaluations.
- 4:36And this field, AI Eval is still very new.
- 4:40So a lot of the practises are still taking shape There are I
- 4:44wouldn't say there is a very clear consensus on best
- 4:50practises yet again, because it is very new, but from since like
- 4:552022, since the since the introduction of ChatGPT.
- 5:00I have been working in this field for several years now and
- 5:03we from my experience and from the work that I have done in
- 5:07this field, there are some like best practises and practise
- 5:11practical tips that I share with the community with people who
- 5:16are working on AI emails. And you mentioned like for
- 5:22compliance and that is definitely a big part of AI
- 5:25emails today. And besides, like, besides
- 5:29compliance work guardrails in AI emails that we check for,
- 5:33there's also a lot of evaluations that we do to, to,
- 5:40to try to assess the quality of the product.
- 5:45So for example, if we have a customer support bot for a, say,
- 5:51a insurance company, then what is this chat bot is expected to
- 5:56do? All that should be defined in
- 5:59the product requirements document, not just what it is
- 6:03supposed to do and what it is not supposed to do.
- 6:07And all those should be defined in the product requirements
- 6:10document. And for us who work in AI evals,
- 6:15our role is to work closely with the product team to translate
- 6:19that into quantitative and also repeatable measures, again to
- 6:24help us predict how the product is going to perform in
- 6:27production in the real world. So essentially what I understand
- 6:31is AI evaluation is not just about post product deployment,
- 6:36it's also about working with the teams of the design and
- 6:40requirements phase and being ready to demonstrate everything
- 6:45that you need in the end. So it's not a post check, it's a
- 6:48pre engagement, pre conversation that you have.
- 6:51Yes, and that is a great point. I would say there are three
- 6:55different use cases that I see of AI evals during the product
- 7:00development cycle. 1 is what I call evaluation driven
- 7:05development and that probably raised a bell has very similar
- 7:08to what we are familiar with test driven development and it
- 7:13is the same concept. So like why we have test driven
- 7:17development for traditional software, we need evaluation
- 7:22driven development for for AI products because AI products
- 7:28again because it is non deterministic, it is a checking
- 7:33or understanding the behaviour pattern, it can be extremely
- 7:37challenging. So we use evaluation metrics as
- 7:42our compass during the product development cycle from iteration
- 7:48to iterations to help us identify where we should
- 7:52improve, where where we should adjust or update the design.
- 7:56So that is evaluation driven development.
- 7:59I would say AI evals is also, and this is probably the most
- 8:03common use case for AI Evals is right before release.
- 8:07We want to run the series of cheques just like what we do in
- 8:11software testing. We do AI evaluations to help us
- 8:15make release decisions. So basically it helps us to
- 8:19answer the question of whether this product is ready for
- 8:21release. So that is the second use case.
- 8:24And then once the product goes live in production, we still run
- 8:31AI evals as like CICD cheques and also as like regression
- 8:37tests whenever we need to make changes or make updates to the
- 8:41products where whenever we, for example, want to switch to the
- 8:44latest model from our model provider.
- 8:49And now evaluating AI can mean multiple things for people.
- 8:53If you, if I talk to you, it'll be different.
- 8:57If I talk to some tester, it's all about testing.
- 9:01That's what they consider AI evaluation.
- 9:03If I talk to a compliance colleague, he or she would say
- 9:06it's about controls or compliance with policy.
- 9:10So is all of that AI evaluation or do you define it slightly in
- 9:15a a separate way? Yes.
- 9:18So in my definition, I would say all this are AI evaluations and
- 9:22I come from a background of applied science and data
- 9:26science. So to me maybe I'm more looking
- 9:30from the angle of what methodology or what technique we
- 9:34use. So in that sense all this are AI
- 9:37evals, which I I interpreted as using scenario based testing to
- 9:45probe the products behaviours. And it has different, it can be
- 9:51used for different types of evaluations.
- 9:53And I think that goes back to the different, different, how do
- 9:58I call it like a different purpose of evaluation like for
- 10:01compliance or for quality cheques?
- 10:06That's right. But now earlier when we were
- 10:10developing machines, as you said, machines that can guess.
- 10:14So when we were just building machines or software, it was all
- 10:18about software testing. Right.
- 10:21Nowadays and of course then came the word compliance, privacy and
- 10:25so on and so forth. And then came governance, data
- 10:28management and so forth. But with AI we are extensively
- 10:31talking about, it's very challenging to evaluate if it's
- 10:35responsible, it's trustworthy, it will do the right thing, if
- 10:39it is not biassed, if it is fair and all those things.
- 10:43Now, why in your view is it's so complex with the same IT
- 10:47software but it's a little bit more advanced?
- 10:50Yes, and that is a great question.
- 10:54The gap that I see in today's practise from many teams is that
- 11:00it requires doing AI evals, requires a mental model shift
- 11:04from developing tests or testing plans for traditional software.
- 11:09So like for traditional software, when we do testing,
- 11:14we're testing the logic written in the code.
- 11:18So we're testing whether the code is written correctly.
- 11:22If I if, if I simplify it. But in AI evals, of course, we
- 11:28still need to do like for AI systems, we still need to test
- 11:32the, the like the code itself. But what it what differs from
- 11:36traditional software is that with AI systems today, we're
- 11:40also again like probing the behaviour of AI models.
- 11:45So it may be just one line in the code that like now call this
- 11:50model and get inference. And that one line has no logical
- 11:56flaws. But the model itself, because of
- 11:59the non deterministic nature of generative AI, we need to test
- 12:06it. We need to test its behaviour
- 12:09pattern and your different scenarios with.
- 12:13Maybe I can give a simple example.
- 12:15Say I ask a chat bot and again, like I use chat bot as an as an
- 12:21example here, but AIA fails is not only for tax only
- 12:25applications, It also works for it also very much needed for
- 12:30multimodal yeah applications. But again, coming back to the
- 12:33customer support chat bot example, I can ask it say I want
- 12:39to track the status of my order for on this e-commerce website.
- 12:47I can ask the the the question very in a very straightforward
- 12:50fashion. And I expect this chat bot to to
- 12:54give me an answer, give me a correct answer.
- 12:58But in AI evals only testing with that only one scenarios is
- 13:03not enough. I also want to test this
- 13:07question but with slightly different phrasing or framing.
- 13:12And I want to test that if with like different variations of the
- 13:16sick question is the AI chat bot is still able to give me the
- 13:20correct answer. And again, like this is this is
- 13:23one of the simple examples with AI evaluations that you can
- 13:29imagine with different user paths, with different use cases,
- 13:35there can be many different scenarios that we want to and we
- 13:41should test with AI systems and AI products.
- 13:46And I would also like to add that it is challenging because
- 13:50it is almost guaranteed that we will never get 100 out of 100
- 13:56because again, AI is non deterministic.
- 14:00Yeah, when we talk about evaluations or evals, I read
- 14:07somewhere wherein you posted a few weeks ago saying evaluations
- 14:12without analytics means you're guessing what users actually
- 14:15experience and analytics without any evaluation means you're
- 14:20debugging. In production, you need both and
- 14:23most teams have won. Would you like to elaborate on
- 14:27that concept that you posted a few I think or talked about a
- 14:30few weeks ago and of course you talk about in your courses?
- 14:34Yes, and thank you for bringing that up.
- 14:36That is what I have been advocating for in the in the AI
- 14:40community. I would say in a little
- 14:44background of that, I would say before 2025 very few people were
- 14:49talking about AI emails. We were all in the hype of AI,
- 14:53We're still in the hype of AI. But at that time, I think it was
- 14:56mostly let's, let's just build it and ship it without doing a
- 15:01lot of cheques. And then I would say in 2025,
- 15:05more and more people realise the importance of AI evals and many
- 15:09more teams are doing that. Switch is great, but the I'm
- 15:14I've been advocating for don't just rely only on evals, but
- 15:18also doing analytics. And the reason for that, I have
- 15:23analogy for it. So testing artificial
- 15:27intelligence is actually surprisingly similar to how we
- 15:31test human intelligence. So how do we test human
- 15:34intelligence in schools? We design all those like
- 15:38standard tasks like GRE or like SAT tasks for students.
- 15:45And those standard tasks are actually very similar to AI
- 15:50evaluations in concept, where with like if we think about test
- 15:56for human for students, each, each test is like a set of
- 16:03scenarios where test set in AI emails.
- 16:07And we ask the human, we ask the student to answer to each one of
- 16:10them and we check to see if they, if they understand the
- 16:15concept, if they, they are able to give correct answers.
- 16:21But all that standard task is actually a proxy to what this
- 16:26student or how the student would perform in real world tasks.
- 16:33And to me analytics is like the performance review we do when we
- 16:38enter corporate, when we are doing like real world jobs for
- 16:44real world tasks, the AI evals before most because most of the
- 16:50AI evals is down pre release. So all those tasks, all those
- 16:55standard tasks that we develop is our best guess of what this
- 17:01products would encounter in production or in real world.
- 17:06And that is again it reflects the product teams understanding
- 17:15of what the user needs. But as we all know that is
- 17:20different from what how users use our product for.
- 17:24This is also true for even like non AI products.
- 17:28So analytics is the monitoring and feedback system in
- 17:32production. Now we have users using this
- 17:34system. Now we have seen how users are
- 17:37using it and there must be like edge cases where like different
- 17:41user paths that we didn't expect before release.
- 17:44And now with all that information, let's check and see
- 17:47how our product behaves in production.
- 17:50And let's make iterative updates to our product based on that
- 17:56real world, real user feedback, using analytics of course.
- 18:01OK, that makes sense. Now I have no of course it is.
- 18:06It's very clear. And the example of a class
- 18:09evaluation makes sense for the analogy.
- 18:12But I'm tempted to ask, in all these evaluations, what's your
- 18:16view on using synthetic data? Because you have data which can
- 18:21be biassed, but you can create synthetic data which probably or
- 18:24hopefully is not biassed. So what are you an advocate of
- 18:27using synthetic data or are you against it?
- 18:29What's your view? Excellent question.
- 18:33I also posted a lot about that on LinkedIn and also in myself
- 18:36Stack newsletter. There are, I would, I would say
- 18:40there are, I would say it depends.
- 18:44So there are scenarios where cases where we are building the
- 18:52product to solve an existing issue or existing challenge.
- 18:59An example of that would be again like using our customer
- 19:02support bots example. Let's say we want to build this
- 19:05customer support chat bots for this e-commerce company.
- 19:10And before we build all this product, we actually already
- 19:13have a call centre at the company and we're trying to use
- 19:20this chat bot to reduce the workload for the call centre.
- 19:24If that is the case, then we already have reached data
- 19:27collected in the past that we can use to test the chat bot.
- 19:32I can use the for example, like the incoming inquiries or I can
- 19:37even use the call centre transcripts and I can extract
- 19:43different scenarios and user queries or inquiries and use
- 19:47that to build the test set for for the chat bot.
- 19:53So in that case, this is not synthetic data.
- 19:56It's not. It is based in true true user
- 20:01data. So I would say for use cases
- 20:04similar to this, if you already have data collected then
- 20:07definitely use that, use that seed data instead of using
- 20:11synthetic data. But there are also cases where
- 20:15we are Co starting meaning we don't have data collected from
- 20:19the past. Then in those cases we will have
- 20:23to rely on synthetic data. But I would say we should also
- 20:30we, we should not blindly rely on synthetic data.
- 20:34And I will talk about why in a minute.
- 20:37The my recommended approach to costar problem is that work with
- 20:44the product team closely with the product manager and the UX
- 20:48and also the stakeholders to map out the critical user paths of
- 20:53the product. And for each user path, what is
- 20:57the what we call like if it is in in software testing, we call
- 21:03like normal case which is the happy path and we also have
- 21:07alternate path which is the unhappy paths.
- 21:10So start from there, map it down.
- 21:14And then once we have that list of different scenarios, we can
- 21:19use AI, we can use LLM to augment from that and then we
- 21:24can build a synthetic data set from there.
- 21:28So although we're still relying on AI on LM to generate this
- 21:32exact data, but there is it is grounded in the process design
- 21:38and grounded in like don't for example, domain knowledge from
- 21:42stakeholders for subject matter experts and use that as a much
- 21:48more responsible and reliable reliable way of building test
- 21:53set as opposed to just like PROMPT and LLM that asked it to
- 21:57generate a synthetic data set. And the problem with over
- 22:04relying on synthetic data is because we have this what we
- 22:11call preference leakage problem with synthetic data.
- 22:17And an example of that is, for example, I'm using a model from
- 22:22Open AI for my AI product. And I use, let's say I use
- 22:29another model word, the same model from Open AI to generate
- 22:35the test set. Then I'm almost guaranteed to
- 22:40get a good score from that testing because of this like
- 22:44preference leakage issue that has been discussed a lot in in
- 22:49research community academia. That's an interesting way of
- 22:54looking at it, because I usually look at it anything that's
- 22:59generated artificially synthetic data.
- 23:01But you seem to make a difference between when you
- 23:04don't have any baseline data and you generate data that's pure
- 23:07synthetic data. But when you have customer data
- 23:11and maybe you want to protect that data and you don't want to
- 23:14use that production data into testing, you generally use that
- 23:17to synthetically generate data. You differentiate it slightly.
- 23:21You don't call it pure synthetic data if I understood well.
- 23:25Yes, yes, we all have our definitions slightly
- 23:29differently. The difference I draw there is
- 23:32whether there is new information coming into that data generation
- 23:37process. Where are we just relying on the
- 23:39model to generate synthetic data?
- 23:42Yeah. But it's good to have that
- 23:43bifurcation for the segregation. So you talked about being
- 23:48responsible and being responsible also has two or many
- 23:51other dimensions, but 2 broad dimensions of protecting privacy
- 23:55and also being ethical. So in the AI events that you do,
- 23:59how do you take care of these two dimensions, being ethical
- 24:02and being respectful for privacy of individuals?
- 24:06Yeah. So when we talk about like
- 24:10ethical use of AII would say the first few evaluation metrics
- 24:16that come to mind are bias and also fairness.
- 24:22In my definition, that would be some examples of the key metrics
- 24:26that we use to test ethical use of AI.
- 24:31And there are many different ways to test bias and fairness.
- 24:35And we also talk a lot about like privacy with AI.
- 24:40And one big topic in that space is PIL leakage with AI products.
- 24:49And do you then look at just privacy by principles
- 24:55perspective or also going to the dimension of legal compliance
- 24:58with say the GDPR, the CCP or other dimensions?
- 25:04For the applications that I developed, yes, I also looked
- 25:07into like the regulations and the policies and that has been
- 25:11the challenging part not just for me, but for everyone who is
- 25:14working on AI evals today. I, I live in the US and the
- 25:21applications I develop or evaluate are for mostly users in
- 25:27the USI would say right now at the federal level, we haven't
- 25:34had a lot of like guidance on like privacy or regulation or
- 25:38compliance for AI products. There has been where there have
- 25:44been more state level initiatives try to lay out like
- 25:51the guided guidelines where regulations where compliance
- 25:54requirements for AI products. We have an AI act from Colorado,
- 26:00we have an AI act from California.
- 26:03And also interestingly, although we don't have a federal
- 26:07guidelines, the current administration they issued, I
- 26:11forgot the exact name of that document, but basically that it
- 26:17says that for for federal government procurement, it
- 26:23requires the vendors to to for example, like submit their
- 26:29evaluation results as part of the procurement requirements.
- 26:36So I would say that is on the regulation side of things.
- 26:40But even without clear signals or guidelines, every company is
- 26:45also doing their own regulation cheques.
- 26:48I work in education tech, so a lot of the applications we
- 26:52develop are for students and there has already been policies
- 26:59or regulations for student facing applications for for
- 27:04education for use cases in education.
- 27:07So in the US Furpaw is a big one.
- 27:10And we also have like different policies at at universities.
- 27:17I can give an example. Well, maybe taking one step back
- 27:22for Inferpa Pi is also an important, it's also a focus and
- 27:28we do a lot of that. But in addition to that, there
- 27:33can also be policies like for example, in a, in a, in a
- 27:39educational setting, If I developed a chat bot that is
- 27:44student facing, and if I see student expressing, for example,
- 27:50suicidal thoughts when interacting with this chat bot,
- 27:53what do we do? What are the responsibilities
- 27:57not just for the university, but for admins?
- 28:00What are our responsibilities? So a lot of that again, this has
- 28:04been a challenge for, for for everyone in AI community because
- 28:11it is hard to generalise. So in when I work on that, I go,
- 28:19I basically go through all the policies at the organisation and
- 28:24I check how we can quantitize each one of that and whether
- 28:30each, for example, like prohibited use can be translated
- 28:34into an evaluation metric. And that is not something that
- 28:39you would expect a applied scientist to do.
- 28:41But that is what we are doing today in order to do AI emails,
- 28:44right? Oh yeah, that's interesting.
- 28:48Now coincidentally, AI Evals is also the name of the brand of
- 28:54the company that you are associated with.
- 28:57So tell us about AI Evals more as a company rather than AI
- 29:01Evals as a process or activity. What does AI?
- 29:05What is AI Evals? What is it about?
- 29:07Who does it serve and what's your mission?
- 29:10Yes. So myself, I have been working
- 29:14on AI Evals since 2023 and starting from last year, I
- 29:18founded this organisation called AI Evals and Analytics.
- 29:23And the goal of this organisation is to set up the
- 29:29best practises in this space and also provide training to
- 29:34individuals and consulting services to companies who need
- 29:38to do AI Evals for whether it's their internal AI products or
- 29:44help them to assess external AI vendor solutions.
- 29:49That's good to know. And now if anyone based on this
- 29:54conversation that we had wants to talk about AI evals either in
- 29:59context of your work or in general, or maybe wants to reach
- 30:03out to you, what's the best possible way?
- 30:06Yeah, I would say the best way to find me would be lichting.
- 30:10So my name, yeah. So search Stella Wenxin Liu on
- 30:15LinkedIn and you can also check out our course on Maven through
- 30:20ai-evals.org. That is AI-E Val s.org.
- 30:29That's very nice of you to share your thoughts.
- 30:32And I didn't realise we, we have completed the time also and we
- 30:37have had a very good conversation.
- 30:39So Stella, thank you so much for your time.
- 30:42It was wonderful to have you. Thank you, it was great chatting
- 30:46with you. Thank you for joining us on the
- 30:49Fit for Privacy podcast. We hope you found today's
- 30:52conversation valuable and thought provoking.
- 30:54Subscribe for more insights like this.
- 30:56If you enjoyed this episode, we'd appreciate that you'd share
- 30:59it and write us a review. For consulting, visit
- 31:02www.fitforprivacy.com. For certifications and training
- 31:07on ISO standards, visit www.growskills.store.
- 31:12You can also contact us for bespoke training for your staff
- 31:15and management. Until next time, stay safe, stay
- 31:18compliant, and grow your skills.