NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Git-Theta: A Git Extension for Collaborative Development of Machine Learning Models

Nikhil Kandpal, Brian Lester, Mohammed Muqeeth, Anisha Mascarenhas, Monty Evans, Vishal Baskaran, Tenghao Huang, Haokun Liu, Colin Raffel

Introduction

In traditional software engineering, version control systems like Git enable thousands of developers to collaborate, track changes, and merge contributions seamlessly. In contrast, machine learning development remains largely centralized. Models are typically trained by a single team and released as massive, static files.

Git-Theta is an open-source extension for Git designed to bridge this gap. By treating machine learning model checkpoints as structured collections of parameters rather than opaque "blobs" of data, Git-Theta enables the version control features we take for granted in software—such as tiny commits for small changes, meaningful diffs, and automatic model merging.

The Problem with "Blobs"

Existing tools like DVC or Git LFS (Large File Storage) treat a model checkpoint as a generic large file. If you change just one weight in a billion-parameter model, these tools require you to save and upload the entire model again. This makes collaborative, iterative development nearly impossible because:

  1. Storage and Bandwidth are Wasted: Every tiny update costs gigabytes of data.
  2. Merging is Broken: You cannot easily combine two different fine-tuned versions of the same model.
  3. Diffs are Useless: You can only see that the file is different, not what actually changed inside the model.

How Git-Theta Works

Git-Theta solves these issues by acting as a plugin for Git, utilizing Git's built-in filter, diff, and merge drivers. Its core innovation is moving from file-level snapshots to parameter-group snapshots.

Git-Theta Architecture
  • Checkpoint Decomposition: When you "stage" a model, Git-Theta breaks it down into its constituent tensors (e.g., weight matrices and bias vectors). If a layer doesn't change during fine-tuning, Git-Theta simply points to the previous version, providing deduplication for free.
  • Locality Sensitive Hashing (LSH): Standard cryptographic hashes (like SHA-256) are too sensitive for ML, where floating-point noise can cause two functionally identical models to look different at a bit-level. Git-Theta uses LSH to determine if a parameter has meaningfully changed, making the version control system robust against the non-deterministic nature of GPU math.
  • Update Plug-ins: Git-Theta supports specialized update types. For instance, if you use a parameter-efficient fine-tuning (PEFT) technique like LoRA (Low-Rank Adaptation), Git-Theta is smart enough to store only the small low-rank matrices rather than the full, updated dense weights.
  • Custom Merge Driver: It allows users to define how models should be merged. For example, it can automatically perform "parameter averaging" to combine the knowledge of two models fine-tuned on different tasks.

Evaluation and Key Results

To evaluate Git-Theta, the authors simulated a representative community development workflow using the T0 3B (a 3-billion parameter) base model. In this collaborative environment, the model was fine-tuned on the CommitmentBank (CB) dataset using LoRA, then fine-tuned on Recognizing Textual Entailment (RTE) and Adversarial NLI (ANLI) on different branches, and finally merged.

Comparison of Git LFS and Git-Theta
  • Massive Storage Savings: Saving a LoRA-tuned version of the 3B parameter model required only 0.27 GB with Git-Theta, compared to 11.4 GB with standard Git LFS. Overall workflow size was reduced from 57.0 GB to 41.5 GB.
  • Communication Efficiency: Because it only tracks changes, the amount of data pushed to a remote server is drastically reduced, especially for parameter-efficient updates.
  • Functional Merging: The authors successfully demonstrated merging two models fine-tuned on different tasks (RTE and ANLI) into a single model that performed well on both, using standard git merge commands.
  • Performance Trade-off: Git-Theta is slower than Git LFS for certain operations. For example, an add operation on the base 3B model took roughly 14 minutes with Git-Theta versus 2.5 minutes with Git LFS. This is because Git-Theta must parse and process the individual tensors, a trade-off the authors argue is worthwhile for the massive storage and collaboration benefits.

Limitations and Future Work

While Git-Theta represents a major step forward for collaborative ML, it has limitations. The process of parsing the model is computationally intensive and adds latency to Git operations. Additionally, while it currently supports PyTorch, TensorFlow, and Flax, adding new frameworks requires writing new "Checkpoint" plug-ins.

In the future, the authors plan to support more sophisticated merging techniques, such as Fisher-weighted averaging. They also hope to integrate Git-Theta directly into training loops to avoid writing redundant data to disk in the first place, further streamlining the collaborative machine learning lifecycle.

Summary updated

BibTeX
@inproceedings{kandpal2023git,
  author = {Nikhil Kandpal and Brian Lester and Mohammed Muqeeth and Anisha Mascarenhas and Monty Evans and Vishal Baskaran and Tenghao Huang and Haokun Liu and Colin Raffel},
  title = {{Git-Theta: A Git Extension for Collaborative Development of Machine Learning Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=d3SabwKYga},
}
Figure