Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation

arXiv:2605.14047 · cs.CV, cs.AR · Submitted 2026-05-13 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: I'm Tom.

Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.

Tom: We're looking at the paper: "Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation".

Paper summary: Tom: So, we're talking about this paper called "Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation." Basically, Vision Transformers work great on tough vision tasks, but getting them onto edge devices is a nightmare because of how layer normalization slows everything down and uses up too much memory.

Jane: That sounds like the main hurdle. So what's this paper actually proposing to fix that problem? What's the big idea behind "Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation"?

Tom: The core idea is using genetic programming, or GP, to evolve custom scalar functions directly from those pre-trained weights. Instead of just replacing layer normalization with some fixed, standard version, they are trying to find different mathematical expressions that fit each individual layer better.

Lu: I'm interested in the heterogeneity part. They aren't just finding one function for the whole network; they are looking at different layers and evolving functions specific to those layers based on their behavior.

Meng: But if you change the function for every single layer, that sounds like a lot of work, right? What does this evolution actually look like in practice?

Tom: Well, they use genetic programming to search through possible structures. They start with some simple structures—called parse trees—and let the GP evolve them until they find something that minimizes the error between their evolved function and what the original layer normalization was doing.

Jane: So, if we imagine a layer normalization operation as a specific mathematical function, this paper is trying to discover better versions of that function for each part of the transformer network. That makes sense.

Lu: Exactly. They’re not just finding some random approximation; they are evolving these functions to capture the distinct normalization behaviors they see across the network depths, from early layers to deeper blocks where things get more non-linear.

Meng: I worry about the complexity of this search process. Is this GP process computationally expensive enough that it defeats the purpose of making something hardware-aware?

Tom: The authors actually tried to keep it hardware friendly. They set a limit on the initial depth of these parse trees to four, and they cap the total number of nodes at twenty, trying to keep the search space manageable.

Jane: Okay, so they're using this evolved structure to replace the original layer normalization operations in a pre-trained ViT model. That sounds like a big shift in how we deploy these models for real use.

Lalam: From my literature view, this approach is interesting because it tackles the global reduction bottleneck that makes standard layer normalization so bad for edge deployment, which is what page two of the paper points out as creating cross-feature data dependencies.

Paper summary: Tom: That bottleneck is huge because it forces a multi-pass execution where you keep reading and writing intermediate data to off-chip memory, which really eats up your memory bandwidth and slows things down.

Jane: So, the naive question for us is, if this framework works on ViT models like ViT-B and ViT-L—the bigger ones—how much better is the performance compared to just using standard layer normalization?

Lu: The paper shows that their evolved genetic programming solutions achieve significantly higher functional alignment than simpler methods. They capture ninety to ninety-three percent of the variance in the target layer normalization mappings when comparing their GP solutions to a homogeneous baseline, which is way better than what other methods achieved.

Meng: Ninety percent is good, but what about the actual accuracy on vision tasks? Does this function discovery actually translate into better picture recognition or whatever we need for production?

Tom: They report that the best variant they found, GP-D, reaches a peak Top-one accuracy of eighty-four point three two percent on ViT-B and eighty-five point seven four percent on ViT-L <ref:2605.14047#pg1>.

Jane: That's a big jump from where they started. So, if you look at the comparison to the standard layer normalization baseline, that gap shrinks down to just zero point sixty seven percent and zero point forty three percent. That’s tight for a function discovery method.

Lu: It really shows that this method preserves the established feature representations across different network depths because these evolved expressions adapt to those varying behaviors, which is something most fixed replacements fail to do correctly.

Tom: And they show that this entire process—the GP evolution plus the post-training re-alignment phase—can recover performance in a fraction of the time it would take to retrain a model from scratch.

Jane: That's interesting because retraining from scratch is usually prohibitively expensive, so if you can get close to baseline performance without that kind of massive training effort, that lowers the barrier for deployment significantly.

Meng: From my side, I’m thinking about the practical cost of running this evolved model. The paper mentions a significant reduction in arithmetic complexity; it says the aggregate complexity across all twenty-five normalization layers in ViT-B for a single forward pass is thirty-one d FLOPs per token, compared to six hundred d for DyT, which is much better than the standard layer normalization cost.

Tom: That's a big win on the arithmetic front. They also claim that their GP expressions demand about four times fewer total FLOPs than standard layer normalization while simultaneously cutting down on off-chip memory traffic.

Paper summary: Jane: So, we're looking at a framework that cuts both the computational cost and the memory bottleneck without sacrificing much accuracy, based on these measurements. But what’s the catch? What are the limitations of this approach?

Lu: The paper does point out a limitation in terms of generalization. They minimized error on only fifty thousand activation points, which means they might not perfectly capture every possible behavior that layer normalization can exhibit across the entire network structure.

Meng: That’s a real constraint for production. If the model encounters a pattern during inference that wasn't well represented in those fifty thousand test points, will this evolved function break down?

Tom: Yes, they admit that ViT-L shows this gap too; its stronger per-layer alignment doesn't guarantee better retention when you swap out the entire normalization layer for something else.

Jane: So, the paper suggests a way to get highly capable vision models onto local, resource-constrained edge devices by using these layer-specific functions and a post-training re-alignment strategy.

Lu: That’s what it does; it allows for executing these complex models directly on local hardware because it bypasses those memory bottlenecks that usually restrict ViT deployment.

Meng: I'm still focused on the structural side—the authors mention that they need to store twenty-five instruction sets for ViT-B and forty-nine for ViT-L, which means we might still need some kind of structural sharing in future work to keep the model size down.

Tom: And ethically, they bring up that by enabling local processing, we lower cloud reliance and energy footprint, but they also flag the dual-use risks associated with deploying this kind of powerful AI locally.

Jane: So for someone just listening who doesn't read papers, this paper is about finding a clever mathematical way to modify how a vision model normalizes data so it runs faster and uses less power on your device.

Lu: It’s about using genetic programming to evolve those specific normalization functions layer by layer, which seems like a very targeted way to solve the scaling problem inherent in transformer architectures.

Meng: And for me, the key is whether this evolved structure can be reliably deployed without introducing new kinds of errors when it runs on real-world traffic, not just test data.

Tom: The paper’s main point is that this approach preserves the established feature representations while adapting to varying behaviors across network depths.

Jane: So, the authors are claiming they found a way to make ViT models viable for edge hardware without needing massive retraining cycles from scratch.

Conclusion: Tom: So, this paper is about taking those big vision transformers and making them run efficiently on actual edge devices by evolving how they normalize their data layer by layer using genetic programming.

Jane: It sounds like they’re trying to solve that memory bottleneck we talked about earlier where the sequential calculations keep filling up off-chip memory.

Tom: Exactly, and they use this genetic programming thing to find custom mathematical functions for each layer that fit the original normalization behavior better than just using a standard one.

Jane: So, looking at the whole paper and who wrote it, this work is proposing a method to tailor these large transformer models specifically for hardware constraints without having to retrain everything from scratch.

Tom: Yeah, and they show that by doing this evolution, you get high accuracy recovery—like eighty-five point seven four percent on the largest ViT models—while cutting down the total arithmetic operations needed by about four times compared to some other methods like DyT.

Jane: It suggests that the structure of a transformer network isn't just one thing; different layers need different math to work well, and this paper shows how you can discover that specific math automatically.

Tom: The implication is that we might be able to run these high-end vision models locally on devices with very little memory and low power consumption, which is a big deal for real-world applications.

Jane: It’s definitely an interesting direction to explore, especially since they spent time figuring out how to keep the search space small enough for it to actually be hardware friendly.

Tom: And if this approach can generalize beyond just ViT models and image tasks, that would really change how we think about deploying complex AI everywhere.

Department of Machine Learning and Neural Computing Donders Institute for Brain, Cognition, and Behaviour

cs.CV, cs.AR

Submitted: 2026-05-13

Updated: 2026-12-02

Comments: 37 pages, 11 figures. v4: extended experiments to Swin-B and ConvNeXt-B; added Derf baseline, RTL hardware simulations, and robustness and ablation experiments

Code: https://github.com/kierancarrigg/GP-LayerNorm

License: http://creativecommons.org/licenses/by-nc-nd/4.0/

Importance score: 88/100

The gist: Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction…

Key concepts

Layer Normalization Bottleneck
Layer normalization is a standard operation in ViTs that creates cross-feature data dependencies. When deployed on edge hardware, this dependency forces sequential execution and repeated off-chip memory reads/writes, severely limiting speed and increasing energy consumption during inference.
Genetic Programming (GP)
GP is used as a symbolic discovery framework to evolve custom mathematical functions for each layer. It searches for optimal expressions that mimic the behavior of the original normalization layers, allowing the model to adapt its normalization strategy without needing full retraining.
Hardware-Aware Adaptation
This strategy focuses on creating solutions that are computationally efficient for hardware. The GP search is constrained by limits (like a maximum depth of 4) to ensure the evolved functions result in expressions that can be evaluated efficiently on shared, reconfigurable activation units.

Terminology

Summary

Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction bottleneck imposed by layer normalization. p. 0

Where the paper says it

vangerven@donders. nl 1Department of Machine Learning and Neural Computing Donders Institute for Brain, Cognition, and Behaviour Thomas van Aquinostraat 4, 6525 GD Nijmegen, The Netherlands Abstract Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction bottleneck imposed by layer normalization.

<ref:2605.14047#pg1, Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction bottleneck imposed by layer normalization >

The Core Problem Addressed

The paper introduces a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained weights.<ref:2605.14047#pg1, This work proposes a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained weights >. p. 0

Where the paper says it

However, these homogeneous replacements do not optimally fit to all layers’ behaviour and rely on expensive model retraining. In this work, we propose a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained weights.

The primary barrier to the efficient deployment of ViTs on edge accelerators is the global reduction bottleneck imposed by layer normalization. p. 1
Where the paper says it

• We eliminate the LayerNorm global reduction bottleneck, restoring an on-chip streaming dataflow that roughly halves normalization memory access. This achieves a strict reduction in both arithmetic complexity and off-chip memory traffic compared to standard LayerNorm, removing a primary barrier to the efficient deployment of ViTs on bandwidth-bound edge accelerators.

<ref:2605.14047#pg2, This operation creates a cross-feature data dependency that prevents layer fusion and introduces inter-tile dependencies >. p. 1
Where the paper says it

This process involves a reduction operation across the feature dimension, which we define as the global reduction bottleneck. This operation creates a cross-feature data dependency that prevents layer fusion and introduces inter-tile dependencies.

Because the final normalization cannot occur until these statistics are computed sequentially, the system is forced into a multi-pass execution that repeatedly reads and writes intermediate data to off-chip memory. p. 1
Where the paper says it

This operation creates a cross-feature data dependency that prevents layer fusion and introduces inter-tile dependencies. Because the final normalization cannot occur until these statistics are computed sequentially, the system is forced into a multi-pass execution that repeatedly reads and writes intermediate data to off-chip memory, rapidly saturating memory bandwidth, driving up both inference latency and energy consumption [9–11, 13, 15, 17–23].

<ref:2605.14047#pg2, This process rapidly saturating memory bandwidth, driving up both inference latency and energy consumption >

Methodology for Function Discovery

The authors propose a two-fold hardware-aware adaptation strategy: first, a symbolic discovery framework using genetic programming (GP) to evolve layer-specific scalar functions.<ref:2605.14047#pg2, This allows our framework to discover heterogeneous expressions that capture the distinct normalization behaviours observed across the network >. p. 1

Where the paper says it

While prior work [24] demonstrated the viability of fixed scalar replacements, we automate this process via symbolic regression on the input-to-output mappings of pre-trained normalization layers. This allows our framework to discover heterogeneous expressions that capture the distinct normalization behaviours observed across the network.

Second, they propose an efficient post-training re-alignment strategy that recovers the model’s feature space in a fraction of the standard training duration by leveraging existing LayerNorm weights and biases. p. 1
Where the paper says it

This allows our framework to discover heterogeneous expressions that capture the distinct normalization behaviours observed across the network. Second, we propose an efficient post-training re-alignment strategy that recovers the model’s feature space in a fraction of the standard training duration by leveraging existing LayerNorm weights and biases.

<ref:2605.14047#pg2, This eliminates the need for expensive retraining from scratch entirely >. p. 0
Where the paper says it

In this work, we propose a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained weights. Coupled with a novel posttraining re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely.

The GP implementation utilizes candidate solutions represented as parse trees with a maximum initial depth of 4 and a strict complexity limit of 20 nodes to ensure hardware friendliness. p. 3
Where the paper says it

1, our approach discovers specialized replacements that accommodate the varying functional behaviours observed across the network depths. In our GP implementation, candidate solutions are represented as parse trees with a maximum initial depth of 4 and a strict complexity limit of 20 nodes to ensure hardware friendliness.

<ref:2605.14047#pg3>. The primary objective of the search is to minimize the error between the evolved function f(x) and the target mapping ypre. p. 3
Where the paper says it

Finally, to improve search efficiency, constants within the trees are refined using gradient-based optimization for 10 steps per evaluation. The primary objective of the search is to minimize the error between the evolved function f(x) and the target mapping ypre.

<ref:2605.14047#pg3>

Performance and Accuracy Gains

The evolved GP solutions achieve significantly higher functional alignment than homogeneous baselines across both ViT-B and ViT-L, capturing 90–93% of the variance (R2) in the target LayerNorm mappings versus only 70–76% for DyT.<ref:2605.14047#pg3>. The GP variants show the most rapid and complete recovery, with the best variant GP-D reaching a peak Top-1 accuracy of 84. p. 6

Where the paper says it

31% for ViT-L) within the first epoch of fine-tuning, demonstrating that the model can typically be successfully re-aligned using only a fraction of the 300 epochs required by previous methods that train from scratch; the one exception is DyT-F at ViT-L, which never fully recovers to the pre-trained baseline across the full 20-epoch schedule. Specifically, the GP-D and GP-F variants show the most rapid and complete recovery, whereas the affine-only variants (GP-A and DyT-A) level off at lower accuracies.

32% at ViT-B and 85. p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

74% at ViT-L. p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

<ref:2605.14047#pg7, This narrows the gap to the standard LayerNorm baseline to just 0. p. 6
Where the paper says it

32% at ViT-B and 85. 74% at ViT-L, narrowing the gap to the standard LayerNorm baseline to just 0.

p. 6
Where the paper says it

32% at ViT-B and 85. 74% at ViT-L, narrowing the gap to the standard LayerNorm baseline to just 0.

67% and 0.43%, respectively >

Hardware Efficiency Analysis

The GP framework circumvents the trade-off entirely, achieving a simultaneous reduction in both off-chip memory traffic and arithmetic complexity without a meaningful drop in model performance.<ref:2605.14047#pg8, The aggregate complexity across all 25 normalization layers in ViT-B for a single forward pass is 31d FLOPs per token, compared to 125d + 75 for LayerNorm and 600d for DyT > GP expressions demand approximately 4× fewer total FLOPs than LN. p. 7

Where the paper says it

Our hardware-aware GP search explicitly restricts FLOP usage, producing layer-specific expressions that are uniformly cheaper than both the DyT and LN baselines. (Right) Aggregate complexity across all 25 normalization layers for a single forward pass (sequence length ℓ = 197, feature dimension d = 768): total FLOPs (MFLOPs) versus total memory read access (MB).

<ref:2605.14047#pg8>

Implications and Future Work

The framework demonstrates that layer-specific evolution preserves the established feature representations by adapting to varying behaviors across network depths.<ref:2605.14047#pg9, The heterogeneity of these expressions does not require unique hardware circuits for every layer, allowing a single reconfigurable activation unit to evaluate the necessary symbolic primitives on a shared datapath >. p. 8

Where the paper says it

Crucially, the heterogeneity of these expressions does not require unique hardware circuits for every layer. A single reconfigurable activation unit can evaluate the necessary symbolic primitives on a shared datapath, allowing simpler expressions to bypass expensive transcendental pipelines for lower latency and energy.

Future work could explore structural sharing where layers exhibiting similar normalization mappings are constrained to reuse the same symbolic sub-trees. p. 8
Where the paper says it

Because we evolve a unique equation for every layer, the deployed model must store 25 instruction sets at ViT-B and 49 at ViT-L. Future work could explore structural sharing, where layers exhibiting similar normalization mappings are constrained to reuse the same symbolic sub-trees.

<ref:2605.14047#pg9, By successfully eliminating the memory bottlenecks that restrict ViT deployment, our framework allows for the execution of highly capable vision models directly on local, resource-constrained edge devices >. p. 8
Where the paper says it

Beyond these technical avenues, we must consider the broader societal impacts of our work. By successfully eliminating the memory bottlenecks that restrict ViT deployment, our framework allows for the execution of highly capable vision models directly on local, resource-constrained edge 9

The paper encourages prioritizing transparent, ethical frameworks when deploying hardware-aware vision models in real-world environments. p. 9
Where the paper says it

Specifically, unconstrained edge vision could facilitate pervasive surveillance systems, raising privacy concerns, or be adapted for autonomous military applications. We encourage the research community to prioritize transparent, ethical frameworks when deploying hardware-aware vision models in real-world environments.

<ref:2605.14047#pg10, This local processing improves latency, reduces cloud reliance, and lowers the energy footprint of AI systems >

Hardware Cost Derivations

The worst-case FLOP cost of all normalization operations is derived using IEEE-754 FP32 unit-roundoff accuracy.<ref:2605.14047#pg21, The per-token FLOP cost of LayerNorm follows directly from its arithmetic definition, resulting in a total of 5d + 3 FLOPs per token under the standard arithmetic model >. p. 7

Where the paper says it

We count each non-transcendental operation as a single FLOP, and evaluate read bytes only, as output write behaviour is structurally identical across methods. Under this accounting, normalization requires 5d + 3 FLOPs per token for standard LayerNorm and 24d for DyT, where d is the feature dimension.

p. 7
Where the paper says it

We count each non-transcendental operation as a single FLOP, and evaluate read bytes only, as output write behaviour is structurally identical across methods. Under this accounting, normalization requires 5d + 3 FLOPs per token for standard LayerNorm and 24d for DyT, where d is the feature dimension.

DyT incurs roughly a 4. p. 7
Where the paper says it

Crucially, the GP framework secures this memory benefit without the arithmetic penalty associated with homogeneous replacements. While DyT incurs roughly a 4.

p. 7
Where the paper says it

Crucially, the GP framework secures this memory benefit without the arithmetic penalty associated with homogeneous replacements. While DyT incurs roughly a 4.

8× higher FLOP count than standard LN, while GP demands approximately 4× fewer total FLOPs than LN. p. 7
Where the paper says it

While DyT incurs roughly a 4. 8× higher FLOP count than standard LN, our GP expressions demand approximately 4× fewer total FLOPs than LN.

p. 7
Where the paper says it

While DyT incurs roughly a 4. 8× higher FLOP count than standard LN, our GP expressions demand approximately 4× fewer total FLOPs than LN.

<ref:2605.14047#pg21>. The paper notes that the GP framework circumvents the trade-off entirely, achieving a simultaneous reduction in both off-chip memory traffic and arithmetic complexity without a meaningful drop in model performance. p. 7
Where the paper says it

99%, DyT: 83. p. 1

Where the paper says it

A notable advancement by Zhu et al. [24] proposes replacing LayerNorm with an element-wise operation called Dynamic Tanh (DyT), defined as DyT(x) = tanh(αx).

The three methods therefore do not lie on a common Pareto curve: rather than shifting along an efficiency frontier, the GP framework circumvents the trade-off entirely, achieving a simultaneous reduction in both off-chip memory traffic and arithmetic complexity without a meaningful drop in model performance.

<ref:2605.14047#pg8, This structural efficiency is paired with stronger performance recovery (GP: 84. p. 7
Where the paper says it

8× higher FLOP count than standard LN, our GP expressions demand approximately 4× fewer total FLOPs than LN. This structural efficiency is paired with stronger performance recovery (GP: 84.

32%, LN: 84.99%, DyT: 83.36%) >. The authors adopt the minimum polynomial order N = 7 for the exponential function to satisfy FP32 unit-roundoff accuracy, resulting in a cost of 19 FLOPs. p. 7
Where the paper says it

For DyT and our evolved expressions, transcendental functions (tanh(x) and σ(x)) are decomposed into exponential forms and evaluated via Horner’s method [34]. This approach is FLOP-optimal under the standard arithmetic model [35], setting the polynomial order to the minimum satisfying IEEE-754 FP32 unit-roundoff accuracy.

p. 7
Where the paper says it

For DyT and our evolved expressions, transcendental functions (tanh(x) and σ(x)) are decomposed into exponential forms and evaluated via Horner’s method [34]. This approach is FLOP-optimal under the standard arithmetic model [35], setting the polynomial order to the minimum satisfying IEEE-754 FP32 unit-roundoff accuracy.

<ref:2605.14047#pg20, This is used as the FLOP baseline to obtain a tight lower bound on arithmetic cost >. p. 8
Where the paper says it

Specifically, our GP solutions maintain lower arithmetic complexity than both standard LayerNorm and the DyT baseline, while reaching a significantly higher accuracy ceiling than DyT. Rather than trading arithmetic cost for memory traffic, our methodology reduces both: maintaining DyT’s memory advantages while strictly reducing computational cost.

p. 8
Where the paper says it

Specifically, our GP solutions maintain lower arithmetic complexity than both standard LayerNorm and the DyT baseline, while reaching a significantly higher accuracy ceiling than DyT. Rather than trading arithmetic cost for memory traffic, our methodology reduces both: maintaining DyT’s memory advantages while strictly reducing computational cost.

The sigmoid and hyperbolic tangent are treated as unified primitives with costs of 22 and 23 FLOPs respectively. p. 3
Where the paper says it

The operator set O consists of addition (+), multiplication (×), the hyperbolic tangent (tanh), the sigmoid function (σ), negation (neg), and value clipping to ±5. To optimize directly for hardware efficiency, we assign an estimated floating-point operations (FLOPs) cost to each operator, which serves as the complexity metric during the evolutionary search.

<ref:2605.14047#pg21, These costs propagate to both functions under the unified exp primitive >

Experimental Setup Details

All re-alignment experiments are conducted on the ImageNet-1K dataset using pre-trained ViT-B/16 and ViT-L/16 architectures.<ref:2605.14047#pg13, The authors utilized Automatic Mixed Precision (AMP) throughout to optimize memory usage and training speed for both architectures >. Each variant was finetuned for exactly 20 epochs without a warmup phase, using the learning rate schedule listed for that variant in Table 3 or Table 4. p. 4

Where the paper says it

2), while DyT and LN vary the training initialization seed. All models are trained for 20 epochs using AdamW without warmup, applying a cosine learning rate schedule for most variants; the complete per-variant, per-architecture schedule is detailed in Appendix C.

p. 4
Where the paper says it

2), while DyT and LN vary the training initialization seed. All models are trained for 20 epochs using AdamW without warmup, applying a cosine learning rate schedule for most variants; the complete per-variant, per-architecture schedule is detailed in Appendix C.

p. 4
Where the paper says it

2), while DyT and LN vary the training initialization seed. All models are trained for 20 epochs using AdamW without warmup, applying a cosine learning rate schedule for most variants; the complete per-variant, per-architecture schedule is detailed in Appendix C.

<ref:2605.14047#pg13, The total compute required for this research project is estimated to be approximately 3,150 GPU hours across both architectures >. The optimal hyperparameters were determined via independent grid searches for each variant to ensure a fair performance comparison. p. 4
Where the paper says it

All models are trained for 20 epochs using AdamW without warmup, applying a cosine learning rate schedule for most variants; the complete per-variant, per-architecture schedule is detailed in Appendix C. We performed independent grid searches per variant to optimize the peak learning rate, weight decay, and stochastic depth.

p. 4
Where the paper says it

All models are trained for 20 epochs using AdamW without warmup, applying a cosine learning rate schedule for most variants; the complete per-variant, per-architecture schedule is detailed in Appendix C. We performed independent grid searches per variant to optimize the peak learning rate, weight decay, and stochastic depth.

p. 4
Where the paper says it

All models are trained for 20 epochs using AdamW without warmup, applying a cosine learning rate schedule for most variants; the complete per-variant, per-architecture schedule is detailed in Appendix C. We performed independent grid searches per variant to optimize the peak learning rate, weight decay, and stochastic depth.

<ref:2605.14047#pg13>

Functional Alignment Quality

The GP solutions achieve substantially better alignment with the original LayerNorm mappings at both scales, explaining approximately 90% of the variance at ViT-B (R2 = 0.900 ± 0.004) and 92. p. 5

Where the paper says it

Our GP solutions achieve a substantially better alignment with the original LayerNorm mappings at both scales, explaining approximately 90% of the variance at ViT-B (R2 = 0. 004) and 92.

7% at ViT-L (R2 = 0. p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

927 ± 0.01) compared to only 75. p. 0
Where the paper says it

Coupled with a novel posttraining re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely. Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84.

p. 0
Where the paper says it

Coupled with a novel posttraining re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely. Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84.

6%, respectively, for the optimized DyT baseline. p. 5
Where the paper says it

001), compared to only 70. 6%, respectively, for the optimized DyT baseline.

p. 5
Where the paper says it

001), compared to only 70. 6%, respectively, for the optimized DyT baseline.

<ref:2605.14047#pg3>. Figure 2 visualizes the discovered symbolic expressions overlaid on the target mappings for four representative layers across ViT-B's network depth.<ref:2605.14047#pg15, The visualization demonstrates the framework’s ability to seamlessly adapt to the structural transition from near-linear behaviour in early layers to highly non-linear, S-shaped characteristics in deeper blocks >

Model Re-alignment Efficacy

Before any tuning has occurred, the GP variants already maintain a Top-1 accuracy of approximately 51.4% at ViT-B and 22. p. 0

Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

3% at ViT-L. p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

p. 0
Where the paper says it

Our evolved expressions accurately approximate the target normalization behaviours, capturing 90–93% of the variance (R2 ) compared to only 70–76% for homogeneous baselines, allowing our modified architecture to recover 84. 32% Top-1 ImageNet-1K accuracy on ViT-B and 85.

<ref:2605.14047#pg7>. The GP-D variant reaches a peak Top-1 accuracy of 84. p. 6
Where the paper says it

The peak quantitative results for this re-alignment are summarized in Table 2. Our best-performing variant, GP-D, reaches a peak Top-1 accuracy of 84.

32% at ViT-B and 85.74% at ViT-L.<ref:2605.14047#pg7, This narrows the gap to the standard LayerNorm baseline to just 0.67% and 0.43%, respectively >. p. 5
Where the paper says it

001), compared to only 70. 6%, respectively, for the optimized DyT baseline.

p. 5
Where the paper says it

001), compared to only 70. 6%, respectively, for the optimized DyT baseline.

The results validate that a short re-alignment phase is a viable and efficient alternative to training normalization-free architectures from initialization. p. 6
Where the paper says it

5% accuracy reported in the original study [24], which required training from scratch for over 300 epochs. This demonstrates that a short re-alignment phase is a viable and efficient alternative to training normalization-free architectures from initialization.

p. 6
Where the paper says it

5% accuracy reported in the original study [24], which required training from scratch for over 300 epochs. This demonstrates that a short re-alignment phase is a viable and efficient alternative to training normalization-free architectures from initialization.

<ref:2605.14047#pg7, The best-performing variant, GP-D, reaches 84. p. 6
Where the paper says it

The peak quantitative results for this re-alignment are summarized in Table 2. Our best-performing variant, GP-D, reaches a peak Top-1 accuracy of 84.

p. 6
Where the paper says it

The peak quantitative results for this re-alignment are summarized in Table 2. Our best-performing variant, GP-D, reaches a peak Top-1 accuracy of 84.

32% at ViT-B and 85.74% at ViT-L while narrowing the gap to the standard LayerNorm baseline to just 0. p. 6
Where the paper says it

32% at ViT-B and 85. 74% at ViT-L, narrowing the gap to the standard LayerNorm baseline to just 0.

p. 6
Where the paper says it

32% at ViT-B and 85. 74% at ViT-L, narrowing the gap to the standard LayerNorm baseline to just 0.

p. 6
Where the paper says it

32% at ViT-B and 85. 74% at ViT-L, narrowing the gap to the standard LayerNorm baseline to just 0.

67% and 0.43%, respectively >

Limitations and Generalizability

The GP framework minimizes MSE on just 50,000 activation points, which may limit how well solutions generalize to the true distribution of LayerNorm behaviours.<ref:2605.14047#pg9, ViT-L illustrates this gap: its stronger per-layer alignment does not yield higher retention upon replacement >. p. 8

Where the paper says it

Despite heavy computational costs, this directly optimizes the true objective and captures cross-layer interactions. ViT-L illustrates this gap: its stronger per-layer alignment does not yield higher retention upon replacement.

Beyond generalization, whether our heterogeneous GP framework similarly generalizes to other vision architectures or NLP domains remains an open question. p. 8
Where the paper says it

However, whether our heterogeneous GP framework similarly generalizes to other vision architectures or NLP domains remains an open question. Beyond generalization, our layer-specific approach presents an opportunity for hardware optimization.

<ref:2605.14047#pg9, The paper notes that the deployed model must store 25 instruction sets at ViT-B and 49 at ViT-L, suggesting a need for structural sharing in future work >

Ethical Considerations

By successfully eliminating the memory bottlenecks that restrict ViT deployment, our framework allows for the execution of highly capable vision models directly on local, resource-constrained edge devices.<ref:2605.14047#pg10, While this local processing improves latency, reduces cloud reliance, and lowers the energy footprint of AI systems >. p. 9

Where the paper says it

While this local processing improves latency, reduces cloud reliance, and lowers the energy footprint of AI systems, it inherently introduces dual-use risks. Specifically, unconstrained edge vision could facilitate pervasive surveillance systems, raising privacy concerns, or be adapted for autonomous military applications.

This inherently introduces dual-use risks regarding pervasive surveillance systems or autonomous military applications. p. 9
Where the paper says it

While this local processing improves latency, reduces cloud reliance, and lowers the energy footprint of AI systems, it inherently introduces dual-use risks. Specifically, unconstrained edge vision could facilitate pervasive surveillance systems, raising privacy concerns, or be adapted for autonomous military applications.

<ref:2605.14047#pg10, The research community is encouraged to prioritize transparent, ethical frameworks when deploying hardware-aware vision models in real-world environments >

Computational Cost Quantification

The per-token FLOP cost of LayerNorm follows directly from its arithmetic definition, resulting in a total of 5d + 3 FLOPs per token under the standard arithmetic model.<ref:2605.14047#pg21, The GP expressions require 31d FLOPs per token across all 25 normalization layers in ViT-B, compared to 600d for DyT >. p. 7

Where the paper says it

While our FLOP-aware selection tightly bounds the maximum compute, the per-layer cost still dynamically adapts to the heterogeneity of the underlying normalization mappings: near-linear mappings in early blocks are replaced by absolute minimal single-FLOP expressions, while deeper layers with S-shaped responses require slightly more operations. Concretely, all 25 layers fall below both the LN baseline of 5d + 3 FLOPs per token and the DyT baseline, with the vast majority (21 layers) requiring only 1d FLOPs.

The total read access per forward pass is roughly half that of LayerNorm, requiring only 4d bytes per token for GP. p. 6
Where the paper says it

Because intra-method variants differ only in parameter values and not underlying architecture, selecting the highest accuracy point fairly reflects each method’s reachable performance at identical hardware cost. On the efficiency side, we analytically quantify computational cost in floating-point operations (FLOPs) and memory traffic in read bytes per forward pass under FP32 storage.

<ref:2605.14047#pg22>. The authors report that the GP framework circumvents the trade-off entirely, achieving a simultaneous reduction in both off-chip memory traffic and arithmetic complexity without a meaningful drop in model performance. p. 7
Where the paper says it

99%, DyT: 83. The three methods therefore do not lie on a common Pareto curve: rather than shifting along an efficiency frontier, the GP framework circumvents the trade-off entirely, achieving a simultaneous reduction in both off-chip memory traffic and arithmetic complexity without a meaningful drop in model performance.

<ref:2605.14047#pg8, These results validate our broader post-training strategy; both our DyT-A and DyT-D fine-tuning variants surpass the 82. p. 6
Where the paper says it

The one setting where DyT leads is affine-only fine-tuning at ViT-B; in every other comparison across both architectures, our GP solutions match or exceed the fixed DyT baseline. Furthermore, these results validate our broader post-training strategy; both our DyT-A and DyT-D fine-tuning variants surpass the 82.

5% accuracy reported in the original study [24] which required training from scratch for over 300 epochs >

The worst-case FLOP cost of all normalization operations is derived using IEEE-754 FP32 unit-roundoff accuracy.<ref:2605.14047#pg21, The per-token FLOP cost of LayerNorm follows directly from its arithmetic definition, resulting in a total of 5d + 3 FLOPs per token under the standard arithmetic model >. DyT incurs roughly a 4.8× higher FLOP count than standard LN, while GP demands approximately 4× fewer total FLOPs than LN.<ref:2605.14047#pg21>. The authors adopt the minimum polynomial order N = 7 for the exponential function to satisfy FP32 unit-roundoff accuracy, resulting in a cost of 19 FLOPs.<ref:2605.14047#pg20, This is used as the FLOP baseline to obtain a tight lower bound on arithmetic cost >. The sigmoid and hyperbolic tangent are treated as unified primitives with costs of 22 and 23 FLOPs respectively under the unified exp primitive. p. 3

Where the paper says it

The operator set O consists of addition (+), multiplication (×), the hyperbolic tangent (tanh), the sigmoid function (σ), negation (neg), and value clipping to ±5. To optimize directly for hardware efficiency, we assign an estimated floating-point operations (FLOPs) cost to each operator, which serves as the complexity metric during the evolutionary search.

<ref:2605.14047#pg21, These costs propagate to both functions under the unified exp primitive >

Experimental Settings

All re-alignment experiments are conducted on the ImageNet-1K dataset using pre-trained ViT-B/16 and ViT-L/16 architectures.<ref:2605.14047#pg13, The authors utilized Automatic Mixed Precision (AMP) throughout to optimize memory usage and training speed for both architectures >. Each variant was finetuned for exactly 20 epochs without a warmup phase, using the learning rate schedule listed for that variant in Table 3 or Table 4.<ref:2605.14047#pg13, The total compute required for this research project is estimated to be approximately 3,150 GPU hours across both architectures >. The optimal hyperparameters were determined via independent grid searches for each variant to ensure a fair performance comparison.<ref:2605.14047#pg13>

The GP solutions achieve substantially better alignment with the original LayerNorm mappings at both scales, explaining approximately 90% of the variance at ViT-B (R2 = 0.900 ± 0.01) and 92.7% at ViT-L (R2 = 0.927 ± 0.01) compared to only 75.6%, respectively, for the optimized DyT baseline.<ref:2605.14047#pg3>. Figure 2 visualizes the discovered symbolic expressions overlaid on the target mappings for four representative layers across ViT-B's network depth.<ref:2605.14047#pg15, The visualization demonstrates the framework’s ability to seamlessly adapt to the structural transition from near-linear behaviour in early layers to highly non-linear, S-shaped characteristics in deeper blocks >

Before any tuning has occurred, the GP variants already maintain a Top-1 accuracy of approximately 51.4% at ViT-B and 22.3% at ViT-L.<ref:2605.14047#pg7, The GP-D variant reaches a peak Top-1 accuracy of 84. p. 6

Where the paper says it

The peak quantitative results for this re-alignment are summarized in Table 2. Our best-performing variant, GP-D, reaches a peak Top-1 accuracy of 84.

32% at ViT-B and 85.74% at ViT-L while narrowing the gap to the standard LayerNorm baseline to just 0.67% and 0.43%, respectively >. The results validate that a short re-alignment phase is a viable and efficient alternative to training normalization-free architectures from initialization.<ref:2605.14047#pg7, The best-performing variant, GP-D, reaches 84.32% at ViT-B and 85.74% at ViT-L while narrowing the gap to the standard LayerNorm baseline to just 0.67% and 0.43%, respectively >

All re-alignment experiments are conducted on the ImageNet-1K dataset using pre-trained ViT-B/16 and ViT-L/16 architectures.<ref:2605.14047#pg13, The authors utilized Automatic Mixed Precision (AMP) throughout to optimize memory usage and training speed for both architectures >. Each variant was finetuned for exactly 20 epochs without a warmup phase, using the learning rate schedule listed for that variant in Table 3 or Table 4.<ref:2605.14047#pg13, The total compute required for this research project is estimated to be approximately 3,150 GPU hours across both architectures >. The optimal hyperparameters were determined via independent grid searches for each variant to ensure a fair performance comparison.<ref:2605.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Hardware-aware inference on edge devices is significantly improved by utilizing genetic programming to evolve heterogeneous, layer-specific scalar functions directly from pre-trained weights. This allows for a strict reduction in both arithmetic complexity and off-chip memory traffic compared to standard LayerNorm, removing a primary barrier to the efficient deployment of Vision Transformers on edge accelerators.

  2. Model performance recovery is accelerated by employing a novel posttraining re-alignment strategy that leverages existing LayerNorm weights and biases to recover high accuracy in only 20 epochs, completely avoiding the need for expensive retraining from scratch.

  3. The system achieves superior functional alignment compared to homogeneous baselines, capturing 90–93% of the variance (R2) in the target LayerNorm mappings versus only 70–76% for DyT, resulting in a Top-1 ImageNet-1K accuracy of 84.32% on ViT-B and 85.74% on ViT-L in only 20 epochs.

  4. The architecture eliminates the LayerNorm global reduction bottleneck, restoring an on-chip streaming dataflow that roughly halves normalization memory access, which enables token-wise tiling and layer fusion, leading to a 2x reduction in off-chip memory traffic.

  5. The evolved expressions are layer-specific, meaning they adapt to the network's varying functional behaviors, such as near-linear mappings in early blocks and highly non-linear, S-shaped curves in deeper blocks, ensuring that the model retains established feature representations during re-alignment.

Abstract

Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction bottleneck imposed by layer normalization. Recent methods attempt to bypass this by replacing normalization layers with hardware-friendly scalar approximations. However, these homogeneous replacements do not optimally fit to all layers' behaviour and rely on expensive model retraining. In this work, we propose a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained network activations. Because each layer receives its own expression, the evolved functions adapt to the changing normalization behaviour across network depth. Coupled with a novel post-training re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely. After only 20 epochs of re-alignment, our modified models recover 84.32% Top-1 ImageNet-1K accuracy on ViT-B and 85.74% on ViT-L. Across four pre-trained architectures (ViT-B, ViT-L, Swin-B, and ConvNeXt-B), our best variant stays within 0.8% of the pre-trained model, and our expressions outperform the homogeneous Dynamic Tanh (DyT) baseline in 11 of 12 settings. By retaining near-baseline accuracy while removing the global reduction bottleneck, our expressions make normalization cheaper on edge hardware. In register-transfer level (RTL) simulations of two chips, they need about three times fewer compute cycles than LayerNorm and half of its off-chip reads on edge devices with small on-chip memory.

Sources

Related papers