Git Product home page Git Product logo

fedrec's People

Contributors

bentanust avatar dylan-fan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fedrec's Issues

There is a typo in `HeteroFMTransferVariable`

Inside the definition of class HeteroFMTransferVariable, there is the following line of code:

self.agg_vx_mul_fg = self._create_variable(name='agg_vx_mul_fg', src=['host'], dst=['guest'])

which means the transmit direction of agg_vx_mul_fg is from host to guest.

Then, inside file hetero_fm_gradient_and_loss.py, there is the following lines of code:

def remote_agg_vx_mul_fg(self, agg_vx_mul_fg, suffix=tuple()):
    self.agg_vx_mul_fg_transfer.remote(obj=agg_vx_mul_fg, role=consts.HOST, idx=-1, suffix=suffix)

which says the transmit direction of agg_vs_mul_fg is from guest to host.

So, there is a conflict between these two places of code.

After some try and test, I found that it is a typo in the definition of HeteroFMTransferVariable. The way it meant to be should be like the following:

self.agg_vx_mul_fg = self._create_variable(name='agg_vx_mul_fg', src=['guest'], dst=['host'])

in other worlds, the transmit direction of agg_vs_mul_fg should be from guest to host.

And after this modification, I can run the hetero_fm example successfully, which would fail otherwise.

PS: I would like to work on this, but may need some help, like some guides on how to setup environment, what test uint should be added before open a PR. Please let me know who should I contact?

HeteroFM 是否可以去掉Arbiter

FedRec中的HeteroFM目前的实现有Arbiter角色,其作用是:生成公钥与私钥,还有是在Arbiter侧用私钥对密文进行解密。问题是:目前想把Arbiter的工作分配到host与guest侧。比如:

  • 生成host侧的key_pair,把公钥发给guest,私钥维护在host侧;
  • 生成guest侧的key_pair,把公钥发给host,私钥维护在guest侧。
    这样设计没问题吧?

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.