Isotropy Matters: Soft-ZCA Whitening of Embeddings for Semantic Code Search

Low isotropy in an embedding space impairs performance on tasks involving semantic inference.Our study investigates the impact of isotropy on semantic code search performance and explores post-processing techniques to mitigate this issue.We analyze various code language models, examine isotropy in their embedding spaces, and its influence on search effectiveness.We propose a modified ZCA whitening technique to control isotropy levels in embeddings.Our results demonstrate that Soft-ZCA whitening improves the performance of pre-trained code language models and can complement contrastive fine-tuning.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.14428/esann/2025.es2025-58
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Isotropy Matters: Soft-ZCA Whitening of Embeddings for Semantic Code Search

Ansgar Scherp, Andor Diera, Lukas Galke
Software Engineering Research
article

Isotropy Matters: Soft-ZCA Whitening of Embeddings for Semantic Code Search

Ansgar Scherp, Andor Diera, Lukas Galke
article en

Abstract

Low isotropy in an embedding space impairs performance on tasks involving semantic inference.Our study investigates the impact of isotropy on semantic code search performance and explores post-processing techniques to mitigate this issue.We analyze various code language models, examine isotropy in their embedding spaces, and its influence on search effectiveness.We propose a modified ZCA whitening technique to control isotropy levels in embeddings.Our results demonstrate that Soft-ZCA whitening improves the performance of pre-trained code language models and can complement contrastive fine-tuning.

Deutsche Forschungsgemeinschaft
Reduced inequalities
Openalex Percentile: Top 91%
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.