ConCodeEval: Evaluating Large Language Models for Code Constraints in Domain-Specific Languages

Mehant Kammakomati, Sameer Pimparkhede, Srikanth Tamilselvam, Prince Kumar, Pushpak Bhattacharyya
7/3/2024
cs.SEcs.AIcs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Recent work shows Large Language Models (LLMs) struggle to understand natural language constraints for various text generation tasks in zero- and few-shot settings. While, in the code domain, there is wide usage of constraints in code format to maintain the integrity of code written in Domain-Specific Languages (DSLs) like JSON and YAML which are widely used for system-level programming tasks in enterprises. Given that LLMs are increasingly used for system-level code tasks, evaluating if they can comprehend these code constraints is crucial. However, no work has been done to evaluate their controllability over code constraints. Hence, we introduce ConCodeEval, a first-of-its-kind benchmark having two novel tasks for code constraints across five representations. Our findings suggest that language models struggle with code constraints. Code languages that perform excellently for normal code tasks do not perform well when the same languages represent fine-grained constraints.

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. 2 weaker matches are 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{kammakomati2024concodeeval,
  title  = {ConCodeEval: Evaluating Large Language Models for Code Constraints in Domain-Specific Languages},
  author = {Mehant Kammakomati and Sameer Pimparkhede and Srikanth Tamilselvam and Prince Kumar and Pushpak Bhattacharyya},
  year   = {2024},
  eprint = {2407.03387},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.03387v3}
}

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

Discussion