Skip to content

This repository is pytorch version implement of LRU from the paper "Resurrecting Recurrent Neural Networks for Long Sequences" (https://arxiv.org/abs/2303.06349), which is based on tf version by @bojon

Notifications You must be signed in to change notification settings

TingdiRen/LRU_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PyTorch implementation of LRU (Linear Recurrent Unit)

This Repository implements a pytorch version of the LRU, including parallel training and serial inference.

The parallel acceleration is achieved by Upper/Lower algorithm based on Bojbojone/rnn.

About LRU

LRU is proposed by Resurrecting Recurrent Neural Networks for Long Sequences as an alternative to RNNs, with an architecture inspired by SSMs. I conducted experiments on a classification problem in finance, and the results showed a significant improvement of LRU over LSTM.

Notes

If you want to use LRU for time series prediction, please note that the paper requires LRU with MLP for this, while merely LRU is implemented in this project.

About

This repository is pytorch version implement of LRU from the paper "Resurrecting Recurrent Neural Networks for Long Sequences" (https://arxiv.org/abs/2303.06349), which is based on tf version by @bojon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages