The Hidden Bloat in Machine Learning Systems

Huaifeng Zhang, Ahmed Ali-Eldin
3/18/2025
cs.SEcs.MA

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Software bloat refers to code and features that is not used by a software during runtime. For Machine Learning (ML) systems, bloat is a major contributor to their technical debt leading to decreased performance and resource wastage.

Show full abstract

In this work, we present, Negativa-ML, a novel tool to identify and remove bloat in ML frameworks by analyzing their shared libraries. Our approach includes novel techniques to detect and locate unnecessary code within device code - a key area overlooked by existing research, which focuses primarily on host code. We evaluate Negativa-ML using four popular ML frameworks across ten workloads over 300 shared libraries. The results demonstrate that the ML frameworks are highly bloated on both the device and host code side. On average, Negativa-ML reduces the device code size in these frameworks by up to 75% and the host code by up to 72%, resulting in total file size reductions of up to 55%. The device code is a primary source of bloat within ML frameworks. Through debloating, we achieve reductions in peak host memory usage, peak GPU memory usage, and execution time by up to 74.6%, 69.6%, and 44.6%, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2025hidden,
  title  = {The Hidden Bloat in Machine Learning Systems},
  author = {Huaifeng Zhang and Ahmed Ali-Eldin},
  year   = {2025},
  eprint = {2503.14226},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.14226v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.14226.svg)](https://codeofpaper.com/paper/2503.14226)

Discussion