---
type: "post"
id: "predicting-lora-size-for-any-dataset-413421"
slug: "predicting-lora-size-for-any-dataset-413421"
title: "Predicting LoRA size for any dataset"
description: "Engram proposes estimating how much information a fine-tuning dataset contains under a base model, then using a measured LoRA capacity curve to predict the adapter rank needed to fit it."
retrieval_nugget: "Engram proposes estimating how much information a fine-tuning dataset contains under a base model, then using a measured LoRA capacity curve to predict the adapter rank needed to fit it. The company reports predictions within 5% on tested datasets. If reproduced beyond the tested setup, the method could replace some rank guesswork with a measurable allocation step."
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["models"]
entities: ["Engram","LoRA","Qwen3.5","YaRN","SWE-bench","MATH-500","GSM8K","Tulu 3"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "Engram introduces a predictive method for estimating the minimum LoRA adapter rank needed to fit a dataset before training."
prior_refs: []
source_url: "https://engram.com/blog/lora-size"
source_urls: ["https://engram.com/blog/lora-size"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:predicting-lora-size-for-any-dataset-413421"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/predicting-lora-size-for-any-dataset-413421/","markdown":"https://newruntime.com/posts/predicting-lora-size-for-any-dataset-413421.md","json":"https://newruntime.com/posts/predicting-lora-size-for-any-dataset-413421.json"}
markdown_url: "https://newruntime.com/posts/predicting-lora-size-for-any-dataset-413421.md"
---

# Predicting LoRA size for any dataset

## Retrieval answer

Engram proposes estimating how much information a fine-tuning dataset contains under a base model, then using a measured LoRA capacity curve to predict the adapter rank needed to fit it. The company reports predictions within 5% on tested datasets. If reproduced beyond the tested setup, the method could replace some rank guesswork with a measurable allocation step.

## Summary

Engram proposes estimating how much information a fine-tuning dataset contains under a base model, then using a measured LoRA capacity curve to predict the adapter rank needed to fit it. The company reports predictions within 5% on tested datasets. If reproduced beyond the tested setup, the method could replace some rank guesswork with a measurable allocation step.

## What happened

Engram’s announcement, “Predicting LoRA size for any dataset,” treats a language model as a compressor: the negative log-likelihood of a dataset under the base model is its size in bits. The proposed workflow compares that dataset size with the amount of information an adapter of a given rank can store. The practical aim is to provision the smallest adapter that fits a task, rather than selecting rank by convention or trial and error. Smaller adapters are easier to store and load, and Engram says they can generate faster.

For one adapted weight matrix, the post derives a theoretical capacity curve. At low rank, capacity grows roughly linearly with rank; gains diminish as rank increases, and the curve plateaus. Engram illustrates the calculation with an 800-million-parameter Qwen3.5 model and a 512×1,024 value-projection matrix. Its theory predicts about 378,000 bits of capacity at full rank, with roughly 1.3–1.4 bits per parameter at low rank and 0.48 bits per parameter at full rank. The post says measured training on that matrix closely follows the theoretical curve.

The authors say theory alone cannot capture how multiple transformer layers interact. To measure the full model, they generate synthetic text whose size under the base model is controlled using arithmetic coding, train adapters on it, and measure how much of that information the adapters retain. For full-transformer runs, they fit a log-logistic curve to training runs of at least 1,000 steps to estimate capacity at an infinite-training asymptote, rather than training each setting indefinitely. Their measurements find super-additive capacity across layers: the reported bits per parameter rise from 1.5 for one layer to 3.3 for a 24-layer setup. This result concerns their tested configurations, not a general guarantee for every architecture.

For real datasets, Engram estimates size by summing likelihood-derived bits over consecutive windows. The post says the team extends context to two million tokens with YaRN; when a dataset exceeds that context, it splits the data into windows and sums their sizes. Engram describes this as a slight overestimate, with small error in its tests. It then reads a predicted rank from the synthetic capacity curve, trains real-data LoRAs at ranks from half to twice that prediction, and defines the measured rank as the smallest one that stores 95% of the dataset. The company reports that predicted and measured ranks were within 5% across its tested real datasets.

Those tests included public datasets and data from Engram and partners’ workspaces. The post names examples including SWE-bench Django, MATH-500, GSM8K, Tulu 3 and MMMLU, as well as documentation and workspace data. The experiments described were conducted on Qwen3.5-0.8B. Engram says it expects the approach to transfer to other models, but does not present that expectation as a demonstrated result. The post concludes that the method could enable on-the-fly creation of parameter-efficient fine-tuning modules sized to a task; it also notes the team is exploring alternatives such as trainable prefixes, sparse memory layers, steering vectors, GDN state and trainable experts.

## What the archive adds

New Runtime’s earlier coverage has examined fine-tuning behavior and Engram’s work on adapting models. On October 15, 2026, [an earlier note on repeated fine-tuning](https://newruntime.com/posts/a-habr-research-write-up-reports-a-controlled-b48dcc/) cautioned that a first-round gain did not establish continuing cumulative learning. On November 5, 2026, [New Runtime covered Engram’s RL training on text notes](https://newruntime.com/posts/engram-shows-a-short-rl-phase-on-top-cf9579/), which reported accuracy gains and training costs. This is a new Engram result about estimating adapter rank, not a restatement of either finding.

## Trend signal

This does not yet fit a pattern New Runtime tracks. The result is about parameter-efficient fine-tuning capacity and dataset sizing; it does not directly establish a broader shift in agent architecture, runtime security, or workflow design. Its potential significance will depend on replication across models and on whether teams can use the estimates to reduce training and deployment costs without sacrificing task quality.

## Why it matters

LoRA rank is a resource decision disguised as a hyperparameter. Too little capacity can leave relevant examples unlearned; too much can add adapter storage and inference overhead without improving the outcome. Engram’s approach offers a possible way to make that trade-off explicit: estimate how much new information a dataset represents to the base model, then allocate capacity against that estimate.

For teams, the most useful implication is not that a predicted rank can be accepted without testing. It is that rank selection can be treated as a hypothesis with an observable criterion: whether the adapter stores the target data to a chosen level, such as the 95% threshold Engram uses. This could make adapter provisioning more systematic across datasets and tasks, and help identify cases where a dataset may exceed a small adapter’s capacity. But fit to training data is not the same as generalization, and a smaller adapter is not automatically a better task model. Teams still need held-out evaluation, retention checks, and a comparison with alternative adaptation methods.

## Limits and uncertainty

The reported 5% prediction error is Engram’s result on the datasets and setup described in its post; it is not an independent replication. The experiments were conducted on Qwen3.5-0.8B, so performance on other model families, scales, architectures, and adaptation targets remains to be established. The method also estimates dataset size through likelihood under a particular base model, and the post characterizes windowed estimates as slight overestimates. How that approximation behaves on different data distributions matters. Finally, retaining 95% of a dataset’s measured information is the study’s operational criterion, not proof that a model performs well on downstream tasks or avoids forgetting valuable prior knowledge.

## Reader takeaway

Engram’s proposal makes LoRA rank a quantity to estimate from dataset information and measured adapter capacity, rather than a number to choose blindly. Its results are promising but bounded by the reported Qwen3.5-0.8B experiments. Treat the prediction as a starting point: validate rank on your own model and data, and judge success with held-out task quality as well as fit.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Models](https://newruntime.com/topics/models.md): Explore the models topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
