Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting real-world ML model(s) into ZK #3

Open
socathie opened this issue Sep 25, 2023 · 4 comments
Open

Porting real-world ML model(s) into ZK #3

socathie opened this issue Sep 25, 2023 · 4 comments
Labels
Round 2 February 29, 2024, to May 31, 2024 Task Be Taken Someone's proposal has passed and they work on this task Task This is a task open to everyone ZKML Zero Knowledge Machine Learning

Comments

@socathie
Copy link

socathie commented Sep 25, 2023

Open Task RFP for Porting real-world ML model(s) into ZK

Executive Summary

  • Project Overview: Porting machine learning models that are actually used in real-world applications into ZK

Project Details

  • Scope of Work:
  1. Select a small (such that a powerful laptop can prove) ML model that has been used in real-world applications (no toy problems like MNIST or Boston House Price, etc.)
  2. Construct the model in ZK using any DSL/compiler of your choice.
  3. Create a minimal demo UI so that people can interact with the model and generate proofs.
  4. Measure the performance of the original version vs. the ZK (quantized) version.
  5. Document the process, including any difficulties you encounter.
  • Expected Outcomes: a demo app, a repo of the codebase, an article documenting the process
  • Technical Requirements: Tensorflow/Pytorch, any ZK DSL

Qualifications

  • Skills Required: knowledge of Tensorflow/Pytorch, ability to port ML models into ZK DSLs (any of your choice), proficient writing skills
  • Preferred Qualifications: professional experience/advanced degree in machine learning is a plus

Administrative Details

  • Grant Liaison: Cathie So (@socathie, socathie@gmail.com)
  • Estimated Project Duration: 120 hours
  • Project Complexity: Medium, expected to conduct independent research

Additional Information

Submission Details

  • Proposal Deadline: The deadline for submitting proposals is the end of this round of the Acceleration Program. Refer to current round
  • Submission Instructions: Please submit your proposal as an issue and link back to this issue in your proposal. Refer to proposal template for more details.
@NOOMA-42 NOOMA-42 added the Task This is a task open to everyone label Sep 25, 2023
@NOOMA-42 NOOMA-42 added the ZKML Zero Knowledge Machine Learning label Oct 21, 2023
@NOOMA-42 NOOMA-42 added the Round 1 from 2023/12/1 to 2024/2/28 label Dec 1, 2023
@only4sim
Copy link

only4sim commented Jan 9, 2024

Dear Dr. Cathie @socathie and Paul @NOOMA-42 ,

I hope to work on this task. My idea now is to predict the probability distribution of hourly rainfall from polarimetric radar measurements. The use of radar to assess rainfall is widely used in agricultural production. Currently prevalent models include decision trees, random forests, and XGBoost. Proven assessment results can be combined with on-chain Oracle to enrich the data sources for on-chain decision-making. I think it's a scenario that makes practical sense, and the model is relatively mild in complexity, making it more conducive to implementation on a laptop.

I am wondering your opinions on this idea and look forward to your comments.

Have a nice day!

Best regards,
Li

@NOOMA-42
Copy link
Collaborator

Hi Li,

sorry for missing out your question. Having XGBoost will be really helpful. This sounds to me very valid. Would you be able to submit a proposal?

Dear Dr. Cathie @socathie and Paul @NOOMA-42 ,

I hope to work on this task. My idea now is to predict the probability distribution of hourly rainfall from polarimetric radar measurements. The use of radar to assess rainfall is widely used in agricultural production. Currently prevalent models include decision trees, random forests, and XGBoost. Proven assessment results can be combined with on-chain Oracle to enrich the data sources for on-chain decision-making. I think it's a scenario that makes practical sense, and the model is relatively mild in complexity, making it more conducive to implementation on a laptop.

I am wondering your opinions on this idea and look forward to your comments.

Have a nice day!

Best regards, Li

@only4sim
Copy link

Hi Li,

sorry for missing out your question. Having XGBoost will be really helpful. This sounds to me very valid. Would you be able to submit a proposal?

Dear Dr. Cathie @socathie and Paul @NOOMA-42 ,
I hope to work on this task. My idea now is to predict the probability distribution of hourly rainfall from polarimetric radar measurements. The use of radar to assess rainfall is widely used in agricultural production. Currently prevalent models include decision trees, random forests, and XGBoost. Proven assessment results can be combined with on-chain Oracle to enrich the data sources for on-chain decision-making. I think it's a scenario that makes practical sense, and the model is relatively mild in complexity, making it more conducive to implementation on a laptop.
I am wondering your opinions on this idea and look forward to your comments.
Have a nice day!
Best regards, Li

Hi Paul.

Thank you very much for your kind answer! I am thrilled you like the idea. I will make a proposal to give more explanation for the idea and the plan. I am very excited to have a chance to work with the PSE team and look forward to receiving your comments.

Best wishes,
Li

@only4sim
Copy link

Hi @socathie and @NOOMA-42 ,

I submitted my proposal and used the time to conduct preliminary experiments to prune the model used. You can find the relevant data in the Preliminary Results section. Here's a link to my proposal #39 and I look forward to your comments.

Cheers,
Li

@NOOMA-42 NOOMA-42 added Proposal Pending Proposal has been submitted by other applicants. You can compete within deadline Round 2 February 29, 2024, to May 31, 2024 and removed Round 1 from 2023/12/1 to 2024/2/28 labels Feb 29, 2024
@NOOMA-42 NOOMA-42 added the Completed Grant has closed and finished label Apr 18, 2024
@NOOMA-42 NOOMA-42 reopened this Apr 18, 2024
@NOOMA-42 NOOMA-42 removed the Completed Grant has closed and finished label Apr 18, 2024
@NOOMA-42 NOOMA-42 added Task Be Taken Someone's proposal has passed and they work on this task and removed Proposal Pending Proposal has been submitted by other applicants. You can compete within deadline labels May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Round 2 February 29, 2024, to May 31, 2024 Task Be Taken Someone's proposal has passed and they work on this task Task This is a task open to everyone ZKML Zero Knowledge Machine Learning
Projects
None yet
Development

No branches or pull requests

3 participants