{"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/compression-represents-intelligence-linearly","title":"Compression Represents Intelligence Linearly","arxiv_id":"2404.09937","date":"2024-04-15","proceeding":null,"authors":["Yuzhen Huang","Jinghan Zhang","Zifei Shan","Junxian He"],"abstract":"There is a belief that learning to compress well will lead to intelligence. Recently, language modeling has been shown to be equivalent to compression, which offers a compelling rationale for the success of large language models (LLMs): the development of more advanced language models is essentially enhancing compression which facilitates intelligence. Despite such appealing discussions, little empirical evidence is present for the interplay between compression and intelligence. In this work, we examine their relationship in the context of LLMs, treating LLMs as data compressors. Given the abstract concept of \"intelligence\", we adopt the average downstream benchmark scores as a surrogate, specifically targeting intelligence related to knowledge and commonsense, coding, and mathematical reasoning. Across 12 benchmarks, our study brings together 31 public LLMs that originate from diverse organizations. Remarkably, we find that LLMs' intelligence -- reflected by average benchmark scores -- almost linearly correlates with their ability to compress external text corpora. These results provide concrete evidence supporting the belief that superior compression indicates greater intelligence. Furthermore, our findings suggest that compression efficiency, as an unsupervised metric derived from raw text corpora, serves as a reliable evaluation measure that is linearly associated with the model capabilities. We open-source our compression datasets as well as our data collection pipelines to facilitate future researchers to assess compression properly.","url_abs":"https://arxiv.org/abs/2404.09937v2","url_pdf":"https://arxiv.org/pdf/2404.09937v2.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":"compression-represents-intelligence-linearly","repo_url":"https://github.com/hkust-nlp/llm-compression-intelligence","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"mathematical-reasoning","task_name":"Mathematical Reasoning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2404.09937","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.09937"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hkust-nlp/llm-compression-intelligence","reach":null}],"summary":{"ran_violates":1,"ran_draft_wrong":2,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":3,"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":"f59f28920403bbb9","entry":"check_data","repo":"hkust-nlp/llm-compression-intelligence","repo_kind":"official","path":"code/data_collection/arxiv/arxiv_downloader.py","file_url":"https://github.com/hkust-nlp/llm-compression-intelligence/blob/HEAD/code/data_collection/arxiv/arxiv_downloader.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f59f28920403bbb9"}},{"code_sha256_prefix":"bfcd77a7d04f987d","entry":"get_end_cursor","repo":"hkust-nlp/llm-compression-intelligence","repo_kind":"official","path":"code/data_collection/github/gh_crawler.py","file_url":"https://github.com/hkust-nlp/llm-compression-intelligence/blob/HEAD/code/data_collection/github/gh_crawler.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bfcd77a7d04f987d"}},{"code_sha256_prefix":"e16ae5d505cd66d4","entry":"xml2dict","repo":"hkust-nlp/llm-compression-intelligence","repo_kind":"official","path":"code/data_collection/arxiv/arxiv_downloader.py","file_url":"https://github.com/hkust-nlp/llm-compression-intelligence/blob/HEAD/code/data_collection/arxiv/arxiv_downloader.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e16ae5d505cd66d4"}},{"code_sha256_prefix":"fc8dd243c1217e14","entry":"get_repositories","repo":"hkust-nlp/llm-compression-intelligence","repo_kind":"official","path":"code/data_collection/github/gh_crawler.py","file_url":"https://github.com/hkust-nlp/llm-compression-intelligence/blob/HEAD/code/data_collection/github/gh_crawler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fc8dd243c1217e14"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}