Summary
This paper introduces “rank difference” that measures the reduction in the rank of LLM’s representations. It evaluates the quality of LLMs, which could be used in addition to the reduction in the cross-entropy loss. The idea is based on the assumption that LLM’s representations (e.g., the hidden states of each token before the classification head) encodes the semantic and syntactic information about the input sentence. Before training, these representations are expected to be chaotic (hence high rank), but after training and alignment, the representations are expected to be more structured.
Based on this idea, “rank difference” is defined as the difference between $erank_{m0}(\Sigma_S)$ and $erank_{m1}(\Sigma_S)$ where $\Sigma_S$ is the covariance matrix of representations and $erank$ is the effective rank. The difference is computed between the representation before and after training. This measures the extend to which the model can compress the information, while other metrics such as cross-entropy measure the quality of model’s prediction.
Experiments are conducted on OPT models of sizes from 125m to 13B parameters. The results show that there is an upward trend between “rank difference” and model size (which reflects model performance) on a range of datasets, similar to the reduction in cross-entropy. In addition, rank difference is applied to measure the alignment between visual modality and text modality in Llava-1.5 and MiniGPT-v2. An ablation study on different model families is shown.
Strengths
This paper presents a new evaluation metric, grounded on information theory, and demonstrates that it correlates well with model performance (as measured by model size and downstream task performance). It also allows measuring the alignment between different modalities.
Weaknesses
1. Although the idea is novel, its practical usability is limited. To evaluate the quality of systems (e.g., LLM, ASR, etc), downstream metrics such as accuracy, ROUGE, BLEU, WER, etc. are used as they better align with real use cases. While, a metric like cross-entropy is used as it is differentiable, allowing it to be a training loss. I’m not sure if “rank difference” will be adopted as it’s neither related to real use case nor applicable as a training objective.
2. Regarding experiments, current results (both text-only and visual-text) only show the trend post-training, so it would be more indicative of demonstrating how “rank difference” changes during training (e.g., similar to cross-entropy loss which usually decreases monotonically during training).
Questions
1. How do you think this method could be adopted?
2. What is the computational cost of computing rank difference?
3. Would it be comparable across models of different representation sizes?
4. Does/how rank difference during the alignment stage (e.g., SFT or PPO/DPO) ?
Limitations
Limitations section is provided, and it has covered the main points