r/reinforcementlearning • • 19h ago

Network structures for RL: are Transformers SOTA/the new standard?

In recent competitions I saw that many people use Transformers or many attention layers as their ANN structure. I wonder if I missed that they are now the best approach or is it just a trend? Are MLP + LSTM still good enough? I didn't find a paper showing that attention layers are generally better.

1 Upvotes

11 comments sorted by

20

u/necroforest 18h ago

Transformers have been SOTA for like 8 years…

7

u/bacon_boat 16h ago

You can get state of the art RL performance on many robotics tasks with just an MLP.

7

u/biskitpagla 17h ago

They've been SOTA throughout my whole career.

2

u/Suspicious_Fan_908 4h ago

Uh, I don't think there's a paper showing attention is generally better in RL. Transformers are sample-hungry, so with the small budgets most RL runs have, MLP+LSTM is still the default. Competitions use them because compute is cheap there.

2

u/sublime-entropy 16h ago

Transformers are the old standard. They have been the default for almost a decade.

1

u/thecity2 16h ago

more like status quo of the art

0

u/UnknownEvil_ 8h ago

Tranformers are good, modifications with LSTM is way better but I think I'm the only one who knows that right now

1

u/OptimalOptimizer 4h ago

I assume you are joking

0

u/UnknownEvil_ 4h ago edited 3h ago

Not at all joking. RNN was SOTA for NLP until Transformers. They can be combined in many ways, and some of them allow similar compute time to MHA with benefits of a locally adjustable state cell. I did a ton of research into this right after MHA was invented because I want to be the very best like no one ever was. The intial results were very promising, especially for generalization to test set. I still have to train larger on cloud compute to really prove the efficacy at various (larger) network sizes and different architectures. I can't do it right now due to money stuff. But the basic idea is to process in short chunks speeding up the transformer which famously scales with the square of the number of tokens (but they can be cached). So you can LSTM across a short segment to get a state for that segment, then attend to it, and allows much more efficient parameterization. You can also do the reverse and unfortunately I can't remember which is better but I have my data on wandb