CodeS: Towards Code Model Generalization Under Distribution Shift
Not on the map. Why?
Abstract (arXiv)
Distribution shift has been a longstanding challenge for the reliable deployment of deep learning (DL) models due to unexpected accuracy degradation. Although DL has been becoming a driving force for large-scale source code analysis in the big code era, limited progress has been made on distribution shift analysis and benchmarking for source code tasks. To fill this gap, this paper initiates to propose CodeS, a distribution shift benchmark dataset, for source code learning. Specifically, CodeS supports two programming languages (Java and Python) and five shift types (task, programmer, time-stamp, token, and concrete syntax tree). Extensive experiments based on CodeS reveal that 1) out-of-distribution detectors from other domains (e.g., computer vision) do not generalize to source code, 2) all code classification models suffer from distribution shifts, 3) representation-based shifts have a higher impact on the model than others, and 4) pre-trained bimodal models are relatively more resistant to distribution shifts.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 23 of its 29 references that are in the map. First posted on arXiv 11 Jun 2022.
Builds on
23 of 29 references.
References · 23
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
- 2018code2vec: Learning Distributed Representations of Codecited by 250
11 more
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 147
- 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 124
- 2020A Survey on Deep Learning for Software Engineeringcited by 38
- 2018Aroma: Code Recommendation via Structural Code Searchcited by 29
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2019Boosting Operational DNN Testing Efficiency through Conditioningcited by 22
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2021Estimating Predictive Uncertainty Under Program Data Distribution Shiftcited by 5
Built on by
Citing papers per year: 2023: 4; 2024: 2.
6 papers.
- 2023GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understandingcited by 6
- 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Studycited by 5
- 2024Semi-Self-Supervised Domain Adaptation: Developing Deep Learning Models with Limited Annotated Data for Wheat Head Segmentationcited by 5
- 2023Source Code Data Augmentation for Deep Learning: A Surveycited by 3
- 2024Uncertainty Awareness of Large Language Models Under Code Distribution Shifts: A Benchmark Studycited by 3
- 2023CodeLens: An Interactive Tool for Visualizing Code Representationscited by 0
- 2024Semi-Self-Supervised Domain Adaptation: Developing Deep Learning Models with Limited Annotated Data for Wheat Head Segmentation12 May 2024
- 2024Uncertainty Awareness of Large Language Models Under Code Distribution Shifts: A Benchmark Study12 Jan 2024
- 2023GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understanding16 Nov 2023
- 2023CodeLens: An Interactive Tool for Visualizing Code Representations27 Jul 2023
- 2023Source Code Data Augmentation for Deep Learning: A Survey31 May 2023
- 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Study13 Mar 2023