paper-with-me

홈 › Papers

COSEA: Convolutional Code Search with Layer-wise Attention

2020-10-19 · Hao Wang, Jia Zhang, Yingce Xia, Jiang Bian, Chao Zhang, Tie-Yan Liu

Semantic code search, which aims to retrieve code snippets relevant to a given natural language query, has attracted many research efforts with the purpose of accelerating software development. The huge amount of online publicly available code repositories has prompted the employment of deep learning techniques to build state-of-the-art code search models. Particularly, they leverage deep neural networks to embed codes and queries into a unified semantic vector space and then use the similarity between code's and query's vectors to approximate the semantic correlation between code and the query. However, most existing studies overlook the code's intrinsic structural logic, which indeed contains a wealth of semantic information, and fails to capture intrinsic features of codes. In this paper, we propose a new deep learning architecture, COSEA, which leverages convolutional neural networks with layer-wise attention to capture the valuable code's intrinsic structural logic. To further increase the learning efficiency of COSEA, we propose a variant of contrastive loss for training the code search model, where the ground-truth code should be distinguished from the most similar negative sample. We have implemented a prototype of COSEA. Extensive experiments over existing public datasets of Python and SQL have demonstrated that COSEA can achieve significant improvements over state-of-the-art methods on code search tasks.

📄 PDF Abstract BibTeX arXiv:2010.09520

Code (0)

등록된 구현이 없습니다.

Tasks

Code Search

Similar Papers 제목 키워드 기반

CoSearchAgent: A Lightweight Collaborative Search Agent with Large Language Models

2024-02-09 · Peiyuan Gong, Jiamian Li, Jiaxin Mao

Collaborative search supports multiple users working together to accomplish a specific search task. Research has found that designing lightweight collaborative search plugins within instant messaging platforms aligns bet…

EcoSearch: A Constant-Delay Best-First Search Algorithm for Program Synthesis

2024-12-23 · Théo Matricon, Nathanaël Fijalkow, Guillaume Lagarde

Many approaches to program synthesis perform a combinatorial search within a large space of programs to find one that satisfies a given specification. To tame the search space blowup, previous works introduced probabilis…

Program Synthesis

DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQL

2026-06-16 · Esteban Schafir, Xu Zheng, Hojat Allah Salehi, Zhuomin Chen 외 arxiv

Large Language Models (LLMs) have demonstrated remarkable capabilities in translating natural language to SQL, yet existing methods still falter on complex queries requiring multi-step, data-aware reasoning. We introduce…

Best Practices For Empirical Meta-Algorithmic Research: Guidelines from the COSEAL Research Network

2025-12-18 · Theresa Eimer, Lennart Schäpermeier, André Biedenkapp, Alexander Tornede 외 arxiv

Empirical research on meta-algorithmics, such as algorithm selection, configuration, and scheduling, often relies on extensive and thus computationally expensive experiments. With the large degree of freedom we have over…

Target Features Affect Visual Search, A Study of Eye Fixations

2022-09-28 · Manoosh Samiei, James J. Clark

Visual Search is referred to the task of finding a target object among a set of distracting objects in a visual display. In this paper, based on an independent analysis of the COCO-Search18 dataset, we investigate how th…

Object