HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Assemble Foundation Models for Automatic Code Summarization

Gu Jian ; Salza Pasquale ; Gall Harald C.

Assemble Foundation Models for Automatic Code Summarization

Abstract

Automatic code summarization is beneficial to daily software developmentsince it could help reduce the requirement of manual writing. Currently,artificial intelligence is undergoing a paradigm shift. The foundation modelspretrained on massive data and finetuned to downstream tasks surpass speciallycustomized models. This trend inspired us to consider reusing foundation modelsinstead of learning from scratch. Thereby, we propose a flexible and robustapproach for automatic code summarization, based on neural models. We assembleavailable foundation models, such as CodeBERT and GPT-2, into a single neuralmodel named AdaMo. Moreover, we utilize Gaussian noise as the simulation ofcontextual information to optimize the latent representation. Furthermore, weintroduce two adaptive schemes from the perspective of knowledge transfer,namely continuous pretraining and intermediate finetuning, and designintermediate stage tasks for general sequence-to-sequence learning. Finally, weevaluate AdaMo against a benchmark dataset for code summarization, by comparingit with state-of-the-art models.

Code Repositories

jianguda/afm4acs
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
source-code-summarization-on-codesearchnetAdaMo-basic
BLEU-4: 16.46
METEOR: 12.51%
source-code-summarization-on-deepcom-javaAdaMo-noise
BLEU-4: 45.35
METEOR: 28.25%
source-code-summarization-on-deepcom-javaAdaMo-basic
BLEU-4: 45.3
METEOR: 28.19%
source-code-summarization-on-hybrid-deepcomAdaMo-basic
BLEU-4: 37.64
METEOR: 25.59%
source-code-summarization-on-parallelcorpusAdaMo-basic
BLEU-4: 33.85
METEOR: 21.68%
source-code-summarization-on-parallelcorpusAdaMo-noise
BLEU-4: 34.05
METEOR: 21.92%

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
Assemble Foundation Models for Automatic Code Summarization | Papers | HyperAI