SlideShare a Scribd company logo
Decentralized AI for the Rest
of Us
Jesus Rodriguez
Chief Scientist
Invector Labs
About Me
• Founder and Chief Scientist at Invector Labs(http://invectorlabs.com )
• Next generation software development on-demand agency
• Focused on deep technologies (AI, blockchain…)
• Speaker, author (https://medium.com/@jrodthoughts)
• Investor, board member on over a dozen deep-tech companies
Agenda
• The challenges of centralized AI
• Decentralizing AI: risks and promises
• Foundational blocks
• Homomorphic Encryption
• GAN cryptography
• Secure multi-party computations
• Federated Learning
• Blockchains/Tokens
• Existing decentralized AI platforms
Some References
• Why Decentralized AI Matters Part I: Economics and Enablers:
https://medium.com/datadriveninvestor/why-decentralized-ai-matters-
part-i-economics-and-enablers-5576aeeb43d1
• Why Decentralized AI Matters Part II: Technological Enablers:
https://medium.com/datadriveninvestor/why-decentralized-ai-matters-
part-ii-technological-enablers-a67e3115312e
• Why Decentralized AI Matters Part III: Platforms:
https://medium.com/datadriveninvestor/why-decentralized-ai-matters-
part-iii-technologies-930c3c9d10d
• AI Has Not One, Not Two, but Many Centralization Problems:
https://hackernoon.com/ai-has-not-one-not-two-but-many-
centralization-problems-a5f0664361ed
•
Decentralized AI: Hype vs. Reality
What does the hype look like?
HYPE
HYPE
HIGH
HYPE
Reality is way simpler…
We Have Hundreds of Millions of Devices
Running AI Models
Decentralized Architectures Are Here to Stay
Lessons from Economics…
The Evolution of Economic Movements
Centralized
Decentralized
Recentralized
The Centralized Nature of AI…
Four Centralization Vectors of AI
Data Models
Training
Regularization-
Optimization
AI
Centralization
Vectors
The Data Centralization Problem
The Model Centralization Problem
The Model Centralization Problem
The Regularization-Optimization Centralization
Problem
Let’s Get Philosophical:
Risks of Centralized AI…
The Risks of Centralized AI
The
Decentralized
Knowledge –
Centralized AI
Friction
The Rich Get
Richer Problem
Risks of
Centralized AI
The
Transparency
Influence
Ratio
The Rich Get Richer Problem
Big Companies Have a
Data Advantage Over
Startups When It Comes
to AI
A Big Company Decides
to Create Different AI
Models Against Their
Proprietary Datasets
AI Models Produce Even
More Proprietary Data
and Intelligence
Decentralized Knowledge vs. Centralized Models
How can we know if
the knowledge of an
AI model is correct?
Knowledge is an
intrinsically
decentralized
activity
But companies
insist on
constraining AI
models to
proprietary datasets
The Transparency/Influence Ratio
AI algorithms are
increasingly
important in our
lives?
But we know very
little about them?
Who trains it?
How was it
trained?
How does it build
knowledge?
Makes sense…
Let’s Decentralize the Whole Thing…
Not so fast…
Challenges to Achieve AI Decentralization
• Can third parties be
correctly incentivized to
contribute to the
knowledge and quality
of an AI model?
• Can the activity and
behavior of an AI model
be transparently
available to all parties
without the need of
trusting a centralized
authority?
• Can models be
distributed and
executed autonomously
across hundreds of
thousands of nodes?
• Can entities train a
model without having
to disclose their data?
The Privacy
Problem
The
Autonomy
Problem
The
Economic
Problem
The
Transparency
Problem
Trends Influencing Decentralized AI…
Data Privacy in Decentralized AI Architectures…
You know….
security and
that stuff
The Challenges
• How to share data with
different parties while
maintaining certain levels
of privacy?
• How to perform
computations over
encrypted data?
• How to become resilient
to privacy attacks in a
decentralized network?
Homomorphic Encryption…
Homomorphic Encryption
• Alice wants workers to assemble
raw materials into jewelry.
• But Alice is worried about theft:
• She wants workers to process
raw materials without having
access.
• Alice puts raw materials in a locked
glovebox.
• Workers assemble jewelry inside
glovebox, using the gloves.
• Alice unlocks the box to get “results.”
A More Practical Example
Alice
Server
(Cloud)
(Input: data x,
secret key sk)
“I want 1) the cloud to process my data
2) even though it is encrypted.”
Encpk[f(x)]
Encpk(x)
function f
f(x)
Run
Eval[ f, Encpk(x) ]
= Encpk[f(x)]
The special sauce! For security
parameter λ, Eval’s running should
be Time(f)∙poly(λ)
This could be
encrypted too.
Delegation: Should cost less for
Alice to encrypt x and decrypt f(x)
than to compute f(x) herself.
Full vs. Partial Homomorphic Encryption
• Given the encryption of two data primitives a and b: E(a) and E(b)
• Partial homomorphic encryption can compute E(a+b) or E(ab) without
knowing a, b, or the private key
• Unpadded RSA https://en.wikipedia.org/wiki/RSA_cryptosystem
• ElGamal https://en.wikipedia.org/wiki/ElGamal_encryption
• Paillier https://en.wikipedia.org/wiki/Paillier_cryptosystem
• Full homomorphic encryption can compute both E(a+b) and E(ab)
• Gentry
• van Dijk-Gentry-Halevi-Vaikuntanathan
Homomorphic Encryption and Decentralized AI
HEnc(Dataset)
HEnc(Results)
Data Scientists
Homomorphic Encryption Today
• Remains mostly a theoretical exercise
• Companies such as IBM and Microsoft have released research
frameworks for partial homomorphic encryption
• HElib https://github.com/shaih/HElib
Adversarial Neural Cryptography…
GAN Cryptography
• Simpler alternative to homomorphic encryption
• Uses generative adversarial neural networks (GANs) to protect
communications between two parties
• The encryption algorithms evolve dynamically with the performance
of the networks
GAN Cryptography
• Alice and Bob are neural networks
trying to communicate securely while
Eve tries to break the communication
• The outputs from Eve (Peve) are
factored in the lost function for both
Alice and Bob
• Alice and Bob both discover new
encryption algorithms that can
defeat the best version of Eve
GAN Cryptography and Decentralized AI
GAN Data
Provider
GAN Data
Scientist
GAN Data
Scientist
GAN
Listener
Enc(Dataset)
GAN Cryptography Today
• Remains mostly an active research area
• Some lightweight implementations like Numerai are available
Secured Multi-Party Computations…
sMPC
• Solves the traditional millionaires’ problem for n-parties
• A group of millionaires, are interested in knowing which of them is
richer without revealing their actual wealth. This problem is analogous
to a more general problem where there are two numbers a and b and
the goal is to solve the inequality without revealing the actual values
of a and b.
• Enable secure computations in a network without a trusted party
sMPC
• A set of parties with private inputs
• Parties wish to jointly compute a function
of their inputs so that certain security
properties (like privacy and correctness)
are preserved
• Properties must be ensured even if some
of the parties maliciously attack the
protocol
• Examples
• Secure elections
• Auctions
• Privacy preserving data mining
sMPC and Decentralized AI
HEnc(Dataset)
HEnc(Results)
Data Scientists
sMPC Cryptography Today
• Several sMPC frameworks and libraries available
• The Enigma blockchain (https://enigma.co/ ) is one of the most
complete and scalable sMPC implementations in the market
Solving Decentralized Learning…
How to
learn
without the
man?
The Challenges
• How to execute machine
learning models on mobile
or IoT devices?
• How to customize a
machine learning model
based on personal data?
• How to improve a
machine learning model
based on executions
across a large number of
devices?
Federated Learning…
Federated Learning
Federated Learning
Federated Learning
Federated Learning
Federated Learning
Federated Learning and Decentralized AI
AI
Execution
Node
AI
Execution
Node
AI
Execution
Node
AI
Execution
Node
Federated
Training
Node
Federated
AI
Training-
Execution
Node
AI
Training-
Execution
Node
AI
Training-
Execution
Node
AI
Training-
Execution
Node
AI
Training-
Execution
Node
Decentralized
Federated Learning Today
• There are several implementations available on TensorFlow Lite
• Google has been testing federated learning on Gboard
https://www.blog.google/products/search/gboard-now-on-android/
A Runtime for Decentralized AI…
How do we
run these
things?
Challenges
• How to train models without a
centralized authority?
• How to use trained models without
trusting a central party?
• How to validate and enforce trust
among the different parties in the
lifecycle of a deep learning model
Blockchains and Smart Contracts…
Blockchains and Smart Contracts
Smart Contracts and Decentralized AI
Data Scientist
(builds and
train model)
Blockchain
Smart
Contract
Blockchain
Smart
ContractCompany
Data Scientist
(tests and
optimizes
model)
Data and Success
Criteria
Blockchain
Smart
Contract
Solving the Incentive Problem…
How to pay
the data
geeks?
Challenges
• How to build incentives for data
scientists training, testing and building
models?
• How to build incentives for parties
contributing datasets?
• How to discourage bad behaviors in
the network?
Tokenized crypto protocols…
Crypto Tokens
Tokenized Decentralized AI
Data Scientist
(builds and
train model)
Blockchain
Smart
Contract
Blockchain
Smart
ContractCompany
Data Scientist
(tests and
optimizes
model)
Data and Success
Criteria
Blockchain
Smart
Contract
Tokens
Tokens
Decentralized AI for the Rest of Us
Decentralized AI Platforms…
Awesomeness
SingularityNET
• Network powering Sophia
• DApp Marketplace: The SingularityNET
DApp is the entry-point to discovering
and using AI services on the
SingularityNET Network
• SNET Registry: The SingularityNET
Registry is an open and uncensorable
registry of Organizations, AI Services, and
Type Repositories that are accessible
from within the SingularityNET Network.
• Service Daemon: The Service Daemon
exposes an AI developer's application as
an API that is accessible through the
SingularityNET Network.
OpenMined
• Open source community focused on creating
decentralized AI protocols
• Sonar— A federated learning server running on
the blockchain that handles all campaign requests,
holding Bounty in trust.
• Capsule— A third-party PGP server to generate
public and private keys in order to ensure that
Sonar neural network stays encrypted properly.
• Mine— The individual data repositories of a user.
These are constantly checking Sonar for new
neural nets to contribute to.
• Syft— The library containing Neural Networks that
can be trained in an encrypted state (so that
Miners can’t steal the neural networks that they
download to train).
Algorithmia DanKu
• Created by Algorithmia
• Decentralized protocol for
running machine learning
contests
• Users can publish datasets using
smart contracts
• Models are trained on the
datasets and submitted to the
blockchain
• Other models evaluate the results
and compensate the users
Ocean
• Ocean Protocol is an ecosystem for sharing data
and associated services
• Providers: ​These actors have AI data or services
that they make available in a cryptographically
provable fashion.
• Marketplaces: ​Data/service marketplaces are
typically how providers and consumers interact
with Ocean network, for convenience.
• Data commons interfaces: ​Side-by-side with data
marketplaces that serve priced data are interfaces
for data commons, for free or commons data.
• Keeper: Keepers are responsible for collectively
maintaining the network. Anyone can run an
Ocean keeper node; it’s permissionless.
Participation is open and anonymous.
Summary
• The future of AI is likely to be more decentralized AI
• Achieving decentralized AI requires 3 key building blocks
• A decentralized runtime to execute computations
• Decentralized and scalable learning methods
• Strong privacy protocols for the exchange of data and models
• Blockchains have become catalyzers for the implementation of
decentralized AI architectures
• It’s happening already
Thanks
jr@invectoriq.com
https://medium.com/@jrodthoughts
https://twitter.com/jrdothoughts

More Related Content

PDF
Apache Kafka® Use Cases for Financial Services
PPTX
AI & Blockchain: An Introduction
PPTX
MLOps and Data Quality: Deploying Reliable ML Models in Production
PPSX
Cloud Architecture - Multi Cloud, Edge, On-Premise
PDF
Overview of blockchain technology and architecture
 
PPTX
Blockchain and AI
PDF
Introduction to Blockchain
PDF
Blockchain
Apache Kafka® Use Cases for Financial Services
AI & Blockchain: An Introduction
MLOps and Data Quality: Deploying Reliable ML Models in Production
Cloud Architecture - Multi Cloud, Edge, On-Premise
Overview of blockchain technology and architecture
 
Blockchain and AI
Introduction to Blockchain
Blockchain

What's hot (20)

PDF
Blockchain Explained | Blockchain Simplified | Blockchain Technology | Blockc...
PDF
Data Mesh 101
PPTX
ChatGPT, Foundation Models and Web3.pptx
PDF
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
PDF
Blockchain Study(1) - What is Blockchain?
PPTX
Great Expectations Presentation
PDF
Generative AI con Amazon Bedrock.pdf
PDF
Blockchain & the IoT
PDF
Data Lake,beyond the Data Warehouse
PDF
Understanding GenAI/LLM and What is Google Offering - Felix Goh
PDF
Challenges in AI LLMs adoption in the Enterprise
PDF
AI and Blockchain 2017
PDF
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
PDF
UNLEASHING INNOVATION Exploring Generative AI in the Enterprise.pdf
PDF
Data Lake: A simple introduction
PDF
Future of Data Engineering
PPT
Blockchain Technology and Its Application in Artificial Intelligence and Mach...
PPTX
Block chain technology
PDF
MLOps Using MLflow
PPTX
Introduction to Data Engineering
Blockchain Explained | Blockchain Simplified | Blockchain Technology | Blockc...
Data Mesh 101
ChatGPT, Foundation Models and Web3.pptx
𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐯𝐞 𝐀𝐈: 𝐂𝐡𝐚𝐧𝐠𝐢𝐧𝐠 𝐇𝐨𝐰 𝐁𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐈𝐧𝐧𝐨𝐯𝐚𝐭𝐞𝐬 𝐚𝐧𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐞𝐬
Blockchain Study(1) - What is Blockchain?
Great Expectations Presentation
Generative AI con Amazon Bedrock.pdf
Blockchain & the IoT
Data Lake,beyond the Data Warehouse
Understanding GenAI/LLM and What is Google Offering - Felix Goh
Challenges in AI LLMs adoption in the Enterprise
AI and Blockchain 2017
AI and ML Series - Introduction to Generative AI and LLMs - Session 1
UNLEASHING INNOVATION Exploring Generative AI in the Enterprise.pdf
Data Lake: A simple introduction
Future of Data Engineering
Blockchain Technology and Its Application in Artificial Intelligence and Mach...
Block chain technology
MLOps Using MLflow
Introduction to Data Engineering
Ad

Similar to Decentralized AI for the Rest of Us (20)

PPTX
Algorithm Marketplace and the new "Algorithm Economy"
PDF
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
PDF
Using Algorithmia to leverage AI and Machine Learning APIs
PDF
How would AI shape Future Integrations?
PDF
EVAIN Artificial intelligence and semantic annotation: are you serious about it?
PPTX
Presentation infra and_datacentrre_dialogue_v2
PPTX
[DSC Europe 22] On the Aspects of Artificial Intelligence and Robotic Autonom...
PPTX
Choosing the right Technologies for your next unicorn.
PPTX
Fintech workshop Part I - Law Society of Hong Kong - Xccelerate
PPTX
Keynote at the Cyber Security Summit Prague 2015
PDF
Open Source models security- Supply chain
PPTX
Open Secrets of the Defense Industry: Building Your Own Intelligence Program ...
PDF
influence of AI in IS
PPTX
thetoptrendsinartificialintelligence-191016075410.pptx
PDF
The Top Trends in Artificial Intelligence
PDF
AI-SDV 2021: Nils Newmann - AI – Who is in control and why is that important?
PPTX
IoT and AI
PDF
Présentation de Bruno Schroder au 20e #mforum (07/12/2016)
PPTX
Recent Advances in Machine Learning: Bringing a New Level of Intelligence to ...
PDF
Decentralized AI Draper
Algorithm Marketplace and the new "Algorithm Economy"
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
Using Algorithmia to leverage AI and Machine Learning APIs
How would AI shape Future Integrations?
EVAIN Artificial intelligence and semantic annotation: are you serious about it?
Presentation infra and_datacentrre_dialogue_v2
[DSC Europe 22] On the Aspects of Artificial Intelligence and Robotic Autonom...
Choosing the right Technologies for your next unicorn.
Fintech workshop Part I - Law Society of Hong Kong - Xccelerate
Keynote at the Cyber Security Summit Prague 2015
Open Source models security- Supply chain
Open Secrets of the Defense Industry: Building Your Own Intelligence Program ...
influence of AI in IS
thetoptrendsinartificialintelligence-191016075410.pptx
The Top Trends in Artificial Intelligence
AI-SDV 2021: Nils Newmann - AI – Who is in control and why is that important?
IoT and AI
Présentation de Bruno Schroder au 20e #mforum (07/12/2016)
Recent Advances in Machine Learning: Bringing a New Level of Intelligence to ...
Decentralized AI Draper
Ad

More from Jesus Rodriguez (20)

PPTX
The Emergence of DeFi Micro-Primitives
PPTX
DeFi Opportunities and Challenges in the Current Crypto Market
PPTX
MEV Deep Dive .pptx
PPTX
Quant in Crypto Land
PPTX
The Polygon Blockchain by the Numbers
PPTX
Social Analytics for Cryptocurrencies
PPTX
DeFi Quant Yield-Generating Strategies
PPTX
High Frequency Trading and DeFi
PPTX
Simple DeFi Analytics Any Crypto-Investor Should Know About
PPTX
15 Minutes of DeFi Analytics
PPTX
DeFi Trading Strategies: Opportunities and Challenges
PPTX
Practical Crypto Asset Predictions rev
PPTX
Better Technical Analysis with Blockchain Indicators
PPTX
Price Predictions for Cryptocurrencies
PPTX
Fascinating Metrics and Analytics About Cryptocurrencies
PPTX
Price PRedictions for Crypto-Assets Using Deep Learning
PPTX
Demystifying Centralized Crypto Exchanges using Data Science
PPTX
Crypto assets are a data science heaven rev
PPTX
Implementing Machine Learning in the Real World
PPTX
Fundamental Analysis for Crypto Assets
The Emergence of DeFi Micro-Primitives
DeFi Opportunities and Challenges in the Current Crypto Market
MEV Deep Dive .pptx
Quant in Crypto Land
The Polygon Blockchain by the Numbers
Social Analytics for Cryptocurrencies
DeFi Quant Yield-Generating Strategies
High Frequency Trading and DeFi
Simple DeFi Analytics Any Crypto-Investor Should Know About
15 Minutes of DeFi Analytics
DeFi Trading Strategies: Opportunities and Challenges
Practical Crypto Asset Predictions rev
Better Technical Analysis with Blockchain Indicators
Price Predictions for Cryptocurrencies
Fascinating Metrics and Analytics About Cryptocurrencies
Price PRedictions for Crypto-Assets Using Deep Learning
Demystifying Centralized Crypto Exchanges using Data Science
Crypto assets are a data science heaven rev
Implementing Machine Learning in the Real World
Fundamental Analysis for Crypto Assets

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
cuic standard and advanced reporting.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Building Integrated photovoltaic BIPV_UPV.pdf
Approach and Philosophy of On baking technology
sap open course for s4hana steps from ECC to s4
Programs and apps: productivity, graphics, security and other tools
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Per capita expenditure prediction using model stacking based on satellite ima...
cuic standard and advanced reporting.pdf
Spectral efficient network and resource selection model in 5G networks
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Decentralized AI for the Rest of Us

  • 1. Decentralized AI for the Rest of Us Jesus Rodriguez Chief Scientist Invector Labs
  • 2. About Me • Founder and Chief Scientist at Invector Labs(http://invectorlabs.com ) • Next generation software development on-demand agency • Focused on deep technologies (AI, blockchain…) • Speaker, author (https://medium.com/@jrodthoughts) • Investor, board member on over a dozen deep-tech companies
  • 3. Agenda • The challenges of centralized AI • Decentralizing AI: risks and promises • Foundational blocks • Homomorphic Encryption • GAN cryptography • Secure multi-party computations • Federated Learning • Blockchains/Tokens • Existing decentralized AI platforms
  • 4. Some References • Why Decentralized AI Matters Part I: Economics and Enablers: https://medium.com/datadriveninvestor/why-decentralized-ai-matters- part-i-economics-and-enablers-5576aeeb43d1 • Why Decentralized AI Matters Part II: Technological Enablers: https://medium.com/datadriveninvestor/why-decentralized-ai-matters- part-ii-technological-enablers-a67e3115312e • Why Decentralized AI Matters Part III: Platforms: https://medium.com/datadriveninvestor/why-decentralized-ai-matters- part-iii-technologies-930c3c9d10d • AI Has Not One, Not Two, but Many Centralization Problems: https://hackernoon.com/ai-has-not-one-not-two-but-many- centralization-problems-a5f0664361ed •
  • 6. What does the hype look like?
  • 10. Reality is way simpler…
  • 11. We Have Hundreds of Millions of Devices Running AI Models
  • 14. The Evolution of Economic Movements Centralized Decentralized Recentralized
  • 16. Four Centralization Vectors of AI Data Models Training Regularization- Optimization AI Centralization Vectors
  • 21. Let’s Get Philosophical: Risks of Centralized AI…
  • 22. The Risks of Centralized AI The Decentralized Knowledge – Centralized AI Friction The Rich Get Richer Problem Risks of Centralized AI The Transparency Influence Ratio
  • 23. The Rich Get Richer Problem Big Companies Have a Data Advantage Over Startups When It Comes to AI A Big Company Decides to Create Different AI Models Against Their Proprietary Datasets AI Models Produce Even More Proprietary Data and Intelligence
  • 24. Decentralized Knowledge vs. Centralized Models How can we know if the knowledge of an AI model is correct? Knowledge is an intrinsically decentralized activity But companies insist on constraining AI models to proprietary datasets
  • 25. The Transparency/Influence Ratio AI algorithms are increasingly important in our lives? But we know very little about them? Who trains it? How was it trained? How does it build knowledge?
  • 28. Challenges to Achieve AI Decentralization • Can third parties be correctly incentivized to contribute to the knowledge and quality of an AI model? • Can the activity and behavior of an AI model be transparently available to all parties without the need of trusting a centralized authority? • Can models be distributed and executed autonomously across hundreds of thousands of nodes? • Can entities train a model without having to disclose their data? The Privacy Problem The Autonomy Problem The Economic Problem The Transparency Problem
  • 30. Data Privacy in Decentralized AI Architectures… You know…. security and that stuff
  • 31. The Challenges • How to share data with different parties while maintaining certain levels of privacy? • How to perform computations over encrypted data? • How to become resilient to privacy attacks in a decentralized network?
  • 33. Homomorphic Encryption • Alice wants workers to assemble raw materials into jewelry. • But Alice is worried about theft: • She wants workers to process raw materials without having access. • Alice puts raw materials in a locked glovebox. • Workers assemble jewelry inside glovebox, using the gloves. • Alice unlocks the box to get “results.”
  • 34. A More Practical Example Alice Server (Cloud) (Input: data x, secret key sk) “I want 1) the cloud to process my data 2) even though it is encrypted.” Encpk[f(x)] Encpk(x) function f f(x) Run Eval[ f, Encpk(x) ] = Encpk[f(x)] The special sauce! For security parameter λ, Eval’s running should be Time(f)∙poly(λ) This could be encrypted too. Delegation: Should cost less for Alice to encrypt x and decrypt f(x) than to compute f(x) herself.
  • 35. Full vs. Partial Homomorphic Encryption • Given the encryption of two data primitives a and b: E(a) and E(b) • Partial homomorphic encryption can compute E(a+b) or E(ab) without knowing a, b, or the private key • Unpadded RSA https://en.wikipedia.org/wiki/RSA_cryptosystem • ElGamal https://en.wikipedia.org/wiki/ElGamal_encryption • Paillier https://en.wikipedia.org/wiki/Paillier_cryptosystem • Full homomorphic encryption can compute both E(a+b) and E(ab) • Gentry • van Dijk-Gentry-Halevi-Vaikuntanathan
  • 36. Homomorphic Encryption and Decentralized AI HEnc(Dataset) HEnc(Results) Data Scientists
  • 37. Homomorphic Encryption Today • Remains mostly a theoretical exercise • Companies such as IBM and Microsoft have released research frameworks for partial homomorphic encryption • HElib https://github.com/shaih/HElib
  • 39. GAN Cryptography • Simpler alternative to homomorphic encryption • Uses generative adversarial neural networks (GANs) to protect communications between two parties • The encryption algorithms evolve dynamically with the performance of the networks
  • 40. GAN Cryptography • Alice and Bob are neural networks trying to communicate securely while Eve tries to break the communication • The outputs from Eve (Peve) are factored in the lost function for both Alice and Bob • Alice and Bob both discover new encryption algorithms that can defeat the best version of Eve
  • 41. GAN Cryptography and Decentralized AI GAN Data Provider GAN Data Scientist GAN Data Scientist GAN Listener Enc(Dataset)
  • 42. GAN Cryptography Today • Remains mostly an active research area • Some lightweight implementations like Numerai are available
  • 44. sMPC • Solves the traditional millionaires’ problem for n-parties • A group of millionaires, are interested in knowing which of them is richer without revealing their actual wealth. This problem is analogous to a more general problem where there are two numbers a and b and the goal is to solve the inequality without revealing the actual values of a and b. • Enable secure computations in a network without a trusted party
  • 45. sMPC • A set of parties with private inputs • Parties wish to jointly compute a function of their inputs so that certain security properties (like privacy and correctness) are preserved • Properties must be ensured even if some of the parties maliciously attack the protocol • Examples • Secure elections • Auctions • Privacy preserving data mining
  • 46. sMPC and Decentralized AI HEnc(Dataset) HEnc(Results) Data Scientists
  • 47. sMPC Cryptography Today • Several sMPC frameworks and libraries available • The Enigma blockchain (https://enigma.co/ ) is one of the most complete and scalable sMPC implementations in the market
  • 48. Solving Decentralized Learning… How to learn without the man?
  • 49. The Challenges • How to execute machine learning models on mobile or IoT devices? • How to customize a machine learning model based on personal data? • How to improve a machine learning model based on executions across a large number of devices?
  • 56. Federated Learning and Decentralized AI AI Execution Node AI Execution Node AI Execution Node AI Execution Node Federated Training Node Federated AI Training- Execution Node AI Training- Execution Node AI Training- Execution Node AI Training- Execution Node AI Training- Execution Node Decentralized
  • 57. Federated Learning Today • There are several implementations available on TensorFlow Lite • Google has been testing federated learning on Gboard https://www.blog.google/products/search/gboard-now-on-android/
  • 58. A Runtime for Decentralized AI… How do we run these things?
  • 59. Challenges • How to train models without a centralized authority? • How to use trained models without trusting a central party? • How to validate and enforce trust among the different parties in the lifecycle of a deep learning model
  • 60. Blockchains and Smart Contracts…
  • 62. Smart Contracts and Decentralized AI Data Scientist (builds and train model) Blockchain Smart Contract Blockchain Smart ContractCompany Data Scientist (tests and optimizes model) Data and Success Criteria Blockchain Smart Contract
  • 63. Solving the Incentive Problem… How to pay the data geeks?
  • 64. Challenges • How to build incentives for data scientists training, testing and building models? • How to build incentives for parties contributing datasets? • How to discourage bad behaviors in the network?
  • 67. Tokenized Decentralized AI Data Scientist (builds and train model) Blockchain Smart Contract Blockchain Smart ContractCompany Data Scientist (tests and optimizes model) Data and Success Criteria Blockchain Smart Contract Tokens Tokens
  • 70. SingularityNET • Network powering Sophia • DApp Marketplace: The SingularityNET DApp is the entry-point to discovering and using AI services on the SingularityNET Network • SNET Registry: The SingularityNET Registry is an open and uncensorable registry of Organizations, AI Services, and Type Repositories that are accessible from within the SingularityNET Network. • Service Daemon: The Service Daemon exposes an AI developer's application as an API that is accessible through the SingularityNET Network.
  • 71. OpenMined • Open source community focused on creating decentralized AI protocols • Sonar— A federated learning server running on the blockchain that handles all campaign requests, holding Bounty in trust. • Capsule— A third-party PGP server to generate public and private keys in order to ensure that Sonar neural network stays encrypted properly. • Mine— The individual data repositories of a user. These are constantly checking Sonar for new neural nets to contribute to. • Syft— The library containing Neural Networks that can be trained in an encrypted state (so that Miners can’t steal the neural networks that they download to train).
  • 72. Algorithmia DanKu • Created by Algorithmia • Decentralized protocol for running machine learning contests • Users can publish datasets using smart contracts • Models are trained on the datasets and submitted to the blockchain • Other models evaluate the results and compensate the users
  • 73. Ocean • Ocean Protocol is an ecosystem for sharing data and associated services • Providers: ​These actors have AI data or services that they make available in a cryptographically provable fashion. • Marketplaces: ​Data/service marketplaces are typically how providers and consumers interact with Ocean network, for convenience. • Data commons interfaces: ​Side-by-side with data marketplaces that serve priced data are interfaces for data commons, for free or commons data. • Keeper: Keepers are responsible for collectively maintaining the network. Anyone can run an Ocean keeper node; it’s permissionless. Participation is open and anonymous.
  • 74. Summary • The future of AI is likely to be more decentralized AI • Achieving decentralized AI requires 3 key building blocks • A decentralized runtime to execute computations • Decentralized and scalable learning methods • Strong privacy protocols for the exchange of data and models • Blockchains have become catalyzers for the implementation of decentralized AI architectures • It’s happening already