# Carbon-Taxed Transformers: A Green Compression Pipeline for Overgrown Language Models

Ajmain Inqiad Alam, **Palash Ranjan Roy**, Chanchal K. Roy, Banani Roy, Kevin A. Schneider. *Proceedings of the ACM on Software Engineering, vol. 3 (FSE), pp. 1035–1058, 2026*. Venue ranking: CORE A*.

Award: ACM SIGSOFT Distinguished Paper Award.

Role of Palash Ranjan Roy: Sustainability framing; carbon and energy analysis; writing.

Areas: AI for Software Engineering (AI4SE), Software Engineering for AI (SE4AI), Green & Sustainable SE, Code Clones.

ML topics: Model Compression, Pruning, Quantization, Knowledge Distillation, Efficient & Green LLMs, Code Language Models.

Page: https://palashroy.me/publications/carbon-taxed-transformers/

- PDF: https://palashroy.me/papers/CTT.pdf
- arXiv: https://arxiv.org/abs/2604.25903
- DOI: https://doi.org/10.1145/3797075
- Replication package: https://github.com/srlabUsask/CTT

## Abstract

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 49× memory reduction, (2) time reduction up to 8-10× for clone detection, up to 3× for summarization, and 4–7× 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.

## Problem addressed

Large language models used for software engineering tasks are large, slow, memory-intensive and carbon-heavy, so efficiency and environmental cost need to be treated as first-class design constraints alongside accuracy.

## Relevant to research on

- compression of large language models for code
- green and sustainable AI for software engineering
- carbon-emission reduction of model inference
- neural architecture search, pruning, quantization and knowledge distillation
- code clone detection
- code summarization
- code generation
- efficient inference for encoder-only, encoder-decoder and decoder-only models

## BibTeX

```bibtex
@article{alam2026ctt,
  title = {Carbon-Taxed Transformers: A Green Compression Pipeline for Overgrown Language Models},
  volume = {3},
  ISSN = {2994-970X},
  url = {https://doi.org/10.1145/3797075},
  doi = {10.1145/3797075},
  number = {FSE},
  journal = {Proceedings of the ACM on Software Engineering},
  publisher = {Association for Computing Machinery (ACM)},
  author = {Alam, Ajmain Inqiad and Roy, Palash and Roy, Chanchal K. and Roy, Banani and Schneider, Kevin A.},
  year = {2026},
  month = {June},
  pages = {1035--1058}
}
```
