New AI asset class enabled by Optimistic Machine Learning

ETHCC 7 · 10 Jul 2024 · 18:53

Cathie So, an AI engineer working on crypto, explains optimistic machine learning (OPML) and the asset classes it could support. She contrasts it with zero-knowledge machine learning, saying it is cheap enough to run models such as Stable Diffusion and Llama on-chain through validators and challenges. She describes ERC-7007, an NFT-based standard for verifiable AI-generated assets, and proposes inference assets, initial model offerings and initial agent offerings as a hierarchy. She frames this as what blockchain can do for the AI industry, such as funding open-source models.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

A sort of new community and new audience for me. It's first time I'm trying to sort of present what our project has been doing in sort of more of a tokenization and asset point of view. So hi, I'm Kathy. I've been like a long-term, long-time AI engineer. And then I kind of hopped into crypto with like zero knowledge proof and like combining crypto and AI. And along the way, we have sort of like several ideas about like how do we actually make something that's crypto native that is gonna help the AI industry and you know, sort of the two communities progress together. Right, so the um presentation is titled New AI Asset Class Enabled by OPML.

It's more like asset classes. Uh there are actually three classes that I will be mentioning today. Uh so OPML stands for optimistic machine learning, which is something that I'll explain in a bit. Um so there is gonna be quite some background information about like sort of AI crossover crypto, just so everyone is on the same page. Uh and then we'll cover like several ERCs that we have written, as I said, like some of the ideations that we have along the way, how to really make like an AI cross-crypto uh intersection. Um, and then I'm gonna talk about two uh abbreviation.

I know that's a lot of abbreviations today. Um, so IMO and IO, uh, which you will also get to know what it is in a bit. So uh before I start, actually, um who here would say they're familiar with the term zero knowledge machine learning? Okay, quite a few. Um, how about verifiable machine learning or verifiable AI? Or okay, how about on-chain AI? Okay, a few more cool so um just a little bit of background as I mentioned so the idea um actually start with the rise of zero knowledge proof right across the whole industry uh you see zero knowledge proof used in a lot of different places nowadays uh particularly in production there are mixers right like Tornado Cache uh there are like private voting protocols like Semaphore uh there are also ZK roll ups which use ZK to guarantee the state transition of the blockchain um and then in particular there's uh there are also researchers studying zero knowledge machine learning which is trying to boot like AI computation like machine learning computation into a zero knowledge proof okay um the problem with that is that it's actually super expensive uh but that's sort of the beginning of people thinking about verifiable machine learning um why people would like to do that is of course first of all having a proof that says that you have done something in like using a model right you have computed certain you have done certain computation uh using a specific like AI model okay so um at uh aura protocol which is the project I'm in um we actually want to sort of make verifiable AI a reality something that's practical right now so um who's here familiar with ZK roll-up and OP roll-up or at least know the major difference between them great so uh I mentioned what is like zero knowledge machine learning right now, right?

So uh then what um what we have proposed is actually optimistic machine learning. So that's OPML, the ones that are in the title today. And essentially we're trying to guarantee the security of the system or of these machine learning computation uh using optimistic systems. So very similar to an OP role out, um, you will have let me switch it around. You have a bunch of validators, right, in uh in a network, and someone or some users or some apps will make like AI requests. So it's like, okay, I want to compute like this prompt in stable diffusion, okay, as an example.

So all these validators will like compete to get uh to submit the result, like be the first to submit the result for this requested computation, right? And the rest of the validators, if they agree, that's fine. Then the um result is finalized. If they don't agree, then they start a challenge process. So why would we want to like make this um efficient is so going back to this? So um zero knowledge machine wasn't very practical in the sense that it's not gonna fit AI like real life AI models into it. So we needed to move to like an optimistic systems to make sort of at least what we can compute on chain on par with the web 2 world.

And that means any real world models. That means stable diffusion, that means llama. Anything that we already compute like you know, regularly in web 2, we want to do it in web3 as well. And it's not just uh it's just not very feasible in ZK. So um along the way of doing like verifiable machine learning um research, uh we actually read wrote the first AI ERC or EIP on Ethereum, which is why, which sort of explains the first idea of why we want verifiable AI. And of course, one of the greatest, one of the greatest advancements, I think maybe this was last year or two years ago, was stable diffusion, right?

So people start going crazy with AI generated art, and there's so all sorts of debates about like how do we um spot deepfakes, right? How do we actually verify that someone created such an image? Right? How do we distinguish between AI image and real image? So this uh well, this idea doesn't concern the image provenance um uh specifically, but it's um it concerns sort of like how uh verifiable AI can help proof creatorship and have like an end-to-end process from you know the prompt to the model to the end result, right? So uh just give like what would um the world look like before we have this ERC or verifiable ML.

So that would be, you know, I I just give you an image, and you'll uh there's no way to tell whether it's from certain model, unless I also give you the prompt, the seed, like everything that I use to generate it, and then you also need to actually do the computation yourself. Right, so um this um ERC actually kind of introduced a mechanism uh which is built on top of uh ERC721, so the NFT um ERC. Uh the standard basically lay out like, okay, how does a verifiable end-to-end process uh of a AI-generated uh asset looks like, right? So it doesn't have to be an image, it could be text, it could be anything that is generated, like a piece of data that is generated from a machine learning model.

And now uh there's a way or there's an idea of how to make that an end-to-end process such that it becomes a valuable piece of data. Because with this process, there's actually several things that you can prove, right? Uh you can prove that on-chain you're the first to think of this prompt to go through this model and generate this like amazing image. Right? You can prove that you're the original creator of that. And that actually gives value to just you know some other but like uh as opposed to other random generated uh AI art collection that you have no sort of proof of where it comes from. So um going back to the distinction between OPML and CKML, so uh the reason why the um presentation was titled like enabled by OPML is because um all these like sort of assets that we're talking about only make sense because uh all these huge models can now be run in OPML.

So just to stress like a little bit difference with which is like we actually had the idea of the ERC7007 when there was only CKML, but it only becomes like an actual product, uh actual some some something that's like actually implemented in real life right now uh because of the efficiency of OPML. So just some examples that we have already brought, like some uh models that we've already brought on chain, which is stable diffusion uh as well as llama. Uh currently we also have Lama 3 on-chain as well. Right.

So with the cost of uh on-chain AI actually going down, um, that actually means that there is a lot more room to play around with it, right? Because if the cost of doing on-chain AI doesn't go down, then it doesn't make sense to talk about tokenizing any anything. Even with the ERC that I just mentioned, it doesn't talk make sense to talk about tokenizing the data, because the cost of verifying such a piece of data might even be higher than the value of the piece of data itself. So with the cost of on-chain AI going down, um at Aura, we actually think about like our positioning or you know what on-chain AI is for, slightly differently from a lot of projects.

I think a lot of projects tend to think about like you know what AI can do for blockchain. Like, let me put this model on-chain so that it will help with uh you know DeFi or auto market making, which is all very good ideas. Uh, but it's also very interesting that um not a lot of people consider the flip side of the question, right? What can we, uh what can blockchain as an industry do for the AI industry? So um so throughout our kind of like discussions with a lot of AI companies, what we have realized is actually several problems that they have encountered. Uh so one of them is that if their model is open source, it's very typically uh typically very hard for them to fundraise from VCs, right?

Because open source models are deemed like not revenue generating. Um and the other thing is, of course, from the user's perspective, which is I want to know like what models I'm using. I want to know like whether I'm being serviced by an AI company, you know, a certain version of the model that I'm guaranteed, and or or even further is like what data is used to train the model. So about what blockchain can do for AI, we also have several ideas. So the middle piece here is the ERC dimension on like AI generated NFTs.

I mean, in a broader sense, it's not just AI generated NFTs, it's just any piece of data that is created by an inference. So we call it inference asset. Again, uh it's important to have this inference asset both for like the data provenance as well as uh there's no need to like regenerate, right? Because inferencing is often quite expensive as well. So you don't want to create the same piece of data over and over again. Uh it's easier uh or much uh or much more efficient to just have like one single identity or entity of the piece of data. So that's the middle piece in this diagram.

Um, and then we also introduce another ERC which discuss about model ownership. So that's ERC7641. And uh we call the so the token itself is actually not just about model, it's about owning any piece of um, I guess like a collective or entity uh with certain property that I'm gonna mention. Um and the idea is we want to tokenize AI model on chain, right? So we want people who hold this token uh to become like uh owner of this model.

And ownership can come in several different sense. So uh first of all, let's talk about the the token standard a little bit. So it's sort of modeled after the idea of having dividends and also actually a share of this model itself. So there are two key mechanisms that was introduced in this standard, one of which is the revenue sharing mechanism. And the other one is a burning mechanism. And essentially it's not just for AI model, you could pretty much apply this standard on any funding for any project.

And it could be for crowdfunding, it could be for uh rewarding your contributors. And this is actually something that we have seen quite successful with one of the tokens that we sort of initiated. It's a token for a model called OpenLM. And within the AI community people already contributing without money or without incentives right there is a lot of open source contributions. And we do find that like you know tying the community together with a model token actually foster a lot of interesting discussions as well as the contributions no longer only comes from AI researcher. It also comes from the users themselves right people who have you know ideas about or even feedback about like what the model is not good at, what the model is good at.

So that's like our um one of our initiatives as to how to create like a model ownership and foster AI growth as well. Right. So to sort of sum it up as to like how this um an initial model offering actually work, right? So for any AI model, there will be like a corresponding ERC7641 token that represents that model. And then people can of course purchase it and essentially own a piece of the model. And with the revenue sharing mechanism, the AI model will generate revenue.

For example, if some protocol actually make use of this model, they could commit to share like a usage fee to this community, right? In in exchange of being part of this community, right? So people will also help them advocate for those applications that use this model. And then the ultimately the uh you know those fees and revenue will actually get shared back to the token holders. So this is what we're really trying to foster, right, with AI development, which is we imagine that with um initial model offering, then there is a closed loop of how this incentive mechanism would work, which is typically before uh we have IMO, a model open source model is out, right? And it's up to anyone to contribute to it.

There is no incentive, there is no uh uh active efficacy, right? But now if we pair up a model with a token, then we can actually incentivize different contributors uh to contribute to the model, and in turn, more apps and more users will be using the model, which means more revenue. So it kind of um has a closed loop of how um the model would continuously improve. Right. So one piece that is not quite covered in this presentation, and it's actually a very initial idea, is uh the middle piece here in this pyramid, which is initial agent offering. So we talk about like inference assets, which is the data generated by AI model.

We also talk about initial model offering, which is typically for uh foundation models or family of foundation models, right? Uh but then there are also a lot of what we call agents in the AI crypto scene right now, right? So agents is a loosely defined terms. Uh usually is refers to like fine-tuned versions of the models, right? Models that are fine-tuned to have uh to serve a specific purpose or specific use case. So these fine-tuned models can of course also generate uh revenue, right, as well as usage, and they are um their own asset class as well as they can also contribute to the foundational model.

Right? So there is it's like a hierarchical uh scheme where you have the foundational model and that's uh initial model offering, and then one foundational model can be fine-tuned to bajillion uh agents, and they could each have their own token as well, right? And then they can then also commit like their revenue to the original foundation model, which they you know make use of. Um, so that uh that will sort of complete the picture uh as to how we get from like model all the way to uh through verifiable AI to inference asset. Right.

So uh Aura, that's pr I think the the this presentation pretty much sums up like on the um token ideation side what we have been doing. Uh I mentioned that we have brought several models on chain already. That's actually through our on-chain AI Oracle. That's our main uh product as a project. Um and we actively do a lot of verifiable AI research. Uh so we propose initial model offering, and we also do research on like optimistic machine learning as well as like how to combine CK with it. Cool.

So that's the end of my presentation. Uh through my link tree, you can see like the research papers, the ERC standards, as well as link to our protocol as well. Thank you. Thank you, Kay. Yeah, this was an outlook to probably the next token engineering event where we'll, I'm sure, further discuss the implications, the opportunities.

Related talks