arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.16822

DTA-GT: Direction- and Topology-Aware Graph Transformer for Neural Network Representation Learning

Yuxiang Zeng, Kun Xie, Yang Wang, Jigang Wen, Xiaocan Li, Guangxing Zhang, Gaogang Xie, Jiannong Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Architecture attribute predictors reduce the cost of neural architecture search by estimating accuracy or latency from a small set of evaluated candidates. The key difficulty is that neural architectures are operation-labeled DAGs: edge direction defines computational flow, but existing predictors often treat direction as a local structural cue. We propose DTA-GT, a Direction- and Topology-Aware Graph Transformer based on encoder-wide directional consistency, which preserves directed computational semantics across node initialization, global spectral encoding, pairwise interaction, and feature update. DTA-GT realizes this principle with direction- and topology-aware node initialization, Magnetic Laplacian spectral encoding, direction-dual structural attention, and a Direction-Sensitive MoE-FFN. Across accuracy and latency prediction on NAS-Bench-101 and NAS-Bench-201, DTA-GT consistently outperforms representative sequence-, GNN-, Transformer-, and hybrid predictors under limited-budget settings. Ablations and Magnetic spectral controls support the contribution of the direction-aware stages and orientation-sensitive spectral information, while mechanistic diagnostics characterize module behavior. These results support encoder-wide directional consistency as an effective design principle for architecture DAG representation.

Code: https://github.com/ZengYuXiang7/DTA-GT

1 Introduction

Deep learning has been widely applied across various fields [1–6]. Neural architecture design is central to task performance and deployment efficiency, and Neural Architecture Search (NAS) automates this process by searching a candidate architecture space for models that meet performance and deployment constraints [7–12]. However, evaluating candidates during search is expensive: accuracy typically requires full network training, while latency requires hardware measurement or profiling. A practical way to reduce this cost is to train predictors under a limited evaluation budget, where only a small subset of candidate architectures is evaluated and the remaining unseen candidates are estimated by the predictor [13–16].

∗^{*}This is a preprint of a paper accepted at NeurIPS 2026. This version may contain errors. Each revised preprint supersedes earlier preprint versions. The forthcoming camera-ready version will supersede all preprints and should be treated as authoritative.

†^{\dagger}Kun Xie is the corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Table 1: Topology and direction modeling in representative architecture predictors.

CategoryRepresentative MethodsModeling ParadigmTopology EncodingLocal Direction CuesGlobal Direction PriorDirection-Specific Update
Sequence-based[8, 17, 18]Sequence/vector serialization○○○○
GNN-based[13, 19–21]GNN-based message passing●①○①
Transformer-based[14, 24–26]Topology-aware token-attention①①○○
Hybrid[15, 16, 27]GNN-Transformer hybrid●①○①
ProposedDTA-GTDirection- and Topology-Aware Graph Transformer●●●●

Note: Symbols indicate whether each dimension is explicitly and centrally modeled (●), partially or locally modeled (①), or absent/non-central (○). The comparison is qualitative and design-oriented rather than a performance ranking. Global direction prior refers to an explicit graph-level direction-aware structural or spectral prior, not merely local edge-direction cues.

Learning-based predictors therefore rely on continuous representations of candidate architectures. This representation problem is nontrivial because a neural architecture is an operation-labeled directed acyclic graph (DAG), rather than a mere undirected connectivity pattern. A directed edge u→vu \rightarrow v indicates that the output of operation u feeds into operation v, so the representation should preserve directed information flow. For accuracy and latency prediction, this requires capturing operator composition along directed paths, branch splitting and merging, and reachability-related dependencies. If direction is discarded, the graph skeleton may still be retained, but upstream/downstream roles, split/merge structures, and forward dependencies can be blurred. Reversing a single edge in Fig. 1 swaps the split/merge roles of operations A and B without changing the undirected skeleton.

G1G_{1}: A splits ⋅\cdot B merges

Figure

G2G_{2}: A merges ⋅\cdot B splits

Figure

Discard direction ↓

Same undirected skeleton

Figure 1: Discarding direction obscures node roles. Their undirected skeletons match.

Table 1 provides a design-oriented comparison of representative predictor families with respect to explicit topology and direction modeling. Despite the need to preserve directed computational semantics, existing predictors cover these aspects only partially. Sequence-based methods [8, 17, 18] linearize architectures and can obscure explicit DAG topology and edge-direction semantics. GNN-based predictors [13, 19–22] explicitly model architecture graphs and local edge directions, but higher-order topology and long-range directed dependencies rely on repeated local message passing, where global structural and directional patterns can be weakened. Transformer and hybrid methods [14–16, 23–25] use self-attention to capture long-range interactions and inject topology-aware cues through operation/topology tokenization, graph-aided attention, relation masks, or bidirectional aggregation. However, these designs still treat direction as scattered structural cues rather than a coordinated modeling principle. They provide partial directional signals, but usually leave them local or stage-specific rather than combining topology encoding, local direction cues, a global direction prior, and direction-aware updates in one encoder. Thus, the main gap is not whether graph structure is used, but whether directional semantics are modeled consistently across the encoder.

The challenge is therefore to preserve the asymmetry induced by directed computation while still capturing DAG topology, motivating the following question:

How can a neural architecture encoder explicitly model directed computational semantics while capturing DAG topology?

Our key insight is that directionality in architecture DAGs should be preserved throughout representation learning, rather than injected once as a structural cue. We define encoder-wide directional consistency as the requirement that directed computational semantics be preserved across node-role encoding, global direction-aware spectral encoding, pairwise interaction, and feature update. Without such consistency, direction-aware cues introduced at one stage may be diluted by later direction-agnostic transformations. This motivates preserving direction across the main encoder stages rather than relying on an isolated structural signal.

We propose DTA-GT, a Direction- and Topology-Aware Graph Transformer designed to preserve directed computational semantics throughout the encoder. DTA-GT realizes encoder-wide directional consistency through four coordinated modules: direction- and topology-aware node initialization makes directed node roles available from the input stage; Magnetic Laplacian spectral encoding supplies a global edge-orientation-sensitive spectral prior; direction-dual structural attention guides pairwise interaction with separated directional relation channels; and a Direction-Sensitive MoE-FFN preserves predecessor/successor distinctions during feature update. Together, these modules prevent directional information from being reduced to an isolated structural cue. We evaluate DTA-GT on four prediction settings spanning accuracy and latency prediction over NAS-Bench-101 and NAS-Bench-201. Across multiple limited-budget settings and evaluation metrics, DTA-GT consistently improves over representative predictors. Stage-wise ablations assess the contribution of the coordinated direction-aware stages, Magnetic spectral controls isolate the effect of the edge-orientation-sensitive spectral prior, and mechanistic diagnostics examine whether the internal behaviors align with the intended directed computational semantics. Our contributions are:

• We formulate encoder-wide directional consistency as a design principle for architecture DAG representation, shifting direction modeling from isolated structural cues to coordinated preservation of directed computational semantics throughout the encoder.

• We introduce DTA-GT, which integrates direction- and topology-aware node initialization, Magnetic Laplacian spectral encoding, direction-dual structural attention, and a Direction-Sensitive MoE-FFN. These modules jointly model directed node roles, a global edge-orientation-sensitive spectral prior, relation-aware interactions, and predecessor/successor-aware updates, thereby strengthening topology-aware architecture representations and providing a stronger inductive bias for limited-budget prediction.

• We conduct a unified evaluation on accuracy and latency prediction over standard NAS benchmarks, with stage-wise ablations, Magnetic spectral controls, and mechanistic diagnostics to analyze the contribution and behavior of the proposed direction-aware stages.

References (37)