Manuscript Offprint

arXiv:2608.27794

Node-wise Feature Encoding for Neural Performance Prediction

Matthew Grenier, William Hammer, Andrew Heuer, Nikhil Krishna, Yi Wang, Ramtin Zand

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

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

Figure

(a) Without our encoding method

NNFormer Average Attention Heat Map With Node-level Static Features

Figure

(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.

References (52)