Skip to main content
QUICK REVIEW

[Paper Review] lo-fi: distributed fine-tuning without communication

Mitchell Wortsman, Suchin Gururangan|arXiv (Cornell University)|Oct 19, 2022
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

This paper proposes lo-fi, a method for distributed fine-tuning of large neural networks without any communication between nodes during training. Each node independently fine-tunes a model and the final model is formed by averaging the weights after training; lo-fi matches or exceeds baseline accuracy on ImageNet and distribution shift benchmarks while eliminating communication overhead.

ABSTRACT

When fine-tuning large neural networks, it is common to use multiple nodes and to communicate gradients at each optimization step. By contrast, we investigate completely local fine-tuning, which we refer to as lo-fi. During lo-fi, each node is fine-tuned independently without any communication. Then, the weights are averaged across nodes at the conclusion of fine-tuning. When fine-tuning DeiT-base and DeiT-large on ImageNet, this procedure matches accuracy in-distribution and improves accuracy under distribution shift compared to the baseline, which observes the same amount of data but communicates gradients at each step. We also observe that lo-fi matches the baseline's performance when fine-tuning OPT language models (up to 1.3B parameters) on Common Crawl. By removing the communication requirement, lo-fi reduces resource barriers for fine-tuning large models and enables fine-tuning in settings with prohibitive communication cost.

Motivation & Objective

  • To investigate whether communication between nodes is necessary during distributed fine-tuning of large pre-trained models.
  • To reduce resource and infrastructure barriers in fine-tuning large models by eliminating inter-node communication.
  • To evaluate whether averaging independently trained models after fine-tuning can match or improve upon standard data-parallel fine-tuning with gradient synchronization.
  • To explore the feasibility of decentralized, low-communication fine-tuning in settings with high communication costs or privacy constraints.

Proposed method

  • Each node independently performs full fine-tuning on its own data partition without any gradient exchange or synchronization.
  • After training, the final model is formed by averaging the learned weights across all nodes: θ_lo-fi = (1/n) Σ θ^k.
  • The method uses the same hyperparameters and total data amount as the baseline, with only the communication pattern changed.
  • Fine-tuning is performed using standard optimization with weight decay and stochastic depth, and the approach is applied to vision (DeiT) and language (OPT) models.
  • The method is evaluated on ImageNet and distribution shift benchmarks (IN-V2, IN-R, Sketch, IN-A) to assess robustness.
  • The approach is compared against a baseline that synchronizes gradients at every step, with hyperparameters tuned for optimal performance.

Experimental results

Research questions

  • RQ1Can distributed fine-tuning be performed without any communication between nodes while maintaining or improving model accuracy?
  • RQ2Does averaging independently trained models after fine-tuning yield performance comparable to standard data-parallel fine-tuning with gradient synchronization?
  • RQ3How does lo-fi perform under distribution shift compared to the baseline, especially when communication is costly?
  • RQ4In what settings does lo-fi outperform or match the baseline, particularly in terms of data efficiency and model scale?

Key findings

  • lo-fi achieves 86.00% top-1 accuracy on ImageNet with DeiT-base, matching the baseline’s 85.96% while eliminating communication.
  • On distribution shift benchmarks, lo-fi outperforms the baseline: +1.51% on IN-V2, +1.19% on Sketch, and +1.38% on IN-A for DeiT-base.
  • For DeiT-large, lo-fi achieves 87.10% on ImageNet, matching the baseline’s 87.12% and exceeding it on IN-R (+0.07%) and IN-A (+0.56%).
  • lo-fi maintains performance on OPT language models (up to 1.3B parameters) without communication, matching the baseline’s accuracy on Common Crawl.
  • The method reduces communication cost to zero, enabling fine-tuning in environments with prohibitive communication overhead or privacy constraints.
  • lo-fi performs best when no new parameters are introduced; performance degrades when additional parameters are added, requiring more data to match baseline.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.