logoalt Hacker News

Is One Layer Enough? A Single Transformer Layer Matches Full-Parameter RL Train

102 pointsby tcp_handshakertoday at 12:10 PM23 commentsview on HN

Comments

HarHarVeryFunnytoday at 2:51 PM

It's interesting that it's the middle layers of the Transformer that are affected most by RL post-training, but it perhaps makes some intuitive sense given that RL is being used to shape high level planning-type direction of the output.

It seems that the input layers to a Transformer are necessarily going to be doing the most low level work of syntax -> semantic augmentation starting with things like tagging parts of speech etc. Similarly the output layers are by necessity going to be concerned with mapping high level representations back into surface level word sequence form. This leaves the middle layers to do the work of first recognizing deep enough patterns to support good quality prediction, then do the high level predication itself which is what RL is typically going to be trying to shape.

mike_hearntoday at 2:29 PM

This result feels very intuitive. The early layers of a transformer can be thought of as understanding surface level things like syntax, how tokens group, which groups are entities and how to disambiguate them, etc. The last layers are in a sense decoding ideas into a selection of words, ensuring the grammar makes sense, that the text flows and is structured correctly, etc. The middle layers are where the abstract thought and manipulation of concepts is happening.

But for the tasks this paper uses for RL training, it's all about improving the way the net is manipulating concepts. So the middle layers are where the focus should be.

Note: RL is also used for tasks that aren't about conceptual manipulation, like instruct training. I bet that their result doesn't hold for that because the delta vs the foundation model is all about the selection of words and flow of the text, not the core understanding.

show 1 reply
ollieprotoday at 3:06 PM

The authors have some inconsistencies with training token length…

Most errors are probably responses that didn’t finish before their 3K token limit. They’ve measured how well RL is able to shorten the response to their limit.

usernametaken29today at 1:10 PM

If you think about it for some time then you’ll come to realise transformers are autoencoders on steroids. A small input space is expanded onto a big manifold and contracted again. Now, suppose you want to impose a function to regulate the output of an autoencoder. It’s actually pretty obvious that you need exactly one layer to do so… f(manifold).

show 4 replies
baqtoday at 3:05 PM

I'm reminded of this dude who was sitting at or near the top of some kaggle leaderboard simply[0] splicing together some duplicated middle layers and applying a bit of fine tuning

[0] not simply

show 2 replies
solevelopertoday at 2:49 PM

Makes sense - This is very similar to fine tuning a down stream task in encoder-decoder architecture (~Bert style)

tribal808today at 2:35 PM

If most of the performance gains are hidden in a few middle layers, you can save a massive amount of compute by freezing the rest

khalictoday at 5:08 PM

Really good work here, bravo

vatsachaktoday at 3:05 PM

I still can't believe that LLM encoders aren't unsupervised learned.

So much left on the table

show 1 reply