paper-with-me

Papers

Domain Adaptation for Code Model-based Unit Test Case Generation

2023-08-15 · Jiho Shin, Sepehr Hashtroudi, Hadi Hemmati, Song Wang

Recently, deep learning-based test case generation approaches have been proposed to automate the generation of unit test cases. In this study, we leverage Transformer-based code models to generate unit tests with the help of Domain Adaptation (DA) at a project level. Specifically, we use CodeT5, a relatively small language model trained on source code data, and fine-tune it on the test generation task. Then, we apply domain adaptation to each target project data to learn project-specific knowledge (project-level DA). We use the Methods2test dataset to fine-tune CodeT5 for the test generation task and the Defects4j dataset for project-level domain adaptation and evaluation. We compare our approach with (a) CodeT5 fine-tuned on the test generation without DA, (b) the A3Test tool, and (c) GPT-4 on five projects from the Defects4j dataset. The results show that tests generated using DA can increase the line coverage by 18.62%, 19.88%, and 18.02% and mutation score by 16.45%, 16.01%, and 12.99% compared to the above (a), (b), and (c) baselines, respectively. The overall results show consistent improvements in metrics such as parse rate, compile rate, BLEU, and CodeBLEU. In addition, we show that our approach can be seen as a complementary solution alongside existing search-based test generation tools such as EvoSuite, to increase the overall coverage and mutation scores with an average of 34.42% and 6.8%, for line coverage and mutation score, respectively.

📄 PDF Abstract BibTeX arXiv:2308.08033

Code (0)

등록된 구현이 없습니다.

Tasks

Domain AdaptationLanguage ModellingSmall Language Model

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Transformer A Transformer is a model architecture that eschews recurrence and instead relies entirely on an [attention…
GPT-4 GPT-4 is a transformer based model pre-trained to predict the next token in a document.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

UniTTA: Unified Benchmark and Versatile Framework Towards Realistic Test-Time Adaptation

2024-07-29 · Chaoqun Du, Yulin Wang, Jiayi Guo, Yizeng Han 외

Test-Time Adaptation (TTA) aims to adapt pre-trained models to the target domain during testing. In reality, this adaptability can be influenced by multiple factors. Researchers have identified various challenging scenar…

Test-time Adaptation

Beyond Model Adaptation at Test Time: A Survey

2024-11-06 · Zehao Xiao, Cees G. M. Snoek

Machine learning algorithms have achieved remarkable success across various disciplines, use cases and applications, under the prevailing assumption that training and test samples are drawn from the same distribution. Co…

Domain AdaptationDomain GeneralizationSurveyTest-time Adaptation

Zero-shot Transfer of Article-aware Legal Outcome Classification for European Court of Human Rights Cases

2023-02-01 · T. Y. S. S Santosh, Oana Ichim, Matthias Grabmair

In this paper, we cast Legal Judgment Prediction on European Court of Human Rights cases into an article-aware classification task, where the case outcome is classified from a combined input of case facts and convention …

ArticlesDomain AdaptationLegal Reasoning

Semi-Supervised Segmentation of Functional Tissue Units at the Cellular Level

2023-05-03 · Volodymyr Sydorskyi, Igor Krashenyi, Denis Sakva, Oleksandr Zarichkovyi

We present a new method for functional tissue unit segmentation at the cellular level, which utilizes the latest deep learning semantic segmentation approaches together with domain adaptation and semi-supervised learning…

Domain AdaptationSegmentationSemantic Segmentation

Unsupervised Domain Adaptation for Learning Eye Gaze from a Million Synthetic Images: An Adversarial Approach

2018-10-18 · Avisek Lahiri, Abhinav Agarwalla, Prabir Kumar Biswas

With contemporary advancements of graphics engines, recent trend in deep learning community is to train models on automatically annotated simulated examples and apply on real data during test time. This alleviates the bu…

Domain AdaptationGaze EstimationUnsupervised Domain Adaptation