Summary
This paper focuses on the problem of editing undesirable behaviours at inference time that does not require any training. To that end, they present SEA, a method based on spectral editing of activations. To find the editing projections, the method requires keeping track of LLM activations over several neutral, positive and negative activations. From those activations, SVD is applied on the covariance matrices between the neutral and negative, and neutral and positive activations, respectively. To allow for non-linearity, the authors use an invertible non-linear feature function.
The authors investigate how their method impacts truthfulness and bias on two benchmarks (TruthfulQA and BBQ), and show that scores on those benchmarks can be improved using SEA. Consistent improvements are observed across six distinct LLMs of various sizes and architectures, using only 25 demonstrations, while not degrading other model capabilities, with an increase in inference speed of around 4%.
The paper first presents results with Llama-2 7B (base and chat) for thruthfulQA, comparing with several baselines, including ICL and LoRA. Overall SEA outperforms other methods while maintaining a much better inference speed. With an ablation study, the authors show that activations edited with positive and negative projections likely complement each other, and are not as effective on their own. They furthermore investigate the impact of feature normalization, showing that it is more effective than when no normalization has taken place.
Next, the paper investigates the impact of SEA on bias, as measured by BBQ. They show that the accuracy enhancement for linear SEA is moderate, but non-linear SEA gives more improvements, while baselines do not. For bia, they furthermore show that the results can be generalised to other Llama models (llama-2-13B & 70B, Gemma-it-2B & 7B and Mistral 7B).
Last, the paper investigates how SEA scales with the number of demonstrations needed to calculate the editing projections. Experiments show that for MC1 a mere 25 demonstrations suffice for the first improvements (no results are shown for MC2), for BBQ even fewer demonstrations can improve accuracy (number listed is also 25?), and shows that the method has little effect on a several other benchmarks unrelated to the edited parts.
Strengths
The paper discusses an important topic of making models more truthful and less biased. The proposed methods seems to work better than previous methods (though see weaknesses below) at a smaller loss of inference speed, while maintaining performance on benchmarks unrelated to the editing.
Weaknesses
- There is no significance testing for benchmark scores. Especially TruthfulQA is not a very large benchmark, for the entire benchmark (averaging over subsets), the 95% confidence intervals would be around 3, making several (but not all) of the reported differences insignificant. This should be addressed / discussed
- The paper would be stronger if more evaluation benchmarks were considered for bias and truthfulness
- Some of the results selection seems a bit arbitrary, which gives pause when considering the generalisability of the results. For instance, why are results for other model (families) shown for BBQ, but not for TruthfulQA? And why are scalability results for truthfulQA shown only for MC1, and not for MC2?
- The toxigen scores for llama2-chat-7B seem outrageously high, in the Llama2 paper they are listed to be between 20 and 30 for the pretrained model, and around 0 for the chat version. In table 4, however, the scores are reported to be higher than 50 (!).
- It is not entirely clear if the method would scale to making models more truthful and unbiased at the same time, would that require different editing projections to be stacked on top of each other?
Some presentational issues:
- Figure 4 is a bit difficult to read because of the scale. The text makes statements about values around 25, but this cannot be confirmed from the figure. Perhaps a log-scale ould be more suitable? Or, alternatively, let the plot go up to 50, rather than 1500/2000, as nothing is discussed about values higher than 25 anyways.
- In Table 4, toxigen scores going down are reported red, but for toxigen lower is better
Questions
- Could you explain why your toxigen scores differ so drastically from the scores reported in the Llama2 paper?
- It could be that I am mistaken, but it seems that several separate editing functions are needed for truthfulness and bias. Can this approach scale to a method where both are taken care of?
Limitations
The discussion of limitations is very limited, only discussing a specific performance degradation of not-linear SEA on control tasks (which is a limitation indeed, but really more just an experimental result). The limitations section is furthermore not referred to in the main text, but is a far-down appendix.