Skip to content

patrykbart/tree-enhanced-codebert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tree-Enhanced CodeBERTa

This repository contains the implementation of Tree-Enhanced CodeBERTa, an improved Transformer-based model for source code representation that integrates hierarchical positional embeddings derived from Abstract Syntax Trees (ASTs). This work is part of an anonymous ACL submission.


๐Ÿ“œ Overview

Transformer-based models like CodeBERTa excel at capturing semantic relationships in source code but struggle to represent its hierarchical structure. This repository introduces Tree-Based Positional Embeddings, which encode depth and sibling index information from ASTs into the Transformer architecture.

We evaluate Tree-Enhanced CodeBERTa on:

  • Masked Language Modeling (MLM)
  • Clone Detection

Our results show that integrating hierarchical embeddings improves structural understanding and model performance while maintaining efficiency.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages