mlsanityData to 7 Oct 2026

Cross-Lingual Transfer Learning for Statistical Type Inference

arXiv 2107.00157 ↗First posted 1 Jul 2021cs.AI cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Hitherto statistical type inference systems rely thoroughly on supervised learning approaches, which require laborious manual effort to collect and label large amounts of data. Most Turing-complete imperative languages share similar control- and data-flow structures, which make it possible to transfer knowledge learned from one language to another. In this paper, we propose a cross-lingual transfer learning framework, PLATO, for statistical type inference, which allows us to leverage prior knowledge learned from the labeled dataset of one language and transfer it to the others, e.g., Python to JavaScript, Java to JavaScript, etc. PLATO is powered by a novel kernelized attention mechanism to constrain the attention scope of the backbone Transformer model such that the model is forced to base its prediction on commonly shared features among languages. In addition, we propose the syntax enhancement that augments the learning on the feature overlap among language domains. Furthermore, PLATO can also be used to improve the performance of the conventional supervised learning-based type inference by introducing cross-lingual augmentation, which enables the model to learn more general features across multiple languages. We evaluated PLATO under two settings: 1) under the cross-domain scenario that the target language data is not labeled or labeled partially, the results show that PLATO outperforms the state-of-the-art domain transfer techniques by a large margin, e.g., it improves the Python to TypeScript baseline by +5.40%@EM, +5.40%@weighted-F1, and 2) under the conventional monolingual supervised learning based scenario, PLATO improves the Python baseline by +4.40%@EM, +3.20%@EM (parametric).

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 23 of its 50 references that are in the map. First posted on arXiv 1 Jul 2021.

Builds on

23 of 50 references.

References · 23

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
  4. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  5. 2019Cross-lingual Language Model Pretrainingcited by 1,088
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  7. 2014Deep Domain Confusion: Maximizing for Domain Invariancecited by 597
  8. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  9. 2020Unsupervised Translation of Programming Languagescited by 262
  10. 2018code2vec: Learning Distributed Representations of Codecited by 249
  11. 2013Exploiting Similarities among Languages for Machine Translationcited by 187
  12. 2020Neural Unsupervised Domain Adaptation in NLP---A Surveycited by 142
11 more
  1. 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 90
  2. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  3. 2019Adversarial Examples for Models of Codecited by 61
  4. 2016Adversarial Deep Averaging Networks for Cross-Lingual Sentiment Classificationcited by 48
  5. 2020LambdaNet: Probabilistic Type Inference using Graph Neural Networkscited by 44
  6. 2019TypeWriter: Neural Type Prediction with Search-based Validationcited by 32
  7. 2020Typilus: Neural Type Hintscited by 29
  8. 2017Robust Multilingual Part-of-Speech Tagging via Adversarial Trainingcited by 21
  9. 2021SPI: Automated Identification of Security Patches via Commitscited by 19
  10. 2018What's in a Domain? Learning Domain-Robust Text Representations using Adversarial Trainingcited by 17
  11. 2019SAR: Learning Cross-Language API Mappings with Little Knowledgecited by 5

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 0; 2023: 0; 2024: 0; 2025: 1.

2 papers.