In the interview, Dan Boneh and Nicolas Carlini discuss the complexities and evolving challenges of securing AI systems, focusing on adversarial attacks, prompt injections, and privacy risks, while highlighting the limitations of current defenses and the need for combined technical and policy solutions. They also explore the implications of AI-generated code security and emphasize the importance of ongoing research and adaptation to safeguard increasingly autonomous and impactful AI technologies.
In this insightful interview, Dan Boneh speaks with Nicolas Carlini, a leading researcher in AI security and adversarial examples, about the evolution and current challenges in securing AI systems. Nicolas shares his journey from traditional system security to pioneering work in adversarial machine learning, highlighting how early research in this area unexpectedly grew into a vast and critical field. He explains the concept of adversarial examples—inputs designed to fool AI models—and discusses the surprising property of transferability, where adversarial examples crafted for one model often succeed against others, even with different architectures or training data. This undermines simple defenses like hiding model weights, emphasizing the complexity of securing AI.
The conversation then shifts to practical implications of adversarial attacks, particularly in language models. Nicolas explains how models are trained to refuse harmful queries, such as instructions to build bombs, but adversaries can bypass these safeguards either through clever prompt engineering or algorithmic attacks that append universal “jailbreak” strings to queries. While human-generated prompt hacks might be mitigated over time, algorithmic attacks remain a significant challenge. Filtering models that screen inputs and outputs offer some protection but are not foolproof, especially against automated attacks. This highlights the ongoing arms race between attackers and defenders in AI security.
Nicolas also discusses positive applications of adversarial techniques, such as protecting privacy by poisoning facial images or artistic styles to prevent unauthorized model training. However, he cautions that these defenses are limited because model trainers, as “last movers,” can adapt and overcome such protections. This dynamic underscores the limitations of purely technical solutions and the potential need for legal and policy measures to complement technical defenses. The interview further explores prompt injection attacks in agentic AI systems, where malicious inputs can cause models to take harmful actions. Nicolas stresses that prompt injection is a critical unsolved problem that must be addressed before widespread deployment of autonomous AI agents.
The discussion broadens to other AI security concerns, including model extraction and training data privacy. Nicolas explains how attackers can reconstruct models or extract proprietary training data through carefully crafted queries, posing risks to intellectual property and sensitive information. While companies can restrict API access and add noise to outputs to mitigate these threats, no perfect defense exists yet. Differential privacy offers a theoretical solution to protect training data but often at the cost of model utility. Nicolas remains optimistic about progress in specialized, privacy-preserving models but acknowledges the significant challenges ahead.
Finally, the interview touches on AI for code generation, where models can dramatically accelerate software development but may produce insecure or buggy code. Nicolas warns that while AI-generated code might function correctly, it often lacks security best practices, posing risks especially when used by non-expert developers. He envisions a future where developers shift from writing code to auditing AI-generated code, potentially aided by AI tools that generate extensive test cases and perform automated auditing. Nicolas encourages students and researchers to engage with AI security as a vital and growing field, emphasizing the importance of adapting to technological advances and focusing on securing the systems that society increasingly relies upon.