Contrastive Distillation on Intermediate Representations for Language Model Compression
Not on the map. Why?
Abstract (arXiv)
Existing language model compression methods mostly use a simple L2 loss to distill knowledge in the intermediate representations of a large BERT model to a smaller one. Although widely used, this objective by design assumes that all the dimensions of hidden representations are independent, failing to capture important structural knowledge in the intermediate layers of the teacher network. To achieve better distillation efficacy, we propose Contrastive Distillation on Intermediate Representations (CoDIR), a principled knowledge distillation framework where the student is trained to distill knowledge through intermediate layers of the teacher via a contrastive objective. By learning to distinguish positive sample from a large set of negative samples, CoDIR facilitates the student's exploitation of rich information in teacher's hidden layers. CoDIR can be readily applied to compress large-scale language models in both pre-training and finetuning stages, and achieves superb performance on the GLUE benchmark, outperforming state-of-the-art compression methods.
Key facts. Cited by 57 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 13; 2022: 10; 2023: 13; 2024: 7; 2025: 9; 2026: 5.
57 papers.
Sort:
By area:
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2021Knowledge Distillation in Iterative Generative Models for Improved Sampling Speedcited by 344
- 2023Stop Uploading Test Data in Plain Text: Practical Strategies for Mitigating Data Contamination by Evaluation Benchmarkscited by 139
- 2023LoSparse: Structured Compression of Large Language Models based on Low-Rank and Sparse Approximationcited by 103
- 2022Less is More: Task-aware Layer-wise Distillation for Language Model Compressioncited by 91
- 2021Compressing Visual-linguistic Model via Knowledge Distillationcited by 85
- 2022Compression of Generative Pre-trained Language Models via Quantizationcited by 79
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2024MoE-I2: Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decompositioncited by 57
- 2024MoDeGPT: Modular Decomposition for Large Language Model Compressioncited by 45
- 2021Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classificationcited by 43
- 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
38 more
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
- 2021Knowledge Inheritance for Pre-trained Language Modelscited by 38
- 2022MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptationcited by 37
- 2021Enabling Lightweight Fine-tuning for Pre-trained Language Model Compression based on Matrix Product Operatorscited by 28
- 2023AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compressioncited by 26
- 2023Lifting the Curse of Capacity Gap in Distilling Language Modelscited by 25
- 2023PromptMix: A Class Boundary Augmentation Method for Large Language Model Distillationcited by 25
- 2022Multimodal Adaptive Distillation for Leveraging Unimodal Encoders for Vision-Language Taskscited by 22
- 2021KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillationcited by 19
- 2021Rethinking InfoNCE: How Many Negative Samples Do You Need?cited by 18
- 2021RAIL-KD: RAndom Intermediate Layer Mapping for Knowledge Distillationcited by 18
- 2023One-Shot Sensitivity-Aware Mixed Sparsity Pruning for Large Language Modelscited by 16
- 2024Search for Efficient Large Language Modelscited by 13
- 2025DREAM: Drafting with Refined Target Features and Entropy-Adaptive Cross-Attention Fusion for Multimodal Speculative Decodingcited by 13
- 2021Finding the Right Moment: Human-Assisted Trailer Creation via Task Compositioncited by 12
- 2021Greedy-layer Pruning: Speeding up Transformer Models for Natural Language Processingcited by 11
- 2023Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLMcited by 11
- 2023How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectivescited by 9
- 2024ASER: Activation Smoothing and Error Reconstruction for Large Language Model Quantizationcited by 8
- 2022Knowledge Distillation of Russian Language Models with Reduction of Vocabularycited by 7
- 2022Distilling Multi-Scale Knowledge for Event Temporal Relation Extractioncited by 6
- 2024MoreauPruner: Robust Pruning of Large Language Models against Weight Perturbationscited by 5
- 2022CILDA: Contrastive Data Augmentation using Intermediate Layer Knowledge Distillationcited by 4
- 2025Dynamic Content Moderation in Livestreams: Combining Supervised Classification with MLLM-Boosted Similarity Matchingcited by 4
- 2023Retrieval-based Knowledge Transfer: An Effective Approach for Extreme Large Language Model Compressioncited by 3
- 2023Text Representation Distillation via Information Bottleneck Principlecited by 3
- 2026NITP: Next Implicit Token Prediction for LLM Pre-trainingcited by 3
- 2021DistilCSE: Effective Knowledge Distillation For Contrastive Sentence Embeddingscited by 2
- 2022Do we need Label Regularization to Fine-tune Pre-trained Language Models?cited by 2
- 20223D-Augmented Contrastive Knowledge Distillation for Image-based Object Pose Estimationcited by 2
- 2022Bootstrapping meaning through listening: Unsupervised learning of spoken sentence embeddingscited by 2
- 2025EvoP: Robust LLM Inference via Evolutionary Pruningcited by 2
- 2025PIP: Perturbation-based Iterative Pruning for Large Language Modelscited by 1
- 2025Structure-Aware Automatic Channel Pruning by Searching with Graph Embeddingcited by 1
- 2025Entropy Meets Importance: A Unified Head Importance-Entropy Score for Stable and Efficient Transformer Pruningcited by 1
- 2026DREAM-S: Speculative Decoding with Searchable Drafting and Target-Aware Refinement for Multimodal Generationcited by 1
- 2023Are Intermediate Layers and Labels Really Necessary? A General Language Model Distillation Methodcited by 0
- 2023Continual Contrastive Spoken Language Understandingcited by 0
50 most cited of 57 All 57 (JSON)
- 2026DREAM-S: Speculative Decoding with Searchable Drafting and Target-Aware Refinement for Multimodal Generation30 May 2026
- 2026NITP: Next Implicit Token Prediction for LLM Pre-training24 May 2026
- 2026DAPE: Dynamic Non-uniform Alignment and Progressive Detail Enhancement Techniques for Improving the Performance of Efficient Visual Language Models9 May 2026
- 2026A Benchmark Study of Neural Network Compression Methods for Hyperspectral Image Classification5 Mar 2026
- 2026Sparsity Induction for Accurate Post-Training Pruning of Large Language Models25 Feb 2026
- 2025Dynamic Content Moderation in Livestreams: Combining Supervised Classification with MLLM-Boosted Similarity Matching3 Dec 2025
- 2025Experts are all you need: A Composable Framework for Large Language Model Inference28 Nov 2025
- 2025VLM in a flash: I/O-Efficient Sparsification of Vision-Language Model via Neuron Chunking24 Nov 2025
- 2025Entropy Meets Importance: A Unified Head Importance-Entropy Score for Stable and Efficient Transformer Pruning10 Oct 2025
- 2025R2-CoD: Understanding Text-Graph Complementarity in Relational Reasoning via Knowledge Co-Distillation2 Aug 2025
- 2025Structure-Aware Automatic Channel Pruning by Searching with Graph Embedding13 Jun 2025
- 2025DREAM: Drafting with Refined Target Features and Entropy-Adaptive Cross-Attention Fusion for Multimodal Speculative Decoding25 May 2025
38 more
- 2025EvoP: Robust LLM Inference via Evolutionary Pruning19 Feb 2025
- 2025PIP: Perturbation-based Iterative Pruning for Large Language Models25 Jan 2025
- 2024ASER: Activation Smoothing and Error Reconstruction for Large Language Model Quantization12 Nov 2024
- 2024MoE-I2: Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition1 Nov 2024
- 2024Search for Efficient Large Language Models25 Sep 2024
- 2024MoDeGPT: Modular Decomposition for Large Language Model Compression19 Aug 2024
- 2024MoreauPruner: Robust Pruning of Large Language Models against Weight Perturbations11 Jun 2024
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Models12 Apr 2024
- 2024Contrastive Learning in Distilled Models23 Jan 2024
- 2023Text Representation Distillation via Information Bottleneck Principle9 Nov 2023
- 2023Retrieval-based Knowledge Transfer: An Effective Approach for Extreme Large Language Model Compression24 Oct 2023
- 2023PromptMix: A Class Boundary Augmentation Method for Large Language Model Distillation22 Oct 2023
- 2023One-Shot Sensitivity-Aware Mixed Sparsity Pruning for Large Language Models14 Oct 2023
- 2023Continual Contrastive Spoken Language Understanding4 Oct 2023
- 2023LoSparse: Structured Compression of Large Language Models based on Low-Rank and Sparse Approximation20 Jun 2023
- 2023Are Intermediate Layers and Labels Really Necessary? A General Language Model Distillation Method11 Jun 2023
- 2023How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectives24 May 2023
- 2023Lifting the Curse of Capacity Gap in Distilling Language Models20 May 2023
- 2023LLM-Pruner: On the Structural Pruning of Large Language Models19 May 2023
- 2023Stop Uploading Test Data in Plain Text: Practical Strategies for Mitigating Data Contamination by Evaluation Benchmarks17 May 2023
- 2023AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compression17 May 2023
- 2023Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLM24 Apr 2023
- 2022Bootstrapping meaning through listening: Unsupervised learning of spoken sentence embeddings23 Oct 2022
- 2022Less is More: Task-aware Layer-wise Distillation for Language Model Compression4 Oct 2022
- 2022Distilling Multi-Scale Knowledge for Event Temporal Relation Extraction1 Sep 2022
- 20223D-Augmented Contrastive Knowledge Distillation for Image-based Object Pose Estimation2 Jun 2022
- 2022Do we need Label Regularization to Fine-tune Pre-trained Language Models?25 May 2022
- 2022Knowledge Distillation of Russian Language Models with Reduction of Vocabulary4 May 2022
- 2022Multimodal Adaptive Distillation for Leveraging Unimodal Encoders for Vision-Language Tasks22 Apr 2022
- 2022MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation15 Apr 2022
- 2022CILDA: Contrastive Data Augmentation using Intermediate Layer Knowledge Distillation15 Apr 2022
- 2022Compression of Generative Pre-trained Language Models via Quantization21 Mar 2022
- 2021DistilCSE: Effective Knowledge Distillation For Contrastive Sentence Embeddings10 Dec 2021
- 2021Finding the Right Moment: Human-Assisted Trailer Creation via Task Composition16 Nov 2021
- 2021RAIL-KD: RAndom Intermediate Layer Mapping for Knowledge Distillation21 Sep 2021
- 2021KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillation13 Sep 2021
- 2021Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classification12 Sep 2021
- 2021Enabling Lightweight Fine-tuning for Pre-trained Language Model Compression based on Matrix Product Operators4 Jun 2021
50 newest of 57 All 57 (JSON)
- 2025DREAM: Drafting with Refined Target Features and Entropy-Adaptive Cross-Attention Fusion for Multimodal Speculative Decodingcited by 13
- 2026DREAM-S: Speculative Decoding with Searchable Drafting and Target-Aware Refinement for Multimodal Generationcited by 1
- 2025VLM in a flash: I/O-Efficient Sparsification of Vision-Language Model via Neuron Chunkingcited by 0
- 2026DAPE: Dynamic Non-uniform Alignment and Progressive Detail Enhancement Techniques for Improving the Performance of Efficient Visual Language Modelscited by 0
- 2026DREAM-S: Speculative Decoding with Searchable Drafting and Target-Aware Refinement for Multimodal Generation30 May 2026
- 2026DAPE: Dynamic Non-uniform Alignment and Progressive Detail Enhancement Techniques for Improving the Performance of Efficient Visual Language Models9 May 2026
- 2025VLM in a flash: I/O-Efficient Sparsification of Vision-Language Model via Neuron Chunking24 Nov 2025
- 2025DREAM: Drafting with Refined Target Features and Entropy-Adaptive Cross-Attention Fusion for Multimodal Speculative Decoding25 May 2025
- 2024MoE-I2: Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decompositioncited by 57
- 2022MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptationcited by 37
- 2023Lifting the Curse of Capacity Gap in Distilling Language Modelscited by 25
- 2026NITP: Next Implicit Token Prediction for LLM Pre-trainingcited by 3
- 2026NITP: Next Implicit Token Prediction for LLM Pre-training24 May 2026
- 2024MoE-I2: Compressing Mixture of Experts Models through Inter-Expert Pruning and Intra-Expert Low-Rank Decomposition1 Nov 2024
- 2023Lifting the Curse of Capacity Gap in Distilling Language Models20 May 2023
- 2022MoEBERT: from BERT to Mixture-of-Experts via Importance-Guided Adaptation15 Apr 2022
- 2024Search for Efficient Large Language Modelscited by 13
- 2024Search for Efficient Large Language Models25 Sep 2024
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2023Stop Uploading Test Data in Plain Text: Practical Strategies for Mitigating Data Contamination by Evaluation Benchmarkscited by 139
- 2023LoSparse: Structured Compression of Large Language Models based on Low-Rank and Sparse Approximationcited by 103
- 2022Less is More: Task-aware Layer-wise Distillation for Language Model Compressioncited by 91
- 2021Compressing Visual-linguistic Model via Knowledge Distillationcited by 85
- 2022Compression of Generative Pre-trained Language Models via Quantizationcited by 79
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2024MoDeGPT: Modular Decomposition for Large Language Model Compressioncited by 45
- 2021Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classificationcited by 43
- 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
- 2021Knowledge Inheritance for Pre-trained Language Modelscited by 38
12 most cited of 46 All 46 (JSON)
- 2026A Benchmark Study of Neural Network Compression Methods for Hyperspectral Image Classification5 Mar 2026
- 2026Sparsity Induction for Accurate Post-Training Pruning of Large Language Models25 Feb 2026
- 2025Dynamic Content Moderation in Livestreams: Combining Supervised Classification with MLLM-Boosted Similarity Matching3 Dec 2025
- 2025Experts are all you need: A Composable Framework for Large Language Model Inference28 Nov 2025
- 2025Entropy Meets Importance: A Unified Head Importance-Entropy Score for Stable and Efficient Transformer Pruning10 Oct 2025
- 2025R2-CoD: Understanding Text-Graph Complementarity in Relational Reasoning via Knowledge Co-Distillation2 Aug 2025
- 2025Structure-Aware Automatic Channel Pruning by Searching with Graph Embedding13 Jun 2025
- 2025EvoP: Robust LLM Inference via Evolutionary Pruning19 Feb 2025
- 2025PIP: Perturbation-based Iterative Pruning for Large Language Models25 Jan 2025
- 2024ASER: Activation Smoothing and Error Reconstruction for Large Language Model Quantization12 Nov 2024
- 2024MoDeGPT: Modular Decomposition for Large Language Model Compression19 Aug 2024
- 2024MoreauPruner: Robust Pruning of Large Language Models against Weight Perturbations11 Jun 2024
12 newest of 46 All 46 (JSON)