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

Request for feature addition: Visualization of Neuron Activations and Clustered Neuron Firings #93

Open
cristianestojeda opened this issue Jun 28, 2023 · 1 comment

Comments

@cristianestojeda
Copy link

Is it possible to include a method to visualize neuron activations and clustering neurons by activation values from https://jalammar.github.io/explaining-transformers/?

Some method to visualize this kind of figures:
https://jalammar.github.io/images/explaining/activations-4.PNG
https://jalammar.github.io/images/explaining/activations_1.PNG
https://jalammar.github.io/images/explaining/activations_2.PNG

It would be very interesting to incorporate those visualizations as improve the interpretability of the Transformer architecture.
Kind regards.

@jalammar
Copy link
Owner

Oh interesting. I'm curious why you'd find them useful. I was curious at how they'd look, but it was not a visual that is easily interpretable by humans. Ecco still collects the activations and you can plot them. That visual was using heatmaps to plot those values. That investigation turned to NMF factor analysis which brought forth more human-understandable patterns.

Could you shed some light on what you'd like to achieve? I might still have that code lying around somewhere. I couldn't find it from a quick search, but it's likely still around. I don't have a lot time to embed it into Ecco, but maybe just share it in its raw state if I find it.

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

2 participants