Saturday, May 17, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Alternating updates for efficient transformers – Google Research Blog

November 7, 2023
in AI Technology
Reading Time: 3 mins read
0 0
A A
0
Share on FacebookShare on Twitter






AltUp: Efficient Transformers

AltUp: Efficient Transformers

Posted by Xin Wang, Software Engineer, and Nishanth Dikkala, Research Scientist, Google Research

Contemporary deep learning models have achieved great success in various domains, such as natural language and computer vision. Transformer neural networks (transformers) have become a popular deep learning architecture and are widely used in natural language processing. They are also being applied to other domains like computer vision, robotics, and autonomous driving. Additionally, transformers serve as the foundation for state-of-the-art language models.

However, scaling up transformer networks often leads to increased compute cost and inference latency. This raises the question of whether we can benefit from larger models without incurring such burdensome costs. In our research paper, “Alternating Updates for Efficient Transformers”, accepted as a Spotlight at NeurIPS 2023, we introduce AltUp, a method that allows us to take advantage of increased token representation without increasing computation cost. AltUp is easy to implement, applicable to any transformer architecture, and requires minimal hyperparameter tuning. For example, by using a variant of AltUp on a 770M parameter T5-Large model, we can significantly improve model quality with just ~100 additional parameters.

Background

To understand how AltUp achieves this, let’s delve into how transformers work. Transformers divide the input into a sequence of tokens, and each token is mapped to an embedding vector called the token embedding. The dimension of this vector is known as the token representation dimension. The transformer then operates on these token embeddings using computation modules called layers, which are determined by the token representation dimension. Prior works have focused on efficiently scaling up the network parameters, but there is a research gap when it comes to scaling up the token representation dimension itself.

Method

AltUp addresses this gap by partitioning the widened representation vector into blocks and processing only one block at each layer. It utilizes a prediction-correction mechanism to infer the outputs of the other blocks. This allows AltUp to keep the model dimension and computation cost roughly constant while taking advantage of an increased token dimension. AltUp achieves this by activating different blocks of the representation vector at each layer. The activated block is passed through a transformer layer to compute its output, while a lightweight predictor computes a weighted combination of all input blocks. The predicted values, along with the computed value of the activated block, are used by a lightweight corrector to update the predictions. AltUp can be applied to an arbitrary number of blocks and can be combined with other techniques like MoE for additional performance gains.

Evaluation

We evaluated AltUp on T5 models for various benchmark language tasks. Models augmented with AltUp were consistently faster than extrapolated dense models at the same accuracy level. For example, a T5 Large model with AltUp achieved a 27% speedup on the GLUE benchmark, a 39% speedup on the SuperGLUE benchmark, an 87% speedup on the SQuAD benchmark, and a 29% speedup on the Trivia-QA benchmark. AltUp consistently led to models with better predictive performance compared to baseline models, while maintaining the same speed across different model sizes and benchmarks.

Extensions: Recycled AltUp

In scenarios where the vocabulary size is very large, AltUp may introduce additional computation and parameter costs. To address this, we propose an extension called Recycled-AltUp. Instead of widening the initial token embeddings, Recycled-AltUp replicates the embeddings multiple times to form a wider token representation. This allows us to benefit from a wider token dimension without adding additional parameters relative to the baseline transformer model.






Source link

Tags: AlternatingBlogEfficientGoogleResearchTransformersUpdates
Previous Post

Besant Technologies Head Office conducted the Quiz Competition For Front End Developers 🔥🔥.

Next Post

Microsoft vs Google: AI War Explained | tech news

Related Posts

How insurance companies can use synthetic data to fight bias
AI Technology

How insurance companies can use synthetic data to fight bias

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset
AI Technology

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
How Game Theory Can Make AI More Reliable
AI Technology

How Game Theory Can Make AI More Reliable

June 9, 2024
Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper
AI Technology

Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper

June 9, 2024
Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs
AI Technology

Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs

June 9, 2024
Deciphering Doubt: Navigating Uncertainty in LLM Responses
AI Technology

Deciphering Doubt: Navigating Uncertainty in LLM Responses

June 9, 2024
Next Post
Microsoft vs Google: AI War Explained | tech news

Microsoft vs Google: AI War Explained | tech news

Biggest Social Media Marketing Trends for 2023

Biggest Social Media Marketing Trends for 2023

Amazon Aurora MySQL zero-ETL integration with Amazon Redshift is now generally available

Amazon Aurora MySQL zero-ETL integration with Amazon Redshift is now generally available

Leave a Reply Cancel reply

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

  • Trending
  • Comments
  • Latest
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
Porfo: Revolutionizing the Crypto Wallet Landscape

Porfo: Revolutionizing the Crypto Wallet Landscape

October 9, 2023
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

May 19, 2024
Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

November 20, 2023
Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

December 6, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In