paper-with-me

Papers

CodeQueries: A Dataset of Semantic Queries over Code

2022-09-17 · Surya Prakash Sahu, Madhurima Mandal, Shikhar Bharadwaj, Aditya Kanade, Petros Maniatis, Shirish Shevade

Developers often have questions about semantic aspects of code they are working on, e.g., "Is there a class whose parent classes declare a conflicting attribute?". Answering them requires understanding code semantics such as attributes and inheritance relation of classes. An answer to such a question should identify code spans constituting the answer (e.g., the declaration of the subclass) as well as supporting facts (e.g., the definitions of the conflicting attributes). The existing work on question-answering over code has considered yes/no questions or method-level context. We contribute a labeled dataset, called CodeQueries, of semantic queries over Python code. Compared to the existing datasets, in CodeQueries, the queries are about code semantics, the context is file level and the answers are code spans. We curate the dataset based on queries supported by a widely-used static analysis tool, CodeQL, and include both positive and negative examples, and queries requiring single-hop and multi-hop reasoning. To assess the value of our dataset, we evaluate baseline neural approaches. We study a large language model (GPT3.5-Turbo) in zero-shot and few-shot settings on a subset of CodeQueries. We also evaluate a BERT style model (CuBERT) with fine-tuning. We find that these models achieve limited success on CodeQueries. CodeQueries is thus a challenging dataset to test the ability of neural models, to understand code semantics, in the extractive question-answering setting.

📄 PDF Abstract BibTeX arXiv:2209.08372

Code (1)

thepurpleowl/codequeries-benchmark 공식 구현

Tasks

AttributeExtractive Question-AnsweringLanguage ModellingLarge Language ModelQuestion Answering

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Weight Decay 설명 없음
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Residual Connection 설명 없음
Adam 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

On the Importance of Building High-quality Training Datasets for Neural Code Search

2022-02-14 · Zhensu Sun, Yan Liu, Xiaoning Du, Li Li

The performance of neural code search is significantly influenced by the quality of the training data from which the neural models are derived. A large corpus of high-quality query and code pairs is demanded to establish…

Code SearchRetrieval

Surfacing Privacy Settings Using Semantic Matching

2020-11-01 · EMNLP (PrivateNLP) 2020 11 · Rishabh Khandelwal, Asmit Nayak, Yao Yao, Kassem Fawaz

Online services utilize privacy settings to provide users with control over their data. However, these privacy settings are often hard to locate, causing the user to rely on provider-chosen default values. In this work, …

Semantic SimilaritySemantic Textual Similarity

A New Search Paradigm for Natural Language Code Search

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Code search can accelerate the efficiency of software development by finding code snippets for the given query. The dominant code search paradigm is to learn the semantic matching between code snippets and queries by neu…

Code Search

DQFormer: Towards Unified LiDAR Panoptic Segmentation with Decoupled Queries

2024-08-28 · Yu Yang, Jianbiao Mei, Liang Liu, Siliang Du 외

LiDAR panoptic segmentation, which jointly performs instance and semantic segmentation for things and stuff classes, plays a fundamental role in LiDAR perception tasks. While most existing methods explicitly separate the…

DecoderInstance SegmentationPanoptic SegmentationSegmentation+1

An Ensemble Embedding Approach for Improving Semantic Caching Performance in LLM-based Systems

2025-07-08 · Shervin Ghaffari, Zohre Bahranifard, Mohammad Akbari arxiv

Semantic caching enhances the efficiency of large language model (LLM) systems by identifying semantically similar queries, storing responses once, and serving them for subsequent equivalent requests. However, existing s…

Semantic Similarity