paper-with-me

Papers

IdBench: Evaluating Semantic Representations of Identifier Names in Source Code

2019-10-11 · ICLR 2020 1 · Yaza Wainakh, Moiz Rauf, Michael Pradel

Identifier names convey useful information about the intended semantics of code. Name-based program analyses use this information, e.g., to detect bugs, to predict types, and to improve the readability of code. At the core of name-based analyses are semantic representations of identifiers, e.g., in the form of learned embeddings. The high-level goal of such a representation is to encode whether two identifiers, e.g., len and size, are semantically similar. Unfortunately, it is currently unclear to what extent semantic representations match the semantic relatedness and similarity perceived by developers. This paper presents IdBench, the first benchmark for evaluating semantic representations against a ground truth created from thousands of ratings by 500 software developers. We use IdBench to study state-of-the-art embedding techniques proposed for natural language, an embedding technique specifically designed for source code, and lexical string distance functions. Our results show that the effectiveness of semantic representations varies significantly and that the best available embeddings successfully represent semantic relatedness. On the downside, no existing technique provides a satisfactory representation of semantic similarities, among other reasons because identifiers with opposing meanings are incorrectly considered to be similar, which may lead to fatal mistakes, e.g., in a refactoring tool. Studying the strengths and weaknesses of the different techniques shows that they complement each other. As a first step toward exploiting this complementarity, we present an ensemble model that combines existing techniques and that clearly outperforms the best available semantic representation.

📄 PDF Abstract BibTeX arXiv:1910.05177

Code (1)

sola-st/IdBench 공식 구현

Tasks

Word Embeddings

Similar Papers 제목 키워드 기반

VarCLR: Variable Semantic Representation Pre-training via Contrastive Learning

2021-12-05 · Qibin Chen, Jeremy Lacomis, Edward J. Schwartz, Graham Neubig 외

Variable names are critical for conveying intended program behavior. Machine learning-based program analysis methods use variable name representations for a wide range of tasks, such as suggesting new variable names and …

Contrastive LearningLearning Semantic RepresentationsSpelling Correction

Conceptual Grounding Constraints for Truly Robust Biomedical Name Representations

2021-04-01 · EACL 2021 2 · Pieter Fivez, Simon Suster, Walter Daelemans

Effective representation of biomedical names for downstream NLP tasks requires the encoding of both lexical as well as domain-specific semantic information. Ideally, the synonymy and semantic relatedness of names should …

Identifier Namespaces in Mathematical Notation

2016-01-13 · Grigorev Alexey

In this thesis, we look at the problem of assigning each identifier of a document to a namespace. At the moment, there does not exist a special dataset where all identifiers are grouped to namespaces, and therefore we ne…

CultureVidBench: Benchmarking Cultural Understanding in Text-to-Video Generation

2026-08-03 · Xianjing Han, Yuhan Su, Yang Deng, Dong Ma 외 arxiv

Text-to-video (T2V) generation models have advanced rapidly, yet their ability to represent diverse cultural contexts remains underexplored. Existing benchmarks mainly focus on perceptual quality, physical plausibility, …

SCALAR: A Part-of-speech Tagger for Identifiers

2025-04-23 · Christian D. Newman, Brandon Scholten, Sophia Testa, Joshua A. C. Behler 외

The paper presents the Source Code Analysis and Lexical Annotation Runtime (SCALAR), a tool specialized for mapping (annotating) source code identifier names to their corresponding part-of-speech tag sequence (grammar pa…

TAG