arXiv:2610.39519v1 cs.SE

잠재 공간에서 길을 잃다: 코드 임베딩은 기능적 의도와 구현 충실도를 어떻게 표현하는가

Lost in the Latent Space: How Code Embeddings Represent Functional Intent and Implementation Fidelity

Lu Sun, Yuheng Huang, Lei Ma, Zhijie Wang

제출 2026-10-30

한국어 초록

코드 임베딩 모델은 많은 소프트웨어 공학 응용의 핵심 구성 요소가 되었지만, 그 내부 표현은 여전히 잘 이해되지 않고 있다. 기존 평가는 하위 작업 성능에 초점을 두는 경향이 있어, 하나의 임베딩이 기능적 추상화와 구현에 민감한 분석을 모두 지원할 수 있는지에 대한 통찰이 제한적이다. 이러한 간극을 해소하기 위해 우리는 최신 코드 임베딩 모델 14개에 대한 대규모 실증 연구를 수행한다. 우리는 세 가지 상호 보완적 분석을 통해 모델의 표현 특성을 평가한다. 기능적 추상화와 구현 충실도에 대한 지도 프로빙, 기하학적 유사성을 평가하는 제로샷 검색 실험, 의미를 보존하는 코드 변환에 대한 임베딩 반응을 측정하는 통제된 섭동 실험이다. 결과는 일관된 추상화-충실도 긴장 관계를 보여 준다. 스타일 및 구조 신호를 더 잘 보존하는 모델은 의미적 일반화를 희생하는 경향이 있으며, 검색 성능이 유사한 모델도 동일한 구현 변경에 매우 다르게 반응할 수 있다. 종합하면, 우리의 결과는 단일한 보편적 코드 표현이 아직 요원함을 시사하며, 소프트웨어 공학에서 코드 임베딩 모델의 표현 인식적 평가, 선택, 배포가 필요함을 보여 준다.

원문 초록

Code embedding models have become a key building block for many software engineering applications, yet their internal representations remain poorly understood. Existing evaluations tend to focus on downstream task performance, offering limited insight into whether a single embedding can support both functional abstraction and implementation-sensitive analysis. To address this gap, we present a large-scale empirical study of 14 state-of-the-art code embedding models. We evaluate their representational behavior through three complementary analyses: supervised probing for functional abstraction and implementation fidelity, zero-shot retrieval experiments to assess geometric similarity, and controlled perturbation experiments that measure embedding responses to semantics-preserving code transformations. The results reveal a consistent abstraction-fidelity tension: models that better preserve stylistic and structural signals tend to do so at the expense of semantic generalization, while models with similar retrieval performance can nevertheless respond very differently to the same implementation changes. Overall, our findings suggest that a single universal code representation remains out of reach, motivating more representation-aware evaluation, selection, and deployment of code embedding models in software engineering.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2610.39519v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.