ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search

Zehan Li, Jianfei Zhang, Chuantao Yin, Yuanxin Ouyang, Wenge Rong
3/25/2024
22 citations
cs.CLcs.IRcs.SE

Official code: jordane95/procqa (7 stars, Python, MIT, last commit 2025-02-06).

Abstract

Retrieval-based code question answering seeks to match user queries in natural language to relevant code snippets. Previous approaches typically rely on pretraining models using crafted bi-modal and uni-modal datasets to align text and code representations.

Show full abstract

In this paper, we introduce ProCQA, a large-scale programming question answering dataset extracted from the StackOverflow community, offering naturally structured mixed-modal QA pairs. To validate its effectiveness, we propose a modality-agnostic contrastive pre-training approach to improve the alignment of text and code representations of current code language models. Compared to previous models that primarily employ bimodal and unimodal pairs extracted from CodeSearchNet for pre-training, our model exhibits significant performance improvements across a wide range of code retrieval benchmarks.

View on arXivView PDF

Code Implementations(1)

jordane95/procqaOfficial100%
MIT

Community-based Programming Question Answering

72Python, ShellMar 3, 20231 years agoMIT

Similar Papers

Cite this paper

@article{li2024procqa,
  title  = {ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search},
  author = {Zehan Li and Jianfei Zhang and Chuantao Yin and Yuanxin Ouyang and Wenge Rong},
  year   = {2024},
  eprint = {2403.16702},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.16702v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.16702.svg)](https://codeofpaper.com/paper/2403.16702)

Discussion