mlsanityData to 14 Oct 2026

Serenity: Library Based Python Code Analysis for Code Completion and Automated Machine Learning

arXiv 2301.05108 ↗First posted 5 Jan 2023cs.PL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Dynamically typed languages such as Python have become very popular. Among other strengths, Python's dynamic nature and its straightforward linking to native code have made it the de-facto language for many research areas such as Artificial Intelligence. This flexibility, however, makes static analysis very hard. While creating a sound, or a soundy, analysis for Python remains an open problem, we present in this work Serenity, a framework for static analysis of Python that turns out to be sufficient for some tasks. The Serenity framework exploits two basic mechanisms: (a) reliance on dynamic dispatch at the core of language translation, and (b) extreme abstraction of libraries, to generate an abstraction of the code. We demonstrate the efficiency and usefulness of Serenity's analysis in two applications: code completion and automated machine learning. In these two applications, we demonstrate that such analysis has a strong signal, and can be leveraged to establish state-of-the-art performance, comparable to neural models and dynamic analysis respectively.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 41 references that are in the map. First posted on arXiv 5 Jan 2023.

Builds on

21 of 41 references.

References · 21

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  10. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  11. 2017Learning to Represent Programs with Graphscited by 220
  12. 2019FLAML: A Fast and Lightweight AutoML Librarycited by 106
9 more
  1. 2019Pythia: AI-assisted Code Completion Systemcited by 55
  2. 2018Structured Neural Summarizationcited by 54
  3. 2017Code Completion with Neural Attention and Pointer Networkscited by 49
  4. 2019TypeWriter: Neural Type Prediction with Search-based Validationcited by 32
  5. 2017Probabilistic Matrix Factorization for Automated Machine Learningcited by 31
  6. 2014Structured Generative Models of Natural Source Codecited by 19
  7. 2019AutoML using Metadata Language Embeddingscited by 11
  8. 2021A Scalable AutoML Approach Based on Graph Neural Networkscited by 7
  9. 2018Ariadne: Analysis for Machine Learning Programcited by 4

Built on by

Not cited yet.