A Soundness and Precision Benchmark for Java Debloating Tools

J. Klauke, T. Ohlmer, S. Schott, S.E. Ponta, W. Fischer, E. Bodden, in: Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses, ACM, 2026.

Download
No fulltext has been uploaded.
Conference Paper | Published | English
Author
Klauke, JonasLibreCat ; Ohlmer, Tom; Schott, StefanLibreCat ; Ponta, Serena Elisa; Fischer, Wolfram; Bodden, EricLibreCat
Abstract
Modern software development reuses code by importing libraries as dependencies. Software projects typically include an average of 36 dependencies, with 80% being transitive, meaning they are dependencies of dependencies. Recent research indicates that only 24.9% of these dependencies are required at runtime, and even within those, many program constructs remain unused, adding unnecessary code to the project. This has led to the development of debloating tools that remove unnecessary dependencies and program constructs while balancing precision by eliminating unused constructs and soundness by preserving all required constructs. To systematically evaluate this trade-off, we developed Deblometer, a micro-benchmark consisting of 59 test cases designed to assess support for various Java language features in debloating tools. Each test case includes a manually curated ground truth specifying necessary and bloated classes, methods, and fields, enabling precise measurement of soundness and precision. Using Deblometer, we evaluated three popular Java debloating tools: Deptrim, JShrink, and ProGuard. Our evaluation reveals that all tools remove required program constructs, which results in changed semantics or execution crashes. In particular, the dynamic class loading feature introduces unsoundness in all evaluated tools. Our comparison shows that Deptrim retains more bloated constructs, while ProGuard removes more required constructs. JShrink’s soundness is significantly affected by limited support for annotations, which leads to corrupted debloated artifacts. These soundness issues highlight the need to improve debloating tools to ensure stable and reliable debloated software.
Publishing Year
Proceedings Title
Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses
Conference
SCORED '25: Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses
Conference Location
Taipei
Conference Date
2025-10-13 – 2025-10-17
LibreCat-ID

Cite this

Klauke J, Ohlmer T, Schott S, Ponta SE, Fischer W, Bodden E. A Soundness and Precision Benchmark for Java Debloating Tools. In: Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses. ACM; 2026. doi:10.1145/3733827.3765530
Klauke, J., Ohlmer, T., Schott, S., Ponta, S. E., Fischer, W., & Bodden, E. (2026). A Soundness and Precision Benchmark for Java Debloating Tools. Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses. SCORED ’25: Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses, Taipei. https://doi.org/10.1145/3733827.3765530
@inproceedings{Klauke_Ohlmer_Schott_Ponta_Fischer_Bodden_2026, title={A Soundness and Precision Benchmark for Java Debloating Tools}, DOI={10.1145/3733827.3765530}, booktitle={Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses}, publisher={ACM}, author={Klauke, Jonas and Ohlmer, Tom and Schott, Stefan and Ponta, Serena Elisa and Fischer, Wolfram and Bodden, Eric}, year={2026} }
Klauke, Jonas, Tom Ohlmer, Stefan Schott, Serena Elisa Ponta, Wolfram Fischer, and Eric Bodden. “A Soundness and Precision Benchmark for Java Debloating Tools.” In Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses. ACM, 2026. https://doi.org/10.1145/3733827.3765530.
J. Klauke, T. Ohlmer, S. Schott, S. E. Ponta, W. Fischer, and E. Bodden, “A Soundness and Precision Benchmark for Java Debloating Tools,” presented at the SCORED ’25: Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses, Taipei, 2026, doi: 10.1145/3733827.3765530.
Klauke, Jonas, et al. “A Soundness and Precision Benchmark for Java Debloating Tools.” Proceedings of the 2025 Workshop on Software Supply Chain Offensive Research and Ecosystem Defenses, ACM, 2026, doi:10.1145/3733827.3765530.

Export

Marked Publications

Open Data LibreCat

Search this title in

Google Scholar