Carbon-Taxed Transformers: Efficient, Accurate, and Sustainable LLMs
Palash Ranjan Roy (published as Palash Roy / Palash R. Roy) · ORCID 0000-0001-9470-4233
Abstract
The growing adoption of Large Language Models in software engineering has introduced unsustainable computational and environmental costs. We propose Carbon-Taxed Transformers (CTT), a compression pipeline inspired by economic carbon taxation, integrating Neural Architecture Search, structured pruning, quantization, and knowledge distillation in a principled sequence. CTT generalizes across encoder-only, encoder-decoder, and decoder-only architectures, and is evaluated on code clone detection, summarization, and generation. Results show up to 49× memory reduction, 10× speedup, and an 81% reduction in CO2 emissions, while retaining 98% accuracy in clone detection, 89% in summarization, and up to 91% in generation. Ablation studies confirm both the pipeline ordering and each component are essential.
Problem addressed
The growing use of large language models in software engineering carries unsustainable computational and environmental costs.
Relevant to
- 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
Cite
@inproceedings{10.1145/3803437.3807387,
author = {Alam, Ajmain Inqiad and Roy, Palash and Roy, Chanchal and Roy, Banani and Schneider, Kevin},
title = {Carbon-Taxed Transformers: Efficient, Accurate, and Sustainable LLMs},
year = {2026},
isbn = {9798400726361},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3803437.3807387},
doi = {10.1145/3803437.3807387},
abstract = {The growing adoption of Large Language Models in software engineering has introduced unsustainable computational and environmental costs. We propose Carbon-Taxed Transformers (CTT), a compression pipeline inspired by economic carbon taxation, integrating Neural Architecture Search, structured pruning, quantization, and knowledge distillation in a principled sequence. CTT generalizes across encoder-only, encoder-decoder, and decoder-only architectures, and is evaluated on code clone detection, summarization, and generation. Results show up to 49\texttimes{} memory reduction, 10\texttimes{} speedup, and an 81\% reduction in CO2 emissions, while retaining 98\% accuracy in clone detection, 89\% in summarization, and up to 91\% in generation. Ablation studies confirm both the pipeline ordering and each component are essential.},
booktitle = {Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering},
pages = {1408--1409},
numpages = {2},
keywords = {model compression, green computing, energy-efficient inference},
location = {Concordia University, Montreal, QC, Canada},
series = {FSE Companion '26}
}