atlas

Research map / Large language models / Language, safety and interpretability

CONSIDER: Commonalities and Specialties Driven Multilingual Code Retrieval Framework

AAAI 2024 · Large language models › Language, safety and interpretability · approach: Multilingual LLM data and culture · 5 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CONSIDER, a multilingual code retrieval framework that models pairwise and global commonalities across programming languages and uses a confusion-matrix-guided negative sampling scheme to capture language specialties, evaluated on CodeSearchNet.

Problem

Multilingual code retrieval struggles with data scarcity for some languages in specific domains and with identifying the intended programming language of a query when languages are interchangeable.

Approach

Combines pairwise and global commonality extraction modules (attention over language tokens plus mutual information maximization with JSDE) with a contrastive learning negative sampler that draws batches according to a confusion matrix computed on the validation set, plus language balancing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply CONSIDER instead of DistillUniXCoder · RubyMRR: +3.4Helped
Apply CONSIDER instead of DistillUniXCoder · JavaScriptMRR: +2.0Helped
Apply CONSIDER instead of DistillUniXCoder · GoMRR: +2.0Helped
Apply CONSIDER instead of DistillUniXCoder · PythonMRR: +4.4Helped
Apply CONSIDER instead of DistillUniXCoder · JavaMRR: +4.3Helped
Apply CONSIDER instead of DistillUniXCoder · PHPMRR: +4.7Helped
Apply CONSIDER instead of DistillUniXCoder · Overall multilingualMRR: +4.3Helped
Add the commonalities enhancement module (ablation)CONSIDER with CodeBERT · Monolingual and multilingual scenariosMRRHelped
Add the confusion-matrix-guided sampling algorithm (ablation)CONSIDER with CodeBERT · Monolingual and multilingual scenariosMRRHelped

Surprising findings

Limitations

Experimental setup

Datasets: CodeSearchNet

Benchmarks: CodeSearchNet

Metrics: MRR

Baselines: Multilingual training Distill RoBERTa(code) CodeBERT GraphCodeBERT UniXCoder

Builds on: UniXCoder contrastive learning Jensen-Shannon mutual information estimator (Ou et al. 2021) knowledge distillation multilingual code retrieval (Li, Xu, and Chen 2022)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy