Saved in:
Bibliographic Details
Main Authors: Zhang, Zhenjie, Rao, Yuyang, Xiao, Hao, Xiao, Xiaokui, Yang, Yin
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.17934
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916265671524352
author Zhang, Zhenjie
Rao, Yuyang
Xiao, Hao
Xiao, Xiaokui
Yang, Yin
author_facet Zhang, Zhenjie
Rao, Yuyang
Xiao, Hao
Xiao, Xiaokui
Yang, Yin
contents Generative AI models, such as GPT-4 and Stable Diffusion, have demonstrated powerful and disruptive capabilities in natural language and image tasks. However, deploying these models in decentralized environments remains challenging. Unlike traditional centralized deployment, systematically guaranteeing the integrity of AI model services in fully decentralized environments, particularly on trustless blockchains, is both crucial and difficult. In this paper, we present a new inference paradigm called \emph{proof of quality} (PoQ) to enable the deployment of arbitrarily large generative models on blockchain architecture. Unlike traditional approaches based on validating inference procedures, such as ZKML or OPML, our PoQ paradigm focuses on the outcome quality of model inference. Using lightweight BERT-based cross-encoders as our underlying quality evaluation model, we design and implement PQML, the first practical protocol for real-world NLP generative model inference on blockchains, tailored for popular open-source models such as Llama 3 and Mixtral. Our analysis demonstrates that our protocol is robust against adversarial but rational participants in ecosystems, where lazy or dishonest behavior results in fewer benefits compared to well-behaving participants. The computational overhead of validating the quality evaluation is minimal, allowing quality validators to complete the quality check within a second, even using only a CPU. Preliminary simulation results show that PoQ consensus is generated in milliseconds, 1,000 times faster than any existing scheme.
format Preprint
id arxiv_https___arxiv_org_abs_2405_17934
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Proof of Quality: A Costless Paradigm for Trustless Generative AI Model Inference on Blockchains
Zhang, Zhenjie
Rao, Yuyang
Xiao, Hao
Xiao, Xiaokui
Yang, Yin
Artificial Intelligence
Generative AI models, such as GPT-4 and Stable Diffusion, have demonstrated powerful and disruptive capabilities in natural language and image tasks. However, deploying these models in decentralized environments remains challenging. Unlike traditional centralized deployment, systematically guaranteeing the integrity of AI model services in fully decentralized environments, particularly on trustless blockchains, is both crucial and difficult. In this paper, we present a new inference paradigm called \emph{proof of quality} (PoQ) to enable the deployment of arbitrarily large generative models on blockchain architecture. Unlike traditional approaches based on validating inference procedures, such as ZKML or OPML, our PoQ paradigm focuses on the outcome quality of model inference. Using lightweight BERT-based cross-encoders as our underlying quality evaluation model, we design and implement PQML, the first practical protocol for real-world NLP generative model inference on blockchains, tailored for popular open-source models such as Llama 3 and Mixtral. Our analysis demonstrates that our protocol is robust against adversarial but rational participants in ecosystems, where lazy or dishonest behavior results in fewer benefits compared to well-behaving participants. The computational overhead of validating the quality evaluation is minimal, allowing quality validators to complete the quality check within a second, even using only a CPU. Preliminary simulation results show that PoQ consensus is generated in milliseconds, 1,000 times faster than any existing scheme.
title Proof of Quality: A Costless Paradigm for Trustless Generative AI Model Inference on Blockchains
topic Artificial Intelligence
url https://arxiv.org/abs/2405.17934