What Carries Architectural Signal? A Code-to-Architecture Mapping Study
Not on the map. Why?
Abstract (arXiv)
Code-to-architecture mapping assigns source files to modules of a reference architecture. Representations of implementation artifacts can capture code text, dependencies, and directory organization, but predictive gains alone do not establish the contribution of additional graph processing. Dependencies may already be encoded in these representations, while directories may closely match the reference decomposition. We investigate how artifact representations and graph context affect mapping on ten Java, C, and C++ systems with a limited labeling budget. We compare lexical, structural, and contextual file representations and assess each predictor with and without dependency neighbors. Using a Heterogeneous Graph Transformer (HGT), we compare file-level graphs extended with member nodes summarizing each file's program elements, folder nodes, or both, alongside a variant encoding folder paths directly in file representations. We compare folder-aware predictions with a directory rule using the same labeled files. Representations encoding dependency information outperform lexical representations on most systems. Additional neighbor aggregation can improve mapping, depending on the predictor and aggregation direction. Folder-aware variants yield the largest and most consistent gains across the evaluated HGT configurations. However, the directory rule achieves per-system median accuracy of 89-100%, and adding folder information does not consistently improve predictions for files the rule misclassifies. Member nodes provide no consistent improvement over file-level graphs. These findings support assessing what file representations and directory organization already provide before attributing improvements to graph neural networks.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 10 of its 64 references that are in the map. Submitted 30 Oct 2026.
Builds on
10 of 64 references.
References · 10
- 2015Deep Residual Learning for Image Recognitioncited by 53,116
- 2017Graph Attention Networkscited by 9,201
- 2018Representation Learning with Contrastive Predictive Codingcited by 8,178
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,516
- 2016node2vec: Scalable Feature Learning for Networkscited by 1,986
- 2020Heterogeneous Graph Transformercited by 607
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 371
- 2023Software Architecture Recovery with Information Fusioncited by 7
- 2020Many-Objective Software Remodularization using NSGA-IIIcited by 2
- 2021To Automatically Map Source Code Entities to Architectural Modules with Naive Bayescited by 2
Built on by
Not cited yet.