# What Carries Architectural Signal? A Code-to-Architecture Mapping Study

DevFeed: [What Carries Architectural Signal? A Code-to-Architecture Mapping Study](<https://devfeed.tech/articles/what-carries-architectural-signal-a-code-to-architecture-mapping-study-111604.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41628>)

Author: Rakhshanda Jabeen, Morgan Ericsson, Yuyao Duan, Anna Wingkvist

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graph-neural-networks](<https://devfeed.tech/tags/graph-neural-networks.md>), [java](<https://devfeed.tech/tags/java.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [reference-architecture](<https://devfeed.tech/tags/reference-architecture.md>), [transformer](<https://devfeed.tech/tags/transformer.md>)

## AI overview

Across ten Java, C, and C++ systems, representations that encode dependencies generally outperform lexical representations for mapping source files to reference-architecture modules. In Heterogeneous Graph Transformer comparisons, adding dependency-neighbor aggregation helps in some cases, depending on predictor and direction; folder-aware variants produce the most consistent gains. Yet a simple directory rule already reaches 89-100% median accuracy per system, and folder information does not consistently correct its errors. Adding member nodes yields no consistent improvement. The findings suggest evaluating the signal already present in file representations and directory layout before crediting gains to graph processing.

## Source excerpt

arXiv:2610.41628v1 Announce Type: cross Abstract: 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.