Integrating Tree Path in Transformer for Code Representation
–Neural Information Processing Systems
Learning distributed representation of source code requires modelling its syntax and semantics. Recent state-of-the-art models leverage highly structured source code representations, such as the syntax trees and paths therein. In this paper, we investigate two representative path encoding methods shown in previous research work and integrate them into the attention module of Transformer. We draw inspiration from the ideas of positional encoding and modify them to incorporate these path encoding.
Neural Information Processing Systems
Dec-24-2025, 02:28:43 GMT
- Technology: