Manuscript Offprint
arXiv:2608.27794Node-wise Feature Encoding for Neural Performance Prediction
Abstract
As neural networks are increasingly deployed on resource constrained edge devices, accurate prediction of latency and energy is critical for efficient neural architecture search. Existing GNN and transformer based predictors achieve strong results but largely ignore node-level computational cost, limiting their ability to model performance critical operations. To address this, we introduce FeatureFormer, a neural performance predictor that incorporates explicit node-wise encodings of FLOPs, parameter counts, and memory proxies within a gated graph attention architecture. We also present NNEQ, a new large-scale energy consumption dataset that enables unified evaluation of latency and energy prediction. Extensive experiments demonstrate that FeatureFormer achieves state-of-the-art performance across both metrics, including challenging out-of-domain settings. Finally, we show that the proposed encoding is broadly applicable and consistently improves existing predictors with negligible overhead.
1 Introduction
Deep neural networks have achieved strong performance across a wide range of domains, particularly in computer vision. However, the growing complexity of modern architectures has made efficient deployment on resource-constrained edge devices increasingly challenging, as applications must satisfy strict constraints on latency, energy consumption, and memory usage. Neural architecture search (NAS) (Elsken et al., 2019; Wang & Zhu, 2024) addresses this challenge by reformulating network design as a search problem, and many hardware-aware variants (Cai et al., 2018; Tan et al., 2019; Wu et al., 2019) explicitly optimize for metrics like latency and energy alongside accuracy, making them well suited to edge deployment.

Figure 1: Overview of the proposed neural performance predictor integrated into a neural architecture search (NAS) procedure. By replacing direct measurements of latency and energy with a predictive model, the hardware-aware NAS can be greatly accelerated.
- Equal contribution.
† Corresponding authors: mgrenier@email.sc.edu, whammer@email.sc.edu, aheuer@email.sc.edu, nkrishna@email.sc.edu.
NNFormer Average Attention Heat Map Without Node-level Static Features

(a) Without our encoding method
NNFormer Average Attention Heat Map With Node-level Static Features

(b) With our encoding method
Figure 2: Last-layer attention scores of NN-Former (Xu et al., 2025), averaged over 200 AlexNet models from the NNLQ dataset (Liu et al., 2022) that share the same architecture. (a) Without the proposed encoding, attention is evenly distributed, often favoring computationally inexpensive operations (e.g., ReLU). (b) With the proposed encoding, attention concentrates on operations that are more relevant for latency prediction, such as convolutions.
Because repeated on-device latency and energy measurements make hardware-aware NAS expensive, many frameworks instead train neural performance predictors (Cai et al., 2017; Qi et al., 2017) that estimate these metrics directly from an architecture's structure (e.g., fig. 1). Such predictors typically represent networks as directed acyclic graphs, with recent work moving from message-passing GNNs (Liu et al., 2022; Dudziak et al., 2020; Panner Selvam & Brorsson, 2023) to graph transformers (Yi et al., 2023a;b; Xu et al., 2025) to better capture topological relationships between operations. While these methods perform well, they approach the problem primarily from a topological perspective, leaving node-level computational information largely unexploited.
To this end, we argue that a significant amount of highly relevant information inherent in neural architectures remains underutilized. In particular, prior graph-based predictors do not explicitly incorporate layer-specific computational information such as floating point operation (FLOP) counts or parameter sizes at the node-level, so operations that dominate latency or energy consumption are treated similarly to those with negligible cost. As shown in fig. 2a, this leaves attention distributed relatively evenly across operations, regardless of whether a node corresponds to a lightweight layer such as ReLU or a computationally intensive one such as convolution.
To address this limitation, we introduce FeatureFormer, a neural architecture performance predictor that incorporates node-level computational information into neural network representations. FeatureFormer augments each node with computational attributes derived from the underlying operation, including FLOP counts and parameter sizes, providing a topology-independent heuristic of a layer's computational cost. As illustrated in fig. 2b, this encoding causes attention to concentrate strongly on operations that dominate inference cost, while inexpensive layers receive little emphasis. FeatureFormer further introduces a gating-augmented attention mechanism that improves the effectiveness of graph-based neural architecture predictors. The key contributions of this work are as follows:
- We propose FeatureFormer, a new model for neural architecture prediction that combines architectural and encoding innovations to achieve state-of-the-art performance for inference latency and energy consumption prediction.
• We introduce NNEQ, an expanded version of the NNLQ (Liu et al., 2022) dataset, that includes energy consumption measurements, providing a large and easily adoptable dataset for training neural predictors.
• We provide detailed analyses demonstrating that the proposed encoding approach is applicable to existing methods, offering a means to improve prediction accuracy with negligible trade-offs.
2.1 Neural Architecture Performance Prediction
Neural architecture performance prediction aims to estimate attributes such as inference latency or energy consumption to accelerate neural architecture search. Early approaches relied on lightweight models (Ni et al., 2022; Bouzidi et al., 2020; Cai et al., 2017), lookup tables (Cai et al., 2019; Wu et al., 2019; Cai et al., 2018; Yang et al., 2018), or simple performance proxies (Yu et al., 2020; Qi et al., 2017; Juneja et al., 2025). NeuralPower (Cai et al., 2017), for example, uses polynomial regression to predict latency and power at the layer level, while Paleo (Qi et al., 2017) estimates runtime using zero cost proxies such as FLOP count combined with hardware characteristics. More recent proxy-based methods improve upon these approaches by modeling performance at the level of execution kernels rather than individual layers. Kernel-based predictors such as NN-Meter (Zhang et al., 2021) or that of Tu et al. (2023) leverage fused operation measurements collected across hardware platforms to achieve higher accuracy. Similar techniques have also been applied to specialized accelerators like TPUs (Kaufman et al., 2019). However, these methods require extensive profiling and inaccurately simplify the problem (e.g., assuming total latency is equal to the sum of kernel latency), motivating the use of graph-based predictors that explicitly model architectural structure.
2.2 GNN-based predictors
To address the limitations of kernel based approaches, GNN-based predictors (Zhou et al., 2024; Panner Selvam & Brorsson, 2023; Dudziak et al., 2020; Liu et al., 2022; Kaufman et al., 2021) have become the dominant paradigm for latency and energy prediction. GNNs, particularly message passing models such as Graph Convolutional Networks (GCNs) (Kipf, 2016), operate on graph structured data by aggregating information from neighboring nodes. Early methods such as BRP-NAS (Dudziak et al., 2020) demonstrated the effectiveness of GCN based predictors for joint accuracy and latency estimation within NAS. By modeling graph topology, these methods achieve significantly higher accuracy than approaches based solely on zero cost proxies such as FLOPs. Building on this idea, NNLQP (Liu et al., 2022) introduced a GraphSAGE (Hamilton et al., 2017) based predictor that incorporates additional layer level features, including kernel size and stride, for CNN latency prediction. To further enrich the representation, NNLQP appended a global feature vector containing information such as FLOPs and parameter count to the aggregated output of the GraphSAGE encoder before regression. NNLQP's encoding established the foundation for using zero cost proxies to augment graph-based predictions, but it, and the works that follow (Xu et al., 2025; Yi et al., 2023a;b), do not integrate layer level FLOPs and parameters directly into node representations.
2.3 Transformer Based Predictors
Recent approaches for neural architecture performance prediction adopt graph transformer-based models (Yun et al., 2019; Luo et al., 2023). Graph transformers are appealing due to their attention mechanisms and global receptive field, which allow them to capture long range dependencies. However, a fully global view has been shown to be suboptimal for latency prediction, as nodes that are far apart in the graph often have little relevance to each other in terms of execution time. This limitation is evident in NAR-Former (Yi et al., 2023a), which performs well for accuracy prediction but fails to outperform earlier methods such as NNLQP (Liu et al., 2022) for latency prediction.
To mitigate this issue, NAR-Former V2 (Yi et al., 2023b) introduced masked attention based on the adjacency matrix to suppress interactions between distant nodes. Further extending this idea, NN-Former (Xu et al.,

Figure 3: Overview of the proposed FeatureFormer architecture, utilizing global and node-level computational features at different stages of the model.
(2025) incorporated masking between parallel nodes, as such relationships are important for latency prediction due to the potential for parallel execution. While these methods improve topological modeling, they largely retain the encoding strategy introduced by NNLQP with only minor modifications. As a result, individual nodes still lack explicit information about their computational cost. In this work, we address this limitation by adding computational cost directly into the node features, complementing the topological information.
3 Methods
Figure 3 shows the overall architecture of our FeatureFormer model, which is composed of two main components: a feature encoding stage that produces node-level representations, and a relationship encoding stage that uses our gated graph attention mechanism to model interactions between nodes in the input architecture. The resulting node representations are then summed, concatenated with global computational features, and passed through a regression head to produce the final latency or energy prediction.
3.1 Feature Encoding Stage
The goal of the feature encoding stage is to provide the model with sufficient information to accurately identify how each node contributes to the inference latency or energy consumption of a given input architecture.
For each node, we generate a vector consisting of three segments: operation type, node attributes, and node computational information. The operation type segment is a one-hot encoding of the operation performed by the node, such as a convolution or ReLU. The node attribute segment contains general information that may influence runtime. At a minimum, this includes the output shape of each layer. For layers with additional structure, such as convolutions, this segment also includes attributes such as kernel size, stride, and padding. Similar to Liu et al. (2022), we encode these attributes using sinusoidal encodings. As shown in eq. (1), where x denotes the input value and N is half of the desired embedding length, these encodings can be viewed as a generalization of those proposed in Vaswani et al. (2017) to arbitrary floating point inputs rather than fixed positional indices. The motivation behind this choice of encoding is similar to that described in Tancik et al. (2020), to map single scalars to a higher dimension and allow the model to learn more complex relationships between them. In fact, this method is effectively a Fourier feature encoding. This specific equation was chosen as the frequencies are log-spaced, hence very large ranges of values can be effectively encoded. This is crucial for effectively encoding computational information such as FLOPs or parameters which may range from the thousands to the billions.
The final segment of the node encoding consists of computational proxies. These include the number of FLOPs, the number of parameters, and the multiplied output shape of the layer plus the layer's parameter count, which serves as a proxy for the number of memory operations performed by the given layer. As with the node attributes, these values are encoded using the sinusoidal encodings defined in eq. (1). The final

Figure 4: Detailed view of an encoder block within our proposed model. In the figure, corresponds to the adjacency based mask used for a given attention head, selected from , , , or . For FeatureFormer, we utilize , , and while refers to the sequence length.
node representation is formed by concatenating the three segments, as shown in eq. (2), where , , and denote the operation type encoding, attribute encoding, and computational encoding, respectively.
3.2 Relationship Encoding Stage
Given the encoded node representations produced by the feature encoding stage, the relationship encoding stage aims to model how individual operations interact and jointly contribute to the overall latency or energy consumption of the input architecture. The core component of the relationship encoding stage is the encoder block, which is repeated four times to match the number of message passing layers used in NN-Former (Xu et al., 2025). As illustrated in fig. 4, each encoder block consists of a gated graph self attention (GGSA) module followed by a standard two layer feed forward network with ReLU activation.
The GGSA module uses four attention heads, each of which is masked according to a different view of the local graph structure. The first two heads attend over one hop adjacency, using masks A and to capture forward and backward connections, respectively. Following NN-Former (Xu et al., 2025), the remaining two heads attend over sibling relationships. These correspond to nodes that share a common parent, represented by , and nodes that share a common child, represented by . Such sibling relationships help identify operations that are capable of being executed in parallel. This masking approach is supported by the empirical findings in (Xu et al., 2025).
Since each attention head operates over a different adjacency view, we add a gating mechanism so the model can combine their outputs nonlinearly, selectively emphasizing or suppressing a given view of the network. The gating function, shown in eq. (3), (where ) follows a multiplicative sigmoid ( ) formulation, consistent with the analysis presented in Qiu et al. (2025).
The full GGSA module is defined as:
where the computation of each head's output is described by
where , denotes the identity matrix, and is the binarization function. The matrices , , and where , , correspond to the query, key, and value projections for each attention head.
4 Experiments
To evaluate the effectiveness of FeatureFormer and our encoding method for real-world latency and energy prediction, we consider two primary scenarios. We first focus on out-of-domain prediction (sections 4.2 and 4.3), then focus briefly on in-domain prediction (section 4.4), highlighting the superiority of FeatureFormer in each setting. Across all configurations, we compare our approach to prior state-of-the-art methods and include additional baselines when available. Full training procedures and hyperparameter details are provided in appendix A.
4.1 Datasets
To benchmark our architecture against prior state-of-the-art latency and energy predictors, we use the standard Neural Network Latency Query (NNLQ) (Liu et al., 2022) dataset, consistent with works such as Liu et al. (2022); Yi et al. (2023a;b); Xu et al. (2025). In addition, to address the lack of a large, open dataset for inference energy prediction, we introduce the Neural Network Energy Query (NNEQ) dataset, a new dataset consisting of energy measurements for various CNNs families. To ensure compatibility with prior work and allow for easy adoption, NNEQ adopts the same dataset structure as by NNLQ, but provides additional measurements recorded on a different hardware platform. This paired design allows performance predictors to be evaluated on both latency and energy prediction, providing a more complete picture of performance across hardware platforms and metrics. Shown in fig. 5, the distributions of the two datasets vary substantially.
Both datasets include readings from 20,000 models across 10 model families: AlexNet (Krizhevsky et al., 2012), EfficientNet (Tan & Le, 2019), GoogLeNet (Szegedy et al., 2015), MnasNet (Tan et al., 2019), MobileNetV2 (Sandler et al., 2018), MobileNetV3 (Howard et al., 2019), NASBench201 (Dong & Yang, 2020), ResNet(He et al., 2016), SqueezeNet (Iandola et al., 2016), and VGG16 (Simonyan & Zisserman, 2014). Although NNLQ latency measurements were collected on an Nvidia GTX 1660 GPU, we chose to adopt a different, more modern, hardware platform in the Jetson AGX Orin (64 GB) for collecting NNEQ. We note that, although they were not used in this work to maintain continuity with previous studies, latency measurements collected on the Jetson AGX Orin were also included in the NNEQ dataset. As a result, paired latency and energy prediction on the same platform is possible.
As with NNLQ, all NNEQ models were optimized with TensorRT, with inference energy being measured over a 60 second period. Static features by contrast, such as FLOPs, parameters, and kernel sizes, were precomputed or extracted directly from the model's ONNX graph, in line with prior works (Liu et al., 2022; Yi et al., 2023b; Xu et al., 2025).
4.2 Latency Prediction
Following prior works which utilize out-of-domain prediction (Liu et al., 2022; Yi et al., 2023b; Xu et al., 2025), we adopt a leave-one-out protocol in which models are trained on nine of the ten model families
NNLQ Latency Values by Model

NNEQ Energy Values by Model
Figure 5: NNLQ (Liu et al., 2022) (left) and NNEQ (right) ground truth latency and energy measurements across model families.
and evaluated on the held-out family. This procedure is repeated for every held-out family and across ten random seeds. Results are averaged across families to assess a model's ability to generalize to unseen model architectures.
We report two metrics: Mean Absolute Percentage Error (MAPE) and 10% error bounded accuracy (Acc(10%)). MAPE captures average predictive error while Acc(10%) indicates how often predictions fall within 10% of the ground truth, which is used to indicate a "good enough" prediction. Results are shown in table 1. FeatureFormer achieves state-of-the-art performance on both metrics, improving over the previous best method, NN-Former (Xu et al., 2025), by 1.15 percentage points in MAPE and by 2.88 percentage points in Acc(10%). We also outperform prior methods by a wide margin on several individual families, including NasBench201, MnasNet, and GoogLeNet. Although our performance on the VGG family trails NNLP (Liu et al., 2022) and NAR-Former V2 (Yi et al., 2023b), we still outperform NN-Former on said family, indicating a more well rounded model. Furthermore, it is clear that NN-Meter (Zhang et al., 2021), the selected representative of kernel level predictors, is outperformed by the graph-based methods. This observation leads us to focus solely on GNN based methods for the remainder of this work.
4.3 Energy Prediction
Since NNEQ matches NNLQ (Liu et al., 2022) in model content, we use the same metrics, training protocol, and hyperparameters as in the latency experiments. Results are shown in table 2. Mirroring latency prediction, FeatureFormer achieves state-of-the-art accuracy for energy prediction, with an average MAPE improvement of 0.85 percentage points and a 3.93 percentage point gain in Acc(10%) over the next best method. Notably, the ranking of competing methods differs from the latency case: NNLP (Liu et al., 2022) outperforms NN-Former (Xu et al., 2025) in MAPE on NNEQ, while NN-Former retains an advantage in Acc(10%). This pattern suggests that GNN-based methods like NNLP can achieve high average accuracy, but may be less consistent than transformer-based models such as NN-Former in producing predictions within tight error bounds.
4.4 In-Domain Prediction
Following Yi et al. (2023b); Xu et al. (2025), we additionally conducted experiments on in-domain prediction, the case where the models are trained and tested on the same distribution. To do this, from each model family, 1800 models were randomly selected for training, leaving the remaining 200 for testing, totaling 18000 train and 2000 test models. The results for these experiments are shown in table 3. For latency prediction
Table 1: Out-of-domain Latency Prediction on NNLQ (Liu et al., 2022). Models are trained on 9 domains and tested on the 10th, hence a "Test Domain" of AlexNet means that the models were trained on all non AlexNet models, with zero shot prediction being performed on AlexNet. When applicable, metrics (MAPE and Acc (10%)) are reported on the average and best over a set of 10 independent trials.
| Metric | Test Domain | nn-MeterZhang et al. (2021)MobiSys 2021 (avg) | NNLPLiu et al. (2022)ICPP 2022 (avg / best) | NAR-Former V2Yi et al. (2023b)NeurIPS 2023 (avg / best) | NN-FormerXu et al. (2025)CVPR 2025 (avg / best) | FeatureFormerOurs (avg / best) |
|---|---|---|---|---|---|---|
| MAPE ↓ | AlexNet | 7.20 | 10.64 / 9.71 | 24.28 / 18.29 | 11.47 / 11.17 | 10.15 / 9.51 |
| EfficientNet | 18.93 | 21.46 / 18.72 | 13.20 / 11.37 | 5.13 / 4.81 | 4.61 / 3.53 | |
| GoogLeNet | 11.71 | 13.28 / 10.90 | 6.61 / 6.15 | 6.74 / 6.65 | 4.85 / 4.77 | |
| MnasNet | 10.69 | 12.07 / 10.86 | 7.16 / 5.93 | 2.71 / 2.54 | 1.91 / 1.79 | |
| MobileNetV2 | 6.43 | 8.87 / 7.34 | 6.73 / 5.65 | 4.17 / 3.66 | 2.90 / 2.30 | |
| MobileNetV3 | 35.27 | 14.57 / 13.17 | 9.06 / 8.72 | 9.07 / 9.03 | 8.01 / 7.71 | |
| NasBench201 | 9.57 | 9.60 / 8.19 | 9.21 / 7.89 | 7.93 / 7.71 | 6.79 / 4.98 | |
| ResNet | 15.58 | 7.54 / 7.12 | 6.80 / 6.44 | 7.49 / 7.38 | 7.98 / 7.10 | |
| SqueezeNet | 18.69 | 9.84 / 9.52 | 7.08 / 6.56 | 9.08 / 7.05 | 6.41 / 5.86 | |
| VGG | 19.47 | 7.60 / 7.17 | 15.40 / 14.26 | 20.12 / 19.64 | 18.79 / 17.30 | |
| Average | 15.35 | 11.55 / 10.27 | 10.55 / 9.13 | 8.39 / 7.96 | 7.24 / 6.48 | |
| Acc (10%) ↑ | AlexNet | 75.45 | 59.07 / 64.40 | 24.65 / 28.60 | 56.08 / 57.10 | 60.76 / 64.40 |
| EfficientNet | 23.40 | 25.37 / 28.80 | 44.01 / 50.20 | 90.85 / 90.90 | 90.59 / 95.95 | |
| GoogLeNet | 47.40 | 36.30 / 48.75 | 80.10 / 83.35 | 80.43 / 83.40 | 89.71 / 90.55 | |
| MnasNet | 60.95 | 55.89 / 61.25 | 73.46 / 81.60 | 98.65 / 98.70 | 99.76 / 99.85 | |
| MobileNetV2 | 80.75 | 63.03 / 72.50 | 78.45 / 83.80 | 94.90 / 96.85 | 97.31 / 99.65 | |
| MobileNetV3 | 23.45 | 43.26 / 49.65 | 68.43 / 70.50 | 74.18 / 74.30 | 73.38 / 75.75 | |
| NasBench201 | 60.65 | 60.70 / 70.60 | 63.13 / 71.70 | 69.90 / 71.10 | 77.28 / 90.25 | |
| ResNet | 39.45 | 72.88 / 76.40 | 77.24 / 79.70 | 70.83 / 71.55 | 69.01 / 75.25 | |
| SqueezeNet | 36.20 | 58.69 / 60.40 | 75.01 / 79.25 | 77.85 / 80.95 | 79.05 / 83.55 | |
| VGG | 26.50 | 71.04 / 73.75 | 45.21 / 45.30 | 29.40 / 29.85 | 35.04 / 39.25 | |
| Average | 47.42 | 54.62 / 60.65 | 62.97 / 67.40 | 74.31 / 75.47 | 77.19 / 81.45 |
Table 2: Out-of-domain Energy Prediction on NNEQ. The testing procedure is shared with that of table 1
| Metric | Test Domain | NNLPLiu et al. (2022)(avg / best) | NAR-Former V2Yi et al. (2023b)(avg / best) | NN-FormerXu et al. (2025)(avg / best) | FeatureFormer(avg / best) |
|---|---|---|---|---|---|
| MAPE ↓ | AlexNet | 10.70 / 8.06 | 16.68 / 12.44 | 7.74 / 5.94 | 7.29 / 5.42 |
| EfficientNet | 6.45 / 6.02 | 4.49 / 4.09 | 3.24 / 2.80 | 2.89 / 2.47 | |
| GoogLeNet | 3.89 / 3.49 | 3.44 / 3.31 | 3.83 / 3.45 | 3.63 / 3.35 | |
| MnasNet | 9.18 / 7.81 | 4.49 / 4.01 | 3.28 / 2.72 | 3.10 / 2.72 | |
| MobileNetV2 | 5.98 / 4.94 | 3.78 / 3.42 | 3.34 / 2.93 | 3.04 / 2.70 | |
| MobileNetV3 | 13.75 / 7.36 | 8.23 / 7.26 | 4.59 / 4.36 | 5.18 / 4.79 | |
| NasBench201 | 10.80 / 8.36 | 11.23 / 9.09 | 15.67 / 6.15 | 8.94 / 7.45 | |
| ResNet | 5.69 / 5.45 | 5.31 / 5.03 | 5.00 / 4.62 | 4.65 / 4.36 | |
| SqueezeNet | 6.96 / 6.34 | 6.11 / 5.47 | 5.20 / 4.75 | 4.57 / 4.15 | |
| VGG | 4.71 / 4.53 | 15.98 / 14.93 | 26.47 / 25.49 | 23.05 / 21.17 | |
| Average | 7.81 / 6.24 | 7.97 / 6.91 | 7.84 / 6.32 | 6.63 / 5.86 | |
| Acc (10%) ↑ | AlexNet | 60.85 / 72.25 | 43.73 / 63.40 | 69.95 / 80.05 | 73.52 / 85.80 |
| EfficientNet | 78.48 / 82.40 | 92.11 / 94.75 | 97.90 / 99.10 | 98.62 / 99.75 | |
| GoogLeNet | 96.03 / 97.55 | 97.32 / 97.95 | 95.40 / 97.35 | 96.62 / 97.95 | |
| MnasNet | 58.99 / 69.95 | 92.37 / 95.40 | 98.04 / 99.20 | 98.76 / 99.75 | |
| MobileNetV2 | 81.72 / 88.15 | 95.93 / 97.40 | 97.62 / 98.75 | 98.48 / 99.15 | |
| MobileNetV3 | 36.10 / 72.60 | 68.45 / 74.35 | 91.16 / 92.30 | 87.67 / 89.70 | |
| NasBench201 | 55.17 / 66.55 | 55.43 / 65.35 | 45.37 / 79.95 | 64.61 / 73.90 | |
| ResNet | 84.58 / 86.10 | 86.90 / 89.45 | 89.04 / 91.70 | 91.37 / 93.30 | |
| SqueezeNet | 75.43 / 79.75 | 80.61 / 85.20 | 87.43 / 90.25 | 91.56 / 94.35 | |
| VGG | 89.89 / 90.85 | 45.31 / 52.35 | 13.12 / 19.10 | 23.10 / 28.15 | |
| Average | 71.72 / 80.62 | 75.81 / 81.56 | 78.50 / 84.78 | 82.43 / 86.18 |
on NNLQ (Liu et al., 2022), we outperform the previous state-of-the-art model NN-Former (Xu et al., 2025) by 0.28 MAPE and Acc(10%) of 0.13 on average. Additionally, for the case of energy prediction on NNEQ, we once again substantially outperform NN-Former by 0.63 MAPE and 0.85 Acc(10%). Notably, our average performance on NNEQ across 10 seeds is better than the best performance of any other models, highlighting the effectiveness of our method.
Table 3: In-domain latency and energy prediction on NNLQ (Liu et al., 2022) and NNEQ. As in tables 1 and 2, each result is reported over 10 independent experiments.
| Dataset | Metric | NNLP Liu et al. (2022) (avg / best) | NAR-Former V2 Yi et al. (2023b) (avg / best) | NN-Former Xu et al. (2025) (avg / best) | FeatureFormer (avg / best) |
|---|---|---|---|---|---|
| NNLQ | MAPE ↓ | 3.47 / 3.44 | 3.07 / 3.00 | 2.85 / 2.65 | 2.57 / 2.46 |
| Acc (10%) ↑ | 95.25 / 95.50 | 96.41 / 96.30 | 97.45 / 97.85 | 97.58 / 97.95 | |
| NNEQ | MAPE ↓ | 3.70 / 3.57 | 3.02 / 2.89 | 2.77 / 2.50 | 2.14 / 2.06 |
| Acc (10%) ↑ | 95.89 / 97.05 | 97.91 / 98.45 | 98.46 / 99.30 | 99.31 / 99.60 |
4.5 Encoding Experiments
Beyond evaluating our full model, we test the impact of our encoding by adding to several prior models that also employ NNLP-style encodings. These models all make use of some level of and , although the exact makeup and relative length of each segment differs. Due to the possibility that the introduction of could change the optimal length of and , we conducted a small grid search for each model, aiming to discern the optimal length and when coupled with . For simplicity, we kept the length of fixed between all models. Tables 4 and 5 summarize these results by reporting the average MAPE/Acc(10%) on NNLQ (Liu et al., 2022) and NNEQ, respectively. Adding substantially improves MAPE and Acc(10%) for almost every model and task. For example, NNLP gains 8.04 percentage points in average Acc(10%) on NNLQ after the introduction of . The only exception is a slight drop in average MAPE and Acc(10%) for NN-Former on NNEQ as shown in Table 5.
Table 4: Performance of various models on NNLQ (Liu et al., 2022) (out-of-domain) with node-level computational information () added. Due to space constraints, results for individual model families are omitted here. Please refer to the appendix for full results.
| Metric | NNLP Liu et al. (2022) (avg / best) | NAR-Former V2 Yi et al. (2023b) (avg / best) | NN-Former Xu et al. (2025) (avg / best) | FeatureFormer (avg / best) |
|---|---|---|---|---|
| MAPE ↓ | 10.07 / 8.11(-1.48 / -2.16) | 8.94 / 7.79(-1.61 / -1.33) | 7.60 / 6.94(-0.79 / -1.02) | 7.24 / 6.48(-0.39 / -0.23) |
| Acc (10%) ↑ | 62.66 / 71.05(+8.03 / +10.40) | 69.43 / 75.46(+6.46 / +8.06) | 75.70 / 79.84(+1.39 / +4.37) | 77.19 / 81.45(+2.54 / +1.48) |
Table 5: Performance of various models on NNEQ (out-of-domain) with node-level computational information () added.
| Metric | NNLP Liu et al. (2022) (avg / best) | NAR-Former V2 Yi et al. (2023b) (avg / best) | NN-Former Xu et al. (2025) (avg / best) | FeatureFormer (avg / best) |
|---|---|---|---|---|
| MAPE ↓ | 7.48 / 6.05(-0.33 / -0.18) | 6.88 / 5.88(-1.09 / -1.03) | 7.88 / 6.17(+0.04 / -0.15) | 6.63 / 5.86(-0.17 / -0.20) |
| Acc (10%) ↑ | 73.97 / 82.46(+2.25 / +1.85) | 81.29 / 86.56(+5.48 / +5.00) | 78.25 / 86.01(-0.25 / +1.24) | 82.43 / 86.18(+0.63 / +0.45) |
Aside from this exception, the improvement holds consistently across models and tasks, indicating that node-level computational encoding is broadly applicable to neural performance prediction, not specific to our architecture. With this being said, although prior models benefit from the added features, Feature-Former still attains the best overall performance. We attribute this to its closer adherence to the standard transformer design. NAR-Former V2 (Yi et al., 2023b) includes attention and feed-forward components, but its attention mechanism is non-standard: it shares a single linear projection for queries and keys and reuses the untransformed input as values. NN-Former (Xu et al., 2025) includes a conventional attention block but also injects message passing into its feed-forward blocks via a simple GCN. FeatureFormer instead uses attention as its only message-passing mechanism and adds a multiplicative gating layer between and . We demonstrate the effect of gating in section 5.1, and isolate the effect of these architectural changes alone against NN-Former in section 5.4.
5 Ablations
In this section we report ablation studies on NNLQ (Liu et al., 2022) and NNEQ that probe the contributions of key model components. We should note that due to quantity of computation required to run a full 10 seed experiment, i.e. training a given model 100 times, all ablations (with the exception of table 6) were run on 3 constant seeds instead of 10, hence results for FeatureFormer may differ slightly from those in section 4.
Table 6: Effect of gating on FeatureFormer. Results are reported on the NNEQ dataset (out-of-domain), with average and best reported over 10 independent trials.
| Metric | No Gating (avg / best) | Gating (avg / best) |
|---|---|---|
| MAPE ↓ | 7.04 / 6.08 | 6.63 / 5.86 |
| Acc (10%) ↑ | 80.66 / 84.87 | 82.43 / 86.18 |
5.1 Effect of Gating
To measure the benefit of the gating layer in GGSA, we remove the gating term from eq. (4) and retrain the model on NNEQ. Table 6 shows that removing the gating term increases MAPE by 0.41 percentage points and reduces Acc(10%) by 1.77 percentage points. This indicates that the multiplicative gate provides a consistent improvement in both average accuracy and prediction reliability.
Table 7: Effect of different masking schemes on FeatureFormer. Results are reported on the NNEQ dataset (out-of-domain), utilizing 4 attention heads in each configuration.
| Metric (avg / best) | Global | ||
|---|---|---|---|
| MAPE ↓ | 8.45 / 7.92 | 6.92 / 6.40 | 6.28 / 5.92 |
| Acc (10%) ↑ | 75.86 / 78.49 | 81.13 / 83.67 | 84.12 / 86.08 |
5.2 Masking Variations
We also study how different masking strategies affect performance. To do this, we apply different masking schemes to FeatureFormer, utilizing four attention heads in all configurations. Shown in table 7, we investigate three configurations: global attention, shared masking () where each head is masked the same, and specialized masking () where each head receives a different attention mask. Shown in table 7, global attention consistently underperforms, in line with previous works (Yi et al., 2023b; Xu et al., 2025), hence gating does not overcome the difficulties of global masking. Furthermore, shared masking was outperformed by specialized masking, supporting the claim that separate masking for each head allows for greater head-wise specialization.
5.3 Encoding Composition
Here, we investigate the importance and contribution of each of the three major components of our encoding, , , and , shown in table 8. Our results show that each component on their own do not achieve satisfactory results, hence the importance of combining these segments. On average, the best performing configuration was (3), corresponding to an encoding containing solely and , with (7), the encoding consisting of all segments, coming in as a close second. While slightly superior to (7) on average, this is mainly due to a vast improvement solely on the NasBench201 family. In fact, (7) out performs (3) on effectively all families except NasBench201 (see table 16), hence we believe that operation type information, specified by , is worthwhile in practice as it leads to a more generalized model, despite a slight decrease in average accuracy in this instance.
Table 8: Importance of , , and to FeatureFormer on NNLQ (Liu et al., 2022) (out-of-domain).
| # | Components | Metrics (avg / best) | |||
|---|---|---|---|---|---|
| MAPE ↓ | Acc (10%) ↑ | ||||
| (1) | ✕ | ✕ | ✓ | 19.77 / 18.49 | 33.93 / 38.23 |
| (2) | ✕ | ✓ | ✕ | 8.18 / 7.66 | 71.65 / 74.90 |
| (3) | ✕ | ✓ | ✓ | 7.14 / 6.70 | 77.80 / 80.24 |
| (4) | ✓ | ✕ | ✕ | 27.38 / 22.69 | 27.53 / 29.72 |
| (5) | ✓ | ✕ | ✓ | 18.54 / 17.64 | 36.32 / 39.39 |
| (6) | ✓ | ✓ | ✕ | 7.70 / 6.97 | 74.26 / 78.36 |
| (7) | ✓ | ✓ | ✓ | 7.20 / 6.59 | 77.40 / 80.90 |
Additionally, to quantify the individual contributions of FLOPs, parameter count, and the memory access proxy, we test different combinations of these features on FeatureFormer. Results are shown in table 9. Each individual feature provides a measurable improvement over the baseline that uses none of the three. In most cases, combinations of two features outperform single feature variants, with the exception of (4), parameters plus memory, which performs slightly worse than (2), simply using the memory proxy alone. The strongest results are achieved by (7), FLOPs plus parameters, and (8), the full combination of FLOPs, parameters, and memory. Although (7) is marginally inferior to the full configuration which we utilized, their close performance indicates that FLOPs and parameters account for most of the predictive gain in , while the memory proxy provides an additional but smaller improvement.
Table 9: Results of different makeups of on FeatureFormer on NNLQ (Liu et al., 2022) (out-of-domain). Memory refers to a proxy of memory operations within the model, consisting of the multiplied output shape + parameter count.
| # | Components | Metrics (avg / best) | |||
|---|---|---|---|---|---|
| FLOPs | Parameters | Memory | MAPE ↓ | Acc (10%) ↑ | |
| (1) | ✕ | ✕ | ✕ | 7.70 / 6.97 | 74.26 / 78.36 |
| (2) | ✕ | ✕ | ✓ | 7.46 / 7.08 | 75.89 / 78.20 |
| (3) | ✕ | ✓ | ✕ | 7.60 / 6.87 | 75.75 / 79.91 |
| (4) | ✕ | ✓ | ✓ | 7.57 / 6.96 | 75.30 / 78.92 |
| (5) | ✓ | ✕ | ✕ | 7.55 / 6.93 | 74.87 / 78.38 |
| (6) | ✓ | ✕ | ✓ | 7.47 / 7.00 | 75.67 / 78.65 |
| (7) | ✓ | ✓ | ✕ | 7.23 / 6.82 | 77.40 / 79.35 |
| (8) | ✓ | ✓ | ✓ | 7.20 / 6.59 | 77.40 / 80.90 |
5.4 Model Size Comparison
While the advantages of FeatureFormer are demonstrated in section 4, it is worth noting that FeatureFormer possesses a larger parameter footprint than the next closest model, NN-Former. To verify that this superiority is attributable to architecture and is not merely a consequence of increased model size, table 10 evaluates both models under parameter-matched configurations on NNLQ latency prediction. Specifically, we compare a reduced two-layer variant of FeatureFormer against the baseline NN-Former, as well as an upscaled
Table 10: Comparison of NN-Former (Xu et al., 2025) and FeatureFormer at comparable parameter counts on NNLQ (Liu et al., 2022), both using node-level static features. Symbols next to Layers indicate default configuration (-), scaled up (↑), or scaled down (↓). The scaled up/down configuration for a given model is compared against the default configuration of the other.
| Model | Layers | Parameters (Millions) | MAPE | Acc (10%) |
|---|---|---|---|---|
| NN-Former (Xu et al., 2025) | 2 – | 10.1 | 7.47 / 7.09 | 76.63 / 79.22 |
| 3 ↑ | 14.3 | 7.53 / 7.21 | 76.31 / 77.96 | |
| FeatureFormer | 2 ↓ | 8.53 | 7.45 / 7.03 | 76.64 / 79.14 |
| 4 – | 15.4 | 7.20 / 6.59 | 77.40 / 80.90 |
version of NN-Former scaled to match the original FeatureFormer's size. To ensure a fair comparison and optimal performance, NN-Former is augmented with FeatureFormer's encoding, as in table 4. Under both equal-parameter settings, FeatureFormer consistently outperforms NN-Former; notably, even the downscaled FeatureFormer yields better performance than the upscaled NN-Former.
6 Conclusion and Future Work
In this work, we introduced FeatureFormer, a neural performance predictor that combines a gated graph self attention mechanism with an explicit node-level computational encoding. By incorporating FLOPs, parameter counts, and a proxy for memory operations directly into node representations, our approach addresses a limitation of prior graph based predictors, which lack information about the computational cost of individual operations. Our experiments show that this encoding improves prediction accuracy and reliability across both latency and energy prediction tasks. These gains hold not only for FeatureFormer but also when the proposed encoding is applied to several recent methods, suggesting that the approach is not specific to a single architecture. FeatureFormer performs competitively across multiple datasets and evaluation settings, including out-of-domain scenarios.
These results suggest that node-level computational encodings are a useful direction for improving neural performance prediction, and enable future work in hardware aware neural architecture search. One direction worth exploring is a foundation model approach to performance prediction: training a large, hardware-aware model that leverages GPU-specific characteristics to generalize performance predictions across different GPU architectures. The node-level static features introduced in this work could serve as a starting point for this direction.
Acknowledgments
This work was supported by the Office of Naval Research (ONR) under contract No. N00014-23-C-1052. The support of the ONR is gratefully acknowledged. Any opinions, findings, conclusions, or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the United States Navy. This article was approved for public release with DCN # 2026-8-12-2699 and Distribution Statement A: Approved for public release: distribution is unlimited.
References
Halima Bouzidi, Hamza Ouarnoughi, Smail Niar, and Abdessamad Ait El Cadi. Performance prediction for convolutional neural networks in edge devices. arXiv preprint arXiv:2010.11297, 2020.
Ermao Cai, Da-Cheng Juan, Dimitrios Stamoulis, and Diana Marculescu. Neuralpower: Predict and deploy energy-efficient convolutional neural networks. In Asian Conference on Machine Learning, pp. 622–637. PMLR, 2017.
Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018.
Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, and Song Han. Once-for-all: Train one network and specialize it for efficient deployment. arXiv preprint arXiv:1908.09791, 2019.
Xuanyi Dong and Yi Yang. Nas-bench-201: Extending the scope of reproducible neural architecture search. arXiv preprint arXiv:2001.00326, 2020.
Lukasz Dudziak, Thomas Chau, Mohamed Abdelfattah, Royson Lee, Hyeji Kim, and Nicholas Lane. Brpnas: Prediction-based nas using gcns. Advances in neural information processing systems, 33:10480–10490, 2020.
Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. Journal of Machine Learning Research, 20(55):1–21, 2019.
Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing systems, 30, 2017.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 1314–1324, 2019.
Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and < 0.5 mb model size. arXiv preprint arXiv:1602.07360, 2016.
Aishneet Juneja, Matthew Grenier, Md Hasibul Amin, and Ramtin Zand. Accelerating hardware-aware nas with ml-based edge gpu performance modeling. In 2025 IEEE International Conference on Omni-layer Intelligent Systems (COINS), pp. 1–6. IEEE, 2025.
Sam Kaufman, Phitchaya Phothilimthana, Yanqi Zhou, Charith Mendis, Sudip Roy, Amit Sabne, and Mike Burrows. A learned performance model for tensor processing units. Proceedings of Machine Learning and Systems, 3:387–400, 2021.
Samuel Kaufman, Phitchaya Mangpo Phothilimthana, and Mike Burrows. Learned tpu cost model for xla tensor programs. In Proc. Workshop ML Syst. NeurIPS, pp. 1–6, 2019.
TN Kipf. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012.
Liang Liu, Mingzhu Shen, Ruihao Gong, Fengwei Yu, and Hailong Yang. Nnlp: A multi-platform neural network latency query and prediction system with an evolving database. In Proceedings of the 51st International Conference on Parallel Processing, pp. 1–14, 2022.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
Yuankai Luo, Veronika Thost, and Lei Shi. Transformers over directed acyclic graphs. Advances in Neural Information Processing Systems, 36:47764–47782, 2023.
Yang Ni, Yeseong Kim, Tajana Rosing, and Mohsen Imani. Online performance and power prediction for edge tpu via comprehensive characterization. In 2022 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 612–615. IEEE, 2022.
Karthick Panner Selvam and Mats Brorsson. Dippm: a deep learning inference performance predictive model using graph neural networks. In European Conference on Parallel Processing, pp. 3–16. Springer, 2023.
Hang Qi, Evan R Sparks, and Ameet Talwalkar. Paleo: A performance model for deep neural networks. In International Conference on Learning Representations, 2017.
Zihan Qiu, Zekun Wang, Bo Zheng, Zeyu Huang, Kaiyue Wen, Songlin Yang, Rui Men, Le Yu, Fei Huang, Suozhi Huang, et al. Gated attention for large language models: Non-linearity, sparsity, and attention-sink-free. arXiv preprint arXiv:2505.06708, 2025.
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4510–4520, 2018.
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015.
Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pp. 6105–6114. PMLR, 2019.
Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 2820–2828, 2019.
Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. Advances in neural information processing systems, 33:7537–7547, 2020.
Xiaolong Tu, Anik Mallik, Dawei Chen, Kyungtae Han, Onur Altintas, Haoxin Wang, and Jiang Xie. Unveiling energy efficiency in deep learning: Measurement, prediction, and scoring across edge devices. In Proceedings of the Eighth ACM/IEEE Symposium on Edge Computing, pp. 80–93, 2023.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
Xin Wang and Wenwu Zhu. Advances in neural architecture search. National Science Review, 11(8):nwae282, 2024.
Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10734–10742, 2019.
Ruihan Xu, Haokui Zhang, Yaowei Wang, Wei Zeng, and Shiliang Zhang. Nn-former: Rethinking graph structure in neural architecture representation. In Proceedings of the Computer Vision and Pattern Recognition Conference, pp. 10004–10014, 2025.
Tien-Ju Yang, Andrew Howard, Bo Chen, Xiao Zhang, Alec Go, Mark Sandler, Vivienne Sze, and Hartwig Adam. Netadapt: Platform-aware neural network adaptation for mobile applications. In Proceedings of the European conference on computer vision (ECCV), pp. 285–300, 2018.
Yun Yi, Haokui Zhang, Wenze Hu, Nannan Wang, and Xiaoyu Wang. Nar-former: Neural architecture representation learning towards holistic attributes prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7715–7724, 2023a.
Yun Yi, Haokui Zhang, Rong Xiao, Nannan Wang, and Xiaoyu Wang. Nar-former v2: Rethinking transformer for universal neural network representation learning. Advances in Neural Information Processing Systems, 36:62727–62739, 2023b.
Jiahui Yu, Pengchong Jin, Hanxiao Liu, Gabriel Bender, Pieter-Jan Kindermans, Mingxing Tan, Thomas Huang, Xiaodan Song, Ruoming Pang, and Quoc Le. Bignas: Scaling up neural architecture search with big single-stage models. In European Conference on Computer Vision, pp. 702–717. Springer, 2020.
Seongjun Yun, Minbyul Jeong, Raehyun Kim, Jaewoo Kang, and Hyunwoo J Kim. Graph transformer networks. Advances in neural information processing systems, 32, 2019.
Li Lyna Zhang, Shihao Han, Jianyu Wei, Ningxin Zheng, Ting Cao, Yuqing Yang, and Yunxin Liu. Nn-meter: Towards accurate latency prediction of deep-learning model inference on diverse edge devices. In Proceedings of the 19th Annual International Conference on Mobile Systems, Applications, and Services, pp. 81–93, 2021.
Ao Zhou, Jianlei Yang, Yingjie Qi, Tong Qiao, Yumeng Shi, Cenlin Duan, Weisheng Zhao, and Chunming Hu. Hgnas: Hardware-aware graph neural architecture search for edge devices. IEEE Transactions on Computers, 2024.
A Experiment Details
A.1 Training Hyperparameters
Across all experiments, FeatureFormer was trained using 4 layers. Each layer consisted of our Gated Graph Self Attention (GGSA) block followed by a standard ReLU feed-forward network. We set and , following prior work (Yi et al., 2023b; Xu et al., 2025). Unless otherwise stated in ablation studies, the input vector had a total length of 222. This included 32 dimensions for , 160 dimensions for (as in NN-Former (Xu et al., 2025)), and an additional 30 dimensions for .
For training, we used a batch size of 16 and trained for 75 epochs. The first 10% of training steps were used for learning rate warm-up (Goyal et al., 2017), increasing the learning rate from to . After the warm-up phase, we applied a cosine decay schedule for the rest of training. We used the AdamW optimizer (Loshchilov & Hutter, 2017) with decay rates of (0.9, 0.999). Consistent with previous work (Yi et al., 2023b; Xu et al., 2025), we trained the model using mean squared error loss. A dropout rate of 0.05 was used in all experiments.
When evaluating prior state-of-the-art methods, including NNLP (Liu et al., 2022), NAR-Former V2 (Yi et al., 2023b), and NN-Former (Xu et al., 2025), we used the training hyperparameters and official implementations released with their papers. The only exception was in experiments studying the effect of (tables 12 and 13). In these cases, we performed a small grid search over the sizes of and to ensure each model had a fair opportunity to benefit from and compete with FeatureFormer. Among the compared models, only NAR-Former V2 improved with a modified input configuration. Specifically, increasing the size of from 120 to 160 to match NN-Former and FeatureFormer led to better performance.
A.2 Training Cost
In total, each experimental run of FeatureFormer required approximately 2 hours of training on a 40 GB A100 GPU. By an experimental run, we mean training a single model with a single random seed. Therefore, evaluating a full table with 10 different models and 10 seeds each would require 100 individual runs. Based on this setup, we estimate that collecting all results reported in this paper required approximately 2,000 A100 GPU-hours in total.
B Implementation Details
To clarify the implementation of our GGSA layer, we provide pseudocode in fig. 6. As outlined in fig. 6, the introduction of gating scores allows the model to nonlinearly combine the outputs of differently masked attention heads. This added flexibility improves accuracy, as demonstrated in table 14.
C NNEQ Statistics
To provide further insight into the differences between NNLQ (Liu et al., 2022) and NNEQ, further analysis is provided in fig. 7 and table 11. Figure 7 provides a plot of NNLQ latency measurements v.s. NNEQ energy measurements, detailing how the two are correlated, while table 11 provides detailed statistics on a per-family and per-dataset basis for NNEQ and NNLQ.
D Expanded Results
Due to space constraints, several complete result tables could not be included in the main paper and are therefore provided in this section. Tables 12 and 13 present the full results of the ablation studies, showing that node-level computational information benefits a range of state-of-the-art architectures. Table 14 reports the impact of gating within our proposed GGSA layer, demonstrating its effectiveness. Table 15 highlights the importance of masking each attention head separately, compared to using a shared or global mask. Finally, tables 16 and 17 provide detailed ablation studies on the design of our encoding methodology.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Figure 6: Pseudocode of our proposed GGSA layer.
def GGSA(X, A): # X: Input (B, L, D), A: Adj Matrix (B, L, L) Q, K, V = X @ W_q, X @ W_k, X @ W_v # (B, L, D) Q, K, V = reshape((Q, K, V), (B, 4, L, D // 4)) # (B, 4, L, D//4) gating_scores = sigmoid(X @ W_G) # (B, L, D) scores = (Q @ K.T) / sqrt(D // 4) # (B, 4, L, L) masks = concat(A, A.T, A @ A.T, A.T @ A) # (B, 4, L, L) masks = masks + Identity(L, L) masks = Binarize(masks) scores = scores * masks scores = softmax(scores) out = scores @ V # (B, 4, L, D//4) out = reshape(out, (B, L, D)) # (B, L, D) out = out * gating_scores out = out @ W_o return out
Energy vs. Latency Ground Truth by Model

Figure 7: A comparison of NNLQ (Liu et al., 2022) ground truth latency and NNEQ ground truth energy across individual models. The relationship between these metrics is neither fully linear nor fully proportional, emphasizing the distinct nature of the two predictive tasks.
Table 11: Summary of NNLQ (Liu et al., 2022) and NNEQ dataset statistics by model family. Statistics are computed over the ground truth values of all samples in each family. "All" aggregates across all families within a dataset.
| Dataset | Architecture | Mean | Median | Min | Max | Std | Count |
|---|---|---|---|---|---|---|---|
| NNEQ | AlexNet | 51.45 | 47.56 | 6.64 | 140.04 | 24.43 | 2000 |
| EfficientNet | 189.44 | 184.55 | 33.70 | 414.06 | 45.44 | 2000 | |
| GoogLeNet | 111.69 | 108.26 | 27.60 | 267.25 | 29.86 | 2000 | |
| MnasNet | 128.72 | 121.62 | 17.67 | 367.98 | 42.30 | 2000 | |
| MobileNetV2 | 113.31 | 108.84 | 16.09 | 281.15 | 33.17 | 2000 | |
| MobileNetV3 | 52.14 | 46.46 | 9.94 | 266.29 | 25.13 | 2000 | |
| NasBench201 | 8.28 | 8.18 | 3.07 | 12.98 | 1.53 | 2000 | |
| ResNet | 47.14 | 42.69 | 10.41 | 192.91 | 21.90 | 2000 | |
| SqueezeNet | 56.83 | 49.73 | 16.46 | 297.20 | 29.54 | 2000 | |
| VGG | 323.23 | 295.34 | 60.27 | 1113.80 | 143.14 | 2000 | |
| All | 108.22 | 81.56 | 3.07 | 1113.80 | 102.43 | 20000 | |
| NNLO | AlexNet | 2.63 | 2.45 | 0.41 | 10.39 | 1.27 | 2000 |
| EfficientNet | 17.73 | 16.68 | 2.29 | 48.61 | 6.73 | 2000 | |
| GoogLeNet | 9.85 | 9.38 | 1.35 | 25.35 | 3.64 | 2000 | |
| MnasNet | 10.63 | 9.49 | 1.14 | 34.97 | 5.21 | 2000 | |
| MobileNetV2 | 9.45 | 8.63 | 1.08 | 29.21 | 4.09 | 2000 | |
| MobileNetV3 | 5.02 | 4.24 | 0.69 | 28.61 | 3.02 | 2000 | |
| NasBench201 | 0.70 | 0.70 | 0.23 | 1.10 | 0.12 | 2000 | |
| ResNet | 3.67 | 3.16 | 0.73 | 18.23 | 2.12 | 2000 | |
| SqueezeNet | 3.57 | 2.86 | 0.87 | 21.16 | 2.48 | 2000 | |
| VGG | 15.61 | 13.93 | 2.53 | 61.53 | 7.99 | 2000 | |
| All | 7.89 | 5.85 | 0.23 | 61.53 | 6.94 | 20000 |
Table 12: Full performance of various models on NNLQ (Liu et al., 2022) (out-of-domain) with node-level computational information () added. Results for each model are reported over 10 independent trials.
| Metric | Test Domain | NNLP Liu et al. (2022) (avg / best) | NAR-Former V2 Yi et al. (2023b) (avg / best) | NN-Former Xu et al. (2025) (avg / best) | FeatureFormer (avg / best) |
|---|---|---|---|---|---|
| MAPE ↓ | AlexNet | 10.93 / 9.99 (+0.29 / +0.28) | 13.16 / 11.74 (-11.12 / -6.55) | 10.39 / 9.84 (-1.08 / -1.33) | 10.15 / 9.51 (-1.68 / -1.84) |
| EfficientNet | 19.90 / 15.15 (-1.56 / -3.57) | 6.13 / 5.41 (-7.07 / -5.96) | 4.15 / 3.87 (-0.98 / -0.94) | 4.61 / 3.53 (-0.05 / -0.27) | |
| GoogLeNet | 11.26 / 10.00 (-2.02 / -0.90) | 12.59 / 8.48 (+5.98 / +2.33) | 5.62 / 5.08 (-1.12 / -1.57) | 4.85 / 4.77 (-0.16 / -0.01) | |
| MnasNet | 5.47 / 5.08 (-6.60 / -5.78) | 2.62 / 2.46 (-4.54 / -3.47) | 2.25 / 2.17 (-0.46 / -0.37) | 1.91 / 1.79 (-0.20 / -0.10) | |
| MobileNetV2 | 8.01 / 5.73 (-0.86 / -1.61) | 4.72 / 4.56 (-2.01 / -1.09) | 4.69 / 4.33 (+0.52 / +0.67) | 2.90 / 2.30 (-0.53 / -0.37) | |
| MobileNetV3 | 10.38 / 9.31 (-4.19 / -3.86) | 8.49 / 8.12 (-0.57 / -0.60) | 8.16 / 7.84 (-0.91 / -1.19) | 8.01 / 7.71 (-0.58 / -0.26) | |
| NasBench201 | 13.88 / 6.02 (+4.28 / -2.17) | 7.52 / 5.64 (-1.69 / -2.25) | 7.83 / 5.37 (0.00 / -2.34) | 6.79 / 4.98 (-0.28 / +0.96) | |
| ResNet | 6.68 / 6.44 (-0.86 / -0.68) | 6.07 / 5.62 (-0.73 / -0.82) | 6.77 / 6.46 (-0.72 / -0.92) | 7.98 / 7.10 (-0.98 / -0.62) | |
| SqueezeNet | 8.42 / 7.66 (-1.42 / -1.86) | 7.69 / 6.49 (+0.61 / -0.07) | 6.38 / 5.42 (-2.70 / -1.63) | 6.41 / 5.86 (-0.59 / -0.17) | |
| VGG | 5.74 / 5.67 (-1.86 / -1.51) | 20.42 / 19.42 (+5.02 / +5.16) | 19.70 / 19.03 (-0.42 / -0.61) | 18.79 / 17.30 (+1.14 / 0.42) | |
| Average | 10.07 / 8.11 (-1.48 / -2.16) | 8.94 / 7.79 (-1.61 / -1.33) | 7.60 / 6.94 (-0.79 / -1.02) | 7.24 / 6.48 (-0.39 / -0.23) | |
| Acc (10%) ↑ | AlexNet | 55.72 / 59.65 (-3.35 / -4.75) | 50.36 / 55.20 (+25.71 / +26.60) | 60.24 / 64.00 (+4.15 / +6.90) | 60.76 / 64.40 (+5.23 / +6.90) |
| EfficientNet | 26.55 / 42.15 (+1.18 / +13.35) | 80.70 / 87.10 (+36.69 / +36.90) | 93.36 / 94.80 (+2.51 / +3.90) | 90.59 / 95.95 (-0.31 / +0.65) | |
| GoogLeNet | 44.34 / 53.35 (+8.04 / +4.60) | 46.75 / 66.75 (-33.36 / -16.60) | 85.39 / 88.00 (+4.96 / +4.60) | 89.71 / 90.55 (+1.26 / +0.70) | |
| MnasNet | 85.16 / 88.25 (+29.27 / +27.00) | 98.89 / 99.25 (+25.43 / +17.65) | 99.40 / 99.55 (+0.75 / +0.85) | 99.76 / 99.85 (+0.51 / +0.20) | |
| MobileNetV2 | 68.92 / 83.45 (+5.89 / +10.95) | 87.02 / 88.80 (+8.57 / +5.00) | 88.11 / 91.00 (-6.79 / -5.85) | 97.31 / 99.65 (+1.58 / +0.15) | |
| MobileNetV3 | 59.09 / 65.40 (+15.83 / +15.75) | 69.75 / 72.05 (+1.31 / +1.55) | 72.16 / 74.70 (-2.03 / +0.40) | 73.38 / 75.75 (+3.09 / +1.45) | |
| NasBench201 | 58.17 / 83.10 (-2.53 / +12.50) | 73.07 / 84.55 (+9.94 / +12.85) | 70.39 / 86.95 (+0.48 / +15.85) | 77.28 / 90.25 (+1.84 / -5.15) | |
| ResNet | 77.35 / 78.95 (+4.47 / +2.55) | 81.63 / 84.35 (+4.38 / +4.65) | 76.47 / 79.15 (+5.64 / +7.60) | 69.01 / 75.25 (+6.60 / +6.55) | |
| SqueezeNet | 66.74 / 71.00 (+8.05 / +10.60) | 71.34 / 79.05 (-3.68 / -0.20) | 79.57 / 86.35 (+1.72 / +5.40) | 79.05 / 83.55 (+4.33 / +0.75) | |
| VGG | 84.53 / 85.20 (+13.49 / +11.45) | 34.88 / 37.45 (-10.34 / -7.85) | 31.92 / 33.85 (+2.52 / +4.00) | 35.04 / 39.25 (+1.31 / +2.60) | |
| Average | 62.66 / 71.05 (+8.03 / +10.40) | 69.43 / 75.46 (+6.46 / +8.06) | 75.70 / 79.84 (+1.39 / +4.37) | 77.19 / 81.45 (+2.54 / +1.48) |
Table 13: Full performance of various models on NNEQ (out-of-domain) with node-level computational information () added. Results for each model are reported over 10 independent trials.
| Metric | Test Domain | NNLP Liu et al. (2022) (avg / best) | NAR-Former V2 Yi et al. (2023b) (avg / best) | NN-Former Xu et al. (2025) (avg / best) | FeatureFormer (avg / best) |
|---|---|---|---|---|---|
| MAPE ↓ | AlexNet | 11.47 / 8.43 (+0.77 / +0.37) | 7.96 / 5.42 (-8.73 / -7.02) | 8.17 / 5.93 (+0.43 / -0.01) | 7.29 / 5.42 (+0.22 / -0.72) |
| EfficientNet | 5.42 / 4.86 (-1.03 / -1.16) | 2.71 / 2.47 (-1.78 / -1.62) | 3.02 / 2.79 (-0.22 / -0.01) | 2.89 / 2.47 (-1.07 / -0.67) | |
| GoogLeNet | 3.67 / 3.42 (-0.23 / -0.07) | 3.83 / 3.53 (+0.39 / +0.22) | 3.60 / 3.25 (-0.24 / -0.20) | 3.63 / 3.35 (+0.03 / +0.02) | |
| MnasNet | 9.03 / 6.45 (-0.15 / -1.36) | 3.41 / 3.07 (-1.08 / -0.94) | 3.33 / 2.79 (+0.04 / +0.08) | 3.10 / 2.72 (+0.08 / +0.04) | |
| MobileNetV2 | 4.79 / 3.94 (-1.19 / -1.01) | 3.06 / 2.91 (-0.71 / -0.51) | 3.20 / 2.93 (-0.14 / -0.01) | 3.04 / 2.70 (-0.13 / -0.19) | |
| MobileNetV3 | 12.77 / 8.93 (-0.98 / +1.57) | 6.18 / 5.77 (-2.05 / -1.49) | 4.68 / 4.47 (+0.08 / +0.11) | 5.18 / 4.79 (+0.12 / -0.07) | |
| NasBench201 | 9.87 / 8.19 (-0.93 / -0.17) | 10.11 / 6.70 (-1.11 / -2.39) | 16.77 / 5.70 (+1.10 / -0.46) | 8.94 / 7.45 (0.23 / +0.23) | |
| ResNet | 5.52 / 5.35 (-0.17 / -0.10) | 4.81 / 4.65 (-0.50 / -0.38) | 4.90 / 4.65 (-0.10 / +0.03) | 4.65 / 4.36 (-0.30 / -0.34) | |
| SqueezeNet | 6.71 / 6.29 (-0.25 / -0.05) | 4.71 / 4.47 (-1.39 / -1.01) | 4.86 / 4.39 (-0.34 / -0.36) | 4.57 / 4.15 (-0.16 / -0.30) | |
| VGG | 5.59 / 4.65 (+0.88 / +0.12) | 22.05 / 19.82 (+6.06 / +4.89) | 26.29 / 24.79 (-0.18 / -0.70) | 23.05 / 21.17 (-0.71 / -0.56) | |
| Average | 7.48 / 6.05 (-0.33 / -0.18) | 6.88 / 5.88 (-1.09 / -1.03) | 7.88 / 6.17 (+0.04 / -0.15) | 6.63 / 5.86 (-0.17 / -0.20) | |
| Acc (10%) ↑ | AlexNet | 57.68 / 71.50 (-3.17 / -0.75) | 69.61 / 87.25 (+25.88 / +23.85) | 66.82 / 80.80 (-3.13 / +0.75) | 73.53 / 85.80 (-0.17 / +6.65) |
| EfficientNet | 86.02 / 90.30 (+7.54 / +7.90) | 99.53 / 99.95 (+7.42 / +5.20) | 98.57 / 99.65 (+0.67 / +0.55) | 98.62 / 99.75 (+3.43 / +1.35) | |
| GoogLeNet | 96.65 / 97.90 (+0.62 / +0.35) | 96.50 / 98.10 (-0.82 / +0.15) | 96.52 / 98.00 (+1.12 / +0.65) | 96.62 / 97.95 (-0.39 / -0.45) | |
| MnasNet | 59.75 / 78.40 (+0.76 / +8.45) | 97.88 / 98.70 (+5.51 / +3.30) | 98.13 / 99.30 (+0.09 / +0.10) | 98.76 / 99.75 (-0.38 / +0.10) | |
| MobileNetV2 | 89.83 / 94.90 (+8.11 / +6.75) | 98.41 / 99.00 (+2.48 / +1.60) | 98.16 / 99.00 (+0.55 / +0.25) | 98.48 / 99.15 (+0.13 / +0.20) | |
| MobileNetV3 | 40.80 / 64.45 (+4.70 / -8.15) | 81.24 / 84.20 (+12.80 / +9.85) | 90.24 / 91.45 (-0.92 / -0.85) | 87.67 / 89.70 (-0.80 / -0.20) | |
| NasBench201 | 60.42 / 69.50 (+5.26 / +2.95) | 60.38 / 76.90 (+4.96 / +11.55) | 40.34 / 84.65 (-5.03 / +4.70) | 64.61 / 73.90 (-0.87 / -4.00) | |
| ResNet | 85.71 / 86.35 (+1.13 / +0.25) | 90.64 / 91.95 (+3.75 / +2.50) | 89.50 / 92.00 (+0.46 / +0.30) | 91.37 / 93.30 (+2.05 / +1.95) | |
| SqueezeNet | 77.23 / 80.40 (+1.80 / +0.65) | 90.38 / 92.25 (+9.77 / +7.05) | 89.19 / 92.00 (+1.76 / +1.75) | 91.56 / 94.35 (+1.05 / +2.05) | |
| VGG | 85.64 / 90.90 (-4.25 / +0.05) | 28.38 / 37.30 (-16.93 / -15.05) | 15.06 / 23.25 (+1.94 / +4.15) | 23.10 / 28.15 (+2.28 / -3.15) | |
| Average | 73.97 / 82.46 (+2.25 / +1.85) | 81.29 / 86.56 (+5.48 / +5.00) | 78.25 / 86.01 (-0.25 / +1.24) | 82.43 / 86.18 (+0.63 / +0.45) |
Table 14: Effect of gating on FeatureFormer. Results are reported on the NNEQ dataset (out-of-domain), with average and best reported over 10 independent trials.
| Metric | Test Domain | Without Gating (avg / best) | With Gating (avg / best) |
|---|---|---|---|
| MAPE ↓ | AlexNet | 9.26 / 7.12 | 7.29 / 5.42 |
| EfficientNet | 3.11 / 2.51 | 2.89 / 2.47 | |
| GoogLeNet | 3.49 / 3.19 | 3.63 / 3.35 | |
| MnasNet | 3.42 / 2.50 | 3.10 / 2.72 | |
| MobileNet V2 | 2.73 / 2.12 | 3.04 / 2.70 | |
| MobileNet V3 | 5.03 / 4.66 | 5.18 / 4.79 | |
| NasBench201 | 9.66 / 7.69 | 8.94 / 7.45 | |
| ResNet | 4.82 / 4.49 | 4.65 / 4.36 | |
| SqueezeNet | 5.03 / 4.77 | 4.57 / 4.15 | |
| VGG | 23.84 / 21.75 | 23.05 / 21.17 | |
| Average | 7.04 / 6.08 | 6.63 / 5.86 | |
| Acc (10%) ↑ | AlexNet | 61.73 / 74.35 | 73.52 / 85.80 |
| EfficientNet | 98.01 / 99.60 | 98.62 / 99.75 | |
| GoogLeNet | 96.90 / 98.20 | 96.62 / 97.95 | |
| MnasNet | 98.40 / 99.60 | 98.76 / 99.75 | |
| MobileNet V2 | 99.18 / 99.85 | 98.48 / 99.15 | |
| MobileNet V3 | 88.65 / 91.05 | 87.67 / 89.70 | |
| NasBench201 | 60.88 / 72.35 | 64.61 / 73.90 | |
| ResNet | 90.18 / 93.55 | 91.37 / 93.30 | |
| SqueezeNet | 88.59 / 90.30 | 91.56 / 94.35 | |
| VGG | 24.09 / 29.85 | 23.10 / 28.15 | |
| Average | 80.66 / 84.87 | 82.43 / 86.18 |
Table 15: Effect of different masking schemes on FeatureFormer. Results are reported on the NNEQ dataset (out-of-domain) over 3 independent trials, utilizing 4 attention heads in each configuration.
| Metric | Test Domain | Global (avg / best) | (avg / best) | (avg / best) |
|---|---|---|---|---|
| MAPE ↓ | AlexNet | 8.62 / 7.61 | 6.49 / 5.60 | 5.67 / 5.42 |
| EfficientNet | 4.55 / 4.04 | 3.33 / 3.18 | 2.62 / 2.48 | |
| GoogLeNet | 3.59 / 3.39 | 3.57 / 3.43 | 3.57 / 3.37 | |
| MnasNet | 4.18 / 3.92 | 3.55 / 3.33 | 2.88 / 2.79 | |
| MobileNet V2 | 3.76 / 3.61 | 3.32 / 3.24 | 3.08 / 3.03 | |
| MobileNet V3 | 5.97 / 5.61 | 5.09 / 4.82 | 5.33 / 4.79 | |
| NasBench201 | 21.31 / 20.56 | 12.23 / 10.84 | 8.89 / 7.62 | |
| ResNet | 5.18 / 4.83 | 4.85 / 4.70 | 4.51 / 4.36 | |
| SqueezeNet | 5.56 / 5.29 | 5.16 / 5.03 | 4.43 / 4.15 | |
| VGG | 21.83 / 20.37 | 21.56 / 19.84 | 21.84 / 21.17 | |
| Average | 8.45 / 7.92 | 6.92 / 6.40 | 6.28 / 5.92 | |
| Acc (10%) ↑ | AlexNet | 63.40 / 68.30 | 77.53 / 85.00 | 84.32 / 85.80 |
| EfficientNet | 91.90 / 94.60 | 98.17 / 98.90 | 99.42 / 99.65 | |
| GoogLeNet | 96.78 / 97.75 | 96.97 / 97.80 | 97.05 / 97.95 | |
| MnasNet | 94.28 / 96.55 | 97.23 / 97.50 | 99.12 / 99.45 | |
| MobileNet V2 | 95.63 / 96.50 | 97.67 / 97.85 | 98.38 / 98.70 | |
| MobileNet V3 | 83.37 / 86.45 | 88.43 / 89.20 | 86.58 / 89.70 | |
| NasBench201 | 31.05 / 34.30 | 49.10 / 56.30 | 64.08 / 73.90 | |
| ResNet | 87.47 / 90.25 | 90.53 / 91.25 | 92.43 / 93.10 | |
| SqueezeNet | 84.87 / 86.65 | 87.23 / 88.40 | 92.57 / 94.35 | |
| VGG | 29.87 / 33.50 | 28.47 / 34.50 | 27.20 / 28.15 | |
| Average | 75.86 / 78.49 | 81.13 / 83.67 | 84.12 / 86.08 |
Table 16: Importance of , , and to FeatureFormer on NNLQ (Liu et al., 2022) (out-of-domain). Results are reported over 3 independent trials. It should be noted that all results on this page correspond to the same table which has been split in half due to space constraints.
| Metric | Test Domain | (1) (avg / best) | (2) (avg / best) | (3) , (avg / best) | (4) (avg / best) | (5) , (avg / best) | (6) , (avg / best) | (7) , , (avg / best) |
|---|---|---|---|---|---|---|---|---|
| MAPE ↓ | AlexNet | 20.68 / 20.03 | 11.67 / 11.35 | 10.39 / 9.87 | 18.96 / 17.55 | 16.97 / 15.87 | 11.82 / 11.43 | 10.34 / 9.51 |
| EfficientNet | 21.08 / 20.87 | 5.28 / 4.63 | 5.36 / 4.87 | 21.73 / 21.33 | 19.29 / 18.69 | 4.76 / 4.56 | 4.23 / 3.63 | |
| GoogLeNet | 18.96 / 18.69 | 5.25 / 4.92 | 5.05 / 4.97 | 20.58 / 18.72 | 18.57 / 18.28 | 4.94 / 4.79 | 4.84 / 4.82 | |
| MnasNet | 15.71 / 15.47 | 2.01 / 1.97 | 1.93 / 1.85 | 21.07 / 20.99 | 16.72 / 16.48 | 2.04 / 1.89 | 1.88 / 1.83 | |
| MobileNetV2 | 14.63 / 14.33 | 2.96 / 2.48 | 2.94 / 2.41 | 19.95 / 19.87 | 14.04 / 13.92 | 4.05 / 3.29 | 2.88 / 2.50 | |
| MobileNetV3 | 29.12 / 27.86 | 7.85 / 7.68 | 7.95 / 7.78 | 27.86 / 27.71 | 28.75 / 27.50 | 8.33 / 7.97 | 8.09 / 8.03 | |
| NasBench201 | 13.08 / 5.58 | 9.36 / 8.31 | 5.27 / 4.38 | 80.52 / 38.87 | 8.08 / 5.55 | 7.27 / 4.03 | 7.19 / 4.98 | |
| ResNet | 17.14 / 16.28 | 10.82 / 10.35 | 8.18 / 7.13 | 16.52 / 15.94 | 17.49 / 16.96 | 8.93 / 8.56 | 7.56 / 7.26 | |
| SqueezeNet | 17.22 / 17.01 | 8.31 / 7.65 | 6.44 / 6.08 | 15.79 / 15.57 | 17.85 / 17.57 | 7.11 / 6.19 | 6.37 / 6.02 | |
| VGG | 30.04 / 28.82 | 18.32 / 17.29 | 17.88 / 17.70 | 30.80 / 30.40 | 27.68 / 25.60 | 17.79 / 17.04 | 18.58 / 17.30 | |
| Average | 19.77 / 18.49 | 8.18 / 7.66 | 7.14 / 6.70 | 27.38 / 22.69 | 18.54 / 17.64 | 7.70 / 6.97 | 7.20 / 6.59 | |
| Acc (10%) ↑ | AlexNet | 32.40 / 33.50 | 54.47 / 55.90 | 59.67 / 63.15 | 33.92 / 34.65 | 36.68 / 38.05 | 55.72 / 56.60 | 59.27 / 64.40 |
| EfficientNet | 27.93 / 28.80 | 87.50 / 91.50 | 87.43 / 90.25 | 26.62 / 27.50 | 31.03 / 32.70 | 90.15 / 90.90 | 93.10 / 95.95 | |
| GoogLeNet | 29.67 / 30.90 | 87.38 / 89.50 | 87.87 / 88.60 | 26.97 / 30.05 | 30.68 / 32.55 | 88.98 / 89.85 | 90.28 / 90.55 | |
| MnasNet | 41.97 / 42.50 | 99.47 / 99.70 | 99.72 / 99.85 | 27.17 / 27.95 | 38.38 / 40.15 | 99.45 / 99.65 | 99.70 / 99.75 | |
| MobileNetV2 | 42.65 / 43.10 | 98.15 / 99.70 | 97.87 / 99.30 | 29.68 / 29.95 | 44.52 / 44.90 | 92.68 / 97.55 | 97.57 / 99.55 | |
| MobileNetV3 | 17.83 / 19.75 | 74.22 / 76.05 | 74.18 / 75.25 | 19.25 / 20.15 | 18.65 / 19.85 | 71.90 / 74.30 | 72.43 / 73.95 | |
| NasBench201 | 53.42 / 84.20 | 62.82 / 68.60 | 88.17 / 93.20 | 15.00 / 25.30 | 70.12 / 84.15 | 74.23 / 95.40 | 74.60 / 90.25 | |
| ResNet | 35.10 / 38.60 | 51.58 / 57.60 | 67.68 / 74.75 | 35.17 / 37.75 | 34.80 / 37.45 | 61.75 / 64.20 | 71.93 / 73.35 | |
| SqueezeNet | 38.35 / 39.10 | 66.90 / 71.50 | 79.17 / 81.25 | 40.48 / 41.85 | 36.43 / 38.05 | 74.13 / 80.95 | 79.10 / 82.00 | |
| VGG | 19.98 / 21.85 | 33.97 / 38.95 | 36.20 / 36.80 | 21.02 / 22.00 | 21.87 / 26.00 | 33.62 / 34.20 | 36.05 / 39.25 | |
| Average | 33.93 / 38.23 | 71.65 / 74.90 | 77.80 / 80.24 | 27.53 / 29.72 | 36.32 / 39.39 | 74.26 / 78.36 | 77.40 / 80.90 |
Table 17: Results of different makeups of on FeatureFormer on NNLQ (Liu et al., 2022) (out-of-domain). Memory (abbreviated "Mem") refers to a proxy of memory operations within the model, consisting of the multiplied output shape + parameter count. Results are reported over 3 independent trials. It should be noted that all results on this page correspond to the same table which has been split in half due to space constraints.
| Metric | Test Domain | (1) No (avg / best) | (2) Mem(avg / best) | (3) Params(avg / best) | (4) Params+ Mem(avg / best) | (5) FLOPs(avg / best) | (6) FLOPs+ Mem(avg / best) | (7) FLOPs+ Params(avg / best) | (8) FLOPs+ Params + Mem(avg / best) |
|---|---|---|---|---|---|---|---|---|---|
| MAPE ↓ | AlexNet | 11.82 / 11.43 | 10.50 / 10.15 | 10.54 / 10.19 | 10.26 / 9.70 | 11.44 / 11.25 | 10.74 / 10.04 | 10.81 / 10.27 | 10.34 / 9.51 |
| EfficientNet | 4.76 / 4.56 | 4.75 / 4.55 | 4.96 / 3.79 | 4.83 / 3.97 | 5.14 / 4.01 | 4.36 / 4.18 | 4.54 / 3.67 | 4.23 / 3.63 | |
| GoogLeNet | 4.94 / 4.79 | 4.88 / 4.86 | 4.87 / 4.77 | 4.87 / 4.81 | 4.83 / 4.72 | 5.25 / 4.90 | 4.80 / 4.64 | 4.84 / 4.82 | |
| MnasNet | 2.04 / 1.89 | 1.97 / 1.94 | 1.90 / 1.82 | 1.97 / 1.89 | 1.93 / 1.86 | 1.89 / 1.85 | 1.85 / 1.84 | 1.88 / 1.83 | |
| MobileNetV2 | 4.05 / 3.29 | 4.07 / 3.61 | 3.89 / 3.30 | 2.81 / 2.66 | 3.18 / 2.28 | 3.36 / 2.93 | 2.69 / 2.50 | 2.88 / 2.50 | |
| MobileNetV3 | 8.33 / 7.97 | 8.69 / 8.47 | 8.88 / 8.63 | 8.36 / 7.90 | 7.68 / 7.25 | 7.89 / 7.72 | 7.90 / 7.60 | 8.09 / 8.03 | |
| NasBench201 | 7.27 / 4.03 | 5.76 / 4.67 | 7.90 / 5.96 | 7.61 / 5.75 | 6.66 / 5.49 | 8.15 / 7.08 | 7.70 / 7.13 | 7.19 / 4.98 | |
| ResNet | 8.93 / 8.56 | 8.45 / 7.55 | 7.64 / 6.97 | 8.17 / 7.11 | 7.75 / 7.00 | 7.90 / 7.18 | 8.08 / 7.71 | 7.56 / 7.26 | |
| SqueezeNet | 7.11 / 6.19 | 6.23 / 5.90 | 6.22 / 5.16 | 7.37 / 6.68 | 8.71 / 8.11 | 6.57 / 5.78 | 5.87 / 5.45 | 6.37 / 6.02 | |
| VGG | 17.79 / 17.04 | 19.26 / 19.10 | 19.17 / 18.14 | 19.48 / 19.10 | 18.18 / 17.33 | 18.56 / 18.32 | 18.04 / 17.45 | 18.58 / 17.30 | |
| Average | 7.70 / 6.97 | 7.46 / 7.08 | 7.60 / 6.87 | 7.57 / 6.96 | 7.55 / 6.93 | 7.47 / 7.00 | 7.23 / 6.82 | 7.20 / 6.59 | |
| Acc (10%) ↑ | AlexNet | 55.72 / 56.60 | 59.37 / 61.60 | 59.60 / 60.90 | 60.45 / 63.05 | 55.33 / 55.55 | 57.73 / 61.80 | 58.43 / 59.55 | 59.27 / 64.40 |
| EfficientNet | 90.15 / 90.90 | 89.78 / 90.90 | 89.35 / 95.80 | 89.32 / 94.35 | 87.95 / 93.50 | 92.30 / 93.15 | 91.38 / 95.90 | 93.10 / 95.95 | |
| GoogLeNet | 88.98 / 89.85 | 89.55 / 90.00 | 89.38 / 89.95 | 89.23 / 89.90 | 88.92 / 90.50 | 87.53 / 89.25 | 89.87 / 90.60 | 90.28 / 90.55 | |
| MnasNet | 99.45 / 99.65 | 99.57 / 99.75 | 99.57 / 99.75 | 99.50 / 99.55 | 99.82 / 99.90 | 99.78 / 99.90 | 99.83 / 99.90 | 99.70 / 99.75 | |
| MobileNetV2 | 92.68 / 97.55 | 90.58 / 92.15 | 93.37 / 98.00 | 98.92 / 99.40 | 95.80 / 99.55 | 95.50 / 98.45 | 98.62 / 99.40 | 97.57 / 99.55 | |
| MobileNetV3 | 71.90 / 74.30 | 71.73 / 72.05 | 72.33 / 74.50 | 72.38 / 74.05 | 74.15 / 77.10 | 73.92 / 74.85 | 74.40 / 76.00 | 72.43 / 73.95 | |
| NasBench201 | 74.23 / 95.40 | 83.27 / 91.35 | 69.22 / 82.75 | 71.53 / 83.15 | 77.92 / 86.85 | 68.83 / 75.30 | 73.82 / 77.70 | 74.60 / 90.25 | |
| ResNet | 61.75 / 64.20 | 64.12 / 70.05 | 71.23 / 74.95 | 67.67 / 75.70 | 70.40 / 75.80 | 69.82 / 75.25 | 67.35 / 69.60 | 71.93 / 73.35 | |
| SqueezeNet | 74.13 / 80.95 | 80.68 / 82.15 | 80.37 / 87.40 | 72.87 / 77.40 | 64.35 / 69.20 | 78.77 / 84.05 | 83.70 / 85.90 | 79.10 / 82.00 | |
| VGG | 33.62 / 34.20 | 30.27 / 31.95 | 33.12 / 35.10 | 31.15 / 32.60 | 34.02 / 35.80 | 32.55 / 34.50 | 36.58 / 38.90 | 36.05 / 39.25 | |
| Average | 74.26 / 78.36 | 75.89 / 78.20 | 75.75 / 79.91 | 75.30 / 78.92 | 74.87 / 78.38 | 75.67 / 78.65 | 77.40 / 79.35 | 77.40 / 80.90 |