mlsanityData to 14 Oct 2026

CodeS: Towards Code Model Generalization Under Distribution Shift

arXiv 2206.05480 ↗First posted 11 Jun 2022cs.SE cs.AIcited by 6

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

  1. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  2. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  3. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  4. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  5. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
  6. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  8. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  9. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  10. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  11. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  12. 2018code2vec: Learning Distributed Representations of Codecited by 250
11 more
  1. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  2. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  3. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  4. 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 147
  5. 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 124
  6. 2020A Survey on Deep Learning for Software Engineeringcited by 38
  7. 2018Aroma: Code Recommendation via Structural Code Searchcited by 29
  8. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
  9. 2019Boosting Operational DNN Testing Efficiency through Conditioningcited by 22
  10. 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
  11. 2021Estimating Predictive Uncertainty Under Program Data Distribution Shiftcited by 5

Built on by

Cited by year

Citing papers per year: 2023: 4; 2024: 2.

6 papers.