TL;DR
This paper proposes a novel blockchain-based API marketplace that addresses trust issues between API providers, consumers, and cloud vendors. By splitting AI models across multiple cloud vendors and recording all transactions on a blockchain, it enables a decentralized and auditable ecosystem, preventing malicious behavior and ensuring fair revenue sharing.
What Problem Does This Paper Address?
The current landscape of API marketplaces, particularly for AI and machine learning models, is dominated by centralized cloud vendors. While these platforms offer convenience and accessibility, they introduce significant trust challenges. The paper highlights three main problems:
- Malicious Cloud Vendors: A cloud vendor could steal proprietary AI models, offer them as their own service, or manipulate usage metrics to unfairly increase their revenue share.
- Malicious API Providers: An API provider might deny the accuracy of their model's output or blame the cloud vendor for execution errors, especially if the model is proprietary and its inner workings are not fully transparent.
- Malicious API Consumers: Consumers could falsely claim incorrect outputs to demand refunds, potentially by providing incorrect inputs or forging evidence of the output.
These issues create a reliance on trust in a single entity, which is undesirable for a secure and fair marketplace.
Methods
The core innovation of this paper is a blockchain-enabled decentralized trustless API marketplace. The key techniques employed are:
- Model Splitting and Collaborative Execution: Instead of a single cloud vendor hosting and executing an entire AI model, the model is decomposed into multiple sub-components. These sub-components are then distributed and executed across several collaborating cloud vendors. Crucially, no single cloud vendor has complete knowledge of the entire model, making it difficult to steal or replicate.
- Blockchain for Transparency and Auditability: All critical transactions within the marketplace are recorded on a blockchain. This includes:
- The deployment of model components across cloud vendors.
- API requests made by consumers.
- The execution of specific model components by individual cloud vendors.
-
The final output received by API consumers. This immutable ledger provides irrefutable evidence for dispute resolution.
-
Smart Contracts for Automation: Smart contracts are used to automatically enforce the correct execution of functionality and verify the sequence of operations. They ensure that each cloud vendor runs the correct code for its component and that all sub-components are executed as intended.
- Alternate Approach with Orchestrator: To further enhance security and flexibility, an alternative approach is proposed where an orchestrator randomly selects a subset of cloud vendors for each API call. This prevents predictable execution patterns and makes collusion more difficult. The orchestrator also manages the flow of data, and only hashes of inputs and outputs are recorded on the blockchain, preserving privacy.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- Decentralization as a Trust Enabler: The paper demonstrates that by decentralizing the execution of AI models and leveraging blockchain for transparency, trust can be established without relying on a single central authority.
- Confidentiality through Distribution: Splitting models across multiple vendors, where each vendor only holds a piece, is a clever way to protect proprietary intellectual property.
- Blockchain as an Immutable Audit Trail: The use of blockchain for recording all transactions provides a robust mechanism for dispute resolution and accountability, addressing the "he said, she said" problem in traditional marketplaces.
- Incentivizing Honest Behavior: The system is designed to incentivize all stakeholders (providers, consumers, and vendors) to act honestly by making their actions transparent and auditable.
Key Results
The paper presents a design and conceptual framework rather than empirical results from a deployed system. The key "results" are the design principles and the proposed architecture that aims to achieve:
- Prevention of Model Theft: By distributing model components, no single cloud vendor can easily steal the entire model.
- Accurate Usage Reporting: All API invocations and component executions are recorded on the blockchain, preventing vendors from under-reporting usage.
- Attribution and Non-Repudiation: Both API providers and consumers can be held accountable for their actions, as their inputs, outputs, and executions are immutably recorded.
- Fair Revenue Sharing: The transparent transaction logging on the blockchain facilitates fair distribution of revenue between API providers and cloud vendors.
Limitations and Future Work
The authors acknowledge several areas for future work:
- Implementation on Blockchain Networks: The proposed system needs to be implemented on specific blockchain networks (e.g., Ethereum, Hyperledger Fabric) using chaincode functions and smart contracts.
- Risk of Collusion: Further investigation is needed to study the risks of collusion among participants, especially in the context of multiple cloud vendors.
- Performance Comparison: An experimental comparison of the performance of centralized API marketplaces versus this decentralized approach is required, considering the additional costs of blockchain transactions.
- Encryption Techniques: Exploring how encryption techniques can be integrated to further enhance model confidentiality and compare its advantages and disadvantages with the proposed splitting method.
- Formal Verifiability: Ensuring secure execution of code and formal verifiability for each cloud vendor's component is an important area for further study.
Summary updated