EUVIMEDEUVIMED entdecken
Crossref

Syn2Vec: A Semantic‐Aware Initialization Method for AST Path–Based Code Representation

Xuekai Sun, Shi Dong, Xianyu Zuo

Journal of Software: Evolution and Process · 2026-06 · 38 (6)

DOI: 10.1002/smr.70145 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Software: Evolution and Process, online erschienen am 09.06.2026. Verfasst von Xuekai Sun und 2 weiteren Autor:innen. Die Arbeit nennt 53 Literaturangaben.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Although abstract syntax tree (AST) path–based approaches have proven effective, the impact of node embedding initialization methods on model performance remains understudied. This work presents a comprehensive investigation of node embedding initialization for AST path–based code analysis models, proposing Syn2Vec, a semantic‐aware initialization method. Our approach learns the semantic relationships between AST nodes in path contexts through a pre‐training process, simultaneously capturing structural features and contextual dependencies. This generates initial embeddings that integrate both syntactic and semantic information. Syn2Vec effectively models the structural relatedness and semantic correlation between AST nodes, providing superior initialization for downstream code analysis models. Experimental results on standard code classification benchmarks demonstrate that Syn2Vec‐initialized models achieve a 9.43% improvement in the F1‐score compared with random initialization, conclusively establishing the importance of initialization strategies for the analysis of AST path–based code.

Zitieren

APA

Sun, X., Dong, S., & Zuo, X. (2026). Syn2Vec: A Semantic‐Aware Initialization Method for AST Path–Based Code Representation. Journal of Software: Evolution and Process, 38(6). https://doi.org/10.1002/smr.70145

Vancouver

Sun X, Dong S, Zuo X. Syn2Vec: A Semantic‐Aware Initialization Method for AST Path–Based Code Representation. Journal of Software: Evolution and Process. 2026;38(6). doi:10.1002/smr.70145

BibTeX
@article{Sun2026,
  author = {Sun, Xuekai and Dong, Shi and Zuo, Xianyu},
  title = {Syn2Vec: A Semantic‐Aware Initialization Method for AST Path–Based Code Representation},
  journal = {Journal of Software: Evolution and Process},
  year = {2026},
  volume = {38},
  number = {6},
  doi = {10.1002/smr.70145}
}
Kostenlos starten →