Code Monkey home page Code Monkey logo

Comments (7)

IcarusWizard avatar IcarusWizard commented on June 8, 2024 1

My thought is, if using the recurrent structure, the skip connection in transformer can implicitly make the next memory close to the previous memory.

from recurrent-memory-transformer-pytorch.

IcarusWizard avatar IcarusWizard commented on June 8, 2024 1

LGTM. There is one small detail that I don't know whether you need stop gradient. In Fig. 2 of the RMT paper, the gradient arrow is pointing to the write, but in Fig. 4 of the RMDT paper, the gradient arrow is point to the read. I think that won't be a big issue as long as the training is stable.

from recurrent-memory-transformer-pytorch.

lucidrains avatar lucidrains commented on June 8, 2024

@IcarusWizard ah that's interesting

would be nice if they ablated that

my take is, should make little difference, as in the first layer, the write memories have access to all the read memories

from recurrent-memory-transformer-pytorch.

lucidrains avatar lucidrains commented on June 8, 2024

@IcarusWizard but i can get that change in, to be faithful to the paper

from recurrent-memory-transformer-pytorch.

lucidrains avatar lucidrains commented on June 8, 2024

@IcarusWizard yup

do you want to see if the latest commit lines up with the paper better?

from recurrent-memory-transformer-pytorch.

lucidrains avatar lucidrains commented on June 8, 2024

@IcarusWizard i'm pretty sure it won't do anything. the way i had it before is akin to an attention pooling step on the first layer, and we know that works well from some other papers

from recurrent-memory-transformer-pytorch.

lucidrains avatar lucidrains commented on June 8, 2024

@IcarusWizard ok, i've made it a hyperparameter

thanks for reporting this!

from recurrent-memory-transformer-pytorch.

Related Issues (18)

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.