Comments (2)
Hi @linjunmian ,感谢提问
SPU虚拟机提供了 reveal 方法来“揭露”密态数据。设想如果没有揭露方法,最终计算结果对所有人都不可见,计算本身也就会失去意义 :P
一个通用的流程是,多方输入数据 x, y, z,然后多方工作做计算 res = f(x, y, z),SPU可以保证整个计算过程的安全性,但最后用户需要手动 reveal(res),SPU/MPC本身并不保证结果的安全性
如果用户通过上层 API(Python)来写代码,SPU编译器和运行本身不会插入Reveal指令,所以计算过程是可以保证安全的
PS: 如果一个函数本身是“可逆”的,比如简单的加法,乘法,sigmoid,exp,那么通过结果本身是可以反推输入的,这是计算本身的性质,跟MPC无关。但是如果计算本身是不可逆的,比如 比较大小,或者是复杂的训练,预测,就无法反推输入了,这也是MPC应用的一个通用pattern
from spu.
@rivertalk 谢谢回答。加法我只是举个例子,事实上我们不会提供这种可以倒推的算子(一般会有组合)
from spu.
Related Issues (20)
- SPU的编译环境 HOT 2
- [Feature]: flax_gpt2 inference using FM32 secret sharing HOT 4
- How to get the communication volume and how to evaluate individual DNN layer? HOT 6
- [Question]: Are the plaintexts passed to AddPlainInplace in NTT form? HOT 3
- mac运行spu-psi_test中.so错误 HOT 12
- How to use SPU to evaluate private models in 2PC setting with only one machine? HOT 13
- [Bug]: One more minus sign HOT 2
- [Bug]: Package 'examples/python/ml/my_custom_file' contains errors HOT 10
- [Bug]: The critical condition judgment is wrong HOT 5
- [Bug]: Error when trying to benchmark SPU latency in 2PC setting. HOT 3
- another case where secret indexing doesn't seem to work HOT 2
- [Bug]: 8x communication compared to reported in Cheetah HOT 5
- [Operation Question] How to separate truncation and matmul operations HOT 9
- [Question]: Are there any files building correspondence between the kernels and their dispatching functions? HOT 3
- [Bug]: bitintl_b in ab_api.cc is wrong HOT 3
- [Question]: The number of convolutional multiplication decreases but the communication cost increases in SPU HOT 3
- [Bug]: gRPC Socket Shutting Down After Many Runs HOT 7
- [Bug]: gcc 11.2下的编译问题 HOT 11
- [Question]: 能否不重复编译外部库,加速编译速度? HOT 4
- [Question]: stub_method方法实现将函数交由server执行,请问如何调试server中函数的具体执行过程? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spu.