Git Product home page Git Product logo

Comments (2)

csrhddlam avatar csrhddlam commented on August 13, 2024

Thanks for your comments and suggestion.

Your re-formulation is correct. But I don't see how
y = sigma( softmax( q * k + q * r^k + k * r^q + r^q * r^k ) * (v + r^v) )
is different from
y = sigma( softmax( q * k + q * r^q + k * r^k ) * (v + r^v) )

because

  1. The r^k you mentioned in the two papers is called r^q in our paper.
  2. The notation of r^k and r^q does not matter because they are simply two learnable vectors. You could use any name for them.
  3. The additional bias term r^q * r^k is simply an input-agnostic relative positional bias. And I don't think omitting this term makes much difference.

In addition, we were not aware of the Self-Attention with Relative Position Representations when we formulated it. So we did not follow the tradition that relative positional embeddings are added to q or k. Instead, we focused directly on the unfolded formulation and added k dependent terms to it. And we simply call the vector that will be multiplied with k, r^k.

from axial-deeplab.

romulus0914 avatar romulus0914 commented on August 13, 2024

Thanks for your reply!

Indeed, there is no difference between them in the implementations.

Thanks again.

from axial-deeplab.

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.