Verifiable Inference: Don't Trust, Verify

Crypto x AI Month 2024 · 15 Oct 2024 · 1:06:55

Moderator Luke Saunders joins Inference Labs founder Colin Gagich, SphereOne's Ryan McNutt, Aizel Network's Jeremy and Ambient's Travis Good to compare approaches to verifiable AI inference. The panel examines Zero-Knowledge Proofs, trusted execution environments and decentralized models as tools for private, secure and auditable computation.

Speakers

Topics

From Crypto x AI Month 2024, hosted by Delphi Digital.

Transcript

Before we get started, we'd like to thank our sponsors for making this event possible. Special thanks to our Platinum Sponsor, Olas. Olas enables everyone to own a share of AI, specifically Autonomous Agent Economies. We're also excited to highlight our Silver sponsors, Near, empowering decentralized applications and blockchain ecosystems, Venice AI, a private and uncensored alternative to popular AI apps, Mira, unified AI infrastructure secured by Crypto, and Theoriq, the first on-chain multi-agent system. To learn more about all of our sponsors, check the description below and dive in.

Enjoy the show. Hi, everyone. Welcome to our panel on Verifiable Inference. I'm your host, Luke Saunders. I'm joined by the founders of four leading crypto AI projects, which are either directly building Verifiable Inference solutions or have a need to integrate inference in some trust-minimized way.

Through the session, we'll touch on what Verifiable Inference is, why it's important, dig into some real-world applications and some discussion on the different approaches these guys have taken. I'd love to kick it off with some intros. If you could all do a minute or two on who you are and what you're working on, maybe let's start with Colin. Sure. Thanks, Luke. I'm Colin, one of the co-founders here at Inference Labs. We're building a network for verified inference, really focused on solving the hard problem of both how do you optimize a ZK system for verification, but at the same time, how do you do maybe some more soft verification using cryptoeconomics? We'll get more into that later on. We're also deployed on BitTensor.

We have a subnet, Omron subnet two. It's a top 10 subnet, really focused around incentivizing improvements in the ZK space as well as in verified inference. I'll leave it there. Awesome. Good stuff. Ryan, do you want to go next? Hey, yeah, I'm Ryan. I'm one of the co-founders of SphereOne. We are essentially building AI agents to make blockchain transactions and processes easy to use and automate for payments. Nice. Jeremy? Yeah. So, ISO network, we're basically building the most scalable and also the fastest network dedicated to verified AI compute. I think Inference is part of the solution that we're providing. Also, we could go all the way from inference to execution so that anything happens

on chain regarding AI compute, we can just make it verifiable and also private. Right now, I think maybe one of the biggest differentiation among other great folks here is that ISO is using TE based solution, mainly at the current stage for verifiable and also private compute over AI. Right now, we can directly support CPU and also GPU across different kinds of TE models, and we can all the way support two billions of parameters, large language models directly verifiably and also privately on chain. Cool. Thanks. The last guest is Travis. Hi, I'm Travis Good. We're building Ambient.

Ambient is a proof of work based L1 that is designed to deliver verified inference on one huge model starting with llama 3.1, 405 billion. We have a unique approach to security that's incredibly efficient. Happy to talk about that later on, but that's the gist. Just to set the context, could one of you just give a definition of what we mean by verifiable inference? Sure, I'll take it. I kind of think about this in a few different ways, but really, maybe to stretch the definition to also a trustless inference. Really, we see it as you don't need to

know any further details about the inference itself other than input and output. And it doesn't really matter who's done the inference, where it came from, any other details, you can just verify on your own with the information at hand that it's correct and meets whatever criteria it is you're looking for, whether that's a particular model, whether it was done and done correctly. So it's kind of how I think about it. Now, can everyone happy with that? Yeah, I mean, I think the trustless aspect is sort of the key. We all go out on a limb with different forms of compute, so it's really important to be able to prove that operations were performed according to specification, particularly in the agentic economy. Cool. Let's

move on to the next thing. So when I looked into verifiable inference before, I found it really hard to reason about how big the market size was, found it hard to think of what specific use cases might be. So I'd love to just go around the room and for you all to give an example or some example use case that you're excited about. So yeah, what are the use cases that need verification? We'll just go around the room and start at random with Jeremy from IZEL.

Yeah, for sure. This is definitely a very interesting question. Actually, we started IZEL around early last year, and we've been chatting with a lot of the other folks working on verifiable AI. And then all of the main questions that we got all the time is that what are the use cases? What's the important point of making AI to be verifiable? And I think I can probably recall a little bit back to the definition of verifiable inference. So I think the background for the reason why this is so important is because AI itself is fundamentally black box, right? It's fundamentally centralized. You have no idea of anything going on when you're trying to use it. And blockchain is entirely on the other polarized position, which is entirely

verifiable and also decentralized. So if you're trying to use AI on chain purpose, or maybe just simply using AI on chain, it's really, really critical that you ensure that the black box nature of AI can somehow be provable, basically verifiable by other people so that you don't have to be concerned about the security of the AI. So I think for us, I think one of the biggest use cases that we have seen really excited for us, you know, verifiable AI or maybe on chain AI is that I think the good thing about AI is that it brings maximum efficiency in a lot of other ways. But I think with blockchain or maybe like blockchain based solution, verifiable solution can provide to AI is basically the enclave, really like the guardrail that can protect, that can ensure that

AI is performing as we expect, expanded to perform. So I think one of the use cases that follow this philosophy, this, this stream is something called, you know, biometric verification that we're working on, which is basically we can ensure that by using like a computer vision model in the back end, we can ensure, you know, all the people, all the wallets and also all the, all the, all the accounts on the blockchain are backed by real human beings. And traditionally, there are some, you know, projects, you know, using different kinds of, you know, schema, for example, using pound recognition, maybe like facial recognition to avoid, you know, similar, you know, similar attacks on blockchain to ensure that every single wallet is backed by a real human being. And

apparently, like this require a paramount trust assumption on that CV model in the back end, because fundamentally, whether you're doing like any kind of, you know, biometric verification from pound recognition to facial recognition, or even fingerprints, you're somehow using AI model in the back end, right? So that will pretty much, you know, ensures that pretty much needs that, you know, you know, the users and also the ecosystem have to trust that the AI running the back end would not, first of all, leave your information, or maybe it's basically substitute your biometric, you know, you know, identity with not a people's identity or stuff like that.

So we require a paramount trust assumption. I think what we're working on is that we try to bring, you know, biometric verification directly on chain. So that basically, it basically means that, you know, the AI that is, you know, backing this, you know, biometric, you know, verification can be proven to be correct, correctly run correctly, and also privately run by the users, sorry, on the blockchain, and can be examined by any other people out there. So I think this is something that we've seen as very, you know, on demand, especially for other, a lot of the other ecosystem that they have huge need for anti-sybil attack, you know, approach, but this kind of approach, as we said, as I said, in the past, they're all like, you know, really

all chain stuff, like you have to trust a lot of the, you know, components in this, you know, whole process, including the AI and also the AI Compute Provider and stuff like that. But right now, it can all be done in a very fairly verifiable way. So that, you know, if we try to envision for the future, you know, ecosystem that can that is equipped with this kind of, you know, on chain biometric verification, they can pretty much ensure that all the blockchain users, and also wallets on their ecosystem are actually backed by a real human being. And also the users don't have to trust, don't have to trust the AI itself, but they can just simply verify that and also they can ensure that their private information, biometric information will not be leaked to any other parties. So this is like, yeah, just a very interesting use case

that we're working on. Cool. Is that you, is that Iso working on that or like a third party building on top of Iso? It's actually a main use case that we're working on because we have our test set out and biometric verification, which is backed by a, you know, different kinds of CME model is like a pretty important use case that we're working on. And this is actually the service, the kind of service or maybe like use cases that other ecosystems would want to use. So this is like a, for us, it's like a low hang. So yeah, we just work on that. Cool. Yeah, maybe Travis, like any use cases you hope Ambient will be useful? Yeah, absolutely. So I want to speak generically, and then I can talk to the one specific to Ambient. You know, I think generically, you don't actually have crypto AI without verified

inference. And the reason is that our desire is to use heterogeneous distributed long tail GPU compute. And in order to do that, we have to live in a trustless world. In order to get the cost benefits, the decentralization benefits of all this compute that exists in the world, we have to be able to trustlessly run AI models. And we can't do that without verified inference. So I actually view verified inference as the cornerstone of the agentic economy, it's that from which the entire agentic economy flows. And, you know, if we're talking specifically about Ambient, you know, our observation has been that classical solutions

have difficulty scaling up to large parameter models, while simultaneously addressing the long tail of compute. You know, if you look at things like trusted execution engines, most of the time those are reserved for enterprise class GPUs and CPUs. And so we wanted to create a generic solution that would be incredibly performant to the tune of, you know, being 100 times more efficient than solutions that we're aware of, that would deliver verified inference on a highly intelligent model.

And so our goal is to leverage all of that heterogeneous distributed compute that's available to deliver a single, a verified inference on a single highly intelligent model at a speed and cost that is comparable with what is available from closed source. So we think this is a huge market that needs to be addressed. It's basically what crypto AI needs in order to be competitive as a baseline, you know, with the closed sourced ecosystem. And we think a lot of things are enabled by bringing this capability to market.

Cool. Colin, I know you're live and you have some real use cases built on top of inference labs. Do you want to touch on one or two of them? Really, what excites me these days is actually to one more in the future and one kind of more here today. Really in the AI5 space, use cases around capital allocation, you know, helping a lot of protocols that are trying to project the kind of near to short term, maybe even just in terms of how much total locked capital is sitting in a protocol. I'll give you an example, Benki.

They have this problem where as user funds are coming in, they have to determine how long they should be staking the capital for. And then based on that, you know, predicting kind of short term liquidity needs, and they use AI to actually help predict this at a protocol level. Now, of course, you're managing user funds, and you have to show that this AI algorithm you're using is actually making these calls. And when you're kind of when that hits chain, and it becomes time to execute that locking operation, you want to have some reasonable security control. So that's really where the verified inference part fits into that. So it's been very interesting. We're working on a similar project with Renzo

using, again, same idea, which set of ABSs should capital being allocated to. And really, as that scales out, it also becomes an incredibly difficult problem as the number of ABSs continues to grow. Now, one sector that I'm also seeing emerge is really in the AI gaming space. I think this is this is super exciting. There's kind of two forces that are that are coming together. One is people just don't have time to play games anymore. When I was a kid, I loved roller coaster tycoon, got it in a cereal box and I have it on my phone, but I've played it for probably a total of maybe two hours since I've got it about a year ago.

And what's happening is a lot of people have these games that they would just they want to play, but maybe there's an AI in the background that can kind of play it idly, cookie clicker style. So seeing that happening, and at the same time, there's this nostalgia trend as well. So I'm super excited about some use cases there. And of course, if you're going to be making an AI to play a game on your behalf, you're going to want some some form of verification there. So that's how it all ties back together. That's cool. So for Renzo and Bankey, the first use cases, they developed their own models and they're hosting them on inference labs. We're working with them to actually develop and host those models, you know, super early early projects here.

And definitely something that that is super exciting. Okay, awesome. Yeah, right. Right. I noticed fear one's a bit different. It's not a verifiable inference solution as such, but you do your agents do move a lot of value around. So yeah, is there a use case you want to touch on? Yeah, absolutely. So on our side, we have hundreds of different agents that support 116 different blockchains. So I think the obvious thing for us is a verifiable inference on the agentic level. I think that's a huge push there. Anything dealing with transactions, I mean, some of the learnings that we've had is that like, also

when dealing with agents, there's a component where even by reproducing call data associated with the actual context, like from the models themselves, he like almost like a state variable associated with that to actually reproduce that call data. So not only does the inference need to be verified, but also like you need to some kind of secure environment to run the execution as well. So there's like some cool pieces that we've had kind of just discovering and building up all of this. But I would say that anything that is mission critical, I'm even thinking like, in the future, you know, if there's a doctor that has a patient, right, and they're trying to figure out some kind of treatment for a patient, I don't think you would want to have a doctor that was, you know, maybe using something and then,

you know, something, God forbid happens to the patient. And then, you know, you look back and they used a inferior model or something that was 10 cents cheaper or something like that. I think that you would want to have some kind of verifiable inference for even mission critical things like that. So I think it's a lot bigger. But the first obvious case, I think, is definitely inside the crypto space. And that's kind of the one that we're most excited about. Nice. Right. So you're all taking different approaches to how you verify model outputs, right? Like ZK, T's, proof of logics, and ambience case. So I'd love to discuss a bit your different approaches. Maybe let's start with Jeremy. I

think Isoll is using T's, right? Trusted execution environments. Could you touch on how that works and why you chose that versus alternatives? Yeah, yeah, for sure. So Isoll is currently using T based approach. So T, just long story short, so T itself is a secure enclave. You can think of that as like isolated hardware equipment that you can find in many of the machines around the world, like CPU, GPU, you can pretty much like find different kinds of T models inside those chips right there. And the birth of T-based approach of T like a long time ago, is to ensure

the computation integrity and also basically privacy, computation privacy of a certain process. So traditionally, T are used for, let's say, some sort of scenarios, computation scenario that requires strong privacy, preserving function and also a verifiability. So for example, in your iPhone, every time you do like facial scanning, or maybe in the past time for fingerprints, scanning, that compute is actually happening within the T in your iPhone. So it's to ensure that your biometric information is not leaked to other people. And also the verifiability in this whole process is generally can be protected. So

the reason why the ISO is choosing T is mainly because at the current stage, T seems to provide the most viable solution for really acceptable usage of launching AI. The reason is being T itself is a widely adopted technology and also the compute for each, the cost per compute inside T, generally speaking, is pretty low. So I think for us, we're actually making a lot of the customizations and also some pretty amazing architectures around like different kinds of T and also how to collaborate them for a specific task and also our data persistent layer and stuff like that. But in general, the core thing that we're building is around T to ensure that any kind of

model from traditional models, deterministic model, all the way to non deterministic model, for example, large language models can all fit inside this T architecture so that they can basically run in a verifiable and also private way. So I think just to compare it to like different approaches that we are going to discuss later, for example, I do think that ZK is probably the most secure approach for some really critical use cases that people might concern about absolute security of their, for example, their fund or maybe their transaction and stuff like that, that's driven by AI. But those kind of use cases probably ZK is the best because it provides strictly cryptographically, the best layer of level of security and also

verifiability. But I think for us, we try to focus more on like really widely adopted use cases that might not be for users that are actually not that sensitive around like some specific use cases. So I think for us, we try to focus on bringing the verifiable AI solution to a more cheaper price and also faster speed to deliver to the users. They don't have to wait for a really long time and they can just accept their results by basically other verifiable results in the fairly acceptable cost and speed. So this is something. Yeah, this is basically, you know, T around around T solution. Cool. Thank you. Some critics of T's point to the fact they've been exploited

before and they think that might happen again. I guess a lot of people have pointed that out to you when discussing either what's your response, I guess. Yeah. So apparently like T, especially for fresh ex, that's probably the most vulnerable team out ever in this space. It's been in history, it's been hacked for multiple times. But I think according to, as far as I know, as far as team knows, actually nobody ever hacked in T in hardware level, basically means that if you try to hack a T the real, like the thing that you need to do is that first of all, you have to identify which T is actually working in a large warehouse. So you have to be able to identify that. And then if you identified it, you have to

pull that out, like pull that specific T out of the machine and you have to scrape the private key out, like under a microscope, which is like a really, really complicated and also difficult task, you have to do a lot of steps. So I think for us, definitely T itself is actually a trade. There was definitely going to be a trade off saying using, let's say, just providing faster speed and also cheaper cost, but sacrifice certain level of security on the software level maybe. But I think for us, first of all, we're using more advanced models, Intel EDX, the MDS-CV, H100 CCX and stuff like that. So they're apparently generally more, much more secure than the former version, for example, SGX. And also we're actually working

on like a multi-proof, sorry, like a MPC multi-party compensation protocol, which can basically delegate different T's, kinds of T's for one specific task. So that even though one T fails, or maybe like a single point failure, or maybe just being hacked or something, in case that happens, there will be some other T's or maybe some other notes with other kinds of proving schema can actually come up and substitute for that specific task. So that basically means that this whole network is going to run in a more decentralized and also a robust way so that one T is not going to ruin the whole network. But I think in general speaking, at the current stage, because Nvidia and also Apple Intelligence,

they're all using T for different kinds of local solutions for a viable AI. So I think this is actually a very, like, T apparently has kind of a lot of hype in recent months, probably because of that. But I think generally speaking, we don't actually think that T is going to be the end game. Like seriously speaking, we don't think any kind of method proving schema can actually just going to be the end game, like all the way down to the future. We don't think so. But rather it's going to be a hybrid of proving schema that can fit to different scenarios. So I think for us, we try to focus on really the massively adopted scenarios that there's going to be a ton of usage. Sorry, there's going to be a ton of traffic and ton of users using them, which basically means that

they want lower cost and also faster. So I think for those kind of use cases that need AI to be on chain to be very viable and also private, those kind of use cases are the use cases that I will try to try to fit with. So yeah. Cool. Thank you. Yeah. So you mentioned ZK, which I guess brings us nicely to inference labs. Colin, how does ZK work in this context and why did you choose it? Yeah, I definitely agree broadly with Jeremy's take on ZK and kind of where it fits into the landscape to just really zoom out and kind of high level try to explain how this works. ZK generally, somebody is proving to another

party that they know information. In this case, the prover is proving that they know a set of model weights and biases to a network and that they're being used for a computation. The overhead on this can be significant. It's anywhere from 100 to 1000X to even more, which definitely limits the size of the models that we can do today. Thankfully, if you're not doing LLMs and you're kind of focusing on more of these niche application models, a lot of them are significantly smaller and are much more tolerant to the current limitations. Thankfully, there's also a lot of great teams besides us working on the latest and greatest ZK proving systems. Something I find

super interesting about ZK in general is assuming that soundness remains. Basically, the proving key is ever leaked out of a model. Really, the worst case scenario is that a bad actor is able to produce good and legitimate proofs and inference for this model. They're probably useless on themselves, but in the case of, as Jeremy had outlined, someone goes to the length and is able to pull a private key out of one of these enclaves, the potential for something bad to happen is much different.

The ability to detect that is also more complicated. Just a different set of trust assumptions and a different set of what's at stake here. Then going back to our solution, we really ask the question, is a proof really needed every single time. That's really where the cryptoeconomic side fits into it within our network. Notes have staked collateral that are producing inference and essentially they actually aren't required to do a ZK proof every single inference that they produce only when they're challenged.

That helps with two things, obviously the cost, but also latency, which is another element. People expect things right away. If you're using chat GPT, you're expecting that to come as quick as possible, even with the latest update that they have there with the thinking. But it makes sense as well because if you're using chat GPT and you're going back and forth with it, you don't really need verification on all your intermediary steps. It's only really once you get to that final answer, that final solution that if you were to do a verification on that, would you need it? A couple of different elements there.

So when someone's requesting an inference job on inference labs, they can choose whether they want the proof or not. Exactly. If they're doing something with potential high cost of failure, like managing user funds, you probably want that proof right away. But again, it's always about trade-offs. You're going to have to pay for it. It's going to take a bit longer, but on the flip side, you do get that utmost security. Cool. And do the applications on top verify the proof themselves, or is that done elsewhere in the network? Elsewhere in the network. So the way that going back to that proving key, there's also a verification key that comes along with that.

Every single time an inference is completed along with the proof, the proof is also then verified on chain. You can think it's loosely equivalent to a private public key pair where the public is the verification key. Got it. Cool. And then Travis, Ambient, you're using proof of logits, which is another thing entirely. Could you describe that, how it works, and why you choose it? Yeah, absolutely. So that's something unique that we've created. And we've bounced it off a number of different experts in the field to make sure that it has very strong security guarantees, and it does. But I think that our motivation

for creating a proof of logits was just some observations about the different solutions in the marketplace and what is really in demand. So we looked at the market that we have with closed source, and we saw that people really have a high demand for a highly intelligent generalist model that's returning inference fast with a low cost. And so our question was, how do we meet that requirement? And so I think with different approaches that you can take, like with ZK, with trusted execution engines, you can choose to solve a totally generic problem. You can choose to

solve something in the abstract. But Ambient actually chooses to solve a specific problem. And when you do that, you can get a lot more efficient. So the specific problem that we choose to solve is, how do you run and verify inference on a very large, sharded, highly intelligent model very fast, very cheaply, assuming that the model is the only model on the network, that that model and its fine tunes are essentially the only things running. In other words, it's not a generic problem that you're solving anymore. It's actually a very specific problem about identifying this particular model and its variance. And if you adopt that

assumptions, you sort of achieve two things. So first of all, you can get the efficiency, because you know a lot about the model that you're running. You know all about its characteristics. And then the other thing you do is you actually meet the market need for people to have fast, cheap, good inference on a very large model, what they get with chat GPT, what they get with the Claude API, what we see in the world right now. And so I don't want to go into a huge number of technical details on the approach, but it's very low overhead. We're talking about 0.1% overhead. It's on the order of like six tokens per 4,000 tokens worth of inference.

It fully supports sharding, so spreading a large model across different machines using layers and blocks and verifying the inference that comes out of the clusters that are formed accordingly. And it's very fast. We can actually do streaming verified inference on very large models. And so again, you know, it's a very unique approach. It's not solving the general problem of how do we verify computations, but it's solving the specific problem of how we deliver something that's competitive with closed source in the near term.

So if I understand correctly, you're not allowing others to upload their own model and run verification on inference on those models. It's more like you have one model as part of Ambient and you're verifying that. Yeah, it's one model and it's fine-tunes. So we intend to support training of fine-tunes on the network, you know, in a verified way actually. And, you know, ultimately in the three to five year time horizon will support pre-training on the network. You know, you could think of it as a model upgrade in place. We think that llama is going to be around for a little while and we'd like to ride the llama train like everybody else. I mean, why not take advantage of Metas, CapEx, expenditures? But when that goes away,

we want to be prepared. So yeah, the short answer is we support the base model, the foundation model of the network, as well as models that can be expressed as deltas with that base model, which are the fine-tunes. Okay, amazing. If you don't want to talk about the technicals of how you're doing the verification because you're just not ready to talk about it yet or more because it's a little bit in the weeds. Yeah, we'd ultimately like to publish a paper about it and so I don't want to get into spoilers territory, but we think everyone will really enjoy it when we do. Fair enough. Yeah, Ryan, what's your approach at Sphere One?

Yeah, so for us, we support a numerous amount of different models. So we support open source, closed source, everything kind of in between, different sizes, 8 bill, 72 or 70 bill, and I believe we support 405 as well. So we kind of allow the user to pick and decide. That comes with varying performance. Sometimes the outputs aren't as good as we would like, but we do like, but different agents essentially just run on different inference. I do have quite a few questions for the group though, if that's something. Please, please. Yeah, go for it.

Okay, cool. Yeah, I mean, Colin, I mean, we'd love to kind of hear more about what you've got going on for where you do proofs, like you can decide to do the proof and then kind of not do it. We've seen, so from our side, we are mainly focused on multi-agent. So we'll have a lot of conversation going, and then it only comes when like there's a transaction that then that would be something useful. So like, is that what was your kind of thought process when coming through with that or coming up with that? Well, that's exactly what it's meant for is all those like intermediary steps or conversations as you put it, probably don't need verification and probably are ephemeral in some sense. Anyways, it's this

part of the steps to get to the eventual resolution. So the way that we've structured it, nodes have stayed collateral and they can be asked to provide that proof. So on that final submission or execution, then there's a period of time where that node is expected to produce that proof where it's then verified and accepted. They've had the incentive the entire time to behave honestly, because at any time they could be called on this challenge. And if they fail to do so, they're then slashed and they lose some of that state collateral.

So just offsetting that with the crypto-economic side of it kind of lets you get some of the best of both worlds there on the latency side, on the cost side, and as well just overall trust in the network. Can I ask a follow on on this one? Because optimistic is one of the approaches that we considered at the beginning too. And we've observed two problems with optimistic approaches. So one problem is the actual reproducibility of the calculations. You know, LOMs can be pretty non-deterministic. And so in an optimistic world, we say we're going to audit, but that actually we've observed is a real challenge for

different approaches. So that would be thing number one. And then the other thing that we've observed with optimistic is issues with asymmetric risk. So if you're looking at a DeFi application, for example, I've got $10 billion on the line, and I've got this huge context job that I'm running through. I'm processing everyone's qualitative and quantitative inputs for like the last 10 years of their financial history or something. And I'm going to make this yes or no loan decision or whatever. And the guy who's providing me the verified inference, he might stand to lose $10,000 based on slashing if he gives me a bad inference.

And so I guess the question is, how do you deal with those two problems, the reproducibility and the asymmetric risk? For sure. And I actually want to add a third element to this, which is just the, you had mentioned optimistic and optimistic only works really well if everyone knows where a fraud is they can point to. So to add another layer of complexity, we're talking also private models. And that's another layer of how do we know that this was valid? So the first part of that, when it comes to deterministic or non-deterministic models, generally the models that we support are deterministic. And a lot of these will have some form of seed or some randomness that's injected at inference time. And as long as that's

consistent, the model does end up being the same regardless of who's running. So another piece of this is in order to properly circuitize a model, you also do make some sacrifices at the layer level. Not everything you do is very easily put into a circuit. So you have to approximate some things like sigmoid, you have to take some floating point approximation losses as well. And it just becomes this series of trade-offs where you say, how accurate is good enough? Yes, you can get 99.99 instead of 99% close to the original model, but it's going to take even longer and there's more overhead. So there's a bit of wizardry that

needs to go into that as well. Second question, basically boils down to how much cryptoeconomic security is sufficient? And that's actually, I think, a broad question we have right now. If you look at the restaking landscape, it is actually, I say, still an unanswered question, depending on the application, depending on what you're doing. The way we look at it is, all the nodes bring a different level of economic security along with them. Some of that is up to a user to decide how sure do you want to be? How much does this node that's going to give me the inference have to lose if they are wrong? And I

know that that's not necessarily the best answer is I don't expect everybody to, this is another, if you're doing trading on a Web 2 platform, that's never a question that you have to think about. It's never a, what's my counterparty risk with the platform I'm about to trade on? That's not really something that people think about. In Web 2, we have insurance for that. There's guarantors who are going to say, hey, there's a level of certainty you can have about this platform if something goes wrong.

And there's some models that are similar models being put together here in Web 3. For the last part of that that I added, these models are also private. So how do you know, how can another node do an optimistic fraud proof if they don't even know where the fraud is? And we use the word optimistic as people are kind of familiar with that, but it ultimately is more of a validity proof. So the nodes that are doing inference on private models, only they have full knowledge of the model that they're doing inference on, and only they are capable of producing a validity proof for that inference. So it isn't quite, there's other

optimistic models out there like OpML. Those are kind of more in that domain that we're describing here, where anybody else on the network can actually come in and say, hey, this is where the fraud was because it is an open model and they have knowledge of it. And I think to answer why we also make that distinction, in the short to medium term, we believe that that's where a lot of the magic is going to be is on these private models where they have a particular edge or maybe a DeFi trading or some other use case, or back to my gaming example, it's kind of your version of the player in the game. You don't want everyone else to know how it works. If you're playing chess, if your counterparty knows exactly how your AI is going to perform next, not really a good strategy.

Right? So definitely all those elements combined are super important. Cool. The determinism comes up quite a lot in crypto projects. Is fixing the seeds enough to guarantee determinism or just like differing hardware of the nodes leads to different results? Is that a big issue for you? Once it's circuitized, there isn't an alternative. There is no other way for it to actually come out. It is fixed in that sense. It can happen elsewhere. There can be some slight, small differences here make a huge difference on the output or can, but it's thankfully something we don't have to deal with.

Cool. Any other questions or comments for each other? If not, we can... So just a question maybe for Ryan. We always like agentic providers because we think we can be a provider for agentic frameworks too. One of many that you use probably. And so we're curious about how you think of that. Are you offering sort of a generic solution to look at other people's verified inference? Are you providing your own out of the box case? Are you offering a generic out of the box capability? How does that work? So we're more focused on the agent layer itself.

And we want to give users the options. So kind of how I think about it, it's kind of like the use case, I think, Colin, you're bringing up where maybe it is like a hundred million dollars and the crypto economic security is $10 or something. It's like, I don't know if I'd want to do that. But if it were up to you, you would get to choose what actual model you would like to run on and which compute you would run it on. And what we've also seen is that there's, I think, some optimizations on like we have some stuff that we ran internally for like LLM routers. So we were trying to optimize for the most cost-effective, the quickest time to first token, stuff like that.

So I think even in that realm, there's still some user optionality that I think would be important. So yeah, absolutely. So I guess I have a viewpoint. I'd like to express maybe a little bit in philosophical opposition to what you were talking about, Colin, although I think these things just coexist in the in the world and it's fine. But, you know, I guess my view is that to for true trustlessness and decentralization, you know, we need to be able to know the models that are running. And, you know, there's one level of that where we say, yes, this particular black box model was running this particular thing. But there's

another level of that where, you know, we actually want to understand the performance characteristics of the models that are running on systems so that, you know, transactions aren't getting poisoned, so people aren't getting economically exploited. You know, I think that, you know, it's been eye-opening to watch, you know, even the stuff that exists out in the open, you know, some of the smart contracts having vulnerabilities where, you know, you look at the library dependencies and, you know, if you're downstream from a particular flawed library, like even if that library is fully open sourced, like you get yourself into trouble. And I just, you know, I think ambience perspective and my perspective is kind of like, wouldn't we want these things to be

fully open and exposed so that, you know, for these non-gaming types of transactions, you know, where it's not, you know, it's your particular economic edge, but just for these like autonomous corporations or, you know, trustless betting markets, prediction markets, you know, wouldn't you want those things to be open to the world and open to scrutiny in order to, you know, support the ecosystem better? Absolutely. I fully agree with that. I think where you run into trouble is in areas where it's going to be gamed. If there's ever some incentive where you, you know, know some more about the rules and your counterparty might not, it's going to be exploited eventually. And there's a lot of use cases, I think,

like I said, in the medium to short term, where that's just what's going to happen if the model is fully public. I think there's a couple of ways you can mitigate that as well, although maybe not perfectly. You know, how sure do you need to be about a model you don't have full knowledge of to use it, right? And to be confident it's going to behave a certain way. It could be, is that 10 inferences? Is it 100 inferences? Is it 100,000? What level of, you know, published metrics that are also verified, would you need to to convince yourself of this fact? And, you know, once you're there, it then becomes a question of, can I, you know, now I just need to verify every other future inference with that. And I get that

guarantee. I think there's also something to be said. This is another another narrative that I think is under discussed that maybe we don't always want the state of the art model. Maybe what we have now is is good enough for some applications. And what we actually care about is not that we have the latest and greatest, but that we have what we thought we had previously. And you know, there's a couple real life examples out there. One was replica, which was a, you know, a chat bot, a lot of people were using this for companionship, let's say, the guys updated it, brought it to a new newer version, and a lot of people felt that they lost a friend. And I think that's fascinating. I think, you know, having that locked down to, you know,

this version of this AI model and kind of the companion that you had, you know, these guys are out of luck, they felt that this company had destroyed something that they had really got to know. And I think we'll see more and more of that. There's also some other practical examples as to you know, the previous models might just be cheaper, and you want to have them around. You don't want them to be deprecated and, you know, replaced for the latest and greatest. It might not be good for your use case. Maybe just a quick question for Jeremy, and then we can move on.

Does iZell support closed source models? Or do they all have to be open source? Because they're in a TE and they can't be seen by the node, you can maybe support closed models. But yeah, let me know. Yeah, we actually support both, you know, closed source and also open source models. So open source model is like fairly straightforward. So anybody can actually deploy open source model of all kinds directly on one iZell across different across our, you know, data persistent layer. And the closed source, yes, that's workable too. So basically, what there's something something actually will be needed, which is like encryption, you know, process that model from that the private model from, you know, some from the

model provider, where there's individual, maybe the company, they will have to encrypt the model into like, different forms that we that, that, like generally speak generally generally available. And when that model is encrypted, they can just be submitted directly to like, TE and for compute. So that's what we're going to. And this process is also going to be very fast, because the the encryption process of the model itself is also like a really standard, you know, once generally, generally in web two. So so yes, that's both like, both both supported. And I think I think this is also like a really good thing about TE, which is so as long as the TE itself is not tempered, it's like a isolated protected environment, enclave, so that anything

happens in this whole process can be trusted. And also, it can be done in a fully private way. So even the node that runs the TE doing the compute would not have any idea of what's going on in that in that TE itself. So so yes, a closed source model is also supported. Got it. And Colin, you support both too, right? But in the case of a closed source model, the owner of the model needs to be the one who produces the proof. Is that right? That's right. And the inferences as well as they retain the full rights to that intellectual property. And then essentially, you know, they kind of fall right in the middle of that spectrum of closed and open source where they're able to show publicly that there's that

model is being used every single time. And, you know, every inferences is can then be verified from that. And the model itself is, you know, untouched and unmanipulated. Want to know as many details about the magic black box as you as you can, if you're if you find yourself having to deal with the magic black box. For sure. Right. Time flies. I've got some like rapid fire, semi relevant questions I'd love to end on. So the first one is the move to edge devices. I've heard a lot of people speculate inference will move on device to people's phones and laptops. This will be driven by,

you know, privacy concerns. They don't want to send their data to the clouds, bandwidth requirements and a need for for low latency. But this isn't isn't certain. So I'm interested from you guys if you think this is likely to happen, that inference will move more to the edge. And if there's a role for verifiability in that world, who wants to start any volunteers? I think so. So for us, we actually did a research project internally and we had a llama 3.1 8B, I think it was, running on device. So you can actually like hook up your computer and have it actually

run the agents locally, which is pretty cool. We ran into some problems with it. So I do think it's going to be a future. But I think the main problem associated with it is just purely the size as of right now. So some of the latest updates with the size being smaller, we also do like model distillation and some other things to kind of prune it to make it a little bit better. So we can essentially look at benchmarks and performance. So I think it's definitely coming for sure. And I think verifiability will still be in there. From what we saw is that like, people will want to have access to more or less like hosted models in some way, shape or form. Even if they're not on the machine, because you do have to install that

model directly on your machine, and that's kind of a pain in the butt. So if you have like, the space, great. Maybe you don't want to quantitize like to the right amount. Maybe you don't have the RAM, or maybe your computer is like a little couple years old, it may not work as well as you'd like. So I think it's coming. But I think it'll be a couple iterations to get it there. Nice. Anyone else have thoughts? Colin, Travis, Jeremy. Definitely. Yeah, actually, you don't mind. Go ahead. Yeah, I'm sorry. Go ahead. Go ahead. Go ahead, Travis.

Sure. So, you know, I think it's all about knowledge, reasoning, and instruction following capability. You kind of compromise all those when you get an edge inference at this moment. The question is, can we get those good enough for, you know, different jobs? I don't know the answer to that. I mean, I've seen some promising signs on the smaller model side. But every time someone makes claims on X, and I test the model, I think it's a real dummy, and I just can't get over it. So, you know, I think about this sort of trade off, but, you know, in terms of, you know, response times and composability. So, you know, if you have to string together a bunch of

smaller agents in order to, you know, create a service, it's like a composite service in terms of service oriented architecture, which means you have timing issues, you have potential security issues, you have issues with eventual consistency, in terms of your results and what's happening in the world. It's difficult to navigate. So, I guess it's hard for me to see how some of those approaches are going to be usable or viable in the near term. I think they're going to be more viable as, you know, the agentic frameworks get better over time. But in the near term, you know, like the next two years, I see that being

really difficult, you know, in terms of the user experience. I guess, you know, our view, AmbienceView is that if we can make the centralized, or the decentralized inference on a large model private, you know, for folks and anonymized and useful, then they get many of the benefits of just running locally without having to deal with the trade-offs in terms of the failure modes.

Nice. Jeremy, what are you going to say? Yeah. Yeah. So, those are really good points. And I think I can probably say a little bit, really from, you know, Iso's perspective, because we actually have like started recently on a little bit of research projects, basically working on, it's like edge computing projects that can let, you know, basically AI running remotely in TE on device and for verifiable compute. I think one thing that we have noticed is that, you know, probably if you're talking about like, you know, simply just, you know, AI inference in a local device, I think that can happen in a relatively faster way than, you know,

verifiable inference. The reason is being, you know, the model, as you know, guys talking here, so the model is getting smaller. And also, the local machines are getting, you know, much more robust than ever before. So, I think this is, in generally speaking, is definitely going to happen in future, in the shorter term than, you know, verifiable inference. But I think for the verifiable part of verifiable AI, the reason why that this is like still a really far away thing, I think, I think is mainly because it really requires much higher network bandwidth, and also really complete infrastructure that can that can basically let, you know, the transmission that can accelerate the transmission from the storage of the AI to the compute of the AI,

you know, local device, which is like really hard. So, I think the conclusion that we get from the, maybe not the conclusion, but rather it's like like an insight that we get from the research project that we do with another partner is that, you know, T, first of all, T is like the probably the most viable way to do verifiable inference on a local device, because T is everywhere. You have your T in your iPhone, every, you know, basically, you know, MacBook is just everywhere. And apparently, like some other companies like Apple, they're also exploring exploring these kind of options. And but I think I think the problem that we have encountered is that, you know, first of all, the bandwidth is super low, slow. So, there is there is like, you have to, you have to provide parallelized by, you know, a bunch of

machines, and also devices for one specific, you know, inference of a, let's say, a llama, or maybe like a small, smaller model, so that it can be accepted by the users in terms of the speed and cost. And so I think I think if you really try to run, like, you know, verifiable inference in your local device, it can probably work theoretically, but it's going to take a really long time. So his site is a really much longer time than, than, than we expect. So I think at the current stage, probably, it's not that workable, especially sending from the actual users, you know, demand and needs. So I think, for us, it's probably more like, you know, future thing, and we were exploring, we were exploring that.

And T is probably the one of the best way to make it really happen. But apparently, like the, it really, yeah, just need more time to get more mature, especially on the hardware level. It's really interesting. Yeah, Colin, Jeff, thoughts? So yeah, I just wanted to add a few things, definitely agree. There's a lot of hardware and other roadblocks in the way there. I think, you know, I'm relatively confident that those will be, be solved in time, again, not something that we're directly tackling, but the need for local verifiable inferences is clear to us. You know, if you're going to look at like DAO governance voting, for example, you know,

typically, voting ratios are very, very low. I could easily see somebody, you know, taking down one of these, these models, fine tuning in with their preferences, having a vote on, you know, for DAO governance, very clearly, you'd want that to be something running locally and verified, say, hey, this is me, or acting on my behalf. I think we've seen a few cases where, not just locally, but elsewhere where, you know, people are arguing about whether a chatbot was actually arguing or was actually acting on behalf of an entity, you know, here in Canada, we had, Air Canada had a chatbot that was essentially offering refund policies that didn't exist.

And they're trying to figure out, you know, who's responsible, the airline guys made the chatbot or the, you know, the customer who didn't know any better, unfortunately, and ended up, the guy ended up winning. So what's interesting about that, though, is once you're, once you have these agents going out there and doing things on your behalf, you know, you're going to want both local and verified. I think the other element that is just not talked about, it's just frankly, is good business is just the cost shifting as well. You know, you look at where the massive data centers that are being built and all the hardware that goes into that, you know, it's frankly, it's just simpler and maybe it's potentially cheaper for, you know, hybrid customers run it and they can pay for the power hosting bill.

So I'm going to squeeze in one more question. So verifiability is just one aspect of what you're tackling, decentralization being another, like, pertinent point right now is to what extent governments will seek to control AI. So AI gets more and more powerful. Many say that governments through regulation or legislation will seek to censor model outputs. So I guess the question is, do you think this is likely to happen and then do you see decentralizing inference as a effective way to circumvent that control? Is it part of why you're building what you're building?

Travis, you want to start? Yeah. You know, I think that LLMs are going to be a form of soft power in the future. You know, the more economic activity they're used for and the more centralized the provision of them, the more you have opportunities for abuse. You know, the example I like to give is, you know, imagine you're the country of Portugal and, you know, you live in an agentic economy where maybe there are two people and they're 40 agents and your company rent all the agents from Microsoft. You know, what happens to you one day if Microsoft decides to turn off your agents for whatever reason? Maybe it's even

algorithmic. We see this all the time with Google accounts getting banned. All of a sudden you have no recourse. Like, does your company collapse? What if that happened, you know, on some mass scale because of an error, a crowd strike like error to an entire country? You know, I think that's got to be immensely threatening to countries as they think about their sovereignty. And then, of course, geopolitically, you know, we know that a lot of these centralized closed source providers are tied very closely to governments. They have large contracts with them, defense contracts included. And so it's quite possible that more subtle things could be done, like all the responses of a model could be turned in a particular direction. You know, it would be the equivalent of running SIOPs on a population using a model.

And if that model was the primary, you know, source of intelligence for an economy, that would be really worrisome. So I think that, you know, this is a huge use case for crypto AI, you know, where it can be censorship resistant and decentralized and trusted because of trustlessness. Nice. Solid answer. Who wants to go next? Ryan, maybe. Oh, Colin, yeah, go for it. Yeah, just to kind of mirror what was just said there and kind of look at what happened with social media over the last, you know, 15 years, the way that the narrative, whether it's true or

not, almost doesn't matter with people feel as if the content that they're seeing is being manipulated that when they log into Twitter, whether they see certain content or whether, you know, they identify with a certain group, their content gets put in front of other people like that, feeling as if that's possible, what was clearly very detrimental to society. And if we're going to end up feeling the same way about our AI models, we're going to be in a lot of trouble and verifiability certainly can help with that, knowing, hey, that the Twitter feed that I'm seeing is the algorithm that I could go and look in the repo, it's not being manipulated. I'm not being, you know, shadow banned or anything like

that. But just more broadly, with the power that the social media companies had in terms of your ability to get in front of your audience and the distribution of information, if the next generation of AI companies look anything like that structure, we are in a lot of trouble. What's at risk here and the potential for things to go wrong is orders of magnitude more than it was back then. And it's something that I worry about. And it's definitely something that's motivated to us, my team, everybody at our organization. And I'm sure everybody here to get into the space and try to paint a different future. Nice. Yeah, Ryan, any quick thoughts?

Yeah, I would just like to mirror both of them. I think that, yeah, the thing I always think about that's kind of weird is that like, you know, I could totally imagine a future one day where, you know, people don't really read a whole lot of books. I mean, today, people don't really read a whole lot of books. It's pretty rare for people to do that, especially after a post grad and that kind of thing. But I could totally see this being like the predominant information source for people, kids, you know, whoever. And if that's just what you're almost like googling, and then the response you get back, it kind of gives corporations, countries, whatever an opportunity to read, write history and to direct thoughts of people into a particular direction that is favorable for them. And I think open source and

decentralization are a really great way to combat that. Nice. Jeremy? Yeah, maybe just just final touch. So I think I think, honestly, this is like also like a conversation that we have internally. So I feel like AI is actually the biggest challenge for blockchain, like throughout blockchain history, AI is probably the biggest challenge and also probably the biggest opportunity. Because I think in the past time, we like look into like, you know, crypto, the last 15 years, you see, you'll see like blockchain getting more and more intelligent and also more and more much, you know, smarter, and while maintaining decentralization, but I think AI is a much fierce monster to any other kind of intelligence that we have ever seen

before. So I think I think we all have a sense of this rate rate in the past several years. So I think blockchain is fundamentally providing another parallelized or probably not even substitute, maybe a parallelized guard will for AI to be decentralized to be non-manipulated by any single party. So I think we have many great projects working on this direction, not only for us, like we're working on the AI compute, maybe like inference, but also there are some working on decentralized compute, compute power and also training, fine tuning agents, there are many projects out there, good projects working on this. So I think, I think, ultimately, AI is like, like, I mean, this debate can go on and on, like regarding

closed source, open source AI, and also super intelligence AI and stuff like that. But I think, generally speaking, blockchain itself, is also looking for a way to, to, to, first of all, like blockchain can protect AI, and also in the other way around, which is also the truth, which is, you know, AI can also empower blockchain. So I think in this, under this, you know, era, this, you know, singularity point, I think, I think, you know, the inversions, sorry, the merge between blockchain AI is going to get deeper and deeper, and we're just going to see more and more, you know, projects, you know, working on this direction, and this is why we're here. So yeah.

I think we could talk about this all day, but unfortunately, we're out of time. So I'd like to thank Colin, inference labs, Jeremy from Izal, Ryan from Sphere One, and Travis from Ambient. Thanks to you for listening. See you next time.

Related talks