mlsanityData to 7 Oct 2026

Sample-based Dynamic Hierarchical Transformer with Layer and Head Flexibility via Contextual Bandit

arXiv 2312.03038 ↗First posted 5 Dec 2023cs.LG cs.AI cs.NEcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformer requires a fixed number of layers and heads which makes them inflexible to the complexity of individual samples and expensive in training and inference. To address this, we propose a sample-based Dynamic Hierarchical Transformer (DHT) model whose layers and heads can be dynamically configured with single data samples via solving contextual bandit problems. To determine the number of layers and heads, we use the Uniform Confidence Bound while we deploy combinatorial Thompson Sampling in order to select specific head combinations given their number. Different from previous work that focuses on compressing trained networks for inference only, DHT is not only advantageous for adaptively optimizing the underlying network architecture during training but also has a flexible network for efficient inference. To the best of our knowledge, this is the first comprehensive data-driven dynamic transformer without any additional auxiliary neural networks that implement the dynamic system. According to the experiment results, we achieve up to 74% computational savings for both training and inference with a minimal loss of accuracy.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 29 of its 45 references that are in the map. First posted on arXiv 5 Dec 2023.

Builds on

29 of 45 references.

References · 29

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  7. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  8. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  9. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  10. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  11. 2019Are Sixteen Heads Really Better than One?cited by 803
  12. 2019Importance Estimation for Neural Network Pruningcited by 531
17 more
  1. 2019COMET: Commonsense Transformers for Automatic Knowledge Graph Constructioncited by 450
  2. 2017ThiNet: A Filter Level Pruning Method for Deep Neural Network Compressioncited by 438
  3. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
  4. 2019Depth-Adaptive Transformercited by 227
  5. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
  6. 2019Distilling Task-Specific Knowledge from BERT into Simple Neural Networkscited by 152
  7. 2019Adaptive Attention Span in Transformerscited by 148
  8. 2017Active Bias: Training More Accurate Neural Networks by Emphasizing High Variance Samplescited by 147
  9. 2017Soft Weight-Sharing for Neural Network Compressioncited by 99
  10. 2020An Overview of Neural Network Compressioncited by 59
  11. 2019Efficient 8-Bit Quantization of Transformer Neural Machine Language Translation Modelcited by 58
  12. 2020Large Scale Legal Text Classification Using Transformer Modelscited by 18
  13. 2020Adaptive Transformers in RLcited by 13
  14. 2020Extremely Low Bit Transformer Quantization for On-Device Neural Machine Translationcited by 13
  15. 2021Text Compression-aided Transformer Encodingcited by 13
  16. 2021Model-based Reinforcement Learning for Service Mesh Fault Resiliency in a Web Application-levelcited by 5
  17. 2019Cramnet: Layer-wise Deep Neural Network Compression with Knowledge Transfer from a Teacher Networkcited by 1

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.