Manuscript Offprint
arXiv:2610.41628What Carries Architectural Signal? A Code-to-Architecture Mapping Study
Rakhshanda Jabeen
Electrolux Professional AB
Ljungby, Sweden
Linnaeus University
Växjö, Sweden
rakhshanda.jabeen@electroluxprofessional.com
Morgan Ericsson
Linnaeus University
Växjö, Sweden
Yuyao Duan
Linnaeus University
Växjö, Sweden
Anna Wingkvist
Linnaeus University
Växjö, Sweden
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.
Keywords
Code-to-Architecture Mapping, Software Architecture, Graph Neural Networks, Heterogeneous Graphs, Representation Learning
Automated C2A mapping can draw on several sources of evidence. Identifiers express domain concepts and implementation roles, while declarations and operations describe how those responsibilities are implemented. Static dependencies describe interactions between files, and directories record how developers organize a project [6, 14, 65]. These sources need not agree: a utility may interact with several modules, terminology may be shared across responsibilities, and a directory may contain files assigned to different architectural modules. This study examines what dependency-neighbor aggregation and richer graph structures add beyond the information available in file representations and directory organization.
Prior C2A mapping work combines lexical features with static dependencies in graph neural networks [21], with later work also incorporating folder organization [25]. Related work on architecture recovery, which infers a decomposition without a reference architecture, explores random-walk and graph-autoencoder representations of dependencies [6, 23] and encodings of identifier and folder tokens [22]. When several information sources and predictor mechanisms change together, comparisons of overall performance leave the contribution of additional graph context unclear.
A classifier may already receive dependency information through its input vectors, so the contribution of additional neighbor aggregation needs to be evaluated separately. Similarly, high agreement with a reference architecture may partly reflect agreement between that architecture and the directory structure. A folder-aware model can improve overall accuracy while reducing accuracy on files that a simple directory rule misclassifies. Aggregate scores alone do not distinguish these outcomes. Representing members separately may expose context obscured in a single file-level representation.
We investigate these questions on ten Java, C, and C++ systems, using a bounded labeling budget with at least one labeled file from every module. The setting is transductive: features and graph structure are available for labeled and unlabeled files, while module-label supervision uses only the initially labeled files. We compare lexical Word2Vec, structural Node2Vec, and contextual UniXcoder representations. A multilayer perceptron (MLP) establishes their performance before additional neighbor aggregation. We use a Heterogeneous Graph Transformer (HGT) [20] to compare file, folder, and member configurations, and assess folder-aware predictions against a directory rule using the same labeled files. We also compare performance with neighbors enabled and disabled for HGT, a neighbor MLP, and a Graph Attention Network (GAT) [62], with aggregation in one or both directions.
The study is guided by three research questions:
- RQ1. How does mapping performance vary across lexical, structural and contextual file representations?
- RQ2. How does adding member and folder nodes to file-level HGT change mapping performance, and how do folder-aware predictions compare with a directory rule?
- RQ3. How does using dependency neighbors change mapping performance, and how do the predictor and aggregation direction affect this change?
The results show that file representations encoding dependency information provide strong starting points, while the benefit of further neighbor aggregation depends on the predictor and aggregation direction. Folder nodes yield the largest gains within the HGT configurations, but the directory rule reaches similar accuracy on most systems, and folder paths supplied directly as file features match or exceed folder nodes on most systems. These overall gains do not consistently extend to files the rule assigns incorrectly. Member nodes provide no consistent improvement with one or two HGT layers. Code and data are available on GitHub¹.
2 Methodology
This section presents the methodology for studying how architectural signals and graph design choices affect C2A mapping. We first formulate the mapping task and then describe the graphs and the structural, lexical, and contextual features used to initialize their nodes. We then present the MLP, HGT, and GAT predictors.
Each research question varies one of these components and holds the others fixed. RQ1 varies the file representation, using the MLP. RQ2 varies the graph variant for each representation, using HGT because it handles the node and relation types of the heterogeneous variants. RQ3 varies the predictor, comparing the neighbor MLP with GAT and HGT, and the dependency neighbors they receive.
2.1 Problem Formulation
We formulate the mapping task as node classification over a software graph , where and are the sets of artifact
nodes and relations between them, respectively, and and denote the sets of node and relation types. The mappings and assign node and relation types. Let be the set of file nodes, which are the targets of the mapping task. A small subset is labeled with known architectural module assignments , and the remaining file nodes are unlabeled. The task is to learn a model:
where denotes the learnable parameters. The model is trained on the labeled files only, but all nodes of , labeled and unlabeled, are part of the graph during training.
Each model computes a -dimensional embedding for every file , and the architectural module of a file is predicted from this embedding.
2.2 Graph Construction
We represent the software system as a graph of software artifacts connected by folder organization, member containment, and static dependencies.
To study the individual and combined contributions of folder and member information, we construct four graph variants that differ in the node types they contain. They are named after these types: F (file nodes only), FF (folder and file nodes), FM (file and member nodes), and FFM (folder, file, and member nodes). All variants retain the dependency relation. F is homogeneous, with one node type and one relation type, and the other three variants are heterogeneous. Figure 1 provides a visual overview.
The complete graph (FFM) has three node types. File nodes represent source files and are the targets of C2A mapping. Because logical components are often implemented through namespaces or directory structures that group source code providing a particular functionality [14, 52], folder nodes represent directory levels of the project, with one node per level. Each file has one summarized member node covering the methods, fields, constructors, and variables of that file. This retains member-level information while avoiding the large and sparse graphs produced by representing individual members.
Four relations connect these nodes, as listed in Table 1. Three are structural and encode organization and containment, and the fourth encodes static dependencies. Folder nodes are connected through parent_of edges, forming chains such as app app/ui app/ui/views, and contains edges link each folder to its files. A belongs_to edge links each member node to its enclosing file.
Messages along structural relations flow toward the file. Folder information passes down the hierarchy through parent_of and contains edges, and member information passes up to the file through belongs_to edges. No reverse edges are added, so folder and member nodes are not updated from files through structural relations.
depends_on encodes static dependencies, which provide direct evidence of how source files interact [6, 31]. These dependencies were extracted with the Depends tool [42], which analyzes the syntactic structure of the projects and identifies entities together with several categories of static relations. We merge all dependency types into a single relation, drop duplicate edges, and remove edges whose endpoints belong to the same file.
¹https://github.com/sse-lnu/hetmap

Figure 1: Graph variants F, FM, FF, and FFM. Files are the prediction targets, and each aggregates the members of file . Arrows point from source to target: dashed arrows are structural relations and solid arrows are dependencies. Relation names are shown on FFM only. The panels omit further dependency edges and folder levels; Table 1 lists the relations with the node types they connect. Feature initialization also depends on the variant, as described in Section 2.3.
Table 1: Graph relations and node types.
| Relation | Source → target | Description |
|---|---|---|
| parent_ofcontainsbelongs_to | folder → folderfolder → filemember → file | Directory hierarchy.Folder contains a file.Links a member node to its file. |
| depends_on | file → filemember → member | File-level dependencies.Member-level dependency in FM and FFM. |
Dependency endpoints depend on the graph variant. In FM and FFM, dependencies connect either two files or two member nodes. Dependencies between a file and a member are resolved between their corresponding files. In F and FF, all member endpoints are replaced by their enclosing files, so all dependencies connect file nodes.
RQ1 uses no graph structure, and RQ3 uses the homogeneous file-level graph F. RQ2 uses all four variants to examine progressively richer graph structure, adding folder nodes in FF, member nodes in FM, and both in FFM.
2.3 Node Feature Initialization
Folder nodes are initialized in the same way in every setting. File and member nodes are initialized with one of the representations compared in RQ1: lexical embeddings from Word2Vec, structural embeddings from Node2Vec, or contextual embeddings from UniX-coder, used zero-shot or fine-tuned with dependencies.
2.3.1 Folder Node Features
Folder nodes use a binary bag-of-words representation of the folder tokens along their paths, after removing common project-root tokens. For example, app/ui/views is represented by app, ui, and views. Including the tokens of its ancestors preserves each folder's hierarchical context.
2.3.2 Word2Vec (W2V): Lexical Features
Source code identifiers encode domain concepts and implementation roles, making them useful signals for C2A mapping [65]. Following Jabeen et al. [22], we extract tokens from file names and from the identifiers of members, namely methods, fields, constructors, and variables. We split camelCase, PascalCase, and snake_case identifiers, convert tokens to lowercase, and remove stopwords and non-alphabetic tokens. Each node vector is the mean of the skip-gram Word2Vec embeddings of its associated tokens [34].
In FM and FFM, file nodes use file-name tokens, while member nodes use member identifiers. In F and FF, member identifiers are included in the file vector instead, and the MLP uses this same file vector. Member identifiers therefore remain available in every variant.
2.3.3 Node2Vec (N2V): Structural Features
Chen et al. [6] observe that files in the same architectural module can occupy a dense local dependency region without being directly connected. They use random-walk embeddings to capture this longer-range structure for architecture recovery. In our earlier study of dependency-only recovery, which follows their setup, Node2Vec was among the best-performing learned representations [23]. Therefore, we use Node2Vec [16] embeddings computed with uniform random walks on the undirected file-level dependency graph as a structural initialization. These embeddings encode dependency structure without using identifiers or folder location.
In FM and FFM, each summarized member node receives the Node2Vec embedding of its corresponding file.
2.3.4 UniXcoder: Contextual Features
For contextual initialization, we use UniXcoder [17], a pretrained code transformer. We parse each source file with Tree-sitter [5] using the corresponding Java, C, or C++ grammar. The syntax tree determines which source fragments are passed to the encoder, but is not itself an input to the model. Extraction produces two views. The file-level view contains type declarations, fields or global variables, and constructor signatures with short body excerpts where applicable. The member-level view contains methods or functions. Each view produces one vector per file. Member-level text is split into overlapping chunks whose embeddings are mean-pooled.
The zero-shot variant (UXC) uses the pretrained weights. UniX-coder's pretraining objectives do not target architectural grouping:
files with similar code can belong to different modules. We therefore also evaluate a dependency-guided variant (UXC), fine-tuned separately for each system using an InfoNCE objective [61]. This objective brings dependency-based positive pairs closer than other in-batch examples treated as negatives. However, files that are close in the dependency graph need not belong to the same architectural module. During fine-tuning, we compute this loss using only the file-level views, without module labels. We then use the fine-tuned encoder to produce representations for both file- and member-level views.
Positive pairs are drawn from the two-hop neighborhood to capture longer-range dependency structure [23], with dependencies treated as undirected. For each anchor file, two positives are sampled at random from the eight two-hop candidates that share the most one-hop neighbors with it. Files without a two-hop candidate fall back to a direct neighbor. Other files in the batch serve as negatives, except directly connected files, which are masked unless selected as the positive pair.
Member information enters the model differently across representations. Word2Vec includes member identifiers in file vectors when member nodes are absent and places them in member nodes otherwise. UniXcoder provides member text only through member nodes, while Node2Vec assigns each member node its file's vector. Adding member nodes thus changes the placement or availability of information as well as the graph structure, so comparisons across graph variants are interpreted separately for each representation.
2.4 Mapping Models
We compare models that use file features alone with models that incorporate graph structure. All models use the same classification head to predict architectural modules. Throughout, denotes the neighborhood of a node.
2.4.1 Multilayer Perceptron (MLP)
The MLP predicts module logits directly from a file-level input vector. Each hidden layer computes:
with the file feature vector and the learnable parameters of layer , and ReLU is the rectified linear unit [39]. The input contains the single representation being evaluated.
For RQ3, we incorporate dependency neighborhood information in the MLP by concatenating each file's vector with the mean of its direct neighbors' vectors in the dependency graph, giving . We refer to the MLP with this input as the neighbor MLP (). With neighbors disabled, the input is alone, as in RQ1, so enabling neighbors also doubles the input width of the first layer.
2.4.2 Heterogeneous Graph Transformer (HGT)
HGT [20] conditions attention and message transformation on the source node type, edge type, and target node type. We describe an edge from node to node by the meta-relation . For example, captures project organization, whereas captures code-level coupling.
Node types have different feature spaces depending on the graph variant and initialization strategy. We first map the input vector of each node into a shared hidden space using a type-specific linear transformation followed by ReLU, which gives its initial representation . One HGT layer then updates node representations through multi-head attention over their neighbors.
For each attention head, the layer computes a message and an attention weight for each source node connected to a target node by an edge . We omit attention-head indices for brevity. The weighted messages are aggregated as:
(3)
where is the node type, is the edge type, , and are type-specific linear transformations, and are edge-type-specific matrices, is a learned prior for each meta-relation, and is the head dimension. These parameters allow a contains edge from a folder and a depends_on edge from a dependent file to receive different attention weights.
In our implementation, the attention-head outputs are combined into a message . We add this message to the node's projected input through a residual connection [19], followed by layer normalization:
2.4.3 Graph Attention Network (GAT)
GAT [62] aggregates neighbor representations using attention parameters shared across neighbors within each head, without the node-type- or edge-type-specific parameters of HGT. The outputs of the attention heads are concatenated. Our GAT implementation uses the same input projection, residual connection, and layer normalization as HGT, while replacing its neighbor aggregation mechanism. We add no self-loops; the residual connection retains the node's own representation.
2.4.4 Classification Head
All three predictors use the same classification head. The file embedding , obtained from the last hidden layer of the MLP or the message-passing layer of GAT and HGT, is passed to a linear layer that produces one score per architectural module. A softmax converts these scores into a probability distribution:
where , , and is the number of architectural modules. The predicted module is the one with the highest probability. Training minimizes categorical cross-entropy over the labeled file nodes.
3 Experimental Setup
This section describes the benchmark systems, the experimental configuration, the directory-based reference predictor, and the evaluation procedure used to answer the three research questions.
3.1 Benchmark Systems
We evaluate the models on ten open-source systems with published ground-truth (GT) mappings, which have been used in prior work on architecture recovery and C2A mapping [22, 45]. They differ in programming language, domain, size, and architectural granularity. We use published mappings because reliable C2A mappings require substantial manual effort and expert validation [14], and because they allow comparison with previous studies.
Table 2 summarizes the system and graph properties. File-level dependency homophily is the proportion of unique directed file pairs connected by a static dependency whose source and target files fall within the same GT module, from 0 (every dependency crosses a module boundary) to 1 (every dependency stays within a module). The mean degree counts each of the directed file-level dependency edges at both of its files.
Table 2: Subject systems and their file-level dependency graph properties. : number of modules in the GT; : number of directed file-level static dependencies; : dependency homophily; : mean degree.
| System | Version | M | Files | ||||
|---|---|---|---|---|---|---|---|
| Java | A.UML | v0.24 | 14 | 766 | 3 754 | 0.55 | 9.80 |
| C.Img | v1.0a2 | 21 | 329 | 1 565 | 0.61 | 9.51 | |
| JabRef | v3.7 | 6 | 1 013 | 6 126 | 0.56 | 12.09 | |
| Lucene | r1075001 | 7 | 1 054 | 6 424 | 0.68 | 12.19 | |
| SH-3D | r002382 | 9 | 167 | 1 220 | 0.36 | 14.61 | |
| T.Mates | v5.11 | 15 | 778 | 6 721 | 0.34 | 17.28 | |
| C | Bash | 4.2 | 14 | 292 | 1 010 | 0.58 | 6.92 |
| HDF | 0e196f | 9 | 153 | 535 | 0.35 | 6.99 | |
| C+ | HDC | 46ff87 | 11 | 207 | 543 | 0.63 | 5.25 |
| Chrome | svn-171054 | 69 | 18 343 | 145 492 | 0.58 | 15.86 |
The Java systems come from the benchmark of Olsson et al. [45]. JabRef and TeamMates (T.Mates) were studied at the SAEroCon workshop in 2016 and 2017, where system experts provided the architectures and mappings². Lucene was studied by Lenhard et al. [30], and the Commons Imaging (C.Img) mapping was contributed as a test case for s4rdm3x [44]³.
For Bash, we use the mapping curated by Garcia et al. [14], who recovered an initial decomposition from documentation and source code and refined it with system experts through a certification process. The same work provides the Chromium mapping, developed with developers over approximately two years [31].
The HDF and HDC mappings were developed with industry partners and are part of the SARIF benchmark of Zhang et al. [65], available in its replication package⁴.
3.2 Experimental Configurations
We repeat each experiment 100 times, each with a different initial labeled set. In each run, we randomly sample 5% of the file nodes, with a minimum of 30 and a maximum of 200 files, and add one file from each GT module not represented in the sample. We use the same 100 initial labeled sets across all experiments and configurations, which allows paired comparisons. This procedure imposes a bounded labeling budget rather than a constant labeled proportion: before the module-coverage additions, the random sample covers approximately 9–20% of the files in the five systems subject to the floor (C.Img, SH-3D, Bash, HDF, and HDC) and approximately 1% in Chromium, the only system subject to the cap.
Input representations. For each system, Word2Vec embeddings are 128-dimensional vectors trained for 20 epochs with a context window of five on the file names and identifiers.
Node2Vec learns 128-dimensional vectors from uniform random walks () on the undirected file-level dependency graph, with walk length 30, 200 walks per file, window 15, five skip-gram epochs, and five negative samples. Chromium uses 100 walks per file and one negative sample.
For UXC, UniXcoder is fine-tuned separately for each system with an InfoNCE temperature of 0.05, AdamW with a learning rate of , a batch size of eight, and two epochs with a fixed seed. Only the upper four of the twelve encoder layers are updated, while the token embeddings and the lower eight layers stay frozen. Both UniXcoder variants encode file inputs with a 512-token limit and member inputs in overlapping 256-token windows with a stride of 128, mean-pooled before normalization, producing 768-dimensional features.
All input representations are generated once per system and reused in every run and experiment.
Training models. All models are trained with Adam at a learning rate of 0.001 for 200 epochs. The MLP has two hidden layers of 256 dimensions, and GAT and HGT use one layer with 256 hidden dimensions and four attention heads.
Controlled comparisons. RQ1 trains the MLP on each of the four representations, which isolates the information in the file representation because the MLP uses no graph structure.
RQ2 trains HGT on all graph variants (Figure 1) with Word2Vec, Node2Vec, and UXC features, using directed dependency edges. We additionally train all four HGT variants with two layers to test whether one layer limits what a file receives from its neighbors. We also train FD, an HGT model on graph F whose UXC file vector is extended with a binary folder-path vector, including ancestor folders. This vector uses the same tokenizer and vocabulary as the folder-node features (Section 2.3), with one dimension per distinct folder token in the system. FD provides folder information without folder nodes.
RQ3 consists of controlled comparisons on the file graph, with all four representations. For each predictor (MLP, GAT, and HGT), we
²https://github.com/sebastianherold/SAEroConRepo
³ Java labels are available at: https://github.com/h0bb3/s4rdm3x
⁴https://github.com/anonymous2f4a9d/SARIF_FSE23 compare settings with dependency neighbors disabled and enabled, and with different aggregation directions. For the neighbor MLP, enabling neighbors also increases the input width and parameter count. We keep the file representations, initial labeled sets, and training settings fixed and compare three settings. With neighbors disabled, each file uses only its own representation. With directed aggregation, a dependency edge from file to file , where depends on , carries information from to . Each file therefore receives information from the files that depend on it. With undirected aggregation, we also add the reverse edge, allowing each file to receive information from files it depends on. For the MLP, these settings determine which files contribute to the neighbor vector; for GAT and HGT, they determine which files send messages.
The MLP with neighbors disabled is the RQ1 classifier, and HGT with directed neighbors on the file graph is the F configuration of RQ2, so these runs are shared. In total, the experiments comprise 58,000 runs.
3.2.1 Directory Hierarchy Baseline
To assess how much folder-based configurations exploit files in the same directory sharing a module, we use a rule-based predictor based on the directory hierarchy and the initial labeled files. For each unlabeled file, it assigns the most common module among labeled files in the same directory. If none are present, it searches the directory subtree and then the subtrees of its parent directories until it finds labeled files. Ties are resolved by the module's frequency in the complete initial labeled set and then alphabetically. If no labeled files are found, the predictor assigns the most common module in the complete initial labeled set. It uses the directory hierarchy, but not directory-name text, source code, embeddings, dependencies, or test labels.
We apply the predictor to all 100 initial labeled sets and compare it with HGT using features on the directed FM and FFM graphs and with FD. For each system, we report the accuracy of the predictor, FM, FFM, and FD, which equals micro-F1 because each file has exactly one module label. For the files that the predictor assigns incorrectly, we also report the accuracy of each compared model on those files.
3.3 Performance Evaluation
The benchmark systems have imbalanced module sizes, so overall accuracy can hide poor performance on smaller modules. We therefore report both macro-F1 and micro-F1. F1 is the harmonic mean of precision and recall, which measure the correctness of predicted assignments and the coverage of true assignments, respectively. Macro-F1 averages the F1 scores of individual modules, giving each module equal weight regardless of size. Micro-F1 aggregates predictions across modules, giving each file equal weight. Reporting both captures performance across modules as well as overall file-level performance.
Because compared configurations use the same initial labeled sets, we pair runs by split. We use the two-sided Wilcoxon signed-rank test [63], a non-parametric test, to compare configurations separately for each system and metric without assuming normally distributed score differences. We apply Holm's correction across the ten systems for each metric and pair of compared configurations, using a significance level of .
To quantify the magnitude of the differences, we also compute Cliff's [10] from the two sets of 100 scores. We classify its magnitude as negligible (N, ), small (S, ), medium (M, ), or large (L, ) [54].
4 Results
This section reports the results for code-to-architecture mapping across ten subject systems. RQ1 compares lexical, structural, and contextual file representations using an MLP. RQ2 examines how mapping performance changes when Word2Vec, Node2Vec, and initialize HGT with file, member, and folder context, and analyzes errors relative to directory-based predictions. RQ3 uses controlled experiments to examine how using dependency neighbors changes mapping performance, and how the predictor and aggregation direction affect this change.
For RQ1 and RQ2, we report median macro- and micro-F1 scores over the 100 runs per system and configuration, and differences between these medians in F1 percentage points, with Cliff's alongside the significance test. For RQ3, we report the median of the paired differences between conditions over the 100 splits. Summary tables give the median of these per-system values across the ten systems. F1 is computed only on the held-out test files of each split.
4.1 Comparing Lexical, Structural, and Contextual File Representations (RQ1)
RQ1 examines the mapping performance of each file representation before additional graph-based message passing. Table 3 reports the median macro-F1 and micro-F1 scores obtained using the MLP with Word2Vec, Node2Vec, and the two UniXcoder variants, and .
Table 4 summarizes the pairwise differences across all ten systems, with the number of systems favoring each method and the number of Holm-significant differences in each direction.
Table 3: Median macro-F1/micro-F1 scores (%) across 100 runs for the MLP using W2V, , , and N2V. Highlighted values indicate the highest score for each system and metric.
| System | W2V | N2V | ||
|---|---|---|---|---|
| A.UML | 34 / 57 | 36 / 60 | 46 / 69 | 54 / 72 |
| C.img | 23 / 39 | 33 / 52 | 42 / 62 | 71 / 80 |
| JabRef | 44 / 78 | 39 / 76 | 43 / 79 | 40 / 74 |
| Lucene | 57 / 71 | 54 / 66 | 63 / 76 | 66 / 79 |
| SH-3D | 22 / 41 | 48 / 64 | 47 / 67 | 43 / 58 |
| T.Mates | 30 / 55 | 37 / 68 | 51 / 79 | 41 / 68 |
| Bash | 7 / 29 | 23 / 42 | 27 / 49 | 42 / 61 |
| HDF | 8 / 22 | 42 / 44 | 46 / 48 | 53 / 57 |
| Chrome | 14 / 48 | 14 / 48 | 31 / 66 | 41 / 71 |
| HDC | 33 / 53 | 30 / 51 | 46 / 70 | 43 / 69 |
Table 3 shows that macro-F1 is lower than micro-F1 for every system and representation. Node2Vec achieves the highest median macro- and micro-F1 scores on six systems. On the other four systems, obtains the highest median micro-F1, while the
Table 4: Summary of pairwise differences in F1 points across ten systems. is the median difference (first method minus second). +ve is the number of systems favoring the first method, followed in parentheses by the numbers of significant positive () and negative () differences.
| Comparison | Macro F1 | Micro F1 | ||
|---|---|---|---|---|
| +ve () | +ve () | |||
| UXC-W2V | +5.2 | 6 (6/4) | +7.5 | 6 (6/3) |
| UXC-UXC | +9.1 | 9 (9/0) | +9.2 | 10 (10/0) |
| UXC-W2V | +17.5 | 9 (9/0) | +19.2 | 10 (9/0) |
| UXC-N2V | -4.9 | 4 (4/6) | -3.3 | 3 (3/6) |
| N2V-W2V | +20.3 | 9 (9/1) | +16.2 | 9 (9/1) |
highest median macro-F1 is held by UXC on T.Mates and HDC, Word2Vec on JabRef, and UXC on SH-3D.
We first compare Word2Vec and UXC, the two representations that do not encode dependencies. They do not separate consistently: the significant differences fall in both directions, although UXC is favored on more systems. On macro-F1, UXC is significantly stronger on A.UML (medium effect), C.Img, SH-3D, T.Mates, Bash, and HDF (large effects), whereas Word2Vec is significantly stronger on JabRef (large effect), Lucene and Chrome (medium effects), and HDC (small effect). On micro-F1, UXC is significantly stronger on the same six systems, and Word2Vec is significantly stronger on JabRef and Lucene (large effects) and HDC (small effect); the difference in Chrome is not significant.
Fine-tuning significantly improves UniXcoder over UXC on micro-F1 for all ten systems and on macro-F1 for nine, predominantly with large effects. The effects are medium on HDF (both metrics) and on SH-3D micro-F1; the macro-F1 difference on SH-3D is not significant.
Both representations encoding dependency information are generally stronger than the lexical representation. Node2Vec significantly outperforms Word2Vec on both metrics for nine systems, with JabRef as the exception, where Word2Vec is significantly stronger. Similarly, UXC significantly outperforms Word2Vec on both metrics for nine systems; on JabRef, the difference is not significant on either metric.
Node2Vec is significantly stronger than UXC on both metrics for A.UML, C.Img, Lucene, Bash, HDF, and Chrome, whereas UXC is significantly stronger on JabRef, SH-3D, and T.Mates; most of these differences have large effects. On HDC, UXC is significantly stronger on macro-F1 with a small effect, and the micro-F1 difference is not significant.
4.2 Message Passing over Dependency Edges, Member Nodes, and Folder Nodes (RQ2)
RQ2 examines how mapping performance changes for each representation when message passing over the file dependency graph is added and the graph is extended with folder and member nodes. Figure 2 reports median macro- and micro-F1 for the MLP and HGT under F, FF, FM, and FFM. We use Word2Vec, Node2Vec, and the
Answer to RQ1.
Representations that encode dependencies, either directly through random walks (Node2Vec) or through dependency-guided fine-tuning of UniXcoder, provide the strongest mapping performance overall. Fine-tuning consistently improves UniXcoder over its zero-shot representation and produces the best macro-F1 on two systems. Word2Vec and UXC, which do not encode dependencies, differ from each other in both directions, and Word2Vec is weaker than Node2Vec and UXC on most systems; Word2Vec nevertheless remains stronger than Node2Vec on JabRef. Thus, no single file representation performs best across all systems and metrics.
fine-tuned variant UXC, which improves over UXC on nearly all systems in RQ1.
Table 5 summarizes five steps: MLP to F, adding members (F to FM, FF to FFM), and adding folders (F to FF, FM to FFM). For each system, is the difference between the two configuration medians over 100 runs. The table reports the median of these ten system-level differences, the number of systems with a positive difference, and the number of systems with a significant gain or loss.
File-level HGT versus the MLP. Moving from the MLP to file-level HGT improves Word2Vec and UXC more than Node2Vec. For Word2Vec and UXC, the improvement is positive on nine systems on both metrics, and the only significant loss is UXC on HDC macro-F1. For Node2Vec, the changes are small, and significant losses occur on Lucene and HDC for both metrics and on HDF for macro-F1, but significant gains still outnumber losses on both metrics.
Member-level context. Adding member nodes to F lowers median macro-F1 and micro-F1 for every representation, most strongly for Word2Vec, with large effects on all ten systems. Significant macro-F1 losses outnumber gains for every representation. Adding member nodes also changes how features enter the model, depending on the representation (Section 2.3); for example, the UXC member vectors come from an encoder fine-tuned on file-level text.
In addition, with one HGT layer, member-level dependencies cannot affect file predictions, so we test two layers in Section 4.2.1. These results therefore concern the evaluated member configuration, not member information in general.
Folder-level context. Adding folder nodes produces the largest and most consistent changes. FF improves over F, and FFM improves over FM, on both metrics for every system and representation. All 120 system-representation-metric comparisons are significant with a large effect, and each improves in at least 96 of the 100 paired runs.
Within the folder-containing configurations, the effect of adding member nodes depends on the representation. FFM improves over FF for Node2Vec and UXC on both metrics, with small median gains, but lowers both metrics for Word2Vec. The significant macro-F1 losses for Node2Vec and UXC occur on JabRef, Bash, and Chrome. For micro-F1, Node2Vec loses significantly only on Bash, and UXC on no system.

Figure 2: Median macro-F1 (top) and micro-F1 (bottom) for each representation, per system, across the MLP and HGT with increasing graph structure (F, FF, FM, FFM). Shaded areas denote interquartile ranges across the 100 runs.
Table 5: Change in F1 as graph structure is added, by representation. Each cell gives the median over ten systems of the difference between configuration medians in F1 points, followed in parentheses by the number of systems with a positive difference and the number of significant positive/negative differences. Blue shading indicates gains and purple indicates losses, with darker shades indicating larger magnitudes.
| Step | W2V | N2V | UXC | |||
|---|---|---|---|---|---|---|
| Macro F1 | Micro F1 | Macro F1 | Micro F1 | Macro F1 | Micro F1 | |
| F – MLP | +7.5 (9; 9/0) | +9.0 (9; 8/0) | +0.8 (6; 5/3) | +2.2 (7; 7/2) | +6.7 (9; 8/1) | +4.6 (9; 9/0) |
| FM – F | -12.2 (3; 3/7) | -4.9 (3; 3/7) | -1.2 (2; 0/5) | -1.3 (3; 0/6) | -1.2 (2; 1/6) | -1.8 (2; 1/7) |
| FFM – FF | -4.4 (3; 2/5) | -1.0 (3; 2/5) | +1.6 (6; 5/3) | +0.8 (7; 5/1) | +1.3 (6; 5/3) | +1.1 (7; 5/0) |
| FF – F | +44.4 (10; 10/0) | +32.1 (10; 10/0) | +25.6 (10; 10/0) | +18.7 (10; 10/0) | +29.9 (10; 10/0) | +16.5 (10; 10/0) |
| FFM – FM | +43.0 (10; 10/0) | +39.9 (10; 10/0) | +28.9 (10; 10/0) | +22.3 (10; 10/0) | +32.3 (10; 10/0) | +20.6 (10; 10/0) |
4.2.1 Depth of message-passing layers
To test whether using one HGT layer limits the results, we repeated F, FF, FM, and FFM with two layers, using the same labeled sets, representations, and training settings. Table 6 reports the results.
Table 6: Effect of a second message-passing layer on HGT, by input and graph variant. is the median across ten systems of the change in median F1 (points) from one to two layers; positive favors two layers. +ve is the number of systems with a positive change, followed in parentheses by the numbers of significant gains () and losses (). Shading marks at least five significant gains and at least twice as many gains as losses.
| Input | Graph | Macro-F1 | Micro-F1 | ||
|---|---|---|---|---|---|
| +ve () | +ve () | ||||
| W2V | F | +0.5 | 6 (3/4) | 0.0 | 6 (4/3) |
| FF | +2.4 | 8 (6/1) | +0.5 | 6 (6/0) | |
| FM | +3.5 | 6 (6/3) | +2.2 | 8 (7/2) | |
| FFM | +10.3 | 6 (6/3) | +1.1 | 6 (6/3) | |
| N2V | F | -0.6 | 4 (2/5) | -0.1 | 4 (2/4) |
| FF | +1.8 | 7 (5/2) | +0.4 | 6 (4/3) | |
| FM | 0.0 | 5 (3/3) | +0.1 | 5 (3/3) | |
| FFM | +0.3 | 5 (4/3) | -0.2 | 3 (2/4) | |
| UXC | F | 0.0 | 6 (2/1) | +0.8 | 8 (7/1) |
| FF | +3.4 | 8 (8/2) | +1.4 | 10 (7/0) | |
| FM | -0.2 | 5 (1/2) | 0.0 | 5 (3/3) | |
| FFM | +2.6 | 7 (7/1) | +1.0 | 8 (8/1) | |
For Word2Vec, the largest median macro-F1 improvements occur in FM and FFM. For UXC, FF improves more than FFM, so the improvement is not specific to member nodes. Node2Vec shows little change in either member-containing configuration, but F is significantly lower on macro-F1 on five systems.
At matched two-layer depth, adding members to F still lowers median macro-F1 for all three representations. Adding members to FF remains negative for Word2Vec, while the small median gain for UXC shrinks and that for Node2Vec becomes slightly negative. Folder nodes retain the largest gains: both folder additions improve both metrics on all ten systems for every representation, with significant large effects. Thus, additional depth improves some configurations but does not establish a consistent benefit from adding member nodes.
We also examined whether the macro-F1 change from one to two message-passing layers in FM and FFM relates to average file-level degree across the ten systems. Exploratory Kendall's analyses [29] show positive associations in FFM across all three representations, but in FM mainly with Word2Vec.
4.2.2 Organizational information and the directory baseline
The large gains from adding folder nodes show that directory organization is informative for the evaluated mappings. We first test whether these gains require folder nodes using FD, which adds folder-path features directly to the UXC file vectors in graph F.
We then examine whether the gains also help files misclassified by directory information alone, comparing FM, FFM, and FD against the directory hierarchy baseline (Section 3.2.1). FM and FFM differ only in the inclusion of folder nodes. Table 7 reports overall accuracy for the baseline and the three models, and model accuracy on files misclassified by the baseline. FD improves over F on every
Table 7: Accuracy of the directory baseline (Dir.) and of HGT with UXC features on FM, FFM, and FD, median over 100 runs. is the median number of test files per split that the baseline misclassifies; the columns under it give model accuracy on those files, over splits with at least one baseline error. Purity is the share of files that belong to the majority module of their directory.
| System | Accuracy (%) | Baseline misclassifications | Purity | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Dir. | FM | FFM | FD | n | FM | FFM | FD | ||
| A.UML | 99 | 71 | 92 | 93 | 11 | 9.1 | 21.7 | 22.5 | 100.0 |
| C.img | 100 | 67 | 98 | 99 | 0 | - | - | - | 100.0 |
| JabRef | 97 | 79 | 96 | 93 | 27 | 45.3 | 26.3 | 25.0 | 99.1 |
| Lucene | 92 | 77 | 97 | 95 | 86 | 52.9 | 86.9 | 81.7 | 100.0 |
| SH-3D | 100 | 70 | 100 | 99 | 0 | - | - | - | 100.0 |
| T.Mates | 100 | 82 | 99 | 99 | 0 | - | - | - | 100.0 |
| Bash | 92 | 60 | 85 | 86 | 21 | 24.6 | 26.1 | 27.8 | 91.8 |
| HDF | 93 | 51 | 92 | 93 | 8 | 27.3 | 50.0 | 40.0 | 100.0 |
| Chrome | 97 | 74 | 90 | 94 | 574 | 19.8 | 20.0 | 23.3 | 99.9 |
| HDC | 89 | 68 | 87 | 87 | 19 | 20.0 | 12.5 | 10.8 | 96.1 |
system with a large effect. Compared with FD, FF has lower median macro-F1 on eight systems, significantly so on six, and no significant gains. Folder nodes and relations therefore do not improve on supplying folder-path information directly as file features in this configuration.
The baseline reaches 89 to 100% accuracy on every system. Without folder nodes, FM is 14 to 43 points below it. FFM and FD are within 7 points of it on nine systems and exceed it only on Lucene. Folder information therefore brings both FFM and FD close to the accuracy of the directory hierarchy baseline on most systems.
Directory membership closely matches module membership: on eight systems, 99 to 100% of files belong to the majority module of their directory, and only Bash and HDC have lower purity. Files that depart from the majority module of their directory are therefore rare on most systems, which limits what the analysis can show about them.
On the files the baseline gets wrong, FFM gets most of them wrong on A.UML, JabRef, Bash, Chrome, and HDC, about half on HDF, and most of them right only on Lucene. Compared with FM, FFM is more accurate on these files on A.UML, HDF, and Lucene, similar on Bash and Chrome, and less accurate on JabRef and HDC. JabRef illustrates the distinction between overall accuracy and accuracy on baseline errors: FFM improves over FM by 16 percentage points overall but falls by 19 points on these files. FD is within 10 points of FFM on these files on every system. This analysis does not isolate files whose module differs from the majority module of their directory, so it does not show how well FFM handles such exceptions.
Answer to RQ2.
The effect on mapping performance depends on what is added and on the representation. Moving from the MLP to file-level HGT improves Word2Vec and more than Node2Vec. Member nodes give no consistent gain and often lower performance, most strongly for Word2Vec. Folder nodes provide the largest gains, with significant large effects on all ten systems for all three representations. The findings for member and folder nodes remain with two HGT layers.
The directory hierarchy baseline achieves accuracy similar to FFM on most systems, and folder nodes do not consistently outperform folder information supplied directly as file features (FD). On most systems with directory-baseline errors, FFM misclassifies most of these files, and on some it is less accurate than FM. Strong folder-based scores therefore do not establish reliable performance on directory-baseline errors, and the analysis does not isolate files whose directory location is insufficient or misleading.
4.3 Dependency Neighbors, Predictors, and Aggregation Direction (RQ3)
RQ2 shows that the effect of graph context depends on the representation, configuration, and system. However, its comparison of the MLP with file-level HGT changes both the predictor and the availability of dependency messages. RQ3 therefore compares each predictor with dependency neighbors disabled and enabled, using HGT, GAT, and a neighbor MLP (). It also compares directed and undirected aggregation to examine whether the benefit depends on how dependency neighbors are aggregated. We evaluate all three predictors with all four input representations.
Differences are paired changes in F1 points, enabled minus disabled; positive values favor neighbor information. For direction, differences are undirected minus directed; positive values favor undirected neighbors. We report the median paired difference over the 100 splits. With neighbors disabled, the neighbor MLP reduces to the MLP of RQ1, and GAT and HGT receive no dependency messages.
How does the benefit of dependency neighbors vary across predictors and representations? Table 8 shows the change in F1 when neighbor information is enabled, for each predictor and input representation. With undirected neighbors, the median change is positive in every cell on both metrics. GAT and the improve on at least eight systems in every cell and are never significantly lower, whereas HGT gains least with every representation and is significantly lower on a few systems with Node2Vec and Word2Vec. With directed neighbors, the median macro-F1 is lower with Node2Vec for all three predictors, by 0.6 to 2.8 points, and significant losses occur on up to six systems. For GAT and the , the gain from undirected neighbors is smallest with Node2Vec and largest with .
This comparison differs from RQ2, where file-level message passing (F) is compared with the MLP, which changes the predictor together with the available structure. Here the predictor is fixed, and dependency neighbors are enabled and disabled, so a gain of F
over the MLP does not imply that HGT benefits from dependency neighbors. With Node2Vec, for example, F raises the median macro-F1 over the MLP, whereas HGT with directed neighbors is lower than HGT without neighbors.
Does the direction of neighbor aggregation matter? Undirected aggregation gives the higher median in almost every cell of Table 8, but the preferred direction depends on the system. Figure 3 shows gains from undirected aggregation on five to eight systems per combination of predictor and input representation, with significant differences in both directions.
On macro-F1, SH-3D, T.Mates, and JabRef score higher with directed aggregation in all 12 combinations, and C.img in eight. Lucene, Bash, Chrome, and HDC score higher with undirected aggregation in all 12 combinations, and A.UML and HDF in 11. The largest differences are 14.6 points in favor of undirected aggregation (Bash, Word2Vec, ) and 8.7 points in favor of directed aggregation (T.Mates, Word2Vec, ). Micro-F1 shows the same directional pattern for seven systems, while JabRef, C.img, and A.UML show mixed results. Adding reverse edges also expands the neighborhood, so this comparison does not isolate propagation direction from neighborhood size.

Figure 3: Macro-F1 differences (undirected – directed), in F1 points, by predictor and input representation. Each point shows median paired differences over 100 splits; negative values favor directed aggregation. Hollow markers indicate non-significant differences.
Which predictor scores highest? Figure 4 pools the ten systems with undirected neighbors: each point is the median of one system and the boxes show the spread across systems. GAT has the highest median macro-F1 with every representation and the highest median micro-F1 with every representation except Node2Vec, where HGT is marginally higher. GAT also scores highest most often: in each split we count which of the four predictors scores highest, and GAT has the largest share of wins, averaged over systems, with
Table 8: Changes in F1 from enabling neighbor information (D-off, UD-off) and switching from directed to undirected aggregation (UD-D), by model and input representation. Each cell reports the median across ten systems of the per-system median paired change over runs, in F1 points. Parentheses follow the format (systems with a positive median change; significant gains/significant losses). D: directed (source-to-target); UD: undirected; off: neighbor information disabled. Blue shading indicates gains and purple indicates losses, with darker shades indicating larger magnitudes.
| Model | Contrast | N2V | W2V | UXC_ZS | UXC_FT | ||||
|---|---|---|---|---|---|---|---|---|---|
| Macro F1 | Micro F1 | Macro F1 | Micro F1 | Macro F1 | Micro F1 | Macro F1 | Micro F1 | ||
| HGT | D-off | -0.6 (4; 4/6) | +1.6 (6; 6/4) | +0.2 (5; 4/5) | +1.8 (7; 7/3) | +1.6 (9; 7/0) | +2.7 (10; 10/0) | +0.7 (7; 6/3) | +1.8 (8; 8/0) |
| UD-off | +0.5 (8; 5/2) | +0.8 (9; 8/0) | +2.9 (7; 7/3) | +4.5 (8; 8/2) | +1.8 (10; 10/0) | +2.5 (10; 10/0) | +0.9 (10; 8/0) | +1.6 (10; 10/0) | |
| UD-D | +0.3 (6; 5/4) | +0.1 (5; 3/4) | +0.7 (7; 4/3) | +1.5 (6; 5/4) | 0.0 (5; 4/3) | +0.1 (5; 5/4) | +0.6 (6; 5/3) | +0.2 (5; 4/4) | |
| GAT | D-off | -2.8 (4; 3/6) | -0.8 (3; 2/5) | +1.5 (8; 6/2) | +2.4 (7; 7/1) | +3.8 (10; 9/0) | +6.2 (10; 10/0) | +0.7 (6; 4/2) | +2.2 (8; 7/1) |
| UD-off | +1.4 (9; 8/0) | +1.4 (10; 10/0) | +5.6 (8; 7/0) | +6.7 (8; 8/0) | +8.2 (10; 10/0) | +9.5 (10; 10/0) | +3.8 (10; 8/0) | +4.1 (10; 10/0) | |
| UD-D | +3.8 (7; 6/2) | +2.2 (8; 8/1) | +1.9 (7; 5/3) | +1.6 (7; 5/3) | +3.3 (6; 6/4) | +2.2 (6; 6/2) | +3.0 (6; 6/4) | +1.3 (7; 6/1) | |
| N_MLP | D-off | -0.6 (4; 4/5) | +0.8 (6; 5/4) | +3.4 (9; 9/1) | +2.7 (9; 8/1) | +4.8 (8; 7/1) | +5.1 (9; 9/0) | +2.8 (7; 6/2) | +2.9 (7; 7/2) |
| UD-off | +1.2 (10; 8/0) | +1.2 (9; 8/0) | +5.1 (10; 10/0) | +4.9 (10; 10/0) | +7.7 (10; 10/0) | +7.3 (10; 10/0) | +5.8 (10; 10/0) | +4.6 (10; 10/0) | |
| UD-D | +1.6 (6; 6/4) | +0.4 (6; 5/3) | +1.3 (6; 6/3) | +1.9 (6; 6/2) | +3.5 (6; 6/4) | +2.5 (6; 6/4) | +3.1 (6; 6/3) | +1.3 (7; 7/3) | |
every representation and on both metrics. All three predictors with neighborhood aggregation exceed the MLP without neighbors in every median comparison. As without neighbors, UXC_FT has the highest median macro-F1 across systems for every predictor, with GAT and UXC_FT giving the highest scores overall.
Most of the variation in F1 lies between systems and not between runs of one system. The choice of predictor matters most for Word2Vec and UXC_ZS, the two representations without dependency information, and less for Node2Vec and UXC_FT.
Answer to RQ3.
Dependency neighbors do not benefit all predictors equally. With undirected aggregation, median changes are positive for every predictor and representation, but GAT and the N_MLP improve more consistently across systems than HGT, which shows significant losses in some cases. Directed aggregation is less reliable, particularly with Node2Vec, where median macro-F1 decreases for all three predictors. Although undirected aggregation generally gives larger gains, it is not preferable on every system: several systems consistently favor directed aggregation across predictors and representations. These comparisons also change neighborhood size, so they do not isolate direction alone. With undirected neighbors, GAT has the highest median macro-F1 across systems for every representation, and UXC_FT remains the strongest representation by this measure for every predictor.
5 Discussion
The research questions examine where architectural signal resides and how a mapping model can use it. RQ1 compares file representations before message passing, RQ2 examines file, member, and folder context and compares the folder gains with a directory-based rule, and RQ3 examines how predictor choice and aggregation direction affect the contribution of dependency neighbors. This section discusses these findings together.
Dependency Information in File Representations
Dependency information can support mapping before message passing, through the graph position encoded by Node2Vec or through dependency-guided adaptation of a code encoder. The advantage of these representations over Word2Vec, and of fine-tuned UniXcoder over its zero-shot counterpart, suggests that dependency information is useful beyond what the evaluated lexical and pretrained code representations provide. The representations also differ in training, vector size, and source content, so these comparisons are between representation pipelines and not between isolated information sources.
The usefulness of this signal varies with the relation between dependency structure and the reference architecture. Node2Vec's micro-F1 is lower on the three least homophilic systems, SH-3D, HDF, and T.Mates (Table 2), with a median of 58 compared with 72 on the remaining seven. Node2Vec learns dependency proximity from files that co-occur on random walks, without using the GT mapping. When dependencies frequently cross module boundaries, files from different modules may co-occur on walks and receive similar vectors, making the modules harder to distinguish.
The advantage of fine-tuned UniXcoder over Node2Vec on SH-3D and T.Mates suggests that code content may provide complementary evidence in these mixed neighborhoods. HDF does not follow this pattern, so low homophily alone does not explain their relative performance; HDF is also the smallest system, and every representation has comparatively low micro-F1 on it. Homophily is used here to interpret the observed pattern, not to select a representation, since computing it requires the reference mapping.
Encoding dependencies in the initial representation and aggregating dependency neighbors during mapping are two uses of the same information source, and the second does not necessarily replace the first. With undirected aggregation, the median gains are generally larger for Word2Vec and zero-shot UniXcoder than for Node2Vec and fine-tuned UniXcoder, yet fine-tuned UniXcoder still has the highest median macro-F1 for every predictor. Conversely,

Figure 4: Micro-F1 (left) and macro-F1 (right) of the MLP, , GAT, and HGT with undirected neighbors, by input representation. Each point is the median of one system over 100 runs; boxes show the spread across systems, and the values below are the median of medians across systems, with the highest in each group in bold.
useful dependency information in a representation does not guarantee a benefit from further aggregation: RQ3 shows that this benefit depends on both aggregation direction and predictor choice.
Folder Organization and Architectural Exceptions
The gains from adding folder nodes in RQ2 show that directory organization helps reproduce the reference mapping. They do not show that this information must reach a file through message passing over folder nodes, since supplying the same information directly in the file vector matches or exceeds the accuracy of folder nodes on most systems. Extending a directory assignment is also different from identifying files that depart from it. Comparing FM, FFM, and FD on the directory baseline's errors helps assess this distinction (Section 4.2.2), but does not isolate architectural exceptions from errors caused by missing local supervision.
Lucene and HDF have pure directories under the reference mapping, so their baseline errors do not reflect conflicts between directory and module membership. They may instead arise from directories without labeled examples, although the table does not establish this. FFM recovers most baseline errors on Lucene and half on HDF, but only about a fifth on A.UML, whose directories are also pure. Directory purity therefore does not ensure that folder nodes recover baseline errors.
Bash and HDC have mixed directories. On baseline errors, FFM is similar to FM on Bash and less accurate on HDC. JabRef further illustrates why overall gains are insufficient: adding folder context raises overall accuracy while lowering accuracy on baseline errors.
The directory rule serves as a reference point for interpreting the learned models. Where directory organization closely follows the architecture, it already reproduces most of the mapping. On most evaluated systems, the added modeling complexity therefore brings little accuracy over the rule. Evaluating the additional value of a learned mapper requires examining both files in directories without labeled examples and files whose module differs from their directory's majority module.
Dependency Neighbors and Aggregation Direction
The benefit of dependency neighbors depends on how the predictor aggregates them. With undirected aggregation, HGT gains least, while GAT achieves the highest median macro-F1 with every representation, although differences between predictors are small relative to variation across systems. GAT and HGT differ in their attention formulations and parameterizations, so the comparison does not isolate why GAT performs better. These findings concern the evaluated file-level predictors, not the usefulness of dependency types in general. RQ2 uses HGT for the folder- and member-aware configurations; whether the folder gains persist with other predictors remains untested.
The preferred aggregation direction appears to depend more on the system than on the predictor or representation, although the pattern is not uniform across metrics. Undirected aggregation generally gives larger gains, but several systems consistently favor directed aggregation. Agreement across predictors and representations describes the stability of these system-level preferences rather than providing independent evidence, since the comparisons share systems and splits.
Undirected aggregation adds reverse edges, so the comparison does not isolate propagation direction from neighborhood size. A reversed-edges-only setting would help distinguish these effects and remains for future work.
With Node2Vec, directed aggregation lowers median macro-F1 for all three predictors. Since its vectors were learned on an undirected graph, this may reflect a mismatch between the neighborhoods encoded during initialization and those used during prediction, but this explanation remains untested.
Connectivity and Neighbor Information
Connectivity describes how much neighboring context is available, measured here by average node degree, while homophily describes whether linked files share a module. Few neighbors limit the context available to shallow message passing, whereas Node2Vec can encode more distant context through random walks. Limited connectivity may therefore constrain the benefit of additional aggregation even when the initial structural representation remains useful.
With Node2Vec and undirected aggregation, no predictor changes significantly on Bash and HDC, the two lowest-degree systems. The depth analysis is also consistent with this interpretation: higher average degree is associated with larger gains from a second message-passing layer, particularly in FFM.
Connectivity may also help explain the effect of aggregation direction. T.Mates and SH-3D combine low homophily with high average degree and favor directed aggregation in RQ3. Bash and HDC favor undirected aggregation, as does HDF, which has low homophily but much lower average degree than T.Mates and SH-3D. Reverse edges may supply missing context in sparse neighborhoods but introduce additional cross-module context in dense, low-homophily neighborhoods. This mechanism remains untested: the ten-system comparison cannot separate connectivity from homophily, system size, or label scarcity.
Implications for Evaluation
Evaluation should establish what the input representation already provides, then isolate access to neighborhood information within a fixed predictor. Comparing a GNN model with an MLP changes both the predictor and the use of dependency-neighborhood aggregation. Enabling and disabling neighborhood aggregation within the same predictor family, while keeping the file representations fixed, provides a more targeted comparison. For the neighbor MLP, this comparison includes an increase in input width and parameter count. The same applies to folder information: a comparison of graph variants should include a model that receives that information directly as file features.
Micro-F1 and macro-F1 should be read together, since correctly mapping more files does not necessarily improve performance across modules. For tools intended to identify architectural exceptions, aggregate scores should also be accompanied by performance on files whose module differs from the majority module of their directory.
The intended use also matters. If mapping supports code reorganization, the existing directory structure may be something to reconsider rather than reproduce. Strong performance based on that structure does not establish which information would remain useful when the organization changes. The present study does not test this setting, but motivates evaluating information sources against the intended task rather than treating any representation or predictor as generally preferable.
6 Related Work
Architecture recovery and code-to-architecture mapping both infer a system's modular structure from implementation artifacts, such as static dependencies, code semantics, and directory organization. Recovery produces a decomposition without a reference architecture, while mapping assigns entities to the modules of a given one. We evaluate mapping and draw on recovery research for representations of dependencies, lexical content, and project organization.
Recovery techniques have historically been built around one dominant signal: dependency graphs, partitioned by search-based optimization [18, 32, 33, 36, 48] or clustering [1, 38, 40, 41, 49, 59], identifiers and comments [11, 15, 28, 53], or file names and paths [2]. Each signal is noisy in isolation, since shared utilities introduce cross-module edges and reused terminology mixes entities from many modules, so hybrid methods combine sources [35, 37, 46, 50, 51, 56, 64, 65].
Mapping began with orphan adoption [60] and the attraction functions of HuGMe [7, 8], and later varied the signal and the learner: textual similarity [4], supervised classifiers [3], and semi-supervised Naive Bayes combining lexical and dependency-derived information [43, 45]. Text-based approaches compare classifiers for module assignment [12], recommend mappings from natural-language architecture descriptions [57], or integrate package- and class-level granularity [58]. More recent work uses TF-IDF, GloVe, and LLM representations [27], extracts architectural concepts from documentation and code [13], or prompts LLMs to map implementation units to a reference architecture, which faces context-size limits and repeated processing costs on large codebases [55]. Johansson and Capouruscio map functions and files to textual module descriptions with pre-trained embeddings and find files classified more reliably than functions, with performance associated with vocabulary overlap and class separability [26].
Representation-learning work on recovery encoded one or two sources at a time. NEGAR clusters Node2Vec embeddings of the dependency graph alone [6]. Jabeen et al. [23] study dependencies alone and with folder organization, comparing random walk-based methods and variational graph autoencoders. GAER [22], a graph autoencoder, and ARL [24], a contrastively trained GAT, each fix folder and identifier tokens into one encoding without comparing alternatives. For mapping, GNNs were evaluated on homogeneous and dependency-type-aware graphs without folder or member nodes and without separating graph contribution from feature contribution [21]. Its extension combines Word2Vec identifier embeddings and binary bag-of-words representations of folder path tokens with dependencies in one model [25].
These approaches motivate our distinction between representing an information source and using it during prediction. Text-based mapping reports weaker results for functions than for files [26], but does not examine whether member information helps as context for the file. Our comparisons span lexical, structural, and contextual inputs but retain differences in their training procedures and feature content, so the matched dependency controls and directory-error analyses assess specific design choices and do not turn the broader comparison into an isolated ranking of information sources.
7 Threats to Validity
Generalizability: We evaluate ten open-source systems in Java, C, and C++, each with one reference architecture. The findings may not extend to other systems or alternative architectural decompositions. The study is transductive: representation learning and graph processing can use unlabeled test nodes and their edges. It therefore does not establish performance on newly arriving files outside the observed graph or on maintaining a mapping as the system evolves.
Other information sources, including change history and dynamic dependencies, are outside the evaluated scope.
Dependencies and reference mappings: Dependencies are extracted using static analysis, which may miss or misresolve dependencies. Preprocessing and build configuration can also affect the dependencies available for analysis. Because predictors that use neighbors depend on the extracted graph, such errors can affect their predictions. Models with neighbors enabled and disabled are trained separately. Their comparison therefore measures the effect of training with access to neighbor information, rather than removing neighbors from a fixed trained model.
We made a best-effort attempt to identify and obtain the source versions corresponding to the published mappings, using the available version information and documentation. Despite these efforts, some mismatches between the analyzed file sets and the mappings remain. These may reflect incomplete documentation of the original source versions or build configurations, which limits our ability to establish an exact correspondence between the analyzed source code and the published mappings.
Files can plausibly belong to more than one module, and annotators may assign them differently. Because the initial labeled set is sampled from the same mapping used for evaluation, an incorrect assignment can both mislead the model during training and penalize an architecturally plausible prediction.
Experimental variation: We use 100 runs per configuration. These runs reuse the same systems and can include the same files, so they are not independent samples. With this many runs, small differences can reach statistical significance, so we report results per system and include effect sizes to distinguish the magnitude of a difference from its significance. The comparisons were not fixed in advance, so the analyses are exploratory and may favor patterns specific to this benchmark.
The runs use different initial labeled sets, but the contribution of stochastic model training to the observed variation was not assessed separately. Input representations were generated once per system and reused across runs, so variation arising from their generation was not assessed. The seeds governing model initialization and training were not retained, limiting exact reproducibility. Cliff's treats the paired scores as two independent groups, so it describes the separation of the two score distributions and not the paired differences.
Interpretation of results: Performance measures agreement with the reference architecture, not whether a prediction is the only architecturally reasonable assignment. Folder organization may reflect the same decisions used to define that architecture, so strong directory-based predictions do not by themselves demonstrate recovery of architectural intent. The directory-error analysis applies only where the directory baseline makes errors, which excludes C.Img, SH-3D, and T.Mates in most or all splits, and it does not isolate files whose module differs from the majority module of their directory. Message-passing depth was varied only for HGT in RQ2, with one and two layers, so the results do not show how deeper models or other predictors respond. It reports accuracy only, so it does not show how performance differs between small and large modules.
Relationships between performance and structural properties are reported as associations, not causal effects, since the benchmark does not allow these properties to be separated from one another or from system size and label availability. The fine-tuning gain is that of the whole dependency-guided procedure, since no alternative adaptation objective was evaluated, so it is not attributed to dependency topology alone.
8 Conclusion
This study examines how code text, static dependencies, folder organization, and member-level information contribute to code-to-architecture mapping on ten systems. The findings show that mapping performance depends not only on which information is available but also on how it is represented and used.
Representations that encode dependency information generally outperform the evaluated lexical and zero-shot code representations. Node2Vec and dependency-guided fine-tuned UniXcoder outperform Word2Vec on most systems, and fine-tuning improves UniXcoder over its zero-shot counterpart on nearly all systems. However, neither Node2Vec nor fine-tuned UniXcoder is consistently best across systems.
Folder nodes produce the largest and most consistent gains within the HGT variants, but a directory rule using the same labeled files reaches similar accuracy on most systems, and folder paths supplied as file features match or exceed folder nodes on most systems. These gains do not consistently translate into better predictions on files the rule assigns incorrectly. Member nodes provide no consistent improvement with one or two HGT layers, and their effects cannot generally be separated from changes in feature construction and placement. These structural findings are specific to HGT; whether they persist with other predictors remains untested.
Keeping the input representations fixed while enabling and disabling access to dependency-neighborhood information shows that neighbor aggregation can complement representations that already encode dependencies. With undirected aggregation, the median change across systems is positive on both metrics for every predictor and representation. In this setting, GAT achieves the highest median macro-F1, while HGT gains the least. The better aggregation direction varies between systems, although the experiments do not isolate propagation direction from neighborhood size. Evaluation should therefore distinguish information already encoded in the representations from the contribution of neighborhood access. The findings support assessing these contributions for the intended mapping task, rather than treating any representation or predictor as generally preferable.
Future work. Future research could clarify how different aspects of graph context contribute to the observed differences. Comparing incoming, outgoing, and combined neighborhoods at matched sizes would help distinguish the effects of propagation direction and neighborhood size. Adding member nodes while preserving each file's own features would help separate the effects of graph structure and feature placement. Another direction is configuration selection on unfamiliar systems. Homophily, which helped interpret the system differences, requires reference module assignments, so selection rules based on properties observable in the dependency graph alone could be developed on some systems and evaluated on others. Finally, a model trained on one version could be evaluated on new and changed files in later versions without retraining, to test whether the learned information supports mapping as systems evolve.
References
[1] Periklis Andritos, Panayiotis Tsaparas, Renée J Miller, and Kenneth C Sevcik. 2004. LIMBO: Scalable clustering of categorical data. In International Conference on Extending Database Technology. Springer, 123–146. doi:10.1007/978-3-540-24741-8_9
[2] Nicolas Anquetil and Timothy C Lethbridge. 1999. Recovering software architecture from the names of source files. Journal of Software Maintenance: Research and Practice 11, 3 (1999), 201–221. doi:10.1002/(sici)1096-908x(199905)0611:3<201::aid-smr192-3.0.co;2-1
[3] Maryum Bibi, Onaiza Maqbool, and Jaweria Kanwal. 2016. Supervised learning for orphan adoption problem in software architecture recovery. Malaysian Journal of Computer Science 29, 4 (2016), 287–313.
[4] Roberto Almeida Bittencourt, Gustavo Jansen de Souza Santos, Dalton Dario Serey Guerrero, and Gail C. Murphy. 2010. Improving Automated Mapping in Reflexion Models Using Information Retrieval Techniques. In 17th Working Conference on Reverse Engineering. 163–172.
[5] Max Brunsfeld and contributors. 2018. Tree-sitter: An Incremental Parsing System for Programming Tools. https://tree-sitter.github.io/tree-sitter/. Accessed: 2026-04-22.
[6] Jiayi Chen, Zhixing Wang, Yuchen Jiang, Jun Pang, Tian Zhang, Minxue Pan, and Jianwen Sun. 2022. NEGAR: network embedding guided architecture recovery for software systems. In 2022 29th Asia-Pacific Software Engineering Conference (APSEC). IEEE, 367–376. doi:10.1109/apsec57359.2022.00049
[7] Andreas Christl, Rainer Koschke, and M-A Storey. 2005. Equipping the reflexion method with automated clustering. In 12th Working Conference on Reverse Engineering (WCRE'05). IEEE, 10-pp.
[8] Andreas Christl, Rainer Koschke, and Margaret-Anne Storey. 2007. Automated clustering to support the reflexion method. Information and Software Technology 49, 3 (2007), 255–274.
[9] Paul Clements, David Garlan, Reed Little, Robert Nord, and Judith Stafford. 2003. Documenting software architectures: views and beyond. In 25th International Conference on Software Engineering. IEEE, 740–741. doi:10.1109/icsc.2003.1201264
[10] Norman Cliff. 1993. Dominance statistics: Ordinal analyses to answer ordinal questions. Psychological bulletin 114, 3 (1993), 494. doi:10.1037/0033-2909.114.3.494
[11] Anna Corazza, Sergio Di Martino, Valerio Maggio, and Giuseppe Scanniello. 2011. Investigating the use of lexical information for software system clustering. In 2011 15th European Conference on Software Maintenance and Reengineering. IEEE, 35–44. doi:10.1109/csmr.2011.8
[12] Alexander Floren, Loaa Jalal, Zipani Tom Sinkala, and Sebastian Herold. 2021. A Comparison of Machine Learning-Based Text Classifiers for Mapping Source Code to Architectural Modules. In 15th European Conference on Software Architecture.
[13] Dominik Fuchß, Haoyu Liu, Tobias Hey, Jan Keim, and Anne Koziolek. 2025. Enabling architecture traceability by llm-based architecture component name extraction. In 2025 IEEE 22nd International Conference on Software Architecture (ICSA). IEEE, 1–12.
[14] Joshua Garcia, Ivo Krka, Chris Mattmann, and Nenad Medvidovic. 2013. Obtaining ground-truth software architectures. In 35th International Conference on Software Engineering (ICSE). IEEE, 901–910. doi:10.1109/icsc.2013.6606639
[15] Joshua Garcia, Daniel Popescu, Chris Mattmann, Nenad Medvidovic, and Yuanfang Cai. 2011. Enhancing architectural recovery using concerns. In 2011 26th IEEE/ACM International Conference on Automated Software Engineering (ASE 2011). IEEE, 552–555. doi:10.1109/ase.2011.6100123
[16] Aditya Grover and Jure Leskovec. 2016. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining. 855–864. doi:10.1145/2939672.2939754
[17] Daya Guo, Shuai Lu, Nan Duan, Yanlin Wang, Ming Zhou, and Jian Yin. 2022. UniCoder: Unified Cross-Modal Pre-training for Code Representation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 7212–7225.
[18] Mark Harman and Xin Yao. 2010. Software module clustering as a multi-objective search problem. IEEE Transactions on Software Engineering 37, 2 (2010), 264–282. doi:10.1109/tse.2010.26
[19] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition. 770–778.
[20] Ziniu Hu, Yuxiao Dong, Kuansan Wang, and Yizhou Sun. 2020. Heterogeneous graph transformer. In Proceedings of the Web Conference 2020. 2704–2710.
[21] Rakhshanda Jabeen, Morgan Ericsson, Jonas Nordqvist, and Anna Wingkvist. 2025. Graph Convolution Networks for Mapping Source Code Entities to Architectural Modules. In 2025 IEEE 22nd International Conference on Software Architecture Companion (ICSA-C). IEEE, 472–481. doi:10.1109/icsc-a-c65153.2025.00071
[22] Rakhshanda Jabeen, Morgan Ericsson, Jonas Nordqvist, and Anna Wingkvist. 2026. GAER: Graph Auto-Encoders for Unsupervised Software Architecture Recovery. Proceedings of the ACM on Software Engineering 3, FSE, Article FSE180 (July 2026), 22 pages. doi:10.1145/3808187
[23] Rakhshanda Jabeen, Morgan Ericsson, Jonas Nordqvist, and Anna Wingkvist. 2026. Graph Embeddings for Software Architecture Recovery. Nordic Machine Intelligence (2026). doi:10.5617/nmi.13153
[24] Rakhshanda Jabeen, Morgan Ericsson, Jonas Nordqvist, and Anna Wingkvist. 2026. Graph Representation Learning for Software Architecture Recovery. In ESANN.
[25] Rakhshanda Jabeen, Morgan Ericsson, Jonas Nordqvist, and Anna Wingkvist. 2026. When Does the Dependency Graph Help Code-to-Architecture Mapping? arXiv:2610.19769 [cs.SE]. https://arxiv.org/abs/2610.19769
[26] Nils Johansson and Mauro Caporcusio. 2026. Mapping source code to software architecture using embedding models: Insights from an analysis of data properties. Information and Software Technology 198 (2026), 108200. doi:10.1016/j.inf of.2026.108200
[27] Nils Johansson, Mauro Caporcusio, and Tobias Olsson. 2024. Mapping Source Code to Software Architecture by Leveraging Large Language Models. In European Conference on Software Architecture. Springer, 133–149. doi:10.1007/978-3-031-70797-1_8
[28] Masoud Kargar, Ayaz Isazadeh, and Habib Izadkhah. 2017. Semantic-based software clustering using hill climbing. In 2017 International Symposium on Computer Science and Software Engineering Conference (CSSE). IEEE, 55–60. doi:10.1109/cssecse.2017.8320117
[29] Maurice G Kendall. 1938. A new measure of rank correlation. Biometrika 30, 1-2 (1938), 81–93.
[30] Jörg Lenhard, Martin Blom, and Sebastian Herold. 2019. Exploring the suitability of source code metrics for indicating architectural inconsistencies. Software Quality Journal 27, 1 (2019), 241–274.
[31] Thibaud Luttelier, Devin Chollak, Joshua Garcia, Lin Tan, Derek Rayside, Nenad Medvidović, and Robert Kroeger. 2017. Measuring the impact of code dependencies on software architecture recovery techniques. IEEE Transactions on Software Engineering 44, 2 (2017), 159–181. doi:10.1109/tse.2017.2671865
[32] Spiros Mancoridis, Brian S Mitchell, Yihfarn Chen, and Emden R Gansner. 1999. Bunch: A clustering tool for the recovery and maintenance of software system structures. In Proceedings IEEE International Conference on Software Maintenance (ICSM'99). IEEE, 50–59. doi:10.1109/icsm.1999.792498
[33] Onaiza Maqbool and Haroon Atique Babri. 2004. The weighted combined algorithm: A linkage algorithm for software clustering. In Eighth European Conference on Software Maintenance and Reengineering (CSMR 2004). IEEE, 15–24. doi:10.1109/csmr.2004.1281402
[34] Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. Advances in Neural Information Processing Systems 26 (2013).
[35] Janardan Misra, KM Annervaz, Vikrant Kaulgud, Shubhassis Sengupta, and Gary Titus. 2012. Software clustering: Unifying syntactic and semantic features. In 2012 19th Working Conference on Reverse Engineering. IEEE, 113–122. doi:10.1109/wcre.2012.21
[36] Brian S Mitchell and Spiros Mancoridis. 2006. On the automatic modularization of software systems using the bunch tool. IEEE Transactions on Software Engineering 32, 3 (2006), 193–208. doi:10.1109/tse.2006.31
[37] Wiem Mkaouer, Marouane Kessentini, Adnan Shaout, Patrice Koligheu, Slim Bechikh, Kalyanmoy Deb, and Ali Ouni. 2015. Many-objective software remodularization using NSGA-III. ACM Transactions on Software Engineering and Methodology 24, 3 (2015), 1–45. doi:10.1145/2729974
[38] Sina Mohammadi and Habib Izadkhah. 2019. A new algorithm for software clustering considering the knowledge of dependency between artifacts in the source code. Information and Software Technology 105 (2019), 252–256. doi:10.1016/j.infsof.2018.09.001
[39] Vinod Nair and Geoffrey E. Hinton. 2010. Rectified Linear Units Improve Restricted Boltzmann Machines. In Proceedings of the 27th International Conference on Machine Learning (ICML). Omnipress, 807–814. https://www.cs.toronto.edu/~fritz/absps/reluICML.pdf
[40] Rashid Naseem, Mustafa Mat Deris, Onaiza Maqbool, and Sara Shahzad. 2019. Euclidean space based hierarchical clusterers combinations: an application to software clustering. Cluster Computing 22, Suppl 3 (2019), 7287–7311. doi:10.1007/s10586-017-1408-0
[41] Rashid Naseem, Onaiza Maqbool, and Siraj Muhammad. 2013. Cooperative clustering for software modularization. Journal of Systems and Software 86, 8 (2013), 2045–2062. doi:10.1016/j.jss.2013.03.080
[42] Hung Viet Nguyen. 2023. Depends: Multilingual Dependency Analysis Tool. https://github.com/multilang-depends/depends. Accessed: 2025-08-17.
[43] Tobias Olsson, Morgan Ericsson, and Anna Wingkvist. 2019. Semi-automatic mapping of source code using Naive Bayes. In Proceedings of the 13th European Conference on Software Architecture. 209–216.
[44] Tobias Olsson, Morgan Ericsson, and Anna Wingkvist. 2021. s4rdm3x: A Tool Suite to Explore Code to Architecture Mapping Techniques. Journal of Open Source Software 6, 58 (2021).
[45] Tobias Olsson, Morgan Ericsson, and Anna Wingkvist. 2022. To automatically map source code entities to architectural modules with Naive Bayes. Journal of Systems and Software 183 (2022), 111095. doi:10.1016/j.jss.2021.111095
[46] Marios Papachristou. 2019. Software clusterings with vector semantics and the call graph. In Proceedings of the 27th ACM Joint ESEC/FSE. 1184–1186. doi:10.1145/3338906.3342483
[47] David Lorge Parnas. 1972. On the criteria to be used in decomposing systems into modules. Commun. ACM 15, 12 (1972), 1053–1058.
[48] Saeed Parsa and Omid Bushehrian. 2005. A new encoding scheme and a framework to investigate genetic clustering algorithms. Journal of Research and Practice in Information Technology 37, 1 (2005), 127–143.
[49] Babak Pourasghar, Habib Izadkhah, Ayaz Isazadeh, and Shahriar Lotfi. 2021. A graph-based clustering algorithm for software systems modularization. Information and Software Technology 133 (2021), 106469. doi:10.1016/j.infsof.2020.106469
[50] Shiva Prasad Reddy Puchala, Jitender Kumar Chhabra, and Amit Rathee. 2022. Ensemble clustering based approach for software architecture recovery. International Journal of Information Technology 14, 4 (2022), 2013–2019. doi:10.1007/s41870-021-00846-0
[51] Amit Rathee and Jitender Kumar Chhabra. 2017. Software remodularization by estimating structural and conceptual relations among classes and using hierarchical clustering. In Advanced Informatics for Computing Research: ICAICR 2017. Springer, 94–106. doi:10.1007/978-981-10-5780-9_9
[52] Mark Richards and Neal Ford. 2025. Fundamentals of Software Architecture: A Modern Engineering Approach. O'Reilly Media.
[53] Michele Risi, Giuseppe Scanniello, and Genoveffa Tortora. 2012. Using fold-in and fold-out in the architecture recovery of software systems. Formal Aspects of Computing 24, 3 (2012), 307–330. doi:10.1007/s00165-011-0199-y
[54] Jeanine Romano, Jeffrey D Kromrey, Jesse Coraggio, and Jeff Skowronek. 2006. Appropriate statistics for ordinal level data: Should we really be using t-test and Cohen's d for evaluating group differences on the NSSE and other surveys. In
annual meeting of the Florida Association of Institutional Research, Vol. 177.
[55] Satrio Adi Rukmono, Lina Ochoa, and Michel Chaudron. 2024. Deductive software architecture recovery via chain-of-thought prompting. In 44th International Conference on Software Engineering: New Ideas and Emerging Results. 92–96. doi:10.1145/3639476.3639776
[56] Nafiseh Sadat Jalali, Habib Izadkhah, and Shahriar Lotfi. 2019. Multi-objective search-based software modularization: Structural and non-structural features. Soft Computing 23, 21 (2019). doi:10.1007/s00500-018-3666-z
[57] Zipani Tom Sinkala and Sebastian Herold. 2021. InMap: Automated Interactive Code-to-Architecture Mapping Recommendations. In 18th International Conference on Software Architecture. 173–183.
[58] Zipani Tom Sinkala and Sebastian Herold. 2023. An integrated approach to package and class code-to-architecture mapping using InMap. In 2023 IEEE 20th International Conference on Software Architecture (ICSA). IEEE, 164–174.
[59] Navid Teymourian, Habib Izadkhah, and Ayaz Isazadeh. 2020. A fast clustering algorithm for modularization of large-scale software systems. IEEE Transactions on Software Engineering 48, 4 (2020), 1451–1462. doi:10.1109/tse.2020.3022212
[60] Vassilios Tzerpos and Richard C Holt. 1997. The orphan adoption problem in architecture maintenance. In Working Conference on Reverse Engineering. IEEE, 76–82.
[61] Aäron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation Learning with Contrastive Predictive Coding. arXiv preprint arXiv:1807.03748 (2018).
[62] Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. 2017. Graph attention networks. arXiv preprint arXiv:1710.10903 (2017). doi:10.48550/arXiv.1710.10903
[63] Frank Wilcoxon. 1945. Individual comparisons by ranking methods. Biometrics bulletin 1, 6 (1945), 80–83. doi:10.2307/3001968
[64] Kaiyuan Yang, Junfeng Wang, Zhiyang Fang, Peng Wu, and Zihua Song. 2022. Enhancing software modularization via semantic outliers filtration and label propagation. Information and Software Technology 145 (2022), 106818. doi:10.1016/j.infsof.2021.106818
[65] Yiran Zhang, Zhengzi Xu, Chengwei Liu, Hongxu Chen, Jianwen Sun, Dong Qiu, and Yang Liu. 2023. Software architecture recovery with information fusion. In Proceedings of the 31st ACM Joint ESEC/FSE. 1535–1547. doi:10.1145/3611643.3616285