FlexiBERT: Are Current Transformer Architectures too Homogeneous and Rigid?
Not on the map. Why?
Abstract (arXiv)
The existence of a plethora of language models makes the problem of selecting the best one for a custom task challenging. Most state-of-the-art methods leverage transformer-based models (e.g., BERT) or their variants. Training such models and exploring their hyperparameter space, however, is computationally expensive. Prior work proposes several neural architecture search (NAS) methods that employ performance predictors (e.g., surrogate models) to address this issue; however, analysis has been limited to homogeneous models that use fixed dimensionality throughout the network. This leads to sub-optimal architectures. To address this limitation, we propose a suite of heterogeneous and flexible models, namely FlexiBERT, that have varied encoder layers with a diverse set of possible operations and different hidden dimensions. For better-posed surrogate modeling in this expanded design space, we propose a new graph-similarity-based embedding scheme. We also propose a novel NAS policy, called BOSHNAS, that leverages this new scheme, Bayesian modeling, and second-order optimization, to quickly train and use a neural surrogate model to converge to the optimal architecture. A comprehensive set of experiments shows that the proposed policy, when applied to the FlexiBERT design space, pushes the performance frontier upwards compared to traditional models. FlexiBERT-Mini, one of our proposed models, has 3% fewer parameters than BERT-Mini and achieves 8.9% higher GLUE score. A FlexiBERT model with equivalent performance as the best homogeneous model achieves 2.6x smaller size. FlexiBERT-Large, another proposed model, achieves state-of-the-art results, outperforming the baseline models by at least 5.7% on the GLUE benchmark.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 49 of its 64 references that are in the map. First posted on arXiv 23 May 2022.
Builds on
49 of 64 references.
References · 49
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,501
37 more
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,200
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2017Learning Transferable Architectures for Scalable Image Recognitioncited by 1,101
- 2019Cross-lingual Language Model Pretrainingcited by 1,090
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
- 2018Regularized Evolution for Image Classifier Architecture Searchcited by 909
- 2018Efficient Neural Architecture Search via Parameter Sharingcited by 837
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
- 2019AutoML: A Survey of the State-of-the-Artcited by 390
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2019NAS-Bench-101: Towards Reproducible Neural Architecture Searchcited by 344
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 251
- 2017graph2vec: Learning Distributed Representations of Graphscited by 230
- 2018Music Transformercited by 211
- 2020ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learningcited by 202
- 2019The Evolved Transformercited by 180
- 2019BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Searchcited by 179
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 164
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2019Well-Read Students Learn Better: On the Importance of Pre-training Compact Modelscited by 120
- 2021How Powerful are Performance Predictors in Neural Architecture Search?cited by 90
- 2020ConvBERT: Improving BERT with Span-based Dynamic Convolutioncited by 88
- 2021NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture Searchcited by 56
- 2020AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Searchcited by 51
- 2016Natural-Parameter Networks: A Class of Probabilistic Neural Networkscited by 34
- 2021AutoTinyBERT: Automatic Hyper-parameter Optimization for Efficient Pre-trained Language Modelscited by 31
- 2020Neural Architecture Generator Optimizationcited by 30
- 2021AutoBERT-Zero: Evolving BERT Backbone from Scratchcited by 21
- 2021COSCO: Container Orchestration using Co-Simulation and Gradient Based Optimization for Fog Computing Environmentscited by 19
- 2020schuBERT: Optimizing Elements of BERTcited by 17
- 2020NASGEM: Neural Architecture Search via Graph Embedding Methodcited by 9
- 2021GOSH: Task Scheduling Using Deep Surrogate Models in Fog Computing Environmentscited by 5
- 2019SPRING: A Sparsity-Aware Reduced-Precision Monolithic 3D CNN Accelerator Architecture for Training and Inferencecited by 4
Built on by
Citing papers per year: 2022: 2; 2023: 4; 2024: 1; 2025: 2; 2026: 3.
12 papers.
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformerscited by 24
- 2024Hybrid Quantum Vision Transformers for Event Classification in High Energy Physicscited by 10
- 2023Training-free Neural Architecture Search for RNNs and Transformerscited by 9
- 2022CODEBench: A Neural Architecture and Hardware Accelerator Co-Design Frameworkcited by 5
- 2023EdgeTran: Co-designing Transformers for Efficient Inference on Mobile Edge Platformscited by 2
- 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inferencecited by 1
- 2025W-PCA Based Gradient-Free Proxy for Efficient Search of Lightweight Language Modelscited by 1
- 2025TabiBERT: A Large-Scale ModernBERT Foundation Model and A Unified Benchmark for Turkishcited by 1
- 2022Compilation and Optimizations for Efficient Machine Learning on Embedded Systemscited by 0
- 2026Zero-Shot Neural Network Evaluation with Sample-Wise Activation Patternscited by 0
- 2026Designing Compact Neural Architectures via Neuron Gating and Mixed Activationcited by 0
- 2026Neural Spectral Capacity: Measuring and Designing Architectures from Network Specification Alonecited by 0
- 2026Neural Spectral Capacity: Measuring and Designing Architectures from Network Specification Alone19 Sep 2026
- 2026Designing Compact Neural Architectures via Neuron Gating and Mixed Activation14 Aug 2026
- 2026Zero-Shot Neural Network Evaluation with Sample-Wise Activation Patterns8 May 2026
- 2025TabiBERT: A Large-Scale ModernBERT Foundation Model and A Unified Benchmark for Turkish28 Dec 2025
- 2025W-PCA Based Gradient-Free Proxy for Efficient Search of Lightweight Language Models22 Apr 2025
- 2024Hybrid Quantum Vision Transformers for Event Classification in High Energy Physics1 Feb 2024
- 2023Training-free Neural Architecture Search for RNNs and Transformers1 Jun 2023
- 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inference27 Mar 2023
- 2023EdgeTran: Co-designing Transformers for Efficient Inference on Mobile Edge Platforms24 Mar 2023
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformers28 Feb 2023
- 2022CODEBench: A Neural Architecture and Hardware Accelerator Co-Design Framework7 Dec 2022
- 2022Compilation and Optimizations for Efficient Machine Learning on Embedded Systems6 Jun 2022