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

Hanna Abi Akl
2/25/2024
cs.SEcs.AI

No official code found. Best implementation: HannaAbiAkl/NeSy-Code-Generation-Workflow (5 stars, MIT, last commit 2024-02-28).

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.

View on arXivView PDF

Code Implementations(1)

MIT

A neuro-symbolic workflow for generating controlled synthetic data for a code comment dataset

50Python, Jupyter NotebookFeb 24, 20242 years agoMIT

Similar Papers

Cite this paper

@article{akl2024nesy,
  title  = {NeSy is alive and well: A LLM-driven symbolic approach for better code comment data generation and classification},
  author = {Hanna Abi Akl},
  year   = {2024},
  eprint = {2402.16910},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.16910v2}
}

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/2402.16910.svg)](https://codeofpaper.com/paper/2402.16910)

Discussion