English

NeSy is alive and well: A LLM-driven symbolic approach for better code comment data generation and classification

Software Engineering 2024-05-27 v2 Artificial Intelligence

Abstract

We present a neuro-symbolic (NeSy) workflow combining a symbolic-based learning technique with a large language model (LLM) agent to generate synthetic data for code comment classification in the C programming language. We also show how generating controlled synthetic data using this workflow fixes some of the notable weaknesses of LLM-based generation and increases the performance of classical machine learning models on the code comment classification task. Our best model, a Neural Network, achieves a Macro-F1 score of 91.412% with an increase of 1.033% after data augmentation.

Keywords

Cite

@article{arxiv.2402.16910,
  title  = {NeSy is alive and well: A LLM-driven symbolic approach for better code comment data generation and classification},
  author = {Hanna Abi Akl},
  journal= {arXiv preprint arXiv:2402.16910},
  year   = {2024}
}

Comments

19 pages, 5 figures, accepted for the GeNeSy workshop at the Extended Semantic Web Conference (ESWC) 2024

R2 v1 2026-06-28T15:00:52.788Z