Comments (7)
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.
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.
@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.
@IcarusWizard but i can get that change in, to be faithful to the paper
from recurrent-memory-transformer-pytorch.
@IcarusWizard yup
do you want to see if the latest commit lines up with the paper better?
from recurrent-memory-transformer-pytorch.
@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.
@IcarusWizard ok, i've made it a hyperparameter
thanks for reporting this!
from recurrent-memory-transformer-pytorch.
Related Issues (18)
- causal mask assert hit HOT 25
- Question: configuring scaled_dot_product_attention
- Attend : check mask isn't already 4D HOT 1
- Question: how does memory replay backprogagation work with multiple models in series HOT 8
- Question: why do we need read_memory_emb HOT 6
- Question: masks HOT 3
- Feature request: make JIT and ONNX export work HOT 4
- Bug: resiDual implementation HOT 3
- Question: first read memories HOT 12
- flash attention, and a potentially better improvement HOT 5
- What is the reasoning for no dropout? HOT 2
- token_shift HOT 4
- bptt depth implementation? HOT 3
- have you had a chance to train it yet? HOT 2
- What happens if texts from the dataset don't have equal lengths HOT 4
- Question: How to set seq_len ? HOT 1
- Question: how to adapt this for CTC loss HOT 2
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 recurrent-memory-transformer-pytorch.