Comments (3)
@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.
@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.
@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)
- multi-GPU HOT 1
- loss_diff decrease to zero very fast HOT 2
- raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly HOT 2
- Diff loss and dann loss are zeros for all epochs.
- The private code is always zeros.
- how to get the dataset?mnist_m_train_labels.txt? HOT 2
- The implementation of 'p' is not similar to the original DANN paper HOT 1
- Question about all of the loss HOT 15
- Question about ReverseLayerF HOT 4
- Question about the accuracy of the result HOT 2
- There is a line of wrong code HOT 1
- Question about the Sign of SIMSE Loss HOT 3
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 dsn.