Giter VIP home page Giter VIP logo

Comments (3)

sangwoomo avatar sangwoomo commented on August 16, 2024 7

Hi @tommying, thank you for your interest!

  1. The cosine similarity formula u * v / ||u|| * ||v|| itself does not imply anything about the norm, as the norm of u (so as v) affects both the numerator and denominator. However, we hypothesize that the SimCLR objective implicitly increases the norm, as it is hard to decrease the Euclidian distance of the features u and v; hence the model pushes both features (yet keeping the Euclidian distance) to decrease the cosine similarity.
  2. Note that sim(z(x_m), z(x)) ||z(x)|| = (z(x_m) * z(x) / ||z(x_m)|| * ||z(x)||) * ||z(x)|| = z(x) * (z(x_m) / ||z(x_m)||), where z(x) is f_sim and z(x_m) / ||z(x_m)|| are P.axis in our code.
  3. SimCLR (Eq. (2)) only pushes unshifted negative batches B, but CSI (Eq. (3)) also pushes shifted negative batches B_S. By substituting B to B_S in Eq. (2), you can derive that the objective is changed from L_con(x^1,x^2,B) to L_con(x^1,x^2,B_S). Also, Eq. (4) is used to further discriminate the shifting transformations. Intuitively, there are no reason to not use the additional shifting transformation labels, and it indeed improves the performance as we show in our ablation study (Table 7a).

Best regards,

from csi.

tommying avatar tommying commented on August 16, 2024

thank you, sir.

from csi.

Minqi824 avatar Minqi824 commented on August 16, 2024
  • I also confused about problem 1. The first part of Eq. (6) is intuitive: the OOD samples' embedding is far from the ID samples' embedding, so the sim(z(x_m), z(x)) would be small if x is OOD.

However, @sangwoomo explains that the model pushes both features' norm to decrease the cosine similarity. I am confused that how the difference of ID & OOD samples is shown in the term ||z(x)||? Could you explain it more?

  • Besides, "we hypothesize that the SimCLR objective implicitly increases the norm" seems not to explain the reason why the term ||z(x)|| is smaller for OOD samples.

Very thanks!

from csi.

Related Issues (20)

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.