Carbon-Taxed Transformers: A Green Compression Pipeline for Overgrown Language Models
Not on the map. Why?
Abstract (arXiv)
The accelerating adoption of Large Language Models (LLMs) in software engineering (SE) has brought with it a silent crisis: unsustainable computational cost. While these models demonstrate remarkable capabilities in different SE tasks, they are unmanageably large, slow to deploy, memory-intensive, and carbon-heavy. This reality threatens not only the scalability and accessibility of AI-powered SE, but also its long-term environmental sustainability. The research challenge is clear: we must go beyond accuracy and address efficiency and environmental cost as first-class design constraints. To meet this challenge, we introduce Carbon-Taxed Transformers (CTT), a systematic multi-architectural compression principled pipeline ordering inspired by economic carbon taxation principles. Drawing from the economic concept of carbon pricing, CTT operationalizes a computational carbon tax that penalizes architectural inefficiencies and rewards deployment-ready compression. We evaluate CTT across three core SE tasks: code clone detection, code summarization, and code generation, with models spanning encoder-only, encoder-decoder, and decoder-only architecture. Our results show that CTT delivers on inference: (1) up to 49x memory reduction, (2) time reduction up to 8-10x for clone detection, up to 3x for summarization, and 4-7x for generation, (3) up to 81% reduction in CO2 emissions and (4) CTT retains around 98% accuracy on clone detection, around 89% on summarization, and up to 91% (textual metrics) and 68% (pass@1) for generation. Two ablation studies show that pipeline ordering and individual component contributions are both essential, providing empirical justification for CTT's design and effectiveness. This work establishes a viable path toward responsible AI in SE through aggressive yet performance-preserving compression.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 54 of its 72 references that are in the map. First posted on arXiv 28 Apr 2026.
Builds on
54 of 72 references.
References · 54
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,262
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
38 more
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 787
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
- 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 569
- 2021Carbon Emissions and Large Neural Network Trainingcited by 567
- 2021Compacter: Efficient Low-Rank Hypercomplex Adapter Layerscited by 460
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 403
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2022A Systematic Evaluation of Large Language Models of Codecited by 363
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 274
- 2020MCUNet: Tiny Deep Learning on IoT Devicescited by 273
- 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 191
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 185
- 2022The Carbon Footprint of Machine Learning Training Will Plateau, Then Shrinkcited by 184
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 164
- 2019Distilling Task-Specific Knowledge from BERT into Simple Neural Networkscited by 153
- 2021Learned Token Pruning for Transformerscited by 139
- 2021NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture Searchcited by 56
- 2020AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Searchcited by 51
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Surveycited by 46
- 2023Distilled GPT for Source Code Summarizationcited by 31
- 2022Compressing Pre-trained Models of Code into 3 MBcited by 21
50 most cited of 54 All 54 (JSON)
Built on by
Not cited yet.