Building trust in AI with Zero-Knowledge Proofs (ZKP)
Anthony Butler
Senior Advisor | ex-IBM Distinguished Engineer | Artificial Intelligence | Blockchain and Digital Assets
The proliferation of AI models, particularly those delivered “as a service” over APIs, will increasingly raise questions around how can business or consumer users trust the veracity of the predictions or classifications that these systems deliver.? For example, how can a user be assured that a model has executed faithfully without tampering or error???
As regulators grapple with the implications of different forms of AI, it is also probable that, in the future, regulators across different industries may also be interested in how to ensure trust in the use of artificial intelligence.? Whilst there are, of course, various mechanisms that can be used, it’s interesting to consider whether there can be private sector, decentralised solutions that give the users of AI assurance without the need for heavy regulation or supervision.
A cryptographic concept called a Zero-Knowledge Proof (ZKP) may enable this.? A ZKP is a cryptographic protocol where one party (the “prover”) can prove to another party (the “verifier”) that a statement is true without disclosing any information other than the truth of the statement. ?Invented in 1985 by Goldwater, Micali, and Rackoff, it’s a relatively old concept that has experienced a rapid acceleration in recent years; largely brought about by innovations in the fields of distributed ledger technologies and cryptocurrencies.? ?This video provides a set of explanations of the concept with progressive levels of complexity.
So how can the provider of an AI model give the consumer of that model confidence in its correct application to a particular task??
One method is, of course, for the model provider to provide the consumer with the model weights.? However, given the nature of these models, this would mean that they have effectively given away a large part of the intellectual property embedded in these models and, further, it is probable that not all consumers would have the computing capacity to run these models anyway.?
Therefore, there is a need to invent methods for model assurance that do not require the “leakage” of model weights and do not require large-scale compute capacity which, if held, would also mitigate one of the reasons for using cloud-based models in the first instance.?
One possible method, leveraging zero knowledge proofs, could be as follows:
领英推荐
There have been a number of explorations of this approach, including the open source ZKML project which demonstrated the effectiveness of this approach to the well-known MNIST image classification problem.
A more concrete example of where this might be applied is credit scoring.? Ideally, all people in a given population should be scored based on the same objective characteristics without bias or discrimination.? A credit scoring system could with each classification also provide a zero-knowledge proof that gives assurance that the same model (as represented by the hash) has been used across the population.
This, of course, doesn’t solve the entire “trust problem” with AI (or indeed other forms of third party computation).? It goes some where to improve our ability to ensure authenticity and integrity of a model, it doesn’t necessarily address some of the more emergent challenges when we consider deceternalised inference or training of models (where data may have diverse pedigrees).? This excellent blog post at A16Z discusses, in more detail, some of the other areas where ZK could potentially be applied within the machine learning domain and links to some of the important literature in the field.?
Nethermind DeFi Research Analyst | UCL MSc Computational Finance Graduate
6 个月Fascinating and well written - thank you
Navigating the Digital Landscape with a Proven Track Record of Driving Technology Strategy & Service Delivery Excellence
1 年Anthony Butler you unintentionally boost my confidence :). When I read your posts and get the point and the content, I feel I am at the right level of technical ??! It's like a test for my knowledge. Thank you for the brilliant posts.
CSE, Kyndryl
1 年Elaborate read! Adding this to the ZK-SNARKs compendium: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4563364