Diff-eRank: A Novel Rank-Based Metric for Evaluating Large Language Models

Lai Wei, Zhiquan Tan, Chenghai Li, Jindong Wang, Weiran Huang
1/30/2024
cs.LGcs.AIcs.CL

Official code: waltonfuture/Diff-eRank (59 stars, Apache-2.0, last commit 2025-05-28).

Abstract

Large Language Models (LLMs) have transformed natural language processing and extended their powerful capabilities to multi-modal domains. As LLMs continue to advance, it is crucial to develop diverse and appropriate metrics for their evaluation. In this paper, we introduce a novel rank-based metric, Diff-eRank, grounded in information theory and geometry principles. Diff-eRank assesses LLMs by analyzing their hidden representations, providing a quantitative measure of how efficiently they eliminate redundant information during training. We demonstrate the applicability of Diff-eRank in both single-modal (e.g., language) and multi-modal settings. For language models, our results show that Diff-eRank increases with model size and correlates well with conventional metrics such as loss and accuracy. In the multi-modal context, we propose an alignment evaluation method based on the eRank, and verify that contemporary multi-modal LLMs exhibit strong alignment performance based on our method. Our code is publicly available at https://github.com/waltonfuture/Diff-eRank.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS 2024] A Novel Rank-Based Metric for Evaluating Large Language Models

592PythonJan 29, 20241 years agoApache-2.0
evaluation-metricsllmllm-inferencemachine-learningmllm+1 more

Cite this paper

@article{wei2024differank,
  title  = {Diff-eRank: A Novel Rank-Based Metric for Evaluating Large Language Models},
  author = {Lai Wei and Zhiquan Tan and Chenghai Li and Jindong Wang and Weiran Huang},
  year   = {2024},
  eprint = {2401.17139},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-1248},
  url    = {http://arxiv.org/abs/2401.17139v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.17139.svg)](https://codeofpaper.com/paper/2401.17139)

Discussion