Cross-Domain Deep Code Search with Meta Learning
Not on the map. Why?
Abstract (arXiv)
Recently, pre-trained programming language models such as CodeBERT have demonstrated substantial gains in code search. Despite showing great performance, they rely on the availability of large amounts of parallel data to fine-tune the semantic mappings between queries and code. This restricts their practicality in domain-specific languages with relatively scarce and expensive data. In this paper, we propose CroCS, a novel approach for domain-specific code search. CroCS employs a transfer learning framework where an initial program representation model is pre-trained on a large corpus of common programming languages (such as Java and Python) and is further adapted to domain-specific languages such as SQL and Solidity. Unlike cross-language CodeBERT, which is directly fine-tuned in the target language, CroCS adapts a few-shot meta-learning algorithm called MAML to learn the good initialization of model parameters, which can be best reused in a domain-specific language. We evaluate the proposed approach on two domain-specific languages, namely, SQL and Solidity, with model transferred from two widely used languages (Python and Java). Experimental results show that CDCS significantly outperforms conventional pre-trained code models that are directly fine-tuned in domain-specific languages, and it is particularly effective for scarce data.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Jan 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 3; 2025: 1.
6 papers.
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2024Predicting Configuration Performance in Multiple Environments with Sequential Meta-learningcited by 17
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2022Improving Automated Program Repair with Domain Adaptationcited by 10
- 2024Deep Configuration Performance Learning: A Systematic Survey and Taxonomycited by 8
- 2025Zero-Shot Cross-Domain Code Search without Fine-Tuningcited by 2
- 2025Zero-Shot Cross-Domain Code Search without Fine-Tuning10 Apr 2025
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search25 Mar 2024
- 2024Deep Configuration Performance Learning: A Systematic Survey and Taxonomy5 Mar 2024
- 2024Predicting Configuration Performance in Multiple Environments with Sequential Meta-learning5 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2022Improving Automated Program Repair with Domain Adaptation21 Dec 2022