Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyzing layer norm compositions #15

Open
nicholasturner1 opened this issue May 14, 2022 · 1 comment
Open

Analyzing layer norm compositions #15

nicholasturner1 opened this issue May 14, 2022 · 1 comment

Comments

@nicholasturner1
Copy link
Owner

On initial analysis, the layer norm biases seem to have a large portion of the largest terms.
https://github.com/nicholasturner1/gpt-omics/blob/main/notebooks/220509_initial_gptj_run.ipynb
These terms also reach for surprisingly long distances (longer than the attention heads). Could be something interesting here.

@nicholasturner1
Copy link
Owner Author

Last week, we realized that the bias terms added to the residual stream by other layers are always passed through a layernorm (with its own bias) before reaching its destination within another layer. Given that, we might instead analyze a fused bias term between each layer instead of splitting them apart.

This is probably a job for another paper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant