r/MachineLearning • Writer • Apr 30 '23

Project [P] Understanding Large Language Models -- a collection of the most relevant papers

https://magazine.sebastianraschka.com/p/understanding-large-language-models
535 Upvotes

18 comments sorted by

7

u/samsja19 Apr 30 '23

This is a good list

4

u/seraschka Writer Apr 30 '23

Thanks! I was trying hard to be selective to not make it too overwhelmingly long ๐Ÿ˜…

17

u/[deleted] Apr 30 '23

Subscribed now donโ€™t let me down

2

u/harpsdischord May 01 '23

Thanks for assembling this! Just spent an hour going through the first couple references :)

2

u/flavorwolf_ May 01 '23

Subscribed, thanks.

1

u/Ok-Lack-7216 Jan 26 '26

This is a great list of papers.

For anyone finding the math in Attention Is All You Need dense, I created a visual animation of the architecture that runs through the mechanics (Embeddings/Softmax/Attention) conceptually.

It might be a good "Watch First" resource before diving into the raw arXiv PDFs: https://youtu.be/x-XkExN6BkI

1

u/drunken_German_Guy May 01 '23

I would probably also add: Universal Language Model Fine-tuning for Text Classification

0

u/[deleted] Apr 30 '23

[deleted]

14

u/seraschka Writer Apr 30 '23

Thanks for the feedback! Originally, I was thinking there is probably already enough analysis between the Chinchilla and Pythia paper, but it might be worthwhile adding Gopher indeed. Will make a note to add it in the next iteration.

For that reason I would also suggest linking the pre vs post layernorm paper which lays out precisely why this is the case.

Great call, will at Xiong et al.'s paper as well!

3

u/acousticpants May 01 '23

Gopher

is this the paper? https://arxiv.org/abs/2112.11446

3

u/seraschka Writer May 01 '23

Yes, this is it :)

1

u/G_fucking_G May 01 '23 edited May 01 '23

This is the second time I have read, that the diagrams do not match the code. Where is this coming from?

The diagagram from "Attention is all you need" shows LN after Attention and after FFN.

But the original commit of their code does the same: LN after Attention and after FFN:

https://github.com/tensorflow/tensor2tensor/blame/3d9c62f2aca9492db5c22676416974005b9dcbae/tensor2tensor/models/transformer.py#L158

https://github.com/tensorflow/tensor2tensor/blame/3d9c62f2aca9492db5c22676416974005b9dcbae/tensor2tensor/models/transformer.py#L65

Edit: It was changed a few months later in this commit https://github.com/tensorflow/tensor2tensor/commit/f5c9b17e617ea9179b7d84d36b1e8162cb369f25