GithubHelp home page GithubHelp logo

Question about DiffLoss about dsn HOT 3 CLOSED

fungtion avatar fungtion commented on June 24, 2024
Question about DiffLoss

from dsn.

Comments (3)

fungtion avatar fungtion commented on June 24, 2024 1

@kmaninis Yes, I see what you mean, this is probably my misunderstanding about the paper, which makes it unstable. I'll try to modify my implementation. Thanks !

from dsn.

fungtion avatar fungtion commented on June 24, 2024

@kmaninis Thank you for your feedback.

  • As far as the first question, each row of input1 and input2 in DiffLoss represents the private and shared feature of the same sample, respectively. The DiffLoss is supposed to make the private and shared features orthogonal. So I think it should be torch.mean((input1_l2.mm(input2_l2.t()).pow(2))).
  • For the second question, I don't think mean value normalization could improve the stability significantly, since the the proposed DiffLoss has brought too much instability.

from dsn.

kmaninis avatar kmaninis commented on June 24, 2024

@fungtion Thanks for your reply.

I think that the orthogonality constraint in your case doesn't hold in case you permute your features, for example [0, 1] and [1, 0] are orthogonal, but you can get the one from the other by just permuting the features.

In short, I think that what it is meant to do is: For a private feature of dimension M x C1 and a shared representation M x C2 (M stands for batch size, C stands for features) create a correlation C1 X C2 and minimize it. Isn't it what is happening in this part of the code?

from dsn.

Related Issues (13)

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.