Compute Better Spent: Replacing Dense Layers with Structured Matrices

AI-generated keywords: Efficient Model Building Structured Matrices Maximal Update Parameterization Monarch Matrices Deep Learning Architectures

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Authors address computational bottleneck posed by dense linear layers in foundation models
  • Exploration of structured matrices as alternatives to dense matrices for more efficient model building
  • Investigation of different matrix structures and their impact on initialization scales and learning rates
  • Determination of optimal scaling strategies based on insights from Maximal Update Parameterization
  • Analysis of scaling laws to assess performance improvement with increased computational resources
  • Introduction of Monarch matrices, specifically showcasing Block Tensor-Train (BTT) within this family
  • BTT demonstrates exponentially lower training loss compared to dense matrices for tasks like CIFAR-10/100 and ImageNet-1k
  • BTT achieves equivalent performance to dense ViT-S/32 on ImageNet-1k with significantly less compute power
  • More efficient than dense matrices for training small GPT-2 language models
  • Research highlights potential of structured matrices in enhancing model efficiency and performance across various tasks
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Shikai Qiu, Andres Potapczynski, Marc Finzi, Micah Goldblum, Andrew Gordon Wilson

ICML 24. Code available at https://github.com/shikaiqiu/compute-better-spent

Abstract: Dense linear layers are the dominant computational bottleneck in foundation models. Identifying more efficient alternatives to dense matrices has enormous potential for building more compute-efficient models, as exemplified by the success of convolutional networks in the image domain. In this work, we systematically explore structured matrices as replacements for dense matrices. We show that different structures often require drastically different initialization scales and learning rates, which are crucial to performance, especially as models scale. Using insights from the Maximal Update Parameterization, we determine the optimal scaling for initialization and learning rates of these unconventional layers. Finally, we measure the scaling laws of different structures to compare how quickly their performance improves with compute. We propose a novel matrix family containing Monarch matrices, the Block Tensor-Train (BTT), which we show performs better than dense matrices for the same compute on multiple tasks. On CIFAR-10/100 with augmentation, BTT achieves exponentially lower training loss than dense when training MLPs and ViTs. BTT matches dense ViT-S/32 performance on ImageNet-1k with 3.8 times less compute and is more efficient than dense for training small GPT-2 language models.

Submitted to arXiv on 10 Jun. 2024

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2406.06248v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In the study "Compute Better Spent: Replacing Dense Layers with Structured Matrices," authors Shikai Qiu, Andres Potapczynski, Marc Finzi, Micah Goldblum, and Andrew Gordon Wilson address the computational bottleneck posed by dense linear layers in foundation models. They highlight the potential for more efficient model building by exploring structured matrices as alternatives to dense matrices. Drawing inspiration from the success of convolutional networks in the image domain, the researchers systematically investigate various structured matrix configurations. Their research reveals that different matrix structures necessitate distinct initialization scales and learning rates, which significantly impact performance as models scale up. Leveraging insights from the Maximal Update Parameterization, they determine optimal scaling strategies for initialization and learning rates of these unconventional layers. Additionally, they analyze the scaling laws of different matrix structures to assess how quickly performance improves with increased computational resources. The team introduces a novel matrix family known as Monarch matrices, specifically showcasing the Block Tensor-Train (BTT) within this family. Through experiments on tasks such as CIFAR-10/100 with augmentation, BTT demonstrates exponentially lower training loss compared to dense matrices when training Multilayer Perceptrons (MLPs) and Vision Transformers (ViTs). Remarkably, BTT achieves performance equivalent to dense ViT-S/32 on ImageNet-1k while utilizing 3.8 times less compute power. Furthermore, BTT proves more efficient than dense matrices for training small GPT-2 language models. Overall, this research underscores the potential of structured matrices in enhancing model efficiency and performance across various tasks, offering valuable insights into optimizing deep learning architectures for improved computational efficiency.
Created on 29 Jul. 2026

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.