Evaluating the Performance and Efficiency of Sentence-BERT for Code Comment Classification
This work evaluates Sentence-BERT for a multilabel code comment classification task seeking to maximize the classification performance while controlling efficiency constraints during inference. Using a dataset of 13,216 labeled comment sentences, Sentence-BERT models are fine-tuned and combined with different classification heads to recognize comment types. While larger models outperform smaller ones in terms of F1, the latter offer outstanding efficiency, both in runtime and GFLOPS. As result, a balance between a reasonable F1 improvement (+0.0346) and a minimal efficiency degradation (+1.4x in runtime and +2.1x in GFLOPS) is reached.
Authors
- Steffen Herbold (ORCID: https://orcid.org/0000-0001-9765-2803)
- Fernando López Peña (ORCID: https://orcid.org/0000-0003-3848-0321)
Institutions
- University of Passau (DE)
Publication Details
- Published
- 2025-04-27
- DOI
- https://doi.org/10.1109/nlbse66842.2025.00010
- Citations
- 2
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 4.96
Funders
- Deutsche Forschungsgemeinschaft