Coder Social home page Coder Social logo

awesome-zkml's Introduction

awesome-zkml

Happy new year!

A place where you can find content, codebases, scientific papers, projects and applications related to ZKML. Contributions and suggestions are always welcome, open issues or pull requests with any changes you want to be made and don't forget to join our Telegram community (link below).

ZKML community

We are in the process of bootstrapping a ZKML community where people can share research ideas, code they are working on and potential applications of this nascent technology. If you are interested in joining, check out our Telegram. There are few ideas we have come up with for the community:

  • Create a group of people working on or that are interested in doing research in the ZKML domain.
  • See what everyone is working on and find intersections where a potential for collaboration could appear.
  • Map out the general direction of ZKML - use cases / academic research
  • Find people that are able to support work in this domain with capital, manpower, research capacity (i.e. PhD students), engineers, etc.
  • Co-organize a Gitcoin side round for ZKML
  • Create some form of grants program to support further R&D and existing initiatives (think 0xPARC)
  • Nerdsnipe researchers and engineers to work on ZKML
  • Start a sub-fund under a DAO/org earmarked for zkml.
  • Create educational materials for ZKML
  • Organize ZKML events (online and in-person)

Learn ZK

Here you can find a list of very popular resources to get started with zero-knowledge cryptography (courtesy of Ingopedia made by Ingonyama):

Learn ML

Here you can find a list of very popular resources to get started with machine learning.

Content

ZKML community calls

We are organizing bi-weekly ZKML community calls. For details on when and where the next call is happening, check the pinned messages on our Telegram channel. Recorded versions of the calls are available on our YouTube channel and notes summarizing what was discussed can be found here.

Articles and podcasts

Codebases

  • zk-mnist - @hopanml @sunfishstanford @henripal (2022)
  • zk-ml/demo - @liaopeiyuan (2021)
  • circomlib-ml - @socathie (2022)
  • proto-neural-zkp - @recmo @dcbuild3r (2022)
    • zkml experiments with plonky2 at Worldcoin
  • RockyBot - @ModulusLabs (2022)
    • RockyBot is the first ever fully on-chain AI trading bot
  • ezkl by Jason Morton (2022+)
    • ezkl is a library and command-line tool for doing inference for deep learning models and other computational graphs in a zk-snark.
  • keras2circom (@socathie) (2023)
    • keras2circom is a python tool that transpiles a tf.keras model into a circom circuit.
  • Zator - Verified inference of a 512-layer neural network using recursive SNARKs.
  • Otti (2022)
    • Compiler and zkSNARK for optimization problems including LP, SDP, SGD. Includes ZK proof of the full training of a perceptron on real-world datasets.
  • Linear A - tachikoma (2022+)
  • Linear A - uchikoma (2022+)
  • zk-dtp - Zero Knowledge Decision Tree Predict is designed to address this pressing issue by offering privacy-preserving predictions using decision tree models, built on top of RISC Zero's zkVM.
  • zkp-gravity/0g - ZeroGravity - Zero Gravity is a system for proving an inference run (i.e. a classification) for a pre-trained, public Weightless NN and a private input. (2023)
  • ddkang/zkml - zkml is a framework for constructing proofs of ML model execution in ZK-SNARKs.
  • ZKaggle and ZKaggleV2 - @socathie (2023)
    • POC of a decentralized bounty platform for hosting, verifying, and paying out bounties, similar to Kaggle, but with the added benefit of privacy preservation

Papers

Projects interested in ZKML

ZKML ecosystem by SevenX ventures

  • Axiom - Axiom provides smart contracts trustless access to all on-chain data and arbitrary expressive compute over it. Like GPUs do for CPUs, Axiom augments blockchain consensus with zero-knowledge proofs
  • 0xPARC - The 0xPARC Foundation promotes application-level innovation on Ethereum and other decentralized platforms
  • Worldcoin - A Privacy-Preserving Proof-of-Personhood Protocol
  • Gizatech - Fully on-chain artificial intelligence on Starknet
  • Modulus Labs - Bringing powerful ML models on-chain
  • Risc Zero - The General Purpose Zero-Knowledge VM
  • Supranational - A product and service company developing hardware accelerated cryptography for verifiable and confidential computing
  • Ingonyama (Hardware) - Zero Knowledge ASICs (ZPU)
  • Zama.ai (FHE ML / FHE-ZK ML) - FHE tooling for machine learning, blockchain and more. ZK-FHE is an interesting research area. FHE.org is a very interesting community with a lot of potential for collaboration.
  • zkMachineLearning - ZKML tooling for Circom
  • Aleo - Platform for building fully private and programmable Web applications.
  • PSE team @ Ethereum Foundation - Some ZKML research initiatives here

Use cases

Decision tree for a use case that would use ZKML -> Intersection of {needs privacy, computational integrity} and {heuristic optimization problem solved by ml}.

  • Computational integrity
    • Modulus Labs
      • On-chain verifiable ML trading bot - RockyBot
      • Blockchains that self-improve vision (examples):
        • Enhancing the Lyra finance options protocol AMM with intelligent features
        • Creating a transparent AI-based reputation system for Astraly
        • Working on the technical breakthroughs needed for contract-level compliance tools using ML for Aztec Protocol (a zk-rollup with privacy features)
    • ML as a Service (MLaaS) transparency (link)
    • Worldcoin
      • Verifying that a user has created a valid and unique WorldID locally by running the IrisCode model on self-hosted biometric data and is calling _addMember(uint256 groupId, uint256 identityCommitment) function on the WorldID Semaphore identity group with a valid identityCommitment. -> Makes protocol more permissionless
      • Making the Orb trustless, provide proof that fraud filters are applied
      • Enable IrisCode upgradeability
    • ZK anomaly/fraud detection
      • Creates the ability for creating a ZK proof of exploitability/fraud. Anomaly detection models could be trained on smart contract data and agreed upon by DAOs as interesting metrics to be able to automate security procedures such as preventively pausing contracts in a more proactive way. There are startups already looking at using ML models for security purposes in a smart contract context, so ZK anomaly detection proofs feel like the natural next step.
    • Generic SNARK for ML inference: ability to easily prove and verify that an output is the product of a given model and input pair.
  • Privacy
    • Decentralized Kaggle: proof that model has greater than x% accuracy on some test data without revealing weights
    • Privacy-preserving inference: medical diagnostics on private patient data get fed into the model and the sensitive inference (i.e. cancer test result) gets sent to the patient. (vCNN paper, page 2/16)

awesome-zkml's People

Contributors

dcbuild3r avatar 3for avatar adiprinzio avatar sga001 avatar amimibear avatar socathie avatar omahs avatar wld-terraform avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.