HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Multilingual training for Software Engineering

Toufique Ahmed Premkumar Devanbu

Multilingual training for Software Engineering

Abstract

Well-trained machine-learning models, which leverage large amounts of open-source software data, have now become an interesting approach to automating many software engineering tasks. Several SE tasks have all been subject to this approach, with performance gradually improving over the past several years with better models and training methods. More, and more diverse, clean, labeled data is better for training; but constructing good-quality datasets is time-consuming and challenging. Ways of augmenting the volume and diversity of clean, labeled data generally have wide applicability. For some languages (e.g., Ruby) labeled data is less abundant; in others (e.g., JavaScript) the available data maybe more focused on some application domains, and thus less diverse. As a way around such data bottlenecks, we present evidence suggesting that human-written code in different languages (which performs the same function), is rather similar, and particularly preserving of identifier naming patterns; we further present evidence suggesting that identifiers are a very important element of training data for software engineering tasks. We leverage this rather fortuitous phenomenon to find evidence that available multilingual training data (across different languages) can be used to amplify performance. We study this for 3 different tasks: code summarization, code retrieval, and function naming. We note that this data-augmenting approach is broadly compatible with different tasks, languages, and machine-learning models.

Benchmarks

BenchmarkMethodologyMetrics
type-prediction-on-manytypes4typescriptPolyGot
Average Accuracy: 61.29
Average F1: 58.86
Average Precision: 58.81
Average Recall: 58.91
type-prediction-on-manytypes4typescriptGraphPolyGot
Average Accuracy: 61.00
Average F1: 58.63
Average Precision: 58.36
Average Recall: 58.91

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Multilingual training for Software Engineering | Papers | HyperAI