There are a lot of reasons why we should do AI evals. For many companies doing AI evals is the way to build the feedback loop into the product development lifecycle. So it is like your compass. We’re using AI evals as a compass to guide product development and also product iteration. And also, many times we need evals to function as the pass or fail gate in release decisions. Whether this product is good enough for release or whether it is good enough for experiment, evals are also used in that.
Stella Wenxing Liu, Head of Applied Science at ASU, and Eddie Landesberg, Staff Data Scientist at Google, join Hugo to talk about why AI evaluation is evolving from “vibe checks” into a rigorous, multi-disciplinary science and how causal inference will take AI evals to the next level in 2026.
Vanishing Gradients is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.
They Discuss:
* Team-Centric AI Evals, integrating product managers, data scientists, and SMEs under a “benevolent dictator” (or not!) to ensure comprehensive and effective evaluation;
* Custom Evaluation Metrics, moving beyond generic vendor metrics to analyze raw data and identify specific failure modes, avoiding generic product outcomes;
* AI as Policy Evaluation, framing AI evaluation as a causal inference problem to estimate counterfactual performance of new “policies” (prompts, models) and predict online AB test outcomes;
* Clear Product Constraints, defining what an AI product should not do with strict guardrails to prevent misuse, control costs, and avoid brand dilution;
* Calibrated LLM Judges, statistically aligning LLM-as-a-judge with human experts using causal inference to ensure valid proxies for human welfare and business objectives;
* Essential Data Curiosity, fostering a culture of manual data inspection to build intuition before relying on automated error analysis or agents, ensuring effective system design;
* Statistical AI Evaluation, shifting from unit-test thinking to non-deterministic distributions, using confidence intervals and power analysis to discern genuine improvements from statistical noise;
* Proactive Regulatory Compliance, developing rigorous, defensible internal evaluation standards now to gain a competitive advantage as vague AI regulations move towards enforced compliance;
* Human-Centric Benchmarking, grounding AI systems in human judgment and user values, moving beyond automated scores to build resilient and differentiated AI.
You can also find the full episode on Spotify, Apple Podcasts, and YouTube.
You can also interact directly with the transcript here in NotebookLM: If you do so, let us know anything you find in the comments!
👉 Stella has just started teaching a cohort of her AI Evals and Analytics Playbook course starting this week. She’s kindly giving listeners of Vanishing Gradients 30% off with this link.👈
Our flagship course Building AI Applications just wrapped its final cohort but we’re cooking up something new. If you want to be first to hear about it (and help shape what we build), drop your thoughts here.
LINKS
* Stella Wenxing Liu on LinkedIn
* Eddie Landesberg on LinkedIn
* Stella’s AI Evals & Analytics Playbook course on Maven (30% community discount)
* CJE (Causal Judge Evaluation) package by Eddie
* Trillion Dollar Coach
* Goodhart’s Law
* Upcoming Events on Luma
* Vanishing Gradients on YouTube
* Watch the podcast video on YouTube
How You Can Support Vanishing Gradients
Vanishing Gradients is a podcast, workshop series, blog, and newsletter focused on what you can build with AI right now. Over 70 episodes with expert practitioners from Google DeepMind, Netflix, Stanford, and elsewhere. Hundreds of hours of free, hands-on workshops. All independent, all free.
If you want to help keep it going:
* Become a paid subscriber, from $8/month
* Share this with a builder who’d find it useful
* Subscribe to our YouTube channel.
Thanks for reading Vanishing Gradients! This post is public so feel free to share it.
Get full access to Vanishing Gradients at hugobowne.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01There are a lot of reasons why we should do AI evals. For many companies, doing AI evals is the way to build the feedback loop into the product development lifecycle. So it's like your compass. We're using AI evals as a compass to guide product development and also product iteration. And in some of the regulated industries, for example, like education, the industry I'm in, Evaluations are very important for us because we're also using
it to check whether
SPEAKER_01we're compliant with regulations.
SPEAKER_00That was Stella Liu, AI evals practitioner and researcher, head of applied science at ASU and co-creator... of the AI evals and analytics playbooks course on Maven on moving past vibe checks towards a more rigorous science of AI evaluation. Stella and I recently caught up with Eddie Landisberg, staff data scientist at Google and causal AI guru about the past, present and future of AI evals.
SPEAKER_02Once you move along... the maturity and scale access but starts to look a little bit more like a data science problem data science it's like a multidisciplinary area and so i think that as this matures we realize more and more and a lot of what my work is about bringing kind of statistics and causal inference ai evaluation is that as this kind of field matures we realize that hey this is just policy evaluation this is something that we've been doing
SPEAKER_00for hundreds of years. In this episode, Stella, Eddie and I explore why AI evaluation is fundamentally a team sport requiring tight alignment between product managers, engineers and domain experts to build true user trust. We dive into the emerging discipline of AI policy evaluation, importing techniques from causal inference to treat model iterations like randomized control trials plus plus. Stella and Eddie explained why generic vendor metrics often lead to generic problems. products and emphasize the necessity of manual data curiosity
before rushing to
SPEAKER_00automate feedback loops. We also discuss calibrating LLM judges against human experts, the importance of defining what a product should not do and how robust evaluation standards will become a critical competitive advantage as regulatory requirements evolve. This was also a guest Q&A in our recent Building AI Applications course, which just wrapped up its final cohort. We'll be releasing a few more guest talks and workshops in the near future, so keep your eyes open. Our flagship course just wrapped up, but we're cooking up something new.
SPEAKER_00If you want to be first to hear about it and help shape what we build, there's a link in the show notes to drop your thoughts. Stella has also just started teaching a cohort of her AI evals and analytics playbook course starting this week. She's kindly giving listeners of Vanishing Gradients 30% off. I'll be taking it. So I hope to see you there. Links in the show notes. We also live stream many of our podcasts and free workshops. We would love you to join. Check out the Luma calendar and subscribe to our Substack newsletter and YouTube channel. All links are in the show notes. If you enjoy the show,
the best way to support it is to share this episode with a friend or colleague who
SPEAKER_00you think would get something out of it. I'm Hugo Bowne-Anderson and welcome to Vanishing Gradients. Stella and Eddie, what is up? Hey. Yeah, excited to be here. Yeah, thanks for having us. Long time listener. Yeah, Eddie, you came and gave a guest talk last April in the course on building memory into AI systems and what was essentially... It seems now early ways of thinking about using agents to
encode memory in AI systems, right?
SPEAKER_00Yeah, for sure.
SPEAKER_02Yeah, the last company I worked on prior to my current work, which is more focused on the research and open source software side, was very much focused on long-term memory systems for consumers and consumer data ownership. This was in a time before ChatGPT really had long-term memory. And like many great business ideas, the foundational labs were Introduce a future edit. It becomes hard to differentiate, but I certainly learned a tremendous amount from the experience.
SPEAKER_00Yeah. And it's a good question how well memory operates in frontier lab. Yeah. I certainly have opinions.
SPEAKER_02I certainly have opinions about that, but that's probably not the top.
SPEAKER_00because we'll see if it comes up in the Q&A. Exactly. But Eddie's already talked about a few of the things he thinks about. Eddie was at Stitch Fix some time ago, so worked with Stefan. He now has founded CIMO. Is that how you pronounce it? CIMO Labs?
SPEAKER_02CIMO Labs, yeah.
SPEAKER_00Really thinking about causal inference in evaluation, among other things. And Stella is... So you were at Shopify some time ago. Is that correct? And you've done a bunch of things since then. But one thing is you have a Maven course on evals, which starts next month.
SPEAKER_01Yep. Our next cohort starts next month on the 20th. And the course is AI evals and analytics playbook, where we teach the best practice in AI evals and also how to connect it with real world business impact.
SPEAKER_00Yeah. And so that's something I want to get to at some point, thinking through how we really connect these things to real world business impact. And on top of that, you're head of AI applied science at ASU.
SPEAKER_01Yep. Yeah. People, when they hear my title, they often assume that this is a pure research role, but actually it's a very product development focused role. So we build AI platform here at Arizona State University, and we're also building a platform solution for AI evaluations.
SPEAKER_00Awesome. So I'm excited to hear all about all of that. I've given you both kind of context where we're at in the course, but I'll just, so everyone knows where level set. We had a workshop yesterday on evaluation, something which permeates the course, but really what we went through is how a lot of the time you start with vibes, then you really need to look at your data and do all types of error analysis, categorize your failure modes, and then start building out automated evaluation, whether that be using code checks and unit tests and even regular expressions,
SPEAKER_00string matching, testing for JSON, whatever it may be, or when needed, which often isn't needed, LLM judges. And today, actually, Natalia, one of our buildings in residence, and Ines and Matt and Magda from Spacey and Explosion AI ran a workshop on essentially data annotation for evaluation, among other things. So we've really gone deep into those things. But I would like to start more broadly. We've talked about this a bunch in the course, but I used to spend a lot of time thinking about and working on
AI evaluation.
SPEAKER_00And so I'm just wondering, why do we need AI evals? Why are they important?
SPEAKER_01Who's going to go first?
SPEAKER_02You talk first, so go for it.
SPEAKER_01Yeah. So there are a lot of reasons why we should do AI evals. For many companies, doing AI evals is the way to build the feedback loop into the product development lifecycle. So it's like your compass or using AI evals as a compass to guide product development. development and also product iteration. And also many times we need evals to function as the password fail gate in release decisions, whether this product is good enough for release or whether it
is good enough for
SPEAKER_01experiment. Evals are also used in that. And in some of the regulated industries, for example, like education, the industry I'm in, And evaluations are very important for us because we're also using it to check whether we're compliant with regulations.
SPEAKER_00Super interesting. And that's something that hopefully we'll get into because this is something you teach in your course as well, how you can use evaluation and guardrails to be compliant. I'm wondering, Eddie, what you'd add to this or any other takes that are important to you.
SPEAKER_02Yeah, maybe I'd just describe kind of two categories of motivation. So the first is whenever you're building a system, presumably the company exists for a reason, right? They have some objective that they're trying to optimize. And in terms of making progress toward that objective, it's extremely helpful to be able to have some kind of quantitative measure to compare different decisions. You're considering whether those are different prompts or different models or so on. In order to make progress towards that objective evaluation, is very useful for guiding those efforts.
The second one that I would mention as related but separate is basically the
SPEAKER_02motivation not to embarrass yourself. I think it's, especially with LOMs, there are a lot of kind of failure modes that could be very harmful to the user experience, but are actually fairly low effort to detect and evaluate and avoid for kind of high stakes decisions or making a release to actual users.
SPEAKER_01Not to embarrass ourselves and also build trust with users and clients.
SPEAKER_00And building trust between yourself and the system as well, right?
SPEAKER_01Yep.
SPEAKER_00Stella, who should be doing AI evaluation?
SPEAKER_01Yeah, that's a great question. I think in some teams, we're seeing that the product managers are the only ones doing AI evals, but I firmly believe that AI evals is a team source. So it's not just the PM, but also with data scientists and also with UX designers and also SMEs, subject matter experts, that can be very important. Their role can be very critical in doing effective AI evals.
SPEAKER_00And can I ask you, in this set of product managers, because we touched on this last time we spoke, like I work mostly with technical builders, right? Like data, ML, engineers. And I'm wondering, like AI product managers, are they for the most part somewhat or pretty technical?
SPEAKER_01Yes, I think they are. The AI PMs I worked with are very technical, but I say that AI emails should be a team sports rather than one person job, not because they're not technical. We're not technical enough, but because AI evaluation is actually, it can get, the scope of it can get pretty large. And I think it exceeds one person's capability.
SPEAKER_00Oh, yeah. And I do think SMEs, subject matter experts, and non-technical subject matter experts who have the domain expertise should be able to do AI evaluation. I just don't know how a non-technical PM would even go about doing them at the moment, the tools and technologies and the way these systems are set up. But do you find they mostly use like vendor tools for evals or how?
SPEAKER_01Not necessarily. I think we're still, I would say AI evals is still a very new field. It's still a very new domain. And people who are doing AI evals, they are, I would say in many cases, early adopters. And it would be a hard sell if you just started doing something and you want to buy a vendor solution. So I would say most of the people that I've worked with, where I've talked to, they started without vendor solutions.
SPEAKER_00How about you, Eddie? Who do you think should be doing evals?
SPEAKER_02Everyone.
SPEAKER_00Yeah.
SPEAKER_02I think, yeah, to be able to provide more helpful detail. I think it's so dependent on the stage and maturity of a given project. I totally agree that it's a team sport. And I think that with any kind of like nascent technology and business process, it's good to just experiment and bring different perspectives to the table. But I think that if you're A very early, you're maybe just standing up a demo or you're still very early stage,
right? I think that probably the person that's best suited to thinking about evaluation, whether you want to invest in a structured evaluation at all kind of upfront,
SPEAKER_02I think, again, it depends on the trade-offs. of your domain, if it's a health domain or there's some domains that are more sensitive than others. But I think that the kind of important characteristics are like, you know, someone who has really good intuition for the product has really strong kind of empathy for the user. I think that once you move along like the maturity and scale access, it starts to look a little bit more like a data science problem. I think that, you know, data scientists for a long time, data science,
SPEAKER_02it's like a multidisciplinary area. And so I think that kind of as this matures, we realize more and more and a lot of what my work is about bringing kind of statistics and causal inference AI evaluation is that as this kind of field matures, we realize that, hey, this is just policy evaluation. This is something that we've been doing. for hundreds of years, and A-B testing is fundamentally the same problem. And when I've talked to friends at, for example, OpenAI, what they're really thinking about is like, how do we build our evaluations in such a way that they correlate well,
SPEAKER_02they predict what our A-B tests are going to say. So I would say that maybe just like to summarize the points I'm making here is I wouldn't be too precious about, especially starting out, who should be involved. I think anyone who has an opinion is a good person to, to involve. But I do think that as you build kind of scale and sophistication, it starts to look a little bit more like a data science problem. And so I think subject matter experts still play a role in that, but I think it starts to converge to that kind of data science
wheelhouse.
SPEAKER_01If I can add to what Eddie just said, I think it, again, like it depends for say startup companies, if they're not in a heavily regulated industries and if they're in the first iteration of their product development, then And yes, they could probably just build it and ship it without doing much evaluations because after all, there's not much to lose. But as you iterate with your product, as you build your use base, you want to maintain that trust,
SPEAKER_01trust building exercise with your users and with your clients. And that is when you care more about the quality of the software or of the application that you are delivering. And at that point, evaluation will become more important and you will naturally get more resource and also more people involved in your AI evaluations project.
SPEAKER_02Yeah. Great. You know, what do you think, Hugo? Yeah, I feel like you have, you have good perspectives on all these questions. I think my first answer is. You weren't expecting me to. Yeah. I don't need to interrupt. Yep. Do your thing.
SPEAKER_00I don't know. I firstly, someone who's got the right incentives should be responsible. It should be your job to make sure this product works. So a PM is a wonderful person for that. If it doesn't work, enough times you should lose your job or get another job in the same place. I think making sure that there are benefits and costs in any organization. That's how we set up organizations. And I don't mean to be too Jeff Bezos-y about these things or Taylorist,
but the people who care and the people who have the domain expertise as well,
SPEAKER_00I think. I do think there's a challenge with product in general. There's this whole thing like, A PM is like the CEO of the product or something. And the truth is, that's not true. I mean, PMs have soft power and engineers notoriously challenging to wrangle in a way that a CEO may not have challenges with, right? But I do think the people who care, the people who have the incentives... the right incentives and the people who have the domain expertise. Now, these may be different people as well in a variety of ways.
SPEAKER_00And that kind of segues into what I want to ask you. How do you, when doing evals, let me actually give you an example. Last year, there was someone in the course who they were building out a product at an early stage startup. And the CEO and the CTO were both annotating, giving evaluations of outputs and giving different responses. And he was like, how do I have very different opinions? And I was like, My response was this actually has nothing to do with evals. You're just seeing it come out in evals. What you're seeing is co-founder disagreement and tension emerge in an AI product,
SPEAKER_00which is fascinating. But Schreyer and Hamill talk about having a benevolent dictator for evals, like someone who's the final say on things. I'm wondering how you think about reconciling differences of opinion when doing evaluations.
SPEAKER_01From my experience, I actually do not see a lot of, say, disagreements when it comes to the detailed implementation of AI emails. The more common pattern I've seen is that there is no, how do I put it? No clear definition of the scope of the EA evals or no clear definition of the expectation of the product. Or in other words, the product requirements document these days are often missing
because we are all prototyping and we just move from prototyping to building a solution in production.
SPEAKER_01But a lot of the discussions around what is exactly what this product or this application is designed to do, and also more importantly, what is designed not to do. Those discussions are often happening, I would say, much later in the process where, in my opinion, they should have happened sooner. I love it.
SPEAKER_00I love it. And I think actually, to your point, having a PID, of course, interpretations, we can think we agree on things. And then when details come out, we may not. But having that form of alignment, as I said, the challenge in this situation was downstream of other challenges, I think. So making sure there's as much alignment upstream. Wondering your thoughts, Eddie. I'll just say Carol Willing just put in the chat. Love that Eddie asked Hugo on the spot as well. So keep it going.
SPEAKER_02Got to keep the host artist.
SPEAKER_00Oh, seriously.
SPEAKER_02Yeah. So yeah, I agree with, fortunately, the three of us, I think are probably in agreement on most things, though maybe we'll throw at some curve balls or diversity to keep things interesting. So on this question, yeah, I totally agree with the framing of, hey, it's fundamentally, that's not an eval problem. That's like a two people in a business kind of disagreeing problem. I think there are a number of ways to resolve this. I think it's worth asking, okay, if you have a benevolent dictator, is there any reason to they like update their perspective from observing someone else who's
well-informed that
SPEAKER_02disagrees with them. That might suggest taking an average of the two. And so I think that it depends on the context. I do think that, yeah, at the end of the day, decisions need to be made. That's the reason hierarchy exists in most organizations. So I agree that at the end of the day, there has to be a decider, but I do think that if you have human annotators that disagree, maybe the kind of starting point is not necessarily assuming that one person is right and one person is wrong.
SPEAKER_01Yeah. Yeah. I want to, again, add to what Eddie just said, like whenever Eddie talks, I just have more thoughts to add to that. This is also what we shared in our AI evals and analytics playbook course. It is very important to, for big, for large scale AI products or AI projects, it's important to identify the roles you need on the AI evals team early on. To do that is also help us to understand who owns what decisions. And that will help reconcile some of those disagreements.
SPEAKER_00Amazing. And I love that that's the types of things you cover in your course as well, because we very much focus, we have these conversations, but we very much focus on the building side of things and the building side of evaluation as well. I do want to say something I'm hearing in here as well is finding the best answer that you can, given the information you have. And ideally making sure everyone's on board with that. I'm going to link to this book called Trillion Dollar Coach. I don't know if anyone's heard of Bill Campbell.
SPEAKER_00He was a football coach, I think, and football player who then became a mentor to Steve Jobs, Larry Page, Eric Schmidt, Mark Zuckerberg. That's why this book's called... And the book's by Eric Schmidt and a bunch of those dudes. But the... One thing Bill Campbell always made sure any CEO or any person in leadership position knew their job was to get the best idea and solution out of everyone and
then get everyone essentially to disagree and commit and make sure everyone
SPEAKER_00understands why this decision is being made as well. And I do think we said these things are upstream of evaluation, but I also... evaluation is the business problem as well, right? Yes. Or there's a really important mapping there. So we are here to, we could talk about this for now. We are here to talk about.
SPEAKER_02Yeah, sorry to interrupt. But yeah, it's where I think what's so interesting about it is it's where these kind of like fuzzy kind of organizational dynamics and objectives have to be represented numerically. And so it's the boundary where you're faced with, if you're inconsistent, this is potentially the first place it's really going to show up.
SPEAKER_00So this is, I mean, you've provoked another thought. Do evals need to be quantitative or can they be qualitative? You need to make a decision, but.
SPEAKER_01I think it's both, both qualitative and quantitative. And that is why I think most AI evals start from qualitative evaluations. So from that qualitative evaluation phase, we try to identify like which parts are deterministic and which parts are say, automatable, and we may find some parts that are unquantifiable, and those will remain as qualitative reviews. We definitely want to automate as much as we can. We want to quantify as much as we can,
SPEAKER_01but for some applications, for some AI applications, there will be parts that cannot be quantifiable. I also, Eddie, you mentioned A-B testing when you were talking about open AI.
SPEAKER_00And I actually wanted to clarify something. And perhaps I should have done this earlier. There were all these like eval wars in September or whatever, like August, September on the platform formerly known. is twitter and a lot of people like oh we don't do evals we only do online a b tests and i definitely most people i work with and know consider all of this being part of ai evals but is that the definition you use or do you think more of offline
SPEAKER_02evaluation or i personally think of like whether it's You want to measure kind of the safety and efficacy of a new drug and run a randomized controlled trial, or you're testing the red button versus the green button, or you're testing prompt A versus prompt B. Those are all fundamentally the same problem. Those are all policy evaluation problems. You're trying to figure out, quantify what's the difference between the control variant A and variant B. And so in terms of when someone says AI evaluation, yeah, I think that kind of online and offline evaluation are both
consistent with one
SPEAKER_02another's or two sides of the same coin. In terms of what people use just in common parlance, I think typically when people say AI evaluation, they're referring to the offline version. But I do think that in some respects, that's a shame because people, I think one of the failure modes I see a lot is just like thinking about these, thinking about AI evals as like just unit tests and A-B tests or something completely different. I think that kind of creates confusion and leads to optimizing a proxy metric in the offline evals that doesn't necessarily correspond to
SPEAKER_02business impact.
SPEAKER_01Yeah. And again, I think we can acknowledge that AI evals is still a loosely defined term, and we may all have our own version of the definition for it. But I definitely think that offline evals, online evals and also the experiments all are needed in order to build a successful AI product. But again, if you're an early stage startup, then you may not need to do some of it. You may just go with the pilot or go with the experiment. But in practice,
for most companies, for established companies, for enterprise companies, You want to do offline evals before running A-B testing or running experiments
SPEAKER_01because experiments can be expensive. And you want to reach a certain confidence level before you start doing A-B testing or doing experimentation. And also, again, I firmly believe that AI evals is also a tool that we should use to guide our product development. So in that sense, yes, I think doing offline evals are also very important. The way I see the tool is offline evals is we are using this tool,
SPEAKER_01this AI evals tool to measure the product against our expectation. It's like, Before it meets real user, I think as the product owner or the product team, I think users want the product like this. But that can be different. In some cases, it can be quite different from what real users need. And I think that is the part that we can get answers from is experimentation.
SPEAKER_02Yeah, so I certainly agree with that. Stop agreeing, everyone. Challenge me, Andy. I think it's your, I think it's your fault for inviting you. Exactly. Inviting us. Yeah.
SPEAKER_00Inviting two people with so much, you know, such correlated views.
SPEAKER_02Yeah. Yeah. I think I totally agree that. And I like the way you framed a framing. I haven't really heard is thinking about offline evaluation as what are your, what are your kind of as a product owner, what are your expectations and trying to like, measure against that. And I will say that that's only useful insofar as that actually corresponds to what your users care about. So you're making a big assumption there. That said, and I think this is a big part of why something like error analysis is so
SPEAKER_02incredibly high impact is that if your JSON is breaking, if you have obvious failure modes in your data, right, you understand in a very clear way that is not consistent with what you'd expect of a good product. And you can further, you can make a pretty safe assumption that your users are going to feel the exact same way. When it comes to something more fuzzy or maybe a little more qualitative in nature, like the level of kindness or helpfulness or the tone of voice, that becomes harder just to assert what users are going to
actually care about.
SPEAKER_01And I have an example. Maybe it's an Quite tricky situation. For example, a hallucination rate in writing tools. Is hallucination good or bad for writing tools? It's actually hard to tell. I assume like users, if I were a user of a writing tool, AI-powered writing tool, I wanted to hallucinate to some degree. I don't want the writing to be deterministic.
SPEAKER_00So I totally agree. I also think non-determinism can be a superpower in a lot of places. Deep research is one example, right? And people may have heard me say this before, but if I have a whole bunch of research assistants working on the same project, I don't want them to come back with exactly the same information and reports. I do think hallucination is an interesting question there because I'm like Karpathy's take. If we're not doing retrieval or not grounding in any way, his take is that Every LLM hallucinates 100% of the time.
SPEAKER_00And just sometimes it coincides with ground truth. Whereas search is 100% non-hallucination, pure search, where you're bringing back retrieved chunks. And then what happens in the middle is really the interesting part.
SPEAKER_01Yeah. It's generative AI, right?
SPEAKER_00Well, exactly. Yeah. Yeah. Quick word from our sponsor, which is, well, me. Vanishing Gradients is a podcast, workshop series, blog and newsletter focused on what you can build with AI right now. Over 70 episodes, hundreds of hours of free hands-on workshops, all independent, all free. If you want to help but keep going, you can become a paid subscriber on Substack, starting at $8 a month, or share this episode with someone who'd get something out of it. Links are in the show notes. All right, let's get back into it.
SPEAKER_01I did want to... ask you what the biggest mistakes you see people making with AI evals at the moment
SPEAKER_00are, but I'd like to frame it in a bit more of a fun way, I think. I'm wondering, how would you advise someone at the moment to build like a terrible evaluation system?
SPEAKER_01I can go first. Just use a vendor tool or just use any open source AI evals package and use the built-in metrics to evaluate your AI product. You are good.
SPEAKER_02Fantastic. Just to add to that, anything... Yeah. Basically standing up evals without actually looking at your data. I think that is probably the biggest, yeah. Hypothesizing what matters without actually looking at kind of the interactions that users are having with your system.
SPEAKER_00And do you see that happening quite a bit?
SPEAKER_01Unfortunately, yes.
SPEAKER_00Yeah. I see it less. I do. I mean, I have told people in the course this but when I really try to encourage people to look at their data still 50% of the time they say can I get an agent to do that and the question itself one big concern there it isn't that they may not look at it it's that I wonder why they're building the product if they don't have the curiosity of course once people start looking at it they're like oh that's weird oh that's interesting oh that works right so once they're in go down the
rabbit hole it's
SPEAKER_00tough to get them out
SPEAKER_02Um, yeah, for sure. And yeah, like I, you know, when I was, um, you know, I built a consumer application that grew to a couple thousand weekly active users. And I was just like, um, whatever data I had access to, I was like pouring over it and I was always pushing out changes and seeing how that showed up. And I think that if you don't have that kind of drive to understand what's going on, you're not nervous about how the change you made is affecting the behavior of your system.
SPEAKER_02I think that's a real failure road. And I think that kind of feedback loop of looking at your data and building up kind of your mental model of how are people using this, where kind of the weak points is just absolutely essential to climbing a hill towards a product that people actually want to use.
SPEAKER_01Yeah, and also going back to what Hugo just mentioned, people trying to automate AI evals or use agents to do the work for them. I actually think one of the most important part of AI evals is to understand what can be automated and what cannot be automated. And again, if AI evals can be fully automated or can be fully automated by AI, then we shouldn't have an AI evals problem in the first place.
SPEAKER_02Yeah. Yeah, we should just have completely self-optimizing systems. If they can figure out the objectives and how to measure it, great. Maybe fortunately we're not there yet, so we still have jobs.
SPEAKER_01Yep. Also, I can't imagine that they won't be better than us at gaming metrics as well in the end. Yes, go hard slog.
SPEAKER_00Yeah, exactly. And we see this with all types of reinforcement learning as well where they learn all types of wacky wacky things the other thing to your point earlier Stella about having a good PRD the other failure mode I see is just not having a PRD or specifications or people like hey let's build a retrieval system over everything we have all our docs and wikis and then oh let's make it agentic and multi-hop and then it gets sunset 18 months later because
they haven't been able to measure impact because they didn't even have a goal
SPEAKER_01Yeah, and it's not just the small teams are making this type of mistakes, like teams at big tech companies are also making similar mistakes. I think one recent example I saw was Amazon's Ruffus AI chatbot. So actually in our course, we mentioned in the first session that when you design your AI evals, you need to understand what is the design capability, but you also want to understand what are the constraints. But with this Ruffus bot, It can, it answers any questions from users.
So some people are using it like ChatGPT or Cloud for answering questions that are
SPEAKER_01not related to Amazon or to their orders at all. And yeah, I'm sure Amazon can afford a bill, but it's definitely not an ideal design.
SPEAKER_00Yeah. People have called it FreeGPT. And actually, I think it was that when I saw someone recently was getting to write code for it for them. I... I'm interested, something we've been talking around is the use of statistics. And I'm wondering what people need to know about statistics to do AI evals at the moment.
SPEAKER_02Yeah, I can start this time. You had to start every time. Yeah. It goes back to an initial kind of caveat idea of just around thinking about like the spectrum of maturity and yeah, I think in the early phases of evaluation, I think it's useful to have this framing of, hey, what's the thing you're actually trying to measure? What's the ground truth that your evaluation system is actually trying to approximate? So I think that's just like a general problem framing thing.
SPEAKER_02It's certainly grounded in statistics, but you don't need to have, you don't need to be a statistician to apply that to your thought process. As maturity in scale grows, right, when you run an A-B test, typically you run it for some period of time so you can measure the difference with some level of precision. You can confidently say, hey, this isn't just noise. Actually, variant B is better than variant A. And so I think that there's no reason that idea... shouldn't be applied to offline evaluation.
But I do think that that's requires a certain scale to really have the resources to such that kind of the difference between applying that approach and not applying
SPEAKER_02that approach makes a huge difference. That said, and I will say that like having that kind of just like the mental model of even in earlier stages, having the mental model of, Hey, we're trying to approximate some distribution of kind of the distribution you care about is all your users and all the tasks that they're going to perform. And so your evaluation is trying to approximate the performance over that. And then also being aware that, hey, if we only have three examples, that's going to be pretty noisy. That doesn't mean there's no information, but it's worth at least having an awareness that you're
measuring a system with
SPEAKER_02randomness. And so just having the appropriate kind of framing there.
SPEAKER_01Yeah, I think for the experimentation part of AI evals, it's just like any experiments that we have done in the past. Statistics plays a vital role in designing experiments and also analyzing experiments. outputs or results. And for the offline evals, statistics, I wouldn't say it's like rocket science statistics, but a good understanding of non-deterministic will be very important in building good offline AI emails.
SPEAKER_01So for example, one thing that I found that is very challenging for people from say non-data background is to understand that AI emails is different from say password fail. It's not a simple password fail. It's usually, it's more similar to again, like doing data science. If you have a distribution and if you get a confidence level, how do you make decisions from there? So I think the mental model, again, going back to what Adi said,
like having a mental model and have a good understanding of the non-deterministic
SPEAKER_01nature of AI really helps us to do AI evals, to do offline AI evals and also the experiments. And also in doing offline evals, one big challenge in doing offline evals is to build good test sets. And building a good test set, again, that goes back to understanding the distribution of your real user interactions and map that to your offline evaluation test set. And I think that's where we need statistics in AI emails.
SPEAKER_00Yeah, I totally agree. And I do, I hear it like this level of maturity. We need some sort of relatively sophisticated statistical thinking. If you're doing NHST, like null hypothesis tests and power analysis in order to design experiments, that isn't, on the surface, it may seem straightforward, but that actually isn't straightforward at all. Basic science research isn't a reproducibility crisis, actually, because it isn't necessarily straightforward. Fisherian stats is done horribly. That's why I...
SPEAKER_00It's hard to know.
SPEAKER_02You don't know the counterfactual, right? It's like, I didn't get criticized, but I don't know. Oh, no, I do know the counterfactual. I do know the counterfactual.
SPEAKER_00I've seen it done correctly, and I've seen it done poorly. Having worked in biology labs where people who've published in Nature and Science and Cell with n is equal to 3, a sample size of 3, and making serious claims about that, I have the counterfactual for that, definitely.
SPEAKER_02No, you don't. You can only observe one version of the universe. I mean, actually would be like, okay, if you replaced frequentist statistics in all of science with, I don't know what you would suggest, Bayesian statistics or some other.
SPEAKER_00No, we can, this is something I can disagree on. I think. Yeah, absolutely. Let's lean into it. Saying this done correctly, right? Exactly. You're right, I don't have the same universe with this only thing changed, but I've seen enough of it done correctly that it does look horrible here. So I actually have enough evidence to say what the counterfactual of this person doing it with a sample size of 15 would look like, if that makes sense.
SPEAKER_01It just reminds me of a joke that I heard from a professor friend. He said, never collaborate with a statistician because they question every conclusion.
SPEAKER_00Totally. Yeah, so here you go. Go ahead. I was just going to say, I do think, like I do say, I joke I'm probably a Bayesian. I do think that one pro of Bayesian methods in statistics, it makes you be explicit about your assumptions. There are always assumptions underlying, like, if you're doing... a p test versus whatever a chi-squared test there are like there are assumptions underlying whatever happens there and it may be an assumption of normality in a distribution which just doesn't exist whereas bayesian stats
are you have to make
SPEAKER_00your assumptions explicit Yeah, and also going back to our disagreement, because I'm not sure if we did disagree.
SPEAKER_02Maybe I was just misunderstanding you. I guess the point you're making is that, hey, when people do statistics right, this works pretty well when people are really thoughtful about it. But when they do it naively and like it's performing Goodhart's law, right? They just optimize for p-values. You end up with results that are very divergent from kind of the objectives of science. I am interested, Eddie, in How you're thinking about the future of evaluation with people
incorporating more
SPEAKER_00causal inference into it. So maybe you could tell us a bit of your work on causal inference in AI evaluation at the moment.
SPEAKER_02Yeah, for sure. And if I was a better self-promoter, I would have taken the statistics question as a good opportunity to plug my own work. That's what I'm mindful. Yeah, a lot of what I've been focused on really does require at least in terms of kind of building the software and setting up, right? It's when you calculate confidence intervals after running an A-B test, you don't need to know necessarily all the nuts and bolts. You just plug it in and you get your P value. You have a high level understanding. Basically, I've been focused on that problem for calibrating LLM judges to human experts or some kind of whatever.
SPEAKER_02At some point you have to define a ground truth label. And typically your ground truth, high quality label is something that's very expensive. And so you can't afford very many of them. LM is judge is a new measurement primitive. That's very inexpensive. You can get to label anything, but The judge isn't necessarily aligned with your human experts or kind of the objective that you care about. And where kind of statistics plays and causal inference plays a very vital role is really focusing on this problem of making sure you're not just
trying to make a score go up that doesn't actually correspond with the outcome that you care about. And so the causal inference framing is saying, Hey, here's the thing that you care about.
SPEAKER_02Here's like the counterfactual. that you're comparing, so the universe under prompt A and the universe under system prompt B. So that's the causal framing component. And then if we're going to do this and we're going to compare these two variants, how do we quantify that uncertainty? How do we understand how much noise there is in kind of that comparison versus like signal to actually differentiate the two and to pick a winner. And then there's the further question of how many labels do you need? Right?
SPEAKER_02So there's a kind of power analysis component of this where you have, you're collecting some number of examples and then of those total number of examples, some subset of those are going to be labeled by human experts. And so basically you want to do that in the most efficient way possible. And basically that is a solvable problem that requires some statistics, but it can really, the return on investment could be quite high in terms of using your information in kind of the most efficient way. So yeah, when I think about the future and this field maturing,
SPEAKER_02I really do have a lot of confidence that It's going to, it's going to look a lot more like some of the more kind of established statistical and kind of causal inference practices that have been established elsewhere. So it's very early days, but yeah, it definitely, it's a growing area and I've been encouraged and heartened by the adoption I've seen. just in my own work and the open source software tool. And so there definitely is a real audience, especially in the data science crowd. But I think it is still early days and most teams aren't even doing error analysis
SPEAKER_02properly, right? So I think it's important just to be thoughtful about what's impactful for your team at your stage of development. But I do think that at scale and that maturity, it starts to look a lot more like kind of a causal inference and statistics
SPEAKER_00problem. Awesome. And I've actually linked to your CJA causal judge evaluation package in the Discord. And congrats on recently past 10K downloads on PyPI as well.
SPEAKER_02Yeah, thank you. This is another thing that I think in the end we'll agree on, but I do want to provoke. Oh, no. Let's go. Let's go. I'll try not to convince you that we actually agree. Yeah.
SPEAKER_00We actually do agree on this. Outside a handful of companies that essentially have two-sided marketplaces and need to hire economists who are great at causal inference. And I'm actually talking about Amazon, Uber, and a couple of others. Actually, data science doesn't do... Data science, let alone AI, has never done causal inference well. you're so that's your assertion that yeah that's my yeah yeah and i'd actually love to see more causal inference and stuff from economics brought
into data science like even and i'm this is a hill i get on but definitely wouldn't die on yeah too many people think that when you do an a b test you're studying your system at equilibrium right as opposed to having to wait and see what the results are when
SPEAKER_00after relaxation for example yeah so i'm wondering about your thoughts of What's causal, where's causal inference in data science? And then how do we import it into there and AI now?
SPEAKER_02Yeah, so I think the main kind of success case for causal inference in data science is just A-B testing. And I think that the field has reached like a pretty solid level of maturity, just in terms of thinking about multiple comparisons there. Mainly they, like a rank and file data scientist, I think is someone who knows how to power an A-B test and kind of run that effectively. And so I think beyond that, going beyond that and thinking about more complicated kind of bespoke situations where it's an observational setup or you have some
randomization set where maybe
SPEAKER_02the randomization isn't at the user level, it's at varying something over time. or by geography. I find that, and first of all, I think a lot of people don't really understand the definition of causal inference. Even people that are like, I've met economists at big tech companies that are staff data scientists that talk about causal judge evaluation and they really struggle to see that as a causal inference problem. so i do see yeah i would i think maybe we just have a difference of definition i don't think yeah a b test like it is causal inference 101 but
if you're not
SPEAKER_00thinking about confounders and admitted very admitted variable bias and instrumental variables i would say you're not yet really doing causal inference okay yeah i think they'll be i think we have different definitions i think that
SPEAKER_02whenever you're making a decision whenever what you're trying to measure depends on this idea of kind of parallel universes and what you would observe in these parallel universes. Basically this counterfactual framing You're in a domain in which you can only observe one of these things. And so the whole kind of definition of that kind of formal definition of causal inference is often framed as a missing data problem. Where you're basically trying to use causal identification to infer the counterfactual, the kind of universe that you were unable to observe,
SPEAKER_02because you can only observe one universe in kind of reality. And so in terms of like causal judge evaluation and AI evaluation writ large, It's very clear that like what you care about measuring is like, Hey, if I could, if I were God and I could like play out all these different universes associated with kind of all the kind of prompts and models and kind of system configurations that I have all the ideas that I have. I would pick the thing that has the best performance, that generates the most revenue for the company in the long run. And so anyway, that's my definition.
SPEAKER_02I would say, we probably shouldn't go too deep into this because we've got five minutes left,
SPEAKER_00but something inherent in causal inference and... A-B testing is a statement that's put to the side, everything else held constant, right? And inherent in that statement is thinking about confounders. And when I see A-B tests done mostly in data science, it isn't done robustly in terms of that particular segment being considered too deeply. But I do agree that A-B testing done correctly is the first part of causal inference. Yeah.
SPEAKER_01I want to add to that. So I come from a statistics background. And so one of my first lessons when entering industry is people are doing AP testing or experimentations very differently from what I learned at school. And if we hold it to the, in a way that we can say that almost all experiments or AP testing is done in industry, especially tech industry are wrong, but they can still be useful in some cases.
SPEAKER_00So interestingly, Carol Willing has put in the chat, she has training in economics, and she said her old MIT professor used to say, I can prove anything with data. It doesn't mean it has any value.
SPEAKER_01Oh, yeah. So there is a professor at Harvard. His name is Donald Robin, one of the founding fathers in causal inference. And he said something similar. He said, everything, every experiment outside this campus is done wrong.
SPEAKER_02Yeah, and this also comes back to what Hugo was talking about before of just like, you know, there are all these assumptions that go into the methodology that you're using. And most people aren't aware of all those assumptions. And so I think of causal inference as actually causal inference is about what assumptions are you making about your ability to estimate the kind of the universes that you can actually see. So it's really causal inference in its essence is about what assumptions do you need to to feel confident that when you collect data,
SPEAKER_02as you collect more data, you're actually going to converge to the kind of missing estimate that you care about.
SPEAKER_00Awesome. So I am wondering 12 months from now. Okay. March 2020, what year will it be? 2027. I really had to think that through. This isn't a question of prediction, but I'm asking, what would you like to see best practices in the eval space look like in 12 months? Go ahead, Stella, because I've been talking a lot. Go ahead.
SPEAKER_01So myself as an AI evals practitioner, I will love to see more industry standards set on AI evals. And what type of standards do you think, if you could only choose a couple? So I'll give an example. Although I live in the U.S. and we, at the federal level, deregulate AI. But still, if you look at company or even the federal government procurement process, they're asking for evaluations for AI solution procurement.
But in those guidance, when they mention evaluations, it's still very vague. They say that you need to do evaluations, but what exactly do you mean by evaluations?
SPEAKER_01And similarly for the, some of the state level AIX, there's one from California and there's one from Colorado. Similarly, there are expectations set, which is a great step forward, but still they're a very high level. And it's not clear like for, for compliance with regulations, what exactly do companies where do AI product team needs to do to meet that expectation?
SPEAKER_00Amazing. And I love that you're tying this once again to compliance and regulation. I do just want to chat about what you've seen in your course and your offering in a minute. But Eddie, I'd love your thoughts on the future music of AI evals.
SPEAKER_02Yeah. I think the biggest thing that kind of stands out to me is just like making sure that the things that are evaluated on benchmarks are actually... grounded in kind of human values, the things that humans value. And I think that right now we're in a phase that like LOM judges are so convenient that it's just the natural thing to use in kind of every situation without thinking that carefully about how does this map to Things that humans care about, the human welfare.
SPEAKER_02And I think that this is fundamentally, as AI proliferates, like a really foundational problem, just in terms of aligning AI systems to our values. And I think that benchmarks that claim to be making progress in terms of some kind of occupation or skills should be labeled not just by an LLM judge, they should actually receive the scrutiny of real humans. And we can still use LLM judges, but we should really make sure that they're grounded in something that we trust.
SPEAKER_00Totally. And we have a bunch of love coming in the Discord chat about the need for humans and human judgment here. And we don't have time too much to dig into all the challenges you've both seen with LLM judges, but you've both written a bunch on them as well. So we'll make sure to drop some links to the class as well. am in terms of wrapping up Stella maybe you could tell us a bit about your course because as I said it seems it does focus on all the technical things and how to build out eval systems but it seems very much on connecting to different stakeholders and making sure regulatory and compliance stuff
are satisfied so maybe
SPEAKER_00you can tell us a bit about what you cover
SPEAKER_01Yeah, sure. I'll keep it short. So if you're interested in getting a comprehensive view on how to do AI evals for your product, not just as a judge, and also if you're building AI solutions for a higher stake use cases, then you may want to check out our course. It's called AI Evals and Analytics Playbook. And we also offer a special discount for Hugo's audience. Yeah, I've just put the link in the Discord and Stella's and Amy are offering us.
SPEAKER_00Is your colleague Amy, is it? Yes. Yes. Currently offering everyone 30% off. So really appreciate that. Eddie, I'm wondering, what's one thing you'd really like to see builders do a bit more of? I think that the best thing you can do is just to like care about your product,
SPEAKER_02look at your data, think for yourself, right? There's a million talking heads out there trying to like create FOMO and make you feel insecure about what you're doing. I would just like really try to approach problems from first principles and think very carefully about what your users care about and really use that as a user human brain and kind of judgment as the most kind of powerful tool that you have. Awesome.
SPEAKER_00Love it. Thank you everyone for joining. Most of all, thanks Stella and Eddie for coming and sharing your time and expertise with us all, but see you all on discord and in the workshop tomorrow. Thanks everyone.
SPEAKER_02Thanks for tuning in everybody.
SPEAKER_00And thanks for sticking around until the end of the episode. I would honestly love to hear from you about what resonates with you in the show, what doesn't, and anybody you'd like to hear me speak with, along with topics you'd like to hear more about. The best way to let me know is currently on LinkedIn and I'll put my profile in the show notes. Thanks once again and see you in the next episode.
Hilary Mason, CEO of Hidden Door, works with agents across software development and creative projects. Drawing on Richard Hamming’s distinction between science and engineering, she describes agents as “bringing the...
Agents can write the code, run the analysis, and produce a convincing explanation. How do you check that they’ve answered the right question, used the data appropriately, and reached a conclusion you can act on? I...
“It’s an LLM, a loop, and enough tokens.” - Nicolay Gerold, Amp Code So why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?...
“If you feel that a product is hard to eval, or you feel like, ‘I don’t even know how to eval this,’ it’s a strong smell that your product isn’t good.” - Hamel Husain, on AI product design An AI data agent tells you...
“It would be sad if local models were not an option and there were only proprietary models. It’s good to have alternatives. Competition is good for business.” - Sebastian Raschka, on open-weight AI Kimi K3’s weights...