Summary
This work is mainly based on the representational geometry of activations in the activation space and chooses samples whose distances are within a defined $\epsilon$-preimage distance. A single two-layer transformer decoder model is trained using activations of each layer from the investigated model. After finishing decoder training, the Euclidean distance is used as a metric to select generated samples based on each activation presentation of each layer, and compare those samples with the query input sentence. This approach is evaluated and analysed under three tasks, i.e., character counting with a 2-layer and 1-head transformer, IOI with GPT2-small and 3-digit addition with 2-layer, 4-attention head transformer. The comprehensive experiment results and analysis confirm the geometry hypothesis, and provide lots of insights to future work.
Strengths
- Activation representation of each layer from small neural networks to GPT2-small can be visualized and explained based on the geometry hypothesis with a trained decoder using those activations as input
- This hypothesis is evaluated using different tasks, i.e., character counting, IOI and 3-digit addition, and lots of meaningful analysis and insights are discussed
- Experiments are solid and the appendix includes many details about each case study.
Weaknesses
- I suggest authors use another figure to demonstrate the whole training and evaluation pipeline, i.e., what input is used for training probed model, what query input is for decoder training and what input and output are from the trained decoder, which will help to understand the whole framework much easier for readers.
- This method is mainly based on manual investigation to select and analyse generated samples, which might need large labour resources to extend to large-scale LLMs.
Questions
- In line 115, what does $\mathbf{z}$ represent here? and what is the difference between $\mathbf{z}$ and $\mathbf{z}^q$?
- In line 108, Is this input the same as the query input in figure 1? Another figure introducing the whole pipeline might help a lot to understand.
- Does this neighbour of geometry hypothesis always hold across all LLM activations?
Limitations
I am looking forward to how to automate this approach and apply it to the larger LLM interpretability analysis.