By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: How We Found Early-Bird Subnetworks in Transformers Without Retraining Everything | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > How We Found Early-Bird Subnetworks in Transformers Without Retraining Everything | HackerNoon
Computing

How We Found Early-Bird Subnetworks in Transformers Without Retraining Everything | HackerNoon

News Room
Last updated: 2025/04/09 at 1:16 AM
News Room Published 9 April 2025
Share
SHARE

Table of Links

  1. Introduction
  2. Related Work
  3. Methodology
  4. Experiments
  5. Conclusion and References

3. Methodology

In this study, we investigate the early-bird ticket hypothesis in Transformer models using the masked distance metric. Our approach involves exploring the early-bird phenomenon during full training for vision transformers and limiting it to the fine-tuning stage for language models. The methodology consists of the following steps:

1. Iterative Pruning: We perform iterative pruning on the Transformer models to identify the subnetworks that can potentially serve as early-bird tickets [13]. The pruning process involves gradually removing the least important weights based on their magnitude.

  1. Masked Distance Calculation: To determine the optimal point at which the early-bird ticket emerges, we calculate the masked distance between two consecutive epochs during the training or fine-tuning process. The masked distance metric measures the similarity between the pruned masks of consecutive epochs, providing insights into the stability and convergence of the subnetworks.

  2. Early-Bird Ticket Selection: We select the earlybird ticket by identifying the pruned mask that crosses a chosen threshold. The threshold is determined by observing the changes in masked distance across all epochs [13]. For vision transformers, we set a pruning threshold of 0.1, while for text transformers, we use a threshold of 0.01.

  3. Retraining and Fine-tuning: After obtaining the final pruned models using the selected early-bird tickets, we retrain the vision transformers and fine-tune the language models to the full epoch length. The retraining process involves training the pruned models from scratch using the same hyperparameters as the original models. For language models, we focus on the finetuning stage, where the pruned models are fine-tuned on downstream tasks [1].

  4. Performance Evaluation: We evaluate the performance of the pruned models obtained from the earlybird tickets and compare their validation accuracy with the unpruned baseline models.

To conduct a comparative analysis and investigate the applicability of the early-bird ticket hypothesis across different Transformer architectures, we experiment with the following models:

  1. ViT (Vision Transformer)

  2. Swin-T (Shifted Window Transformer)

  3. GPT-2 (Generative Pre-trained Transformer)

  4. RoBERTa (Robustly Optimized BERT Pretraining Approach) [7]

By applying our methodology to these diverse Transformer models, we aim to provide a comprehensive understanding of the early-bird ticket phenomenon in both vision and language domains.

The proposed methodology addresses the limitations of existing works by introducing a more efficient approach compared to the traditional train-prune-retrain methodology. By leveraging the masked distance metric and selective pruning, we can identify early-bird tickets without the need for extensive retraining. Furthermore, our comparative analysis across different Transformer architectures provides insights into the generalizability of the early-bird ticket hypothesis. Through this methodology, we aim to demonstrate the existence of early-bird tickets in Transformer models and explore their potential for resource optimization and cost reduction in training.

Figure 1. Comparison of Transformer training methodsFigure 1. Comparison of Transformer training methods


Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article New Apple TV Plus Deal: Pay $9 for 3 Months of Streaming
Next Article Moment pallbearers plunge into grave as they lower coffin during funeral
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Shoppers racing to get 30% off all furniture as chain will shut all spots
News
The Zenith Defy Skyline Skeleton White Surfer proves you can never go wrong with white ceramic | Stuff
Gadget
Microservices Observability: Leveraging OpenTelemetry in Real-World Systems by Gajinder Sharma | HackerNoon
Computing
Fold 7 and Flip 7 to hit the shelves earlier than previously rumored
News

You Might also Like

Computing

Microservices Observability: Leveraging OpenTelemetry in Real-World Systems by Gajinder Sharma | HackerNoon

7 Min Read
Computing

Rust-Written Redox OS Continues Making Progress With Wayland

1 Min Read
Computing

ByteDance to offer staff extra bonuses to boost morale · TechNode

1 Min Read
Computing

Xara wants to make banking in Nigeria as easy as chatting

8 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?