Latest / CyberSecurity Summary / Machine Learning for High-Risk Applications: Approaches to Responsible AI
Transcript
- 0:00Speaker 1: Imagine for a moment an AI system built to connect people,
- 0:04Speaker 1: a chatbot designed for just friendly conversation, and somehow, in
- 0:09Speaker 1: less than a day, it just it devolves into spewing hateful,
- 0:12Speaker 1: discriminatory stuff.
- 0:14Speaker 2: Wow.
- 0:14Speaker 1: Yeah. Or think about a self driving car hailed as
- 0:17Speaker 1: you know, the future of safety, sure, and then it
- 0:20Speaker 1: tragically takes a life. These aren't like sci fi plots.
- 0:24Speaker 1: They're real incidents, high profile ones, and they expose these hidden,
- 0:31Speaker 1: really high stakes risks that are just lurking beneath AI
- 0:35Speaker 1: that seems beneficial. It really makes you pause, does it?
- 0:38Speaker 2: Absolutely does.
- 0:39Speaker 1: So today we're diving deep into responsible AI designing, building
- 0:45Speaker 1: and assessing machine learning and AI. It's by Patrick Hall
- 0:48Speaker 1: and Rouman Chowdery, published by O'Reilly Media. Great resource, definitely,
- 0:51Speaker 1: and our mission here is to pull out the most
- 0:53Speaker 1: important insights, you know, the key nuggets of knowledge about
- 0:57Speaker 1: how we can make these powerful AI systems work better.
- 1:00Speaker 2: Right, not just for the companies building them exactly.
- 1:03Speaker 1: But for you, the consumer and well the public generally,
- 1:07Speaker 1: because let's be honest, mL systems are already making critical decisions.
- 1:10Speaker 2: All over employment, bail, parole.
- 1:12Speaker 1: Lending, and without responsible handling, they pose huge sometimes devastating risks.
- 1:19Speaker 1: I mean the Partnership on AI Incident Database it has
- 1:22Speaker 1: over a thousand public reports algorithmic discrimination, other failures one thousand.
- 1:26Speaker 2: That's significant.
- 1:27Speaker 1: There really is. This isn't just theory anymore. It's a
- 1:30Speaker 1: pressing reality. So that really begs the question why is
- 1:35Speaker 1: responsible AI so critical? Right now? We know powerful tech
- 1:39Speaker 1: like mL it can fail. Sometimes it's unintentional misuse, sometimes
- 1:43Speaker 1: it's alarmingly intentional abuse.
- 1:45Speaker 2: And what's truly fascinating here, I think, is how the
- 1:48Speaker 2: authors actually classify these AI incidents. It gives us a
- 1:51Speaker 2: much clearer way to understand the risk.
- 1:53Speaker 1: Okay, how do they break it down?
- 1:54Speaker 2: So they basically use three main buckets. First, abuses that's
- 1:57Speaker 2: when AI is deliberately used for you know, fair purposes,
- 2:00Speaker 2: think autonomous drone attacks or maybe ethnicity profiling by governments.
- 2:05Speaker 1: The really scary stuff exactly.
- 2:07Speaker 2: Then you have attacks. These often target the system's integrity
- 2:11Speaker 2: like adversarial manipulation, data poisoning, or its availability, denial of service,
- 2:17Speaker 2: or even attacks leading to algorithmic discrimination. Okay, attacks And
- 2:21Speaker 2: the third and finally failures, these tend to be more
- 2:25Speaker 2: about unintended consequences things like algorithmic discrimination, slipping in safety
- 2:30Speaker 2: or performance lapses, data privacy violations, or just you know,
- 2:34Speaker 2: not enough transparency.
- 2:35Speaker 1: Got it abuses, attacks, failures, and.
- 2:38Speaker 2: The tay chatbot incident back in twenty sixteen. It's a
- 2:41Speaker 2: disturbing but kind of perfect illustration of this.
- 2:44Speaker 1: Microsoft's chat got right, the one that went off the
- 2:46Speaker 1: rails on Twitter, That's the one.
- 2:47Speaker 2: It was exposed to Twitter and in just sixteen hours
- 2:50Speaker 2: users figure out how to essentially poison its learning system
- 2:53Speaker 2: with racist, sexist, horrible content.
- 2:55Speaker 1: Sixteen hours.
- 2:56Speaker 2: Yeah, it rapidly devolved into what the media called a
- 2:59Speaker 2: neo no see pornographer just awful.
- 3:02Speaker 1: So that was an integrity attack leading to.
- 3:03Speaker 2: Discrimination precisely, and it really highlights something crucial. Even world
- 3:08Speaker 2: class experts can miss vital countermeasures when designing these things.
- 3:12Speaker 2: And it wasn't like a one off. We saw similar
- 3:15Speaker 2: issues pop up again with scatter labs, Leeluda Chatbot more recently.
- 3:19Speaker 2: So the lesson is, the key takeaway really is that
- 3:22Speaker 2: unchecked interaction and malicious input can totally derail even sophisticated
- 3:26Speaker 2: AI leads to really embarrassing, damaging outcomes. Learning from these
- 3:32Speaker 2: past failures is just vital.
- 3:34Speaker 1: So okay, understanding these kinds of incidents, what does this
- 3:37Speaker 1: all mean for the organizations building these systems? What are
- 3:40Speaker 1: their sort of fundamental obligations legally ethically.
- 3:44Speaker 2: Well, it's a conversation that actually goes back quite a ways.
- 3:47Speaker 2: The authors bring up the hand roll. The hand roll yeah,
- 3:49Speaker 2: claimed by Judge Learning hand way back in nineteen forty seven.
- 3:52Speaker 1: Okay, what's the gist.
- 3:53Speaker 2: It essentially says that the burden of care and organization takes,
- 3:57Speaker 2: you know, the effort and resources they put into safety, yeah,
- 4:00Speaker 2: should be greater than or equal to the probability of
- 4:03Speaker 2: an incident happening, multiplied by the loss related to that incident.
- 4:07Speaker 1: So burden probability x loss Exactly.
- 4:10Speaker 2: In practice, it means companies have to invest care, time, money,
- 4:13Speaker 2: resources that matches the potential cost of a risk. If
- 4:17Speaker 2: they don't, they could face serious legal liability. It's a
- 4:21Speaker 2: pretty powerful incentive for diligence, right.
- 4:24Speaker 1: And what about regulators now, like the FTC?
- 4:26Speaker 2: Good question, the US Federal Trade Commission, the FTC. They
- 4:29Speaker 2: provide guidance urging fairness, transparency, accountability, and mathematical soundness.
- 4:36Speaker 1: And they have teeth. Right, I remember the ever album
- 4:38Speaker 1: case they do.
- 4:39Speaker 2: Yeah, the ever album case is a prime example. The
- 4:42Speaker 2: FTC actually forced them to delete their facial recognition system
- 4:45Speaker 2: because of deceptive data collection, so real consequences for not
- 4:49Speaker 2: playing by the rules.
- 4:50Speaker 1: And then there's the EU.
- 4:52Speaker 2: Absolutely, you can't ignore the growing impact of EUAI regulations.
- 4:56Speaker 2: It's looking a lot like gdpr's impact on data privacy.
- 4:59Speaker 1: So mandatory require it's coming.
- 5:00Speaker 2: Seems like it. Things like risk tiering, AI systems, extensive documentation,
- 5:04Speaker 2: quality management processes, continuous monitoring. It's a big shift towards
- 5:09Speaker 2: formalized responsibility.
- 5:10Speaker 1: Okay, so legal rules, regulatory pressure, and if we connect.
- 5:13Speaker 2: All this to the bigger picture, it becomes clear that
- 5:16Speaker 2: just preventing embarrassing, costly or you know, dangerous incidents can
- 5:21Speaker 2: be a really strong motivator, maybe even an a political one.
- 5:24Speaker 2: How So, well, even if a team struggles to agree
- 5:27Speaker 2: on abstract ethics like say, algorithmic fairness or privacy nuances.
- 5:32Speaker 1: Which can be tough to mail down exactly.
- 5:35Speaker 2: But almost everyone can agree that avoiding like a massive
- 5:39Speaker 2: public security breach or huge financial losses or major repulation damage,
- 5:45Speaker 2: that's a good idea, right focus on the tangible downside, Yeah,
- 5:48Speaker 2: it helps drive the conversation towards concrete actions and hopefully
- 5:52Speaker 2: more robust solutions.
- 5:53Speaker 1: That's a great point about aligning incentives, which brings us
- 5:56Speaker 1: to where it it's really interesting, how do organizations actually
- 5:59Speaker 1: do this? How do they cultivate a responsible AI ecosystem?
- 6:03Speaker 1: It seems like it starts with people, right. Culture.
- 6:05Speaker 2: Absolutely, it's not just tech, its culture and competencies. The
- 6:08Speaker 2: authors make a key point early on, if everyone is
- 6:12Speaker 2: accountable for AI incidents, then nobody really is thing though,
- 6:16Speaker 2: and that's where model risk management or MRM comes into play.
- 6:20Speaker 2: It draws a lot of inspiration from financial regulations actually,
- 6:23Speaker 2: like the Federal Reserves SR eleven to seven guideline.
- 6:25Speaker 1: Okay, MRM, what are the core ideas?
- 6:28Speaker 2: Two big ones are effective challenge and accountable leadership. Effective
- 6:32Speaker 2: challenge means having people who didn't build the AI system,
- 6:35Speaker 2: like independent validators or auditors, perform rigorous reviews.
- 6:39Speaker 1: The three lines of defense model exactly that.
- 6:42Speaker 2: And accountable leadership often means having someone specific, like a
- 6:45Speaker 2: Chief Model Risk Officer or CMRO, who is directly responsible
- 6:50Speaker 2: for the system's performance. Their compensation might even be tied
- 6:53Speaker 2: to it, so real.
- 6:54Speaker 1: Skin in the game, and that shifts incentives for the
- 6:57Speaker 1: data scientists too, away from just shipping fat.
- 7:00Speaker 2: That's the goal. Moving away from just the minimum viable
- 7:03Speaker 2: product mindset towards making rigorous testing and quality assurance a
- 7:08Speaker 2: core part of the job, not an afterthought makes sense.
- 7:11Speaker 1: Then there's this idea of drinking your own champagne or
- 7:14Speaker 1: sometimes eating your own dog food.
- 7:16Speaker 2: Yeah, I like the champagne version better, you doo?
- 7:18Speaker 1: What's that about?
- 7:18Speaker 2: It's simple, really use your own AI products internally dogfooding
- 7:23Speaker 2: as it's often called.
- 7:24Speaker 1: And the benefit is.
- 7:25Speaker 2: By using it yourself, you often find those real world
- 7:28Speaker 2: deployment problems, concept drift, maybe some subtle discrimination, other issues
- 7:33Speaker 2: before they hit your customers. It's kind of the golden
- 7:36Speaker 2: rule for AI. If you wouldn't want to use it,
- 7:38Speaker 2: maybe don't inflict it on others.
- 7:39Speaker 1: Good rule to live by. And what about the teams themselves?
- 7:43Speaker 2: Crucial point. Diverse and experienced teams. The book really hammers
- 7:48Speaker 2: this home. Diverse teams demographically professionally bring wider perspectives. They
- 7:54Speaker 2: catch oversights that more homogeneous teams might miss, like.
- 7:57Speaker 1: Not considering different demographic groups and trains.
- 8:00Speaker 2: Data exactly, or missing key edge cases. And it's vital
- 8:04Speaker 2: to include domain experts, not just tech folks, even social scientists,
- 8:08Speaker 2: to avoid what the authors call tech's quiet colonization of
- 8:12Speaker 2: the social sciences.
- 8:13Speaker 1: Meaning engineers might overlook the human impact.
- 8:16Speaker 2: Yeah, or the real world context because they're focused purely
- 8:19Speaker 2: on the tech side.
- 8:20Speaker 1: Got it. And this leads to challenging that whole going
- 8:22Speaker 1: fast and breaking things mantruck right.
- 8:24Speaker 2: Oh, absolutely, they might fly for I don't know, a
- 8:26Speaker 2: social media app update, But when AI is making high
- 8:29Speaker 2: impact decisions self driving cars, credit scores, medical diagnoses, breaking
- 8:34Speaker 2: things means real harm, possibly at scale.
- 8:37Speaker 1: So it requires a totally different mindset.
- 8:40Speaker 2: A fundamental shift, moving from just prioritizing features or hitting
- 8:44Speaker 2: accuracy targets on test data to really recognizing and mitigating
- 8:48Speaker 2: those serious downstream risks. The stakes are just way too high.
- 8:52Speaker 1: Okay, So mindset shift is crucial. Building on that. If
- 8:55Speaker 1: we connect this to the bigger organizational processes, how do
- 8:59Speaker 1: companies systemmatically prepare for things going wrong?
- 9:02Speaker 2: Great question? It really starts with forecasting failure modes. You
- 9:05Speaker 2: have to proactively think through document and then figure out
- 9:08Speaker 2: how to mitigate every foreseeable way an AI system could fail.
- 9:12Speaker 1: How do you even start doing that well.
- 9:14Speaker 2: The book highlights the value of using AI incident databases,
- 9:17Speaker 2: things like the Partnership on AI Incident Database, the AI
- 9:20Speaker 2: Incident track Er awful AI. These are gold mines for
- 9:23Speaker 2: learning from past mistakes so you don't repeat them, learning
- 9:25Speaker 2: from history exactly. And then there's this concept of failures
- 9:28Speaker 2: of imagination, using structured ways to brainstorm even the hard
- 9:32Speaker 2: to imagine future risks.
- 9:34Speaker 1: How does that work?
- 9:35Speaker 2: By asking specific questions who might be harmed maybe investors
- 9:39Speaker 2: or vulnerable people who don't even use the system, What
- 9:42Speaker 2: could be impacted well being, dignity, When might it happen
- 9:46Speaker 2: immediately frequently? And how by causing certain actions or changing
- 9:51Speaker 2: beliefs it forces broader thinking.
- 9:53Speaker 1: That proactive approach sounds fundamental, and that flows into the
- 9:57Speaker 1: details of model risk management or MRM process.
- 10:00Speaker 2: As you mentioned directly, Yeah, the book lays out a
- 10:02Speaker 2: clear MRM framework. It starts with risk teering or materiality materiality,
- 10:07Speaker 2: basically assigning realistic risk levels think probability times loss to
- 10:12Speaker 2: different AI systems. This helps you allocate your limited resources,
- 10:16Speaker 2: development time, validation effort auditing efficiently. The high risk, high
- 10:20Speaker 2: materiality systems get the most.
- 10:22Speaker 1: Scrutiny okay, prioritize based on risk. What's next?
- 10:25Speaker 2: Model documentation? This is huge. It's like the complete blueprint
- 10:29Speaker 2: and history book for your AI. Thorough docks covering stakeholders,
- 10:33Speaker 2: the business case, math, assumptions, data dictionaries, all the testing dependencies.
- 10:38Speaker 2: Monitoring plans not just an afterthought, definitely not, and it
- 10:42Speaker 2: needs to be standardized across systems. Then once it's live,
- 10:46Speaker 2: model monitoring is critical, continuously watching for problems, especially input
- 10:51Speaker 2: drift where the live data starts looking different from the
- 10:54Speaker 2: training data and model decay where performance just degrades over time.
- 10:57Speaker 1: And how do you keep track of all these models
- 10:59Speaker 1: in there?
- 11:00Speaker 2: Status through model inventories basically a curated, up to date
- 11:04Speaker 2: database of every AI system the organization has. It links
- 11:07Speaker 2: all the key info, the monitoring results, audit plans, a
- 11:10Speaker 2: single source of.
- 11:11Speaker 1: Truth, right and validation auditing key steps before release.
- 11:15Speaker 2: System validation and auditing usually two main reviews, a technical
- 11:19Speaker 2: validation by independent experts and a process audit by compliance folks,
- 11:23Speaker 2: plus ongoing reviews after deployment.
- 11:25Speaker 1: So MRM is pretty comprehensive. Are there other operational safeguards
- 11:29Speaker 1: the book mentioned?
- 11:30Speaker 2: Yeah, several important ones beyond the core MRM stuff like
- 11:33Speaker 2: pair and double programming. It's quality check exactly two experts
- 11:37Speaker 2: code independently, or maybe one person codes the same thing
- 11:40Speaker 2: in different languages than they reconcile. It's great for catching.
- 11:44Speaker 1: Bugs smart What about security?
- 11:46Speaker 2: Big focus on security permissions for code deployment using the
- 11:50Speaker 2: least privilege principle. Don't give just a few rockstar data
- 11:55Speaker 2: scientists all the keys to deploy code.
- 11:57Speaker 1: Spread the responsibility, create gates for decisely distribute permissions across teams,
- 12:02Speaker 1: to create checks and prevent unapproved deployments.
- 12:05Speaker 2: That might bypass reviews. And given how complex AI systems are,
- 12:10Speaker 2: change management is vital. Planning for changes explicitly planning for changes,
- 12:15Speaker 2: back end code APIs, the user interface data drift, even
- 12:19Speaker 2: third party dependencies. It's all about preventing and detecting errors
- 12:23Speaker 2: before they cause problems.
- 12:24Speaker 1: It makes sense, but things can still go wrong.
- 12:26Speaker 2: They absolutely can. You can't eliminate all risk. So the
- 12:29Speaker 2: book stresses having robust AI incident response plans. Absolutely what
- 12:34Speaker 2: does that? It's usually broken down into six phases. First preparation,
- 12:39Speaker 2: defining incidents, getting budget, planning, communications, running drills like tabletop exercises. Okay, ready,
- 12:46Speaker 2: then identification, spotting the failure, attack or abuse quickly. Third containment,
- 12:53Speaker 2: stopping the bleeding, mitigating immediate harm. Fourth eradication actually.
- 12:59Speaker 1: Fixing the effect system, rid of the root cause right.
- 13:02Speaker 2: Fifth recovery getting things back to normal operation. And finally,
- 13:06Speaker 2: super important lessons learned analyzing what happened to improve future
- 13:10Speaker 2: plans and prevent it from happening again. It's a whole cycle.
- 13:13Speaker 1: Preparation, identification, containment, eradication, recovery, lessons learned.
- 13:18Speaker 2: Got it. Let's maybe make this more concrete with that
- 13:21Speaker 2: case study you mentioned, the Uber autonomous vehicle insident.
- 13:24Speaker 1: Yeah, it's a sobering one twenty eighteen Tempe, Arizona. Elaine
- 13:27Speaker 1: Hersberg was crossing the street outside a crosswalk and was
- 13:30Speaker 1: struck and killed by an autonomous Uber test.
- 13:33Speaker 2: Vehicle and the safety driver.
- 13:34Speaker 1: The driver was reportedly distracted looking down at a smartphone,
- 13:37Speaker 1: but crucially, the AI system itself failed to identify her
- 13:40Speaker 1: as a pedestrian until just one point two seconds before impact.
- 13:44Speaker 1: One point two seconds.
- 13:46Speaker 2: Far too late, far too late to avoid the crash.
- 13:48Speaker 1: So what did the investigation find? What went wrong? From
- 13:52Speaker 1: a responsible AI perspective.
- 13:53Speaker 2: Well, this really raises the core question right. The NTSB,
- 13:57Speaker 2: that's the National Transportation Safety Board findings were pretty damning.
- 14:01Speaker 2: They found Uber system design hadn't even considered jaywalking pedestrians
- 14:06Speaker 2: as a foreseeable failure mode. Seriously, jaywalking, Yeah, it points
- 14:10Speaker 2: to really lacks risk assessments and frankly an immature safety
- 14:14Speaker 2: culture at the time. Disturbingly, it came out that an
- 14:17Speaker 2: employee had actually raised concerns about thirty seven previous crashes
- 14:21Speaker 2: involving these vehicles in the eighteen months prior, concerns that
- 14:24Speaker 2: were largely ignored.
- 14:25Speaker 1: Wow. That speaks volumes about the culture.
- 14:28Speaker 2: It really does, and the lessons learn are stark. Lesson
- 14:31Speaker 2: one culture is paramount. A mature safety culture might have
- 14:35Speaker 2: caught this, might have listened to those concerns.
- 14:36Speaker 1: Right.
- 14:37Speaker 2: Lesson two mitigate foreseeable failure modes. Jaywalking, especially at night,
- 14:41Speaker 2: should have been an easily foreseeable problem for a self
- 14:44Speaker 2: driving car. AI is only prepared if we humans prepare
- 14:48Speaker 2: it by anticipating these things.
- 14:49Speaker 1: Seems obvious in hindsight, doesn't it?
- 14:52Speaker 2: And Lesson three test rigorously in the operating domain. After
- 14:57Speaker 2: the crash, Uber paused and revamped improved soft where pested
- 15:00Speaker 2: later in simulation showed the vehicle could have started breaking
- 15:03Speaker 2: four seconds before.
- 15:04Speaker 1: Impact, four seconds versus one point two huge difference.
- 15:08Speaker 2: Massive. It just underscores the critical need for realistic in
- 15:12Speaker 2: domain testing before you put these things on public roads.
- 15:15Speaker 2: It's a tragic reminder of the human cost when these
- 15:18Speaker 2: principles aren't fully embraced.
- 15:20Speaker 1: Okay, so we've covered the why, the who, the organizational how.
- 15:24Speaker 1: Let's shift gears now and really unpack the technical toolkit
- 15:28Speaker 1: the how for the practitioners actually building these systems. Where
- 15:32Speaker 1: does that start.
- 15:33Speaker 2: It really has to start with robust training practices for
- 15:35Speaker 2: the mL algorithms themselves, and the absolute bedrock the foundation
- 15:39Speaker 2: for everything is reproducibility.
- 15:41Speaker 1: Reproducibility. Why is that so fundamental?
- 15:43Speaker 2: Because without it you can't reliably tell if an improvement
- 15:46Speaker 2: you made is real. You can't reliably audit what happened
- 15:48Speaker 2: if something goes wrong. It's basic scientific rigor applied to AI.
- 15:52Speaker 1: So what does that mean in practice?
- 15:53Speaker 2: It means several things. Using benchmark models for comparison, ensuring
- 15:58Speaker 2: consistent hardware and software environment using tools like Docker or
- 16:01Speaker 2: virtual environments, Meticulously tracking metadata maybe with tools like TensorFlow,
- 16:06Speaker 2: mL metadata setting, random seeds consistently and crucially using robust
- 16:12Speaker 2: version control for everything. Code and data get GitHub and
- 16:16Speaker 2: tools like DVC data version control are key here.
- 16:20Speaker 1: Okay, reproducibility first.
- 16:22Speaker 2: Then what then you hit the critical area of data
- 16:25Speaker 2: quality and feature engineering. You know, entire books are written.
- 16:28Speaker 1: Just on this topic.
- 16:29Speaker 2: It's huge, it is and from a safety and performance view,
- 16:31Speaker 2: the author stress that bad data is so often the
- 16:34Speaker 2: root cause of real world failures. You have to address
- 16:37Speaker 2: things like data set size and shape. Small or sparse
- 16:40Speaker 2: data can make models really unstable. You need to look
- 16:43Speaker 2: for misrepresentation, overfitting, potential pipeline issues.
- 16:47Speaker 1: Is there a quick checklist of things to look for.
- 16:49Speaker 2: Yeah, they offer a good starting point. Check for duplicate data,
- 16:53Speaker 2: incorrect encoding, weird outliers, using simplistic imputation methods that might
- 16:58Speaker 2: hide problems, issues with correlations between features, making sure normalization
- 17:03Speaker 2: is done correctly. It's a lot, but it's.
- 17:06Speaker 1: Crucial, got it. Data quality is non negotiable. What about
- 17:10Speaker 1: specifying the model itself? Right?
- 17:12Speaker 2: Model specification? This is where the authors say we need
- 17:14Speaker 2: to go beyond just chasing the top score on some
- 17:17Speaker 2: leader board.
- 17:18Speaker 1: Performance is in everything, not.
- 17:19Speaker 2: The only thing. It involves starting with established peer reviewed
- 17:23Speaker 2: benchmarks and alternatives. Evaluating multiple approaches not just for raw accuracy,
- 17:28Speaker 2: but also for things like compliance with non discrimination standard.
- 17:31Speaker 1: And being aware of assumptions.
- 17:32Speaker 2: Yes, this is a subtle but critical insight, being acutely
- 17:36Speaker 2: aware of the hidden assumptions baked into mL algorithms. Things
- 17:40Speaker 2: they implicitly assume about your data structure, like high degree
- 17:43Speaker 2: interactions or nonlinearities, or assumptions about the target distribution, like
- 17:47Speaker 2: how using a squared law function implicitly assumes errors are
- 17:51Speaker 2: normally distributed. If those assumptions are wrong, your model might
- 17:54Speaker 2: look accurate on paper but break spectacularly in the real world.
- 17:58Speaker 2: That's why things like explicit applying monotonicity constraints ensuring a
- 18:02Speaker 2: feature change always pushes the prediction in one expected direction,
- 18:06Speaker 2: or interaction constraints limiting how features combined can be so
- 18:09Speaker 2: valuable for aligning the model with reality and preventing weird
- 18:13Speaker 2: unexpected behavior.
- 18:15Speaker 1: Okay, so build on a solid foundation, handle data carefully,
- 18:19Speaker 1: specify thoughtfully. What about debugging? Do we treat models like
- 18:23Speaker 1: code exactly?
- 18:24Speaker 2: That's the shift in perspective the book advocates for in
- 18:27Speaker 2: model debugging, treat mL models like complex software systems, not
- 18:32Speaker 2: just abstract math equations, and that demands rigorous software testing,
- 18:35Speaker 2: specifically for AI, beyond the usual unit tests and integration
- 18:39Speaker 2: tests way beyond. Of course, you need those standard QA practices,
- 18:43Speaker 2: but for AI you also need things like chaos testing,
- 18:46Speaker 2: intentionally throwing chaotic or adversarial conditions at the system to
- 18:49Speaker 2: see if it.
- 18:50Speaker 1: Breaks, stress testing it pretty much.
- 18:52Speaker 2: And then mL specific tests like random attack where you
- 18:57Speaker 2: just flood the system with massive amounts of random, maybe
- 19:00Speaker 2: nonsensical data to find hidden bugs or vulnerabilities. And continuous
- 19:05Speaker 2: benchmarking tracking performance over time, especially within CICD pipelines, continuous
- 19:09Speaker 2: integration and deployment right.
- 19:10Speaker 1: Tracking improvements reliably. Now what about traditional model assessment accuracy AUC,
- 19:15Speaker 1: et cetera.
- 19:16Speaker 2: Yeah, traditional model assessment. The key insight here is that
- 19:19Speaker 2: the exact numeric value often matters less than how the
- 19:22Speaker 2: model performs in its specific domain. You want logical interpretable stats, sure,
- 19:26Speaker 2: like RMSE ROOTMANE squared error for regression or AUC area
- 19:31Speaker 2: under the curve for classification, always setting practical real world thresholds.
- 19:36Speaker 1: But the aggregate score isn't the whole story, not at all.
- 19:39Speaker 2: The crucial step is analyzing performance across important segments of
- 19:42Speaker 2: your data, different demographic groups, different customer types, high risk
- 19:46Speaker 2: versus low risk cases, And you need to compare performance
- 19:49Speaker 2: across your training, validation, and test sets. That's how you
- 19:52Speaker 2: spot hidden bias or under specification that gets lost in
- 19:55Speaker 2: the overall average.
- 19:56Speaker 1: And thinking about classification thresholds.
- 19:58Speaker 2: Absolutely carefully electing those probability cut off thresholds. What's the
- 20:02Speaker 2: real world impact monetary return, risk exposure? How does it
- 20:07Speaker 2: affect different groups differently? That needs careful consideration.
- 20:11Speaker 1: So digging deeper than the top line number you mentioned.
- 20:14Speaker 1: Learning from errors? What was that technique? Ah?
- 20:18Speaker 2: Yes, residual analysis for machine learning. This is incredibly powerful.
- 20:23Speaker 2: Think of it literally as learning from your model's mistakes.
- 20:26Speaker 1: How does that work?
- 20:27Speaker 2: It involves deep analysis and visualizations. You plot the residuals,
- 20:31Speaker 2: the difference between the model's prediction and the actual outcome
- 20:34Speaker 2: against different features or prediction levels. You look for patterns
- 20:38Speaker 2: like maybe your credit model consistently makes large errors for
- 20:41Speaker 2: people who were good payers, but suddenly default patterns a
- 20:45Speaker 2: human might spot. The book also talks about actually modeling
- 20:48Speaker 2: the residuals themselves, using an interpretable model like a decision
- 20:52Speaker 2: tree to predict the errors of your main mL model.
- 20:55Speaker 1: So building a model of the mistakes exactly.
- 20:58Speaker 2: It helps you pinpoint specific failure modes and then design
- 21:01Speaker 2: targeted fixes like adding specific rules or model assertions. And
- 21:06Speaker 2: a really cool recent development is using Shaply values to
- 21:10Speaker 2: calculate the local contribution to residuals.
- 21:12Speaker 1: Shaply values those explained predictions, right, they.
- 21:15Speaker 2: Do, but here you use them to see which features
- 21:18Speaker 2: are driving the errors, not just the predictions. This can
- 21:21Speaker 2: reveal non robust futures, ones that contribute more to mistakes
- 21:24Speaker 2: and to accurate predictions. Super insightful for debugging.
- 21:27Speaker 1: Wow. Okay, what about understanding how the model behaves overall,
- 21:31Speaker 1: how it extrapolates.
- 21:32Speaker 2: That's where sensitivity analysis comes in. Understanding how the model
- 21:35Speaker 2: responds to different inputs, especially unexpected ones. This involves stress testing,
- 21:40Speaker 2: simulating adverse scenarios like a recession or a pandemic to
- 21:43Speaker 2: see how robust the.
- 21:44Speaker 1: Model is, pushing it to its limits.
- 21:46Speaker 2: Right, and using visualizations tools like ale accumulated local effects
- 21:51Speaker 2: plots ICEE, individual conditional expectation plots, partial dependence curves, they
- 21:56Speaker 2: help you see how changing specific features influences.
- 21:59Speaker 1: Predictions and finding weird responses.
- 22:02Speaker 2: Yeah, through adversarial example searches basically trying to generate specific
- 22:06Speaker 2: data points that make the model behave unexpectedly or illogically.
- 22:11Speaker 2: The book has a great credit model example showing a
- 22:13Speaker 2: logical flaw punishing a late payment even after a large repayment,
- 22:17Speaker 2: and a security vulnerability like a weird steep spike and
- 22:21Speaker 2: risk for very small payment amounts. Finding these before deployment
- 22:25Speaker 2: is critical.
- 22:26Speaker 1: In valuable insights. And you mentioned beichmarks earlier. They keep
- 22:29Speaker 1: popping up.
- 22:29Speaker 2: They're crucial across the entire life cycle. Benchmark models not
- 22:33Speaker 2: just for reproducibility during training. They're vital for debugging, comparing
- 22:38Speaker 2: your complex model against a simpler, trusted baseline, and for
- 22:41Speaker 2: real time monitoring and production quickly flagging if your main
- 22:44Speaker 2: model starts deviating significantly.
- 22:46Speaker 1: Okay, so we have testing assessment, residual analysis, sensitivity analysis.
- 22:52Speaker 1: What specific kinds of bugs are we typically hunting for
- 22:54Speaker 1: in mL systems? Good question.
- 22:56Speaker 2: The author's list several common machine learning bugs. Distributional shifts
- 23:01Speaker 2: often come data drift or concept drift. This is huge.
- 23:05Speaker 2: It's when the live data the model sees starts to
- 23:07Speaker 2: differ significantly from the data it was trained on like.
- 23:10Speaker 1: COVID nineteen, changing shopping patterns.
- 23:12Speaker 2: Overnight exactly like that. Second instability, the model's training process
- 23:17Speaker 2: or its predictions might be erratic. Often happens with small
- 23:21Speaker 2: or sparse data, highly correlated features, or just using very
- 23:25Speaker 2: high variance model types.
- 23:26Speaker 1: Okay, what else?
- 23:27Speaker 2: Third looped inputs. This is subtle but dangerous. It's when
- 23:32Speaker 2: the AI's predictions affect the real world, and those effects
- 23:36Speaker 2: then get fed back into the model as new input data,
- 23:38Speaker 2: creating feedback loops.
- 23:40Speaker 1: Like predictive policing concentrating patrols in an area leading to
- 23:44Speaker 1: more arrests there, which then justifies more patrols.
- 23:47Speaker 2: Precisely, or employment algorithms subtly changing the applicant pool over time.
- 23:51Speaker 2: Fourth is leakage, when information from your validation or test
- 23:55Speaker 2: data accidentally contaminates your training data. This gives you overly
- 23:58Speaker 2: optimistic performing results just won't hold up in reality.
- 24:01Speaker 1: Sneaky, keep going.
- 24:03Speaker 2: Fifth classic overfitting. The model memorizes the training data noise
- 24:06Speaker 2: instead of learning general patterns. Sixth shortcut learning. This one's insidious.
- 24:12Speaker 2: The model learns an unintended similar correlation to make.
- 24:15Speaker 1: Predictions, like identifying the hospital scanner id instead of the
- 24:19Speaker 1: actual disease in a medical image.
- 24:21Speaker 2: Exactly, it gets the answer right on the training data,
- 24:24Speaker 2: but for totally the wrong and potentially dangerous reason. Seventh underfitting.
- 24:30Speaker 2: Basically the model is too simple or doesn't have enough
- 24:33Speaker 2: data or constraints to learn the underlying patterns.
- 24:36Speaker 1: And the last one under specification.
- 24:39Speaker 2: Right under specification. This is a tricky one. It means
- 24:42Speaker 2: multiple different models could achieve similar high accuracy on your
- 24:46Speaker 2: validation set, but validation alone isn't enough to pick the
- 24:49Speaker 2: truly best or most robust one. It often shows up
- 24:53Speaker 2: as performance being weirdly sensitive to things like random seeds
- 24:57Speaker 2: or computational hyper parameters, or seeing performance suddenly shift across
- 25:01Speaker 2: different data segments.
- 25:02Speaker 1: Okay, that's a lot of potential bugs. How do we
- 25:04Speaker 1: fix them? What are the remediation strategies?
- 25:06Speaker 2: The book offers a whole toolkit for remediation. Using anomaly
- 25:10Speaker 2: detection is key to spot weird inputs or outputs. Experimental
- 25:15Speaker 2: design and data augmentation help you collect or generate better,
- 25:18Speaker 2: more robust training data. Model assertions are like applying business
- 25:23Speaker 2: rules on top of the model to correct specific known
- 25:25Speaker 2: shortcomings in its learned logic.
- 25:27Speaker 1: Hard coding fixes.
- 25:29Speaker 2: Sometimes yes, or guardrails for certain interpretable models like GA
- 25:33Speaker 2: two ms or EBMs. You might even do model editing directly.
- 25:37Speaker 2: Of course, ongoing model management and monitoring are themselves remediation strategies.
- 25:41Speaker 2: You can apply those monotonicity and interaction constraints we talked
- 25:44Speaker 2: about earlier to enforce real world logic, and techniques like
- 25:48Speaker 2: noise injection during training or applying strong regularization can help
- 25:52Speaker 2: limit model complexity or force it to rely less on
- 25:55Speaker 2: potentially problematic features.
- 25:57Speaker 1: So a range of tools depending on the bug. Once
- 25:59Speaker 1: we've debugged and remediated, what about actually deploying the model right?
- 26:03Speaker 2: Crucial deployment considerations first is domain safety, focusing on real
- 26:07Speaker 2: world safety. This includes standard practices like ab testing, running
- 26:11Speaker 2: Champion challenger tests against existing systems on live data, but
- 26:15Speaker 2: also explicitly anticipating foreseeable incidents and preparing for the unforeseeable
- 26:19Speaker 2: ones using things like chaos testing random attacks, and setting
- 26:24Speaker 2: common sense prediction limits, maybe requiring human review for really
- 26:27Speaker 2: high stakes or unusual predictions.
- 26:29Speaker 1: Human oversight is a backstop.
- 26:31Speaker 2: Often essential, and continuous model monitoring is technically vital here too,
- 26:35Speaker 2: detecting that model decay and concept drift using statistical tests,
- 26:40Speaker 2: control limits, anomaly detection.
- 26:42Speaker 1: What do you do when you detect it?
- 26:43Speaker 2: You need strategies for addressing it, maybe retraining the model,
- 26:46Speaker 2: maybe just refreshing it with newer data. Crucially, you need
- 26:49Speaker 2: to measure multiple key performance indicators KPIs in production, not
- 26:54Speaker 2: just accuracy. How's it doing on fairness, metrics, security, privacy?
- 26:58Speaker 2: What's the actual business impact? You also need robust ways
- 27:01Speaker 2: to handle out of range values in the live.
- 27:03Speaker 1: Data feed, and those kill switches, Yes.
- 27:06Speaker 2: Kill switches, the author's stress. These aren't usually single big
- 27:10Speaker 2: red buttons. They're a bundle of pre planned business and
- 27:13Speaker 2: technical processes designed to let you safely turn off or
- 27:16Speaker 2: roll back an AI system if things go seriously wrong,
- 27:19Speaker 2: especially in high stakes scenarios, and these procedures absolutely must
- 27:23Speaker 2: be documented in your incident response plans.
- 27:26Speaker 1: Okay, that makes sense. Can we quickly revisit that straw
- 27:29Speaker 1: Man model example to see how remediation might work in practice,
- 27:33Speaker 1: the one that over used the PA way zero.
- 27:35Speaker 2: Future Sure that gradient boosting machine model had several issues,
- 27:38Speaker 2: right it overemphasized the most recent repayment status. PA zero
- 27:43Speaker 2: had non robust inputs, contributing to errors of vulnerable response surface,
- 27:48Speaker 2: poor performance, and segments.
- 27:49Speaker 1: So how would you fix it applying those techniques?
- 27:51Speaker 2: Okay, So for the logical errors like predicting high default
- 27:54Speaker 2: risk even after a large repayment, model assertions would be
- 27:57Speaker 2: a strong candidate, just at a rule. If it pathologically
- 28:01Speaker 2: overemphasized pay zero, you could try to improve the training
- 28:05Speaker 2: data using data augmentation or noise injection around that feature,
- 28:09Speaker 2: or run specific experiments to gather data that forces decision
- 28:12Speaker 2: making across more features.
- 28:14Speaker 1: Spread the load right.
- 28:15Speaker 2: For those non robust input variables PAY two, Pay three
- 28:19Speaker 2: that drove errors more than predictions, you'd want to ab
- 28:22Speaker 2: test performance with and without them. Maybe retrain the model
- 28:26Speaker 2: completely without those features, or apply strong regularizations specifically to
- 28:30Speaker 2: reduce their influence.
- 28:31Speaker 1: Okay, what about the security vulnerability that spike.
- 28:34Speaker 2: That security vulnerability, the sharp production spike at low payment
- 28:37Speaker 2: values that needs layers API throttling to prevent rapid fire
- 28:41Speaker 2: testing by attackers, robust authentication, vigilant monitoring for unusual patterns,
- 28:46Speaker 2: and potentially use in more inherently robust mL techniques if possible.
- 28:49Speaker 1: And the poor performance for customers with multiple late payments.
- 28:52Speaker 2: Yeah, the poor performance where p y zero one. You
- 28:55Speaker 2: might need better data for that segment, maybe apply observation
- 28:58Speaker 2: weights to focus learning there, monotonicity constraints might help ensure
- 29:02Speaker 2: sensible behavior. Or honestly, you might decide that for those specific,
- 29:07Speaker 2: high risk, hard to predict cases, the best approach is
- 29:10Speaker 2: to route them to a human caseworker instead of relying solely.
- 29:14Speaker 1: On the model, A hybrid approach.
- 29:16Speaker 2: Sometimes that's the most responsible solution.
- 29:18Speaker 1: Wow, what a journey. We've really done a deep dive
- 29:21Speaker 1: today and it reinforces just how holistic responsible AI is.
- 29:26Speaker 1: It's clearly hard work. It definitely is requires that mix
- 29:29Speaker 1: of cultural change, solid processes, sophisticated tech practices, but it
- 29:34Speaker 1: feels necessary and also importantly achievable within reach for organizations
- 29:39Speaker 1: and individuals who commit to it.
- 29:40Speaker 2: I agree, and for.
- 29:41Speaker 1: You the listener, this journey to being well informed about
- 29:43Speaker 1: AI means understanding not just its incredible power, but also
- 29:47Speaker 1: these inherent risks and crucially the practical, actionable steps we
- 29:51Speaker 1: can take to manage them.
- 29:52Speaker 2: And this really raises, I think an important final question
- 29:55Speaker 2: for all of us, what's next? You know, the AI
- 29:59Speaker 2: genie is and truly.
- 30:00Speaker 1: Out of the bottle now no putting them back no.
- 30:03Speaker 2: And headlines about damaging AI incidents. They really took off
- 30:06Speaker 2: around twenty twenty. They're probably not going to stop until people, developers, organizations, policymakers,
- 30:11Speaker 2: users actively choose to remake AI into responsible AI. The
- 30:16Speaker 2: future I think will judge us on whether we took
- 30:18Speaker 2: AI safety seriously enough now to minimize those kinds of
- 30:22Speaker 2: somber incidents later.
- 30:23Speaker 1: That's a powerful thought. So here's where it gets really
- 30:25Speaker 1: interesting for you listening as AI weaves itself deeper into
- 30:29Speaker 1: our lives. Being able to recognize these principles, maybe even
- 30:32Speaker 1: push for them, it's vital. So whether you're building AI,
- 30:35Speaker 1: deploying it, regulating it, or just using it every day,
- 30:38Speaker 1: consider these frameworks we've talked about. Ask the tough questions.
- 30:41Speaker 1: Let's all try to ensure AI contributes positively rather than
- 30:45Speaker 1: inadvertently creating more problems for the world.