{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/large-language-model-evaluation-via-matrix","title":"Diff-eRank: A Novel Rank-Based Metric for Evaluating Large Language Models","arxiv_id":"2401.17139","date":"2024-01-30","proceeding":null,"authors":["Lai Wei","Zhiquan Tan","Chenghai Li","Jindong Wang","Weiran Huang"],"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.","url_abs":"https://arxiv.org/abs/2401.17139v2","url_pdf":"https://arxiv.org/pdf/2401.17139v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"large-language-model-evaluation-via-matrix","repo_url":"https://github.com/waltonfuture/Diff-eRank","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"large-language-model-evaluation-via-matrix","repo_url":"https://github.com/lluckyyh/xtrust","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"data-compression","task_name":"Data Compression"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"large-language-model","task_name":"Large Language Model"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2401.17139","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.17139"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/waltonfuture/Diff-eRank","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lluckyyh/xtrust","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":4,"ran_honours":1},"by_repo_kind":{"official":{"samples":5,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"139307791be03851","entry":"cal_cov","repo":"waltonfuture/Diff-eRank","repo_kind":"official","path":"utils/diff_erank_single_sentence.py","file_url":"https://github.com/waltonfuture/Diff-eRank/blob/HEAD/utils/diff_erank_single_sentence.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"139307791be03851"}},{"code_sha256_prefix":"dec97c9015b54fd6","entry":"cal_entropy","repo":"waltonfuture/Diff-eRank","repo_kind":"official","path":"utils/diff_erank_dataset.py","file_url":"https://github.com/waltonfuture/Diff-eRank/blob/HEAD/utils/diff_erank_dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dec97c9015b54fd6"}},{"code_sha256_prefix":"8490a1bd20100449","entry":"cal_erank","repo":"waltonfuture/Diff-eRank","repo_kind":"official","path":"utils/diff_erank_single_sentence.py","file_url":"https://github.com/waltonfuture/Diff-eRank/blob/HEAD/utils/diff_erank_single_sentence.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8490a1bd20100449"}},{"code_sha256_prefix":"39f68f78aa11f9b5","entry":"compute","repo":"waltonfuture/Diff-eRank","repo_kind":"official","path":"utils/diff_erank_single_sentence.py","file_url":"https://github.com/waltonfuture/Diff-eRank/blob/HEAD/utils/diff_erank_single_sentence.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"39f68f78aa11f9b5"}},{"code_sha256_prefix":"34a7e87185369551","entry":"normalize","repo":"waltonfuture/Diff-eRank","repo_kind":"official","path":"utils/diff_erank_single_sentence.py","file_url":"https://github.com/waltonfuture/Diff-eRank/blob/HEAD/utils/diff_erank_single_sentence.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"34a7e87185369551"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}