Exploring Contextualized Embeddings for C++ Code Search and Algorithms Classification

Contextualized embeddings of words (such as BLOOM and BERT) outperform static embeddings (such as Word2vec, Fasttext, and GloVe) for many natural language processing tasks. In this article, an exploration is conducted of the use of contextualized embeddings for the purposes of searching for C++ code and classifying the algorithms that are utilized. Furthermore, a novel approach is proposed for reducing the dimensionality of the resulting embeddings, leveraging a multilayer perceptron trained with Multi Similarity Loss. The experiments performed for the methods of multilabel classification of algorithms and for the code similarity search show that the proposed method not only effectively reduces the dimension of embeddings, but also increases their representativeness.

Authors

Institutions

Publication Details

Published
2025-04-08
DOI
https://doi.org/10.1109/reepe63962.2025.10971156
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Exploring Contextualized Embeddings for C++ Code Search and Algorithms Classification

Darya A. Skvortsova, Sergey Golubev, Robert R. Khazhiev, Lev R. Barabanshchikov
Software Engineering Research
article

Exploring Contextualized Embeddings for C++ Code Search and Algorithms Classification

Darya A. Skvortsova, Sergey Golubev, Robert R. Khazhiev, Lev R. Barabanshchikov
article en

Abstract

Contextualized embeddings of words (such as BLOOM and BERT) outperform static embeddings (such as Word2vec, Fasttext, and GloVe) for many natural language processing tasks. In this article, an exploration is conducted of the use of contextualized embeddings for the purposes of searching for C++ code and classifying the algorithms that are utilized. Furthermore, a novel approach is proposed for reducing the dimensionality of the resulting embeddings, leveraging a multilayer perceptron trained with Multi Similarity Loss. The experiments performed for the methods of multilabel classification of algorithms and for the code similarity search show that the proposed method not only effectively reduces the dimension of embeddings, but also increases their representativeness.

ITMO University (RU), Bauman Moscow State Technical University (RU)
Openalex Percentile: Top 86%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.