@inproceedings{hassine-wilson-2024-representation,
title = "Representation and Generation of Machine Learning Test Functions",
author = "Ben Hassine, Souha and
Wilson, Steven",
editor = "Falk, Neele and
Papi, Sara and
Zhang, Mike",
booktitle = "Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: Student Research Workshop",
month = mar,
year = "2024",
address = "St. Julian{'}s, Malta",
publisher = "Association for Computational Linguistics",
url = "https://preview.aclanthology.org/jlcl-multiple-ingestion/2024.eacl-srw.18/",
pages = "238--247",
abstract = "Writing tests for machine learning (ML) code is a crucial step towards ensuring the correctness and reliability of ML software. At the same time, Large Language Models (LLMs) have been adopted at a rapid pace for various code generation tasks, making it a natural choice for many developers who need to write ML tests. However, the implications of using these models, and how the LLM-generated tests differ from human-written ones, are relatively unexplored. In this work, we examine the use of LLMs to extract representations of ML source code and tests in order to understand the semantic relationships between human-written test functions and LLM-generated ones, and annotate a set of LLM-generated tests for several important qualities including usefulness, documentation, and correctness. We find that programmers prefer LLM-generated tests to those selected using retrieval-based methods, and in some cases, to those written by other humans."
}
Markdown (Informal)
[Representation and Generation of Machine Learning Test Functions](https://preview.aclanthology.org/jlcl-multiple-ingestion/2024.eacl-srw.18/) (Ben Hassine & Wilson, EACL 2024)
ACL
- Souha Ben Hassine and Steven Wilson. 2024. Representation and Generation of Machine Learning Test Functions. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: Student Research Workshop, pages 238–247, St. Julian’s, Malta. Association for Computational Linguistics.