{
  "id": 1593,
  "kind": "post",
  "title": "Predicting LoRA size for any dataset",
  "summary": "Engram, 'Predicting LoRA size for any dataset' (blog, Nov 24 2026). A predictive theory and measurement method for sizing a LoRA adapter to an SFT dataset, in bits. Capacity of a rank-r adapter is C(r) ~ (1 / 2 ln 2) E[sum of the top-r squared singular values of an iid Gaussian matrix] - about 1.3-1.4 bits per LoRA parameter at low rank, ~0.48 at full rank (Qwen3.5-0.8B v_proj, 512x1024, ~378k bits), with a closed form via the Marchenko-Pastur law. Method: measure a dataset's size in bits under the base model (log-likelihood, YaRN-extended 2M-token windows), generate synthetic datasets of exactly N bits by arithmetic coding under the base model to measure capacity, then read the required rank off the capacity curve. Predictions hold on real datasets: rank predicted within 5% error across Engram's own workspaces, Harvey legal data, developer docs, swebench-django, MATH-500, GSM8K, Tulu 3, No Robots, OpenThoughts3, MMMLU, and enwik8. Two structural findings: capacity is super-additive across layers (1.5 bits/param for one layer to 3.3 for 24 layers), and learning is conserved against forgetting - models forget roughly as much as they learn (forgetting/learning ~1.00), so new information displaces old information rather than adding to it. Flags: first-party blog, not peer-reviewed; all results on a single base model (Qwen3.5-0.8B); no code linked in the post. Cross-references: CSPD (staged slot 31) reports 2.40x rank-4 LoRA throughput as its serving baseline - this post is the rank theory behind that baseline choice; the forgetting-conservation finding pairs with Unified Training (ID 1762) and staged Deletion Tuning (slot 13) in the retention thread, and the bits-per-parameter capacity framing with Subspace Tuning (#116) and MobileSpec/FuRA-S (staged slot 6). For the user's stack: a principled rank picker for his SFT/RLVR adapters instead of a default r=16 sweep, a capacity budget in bits for post-training on his 250M, and a forgetting~learning conservation check for Helm retention monitoring.",
  "body": "",
  "notes": "Shared 2026-11-24 via @engramlab X post (status 2125324108628164654, Nov 24 20:22 UTC); post text read in full 2026-11-25 via the fxtwitter API mirror (api.fxtwitter.com) after x.com returned a hard 403 in the cloud browser; blog read in full (468 lines). CORRECTION: on 2026-11-24 this post was wrongly conflated with CSPD (arXiv 2611.27376, staged slot 31) because the post could not be read at the time - it is a different work (LoRA rank theory, not soft-prompt distillation), and the CSPD entry's provenance was corrected the same night. STAGED 2026-11-24 during the Neon quota freeze; insert after the earlier staged items when writes reopen. Slot 33 in the Dec 1 landing order (32nd confirmed landing).",
  "url": "https://engram.com/blog/lora-size",
  "links": [],
  "authors": [
    "Engram"
  ],
  "tags": [],
  "topics": "",
  "venue": "Engram blog, Nov 24 2026",
  "publisher": "",
  "source": "blog",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-11-24T00:00:00.000Z",
  "verified_at": "2026-11-25T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "engramlab",
    "legacy_paper_id": "1892"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-12-01T12:43:25.013Z",
  "updated_at": "2026-12-01T12:43:25.013Z",
  "page": "https://papers.projxon.ai/entries/1593",
  "markdown": "https://papers.projxon.ai/entries/1593.md",
  "api": "https://papers.projxon.ai/api/entries/1593",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 834,
      "kind": "paper",
      "title": "Invent a Dataset: Measuring Dataset Generation Abilities With Zero Seed Data",
      "summary": "Invent-a-Dataset takes a natural-language description of the desired dataset and returns training-ready examples, with no seed corpus, schema, or labels. Benchmark covers eight dataset queries across task types, languages, and domains; quality is an LLM-judge rubric (0-10), diversity is DCScore. Invent scores 7.90 mean quality on 5,000-sample sets vs 6.76 for the strongest baseline (Claude Opus 5). At 20K requested size, mean diversity 0.268 vs 0.196 for GLM-5.3 (+37% relative), computed on a 2,000-prompt sample; the report frames this as resisting the diversity erosion seen as other generators scale. Downstream check: LoRA SFT of Llama-3.3-70B, Gemma-4-31B-it, Qwen3.5-9B on 20K Medical QA sets; for Llama, Invent's fine-tune ranks first on 54% of held-out prompts vs 25% untuned base and 9% for the strongest competing fine-tune (Claude Opus 5). Pattern is weaker on Qwen3.5-9B (base leads 44% to 38%). Scope is instruction and preference data for SFT and alignment; the report says it does not cover tool-call traces, multi-step agent trajectories, or non-text modalities.",
      "url": "https://www.alphaxiv.org/abs/2609.invent-a-dataset-zero-seed",
      "authors": [
        "Shivalika Singh",
        "Andrija Djurisic",
        "Gbemileke Onilude",
        "Sudip Roy",
        "Sara Hooker"
      ],
      "tags": [
        "synthetic-data",
        "dataset-generation",
        "zero-seed-data",
        "instruction-data",
        "sft",
        "alignment",
        "diversity",
        "dcscore"
      ],
      "venue": "AlphaXiv 2026-10-01 (technical report)",
      "source": "report",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/834",
      "markdown": "https://papers.projxon.ai/entries/834.md",
      "api": "https://papers.projxon.ai/api/entries/834"
    },
    {
      "id": 1337,
      "kind": "paper",
      "title": "The Best Optimizer Depends on Batch Size",
      "summary": "Adaptive optimizers are benchmarked at one batch size, while hyperparameter scaling rules promise that the best optimizer at one batch size stays the best at another. This paper challenges both practices. (1) No principled scaling rule for Muon works consistently across settings: the authors derive and test three competing rules against Muon - linear LR from SDE-matching, square-root LR from minimizing a convergence bound, and fixed LR with scaled weight decay from Power Lines - tuning at a reference batch size for LM and image classification, then growing batch size at fixed token budget across hundreds of rule variants; the best rule depends on task and target batch size. (2) The best optimizer for LM pretraining changes with batch size even after extensive retuning: Adam, Lion, Muon, SOAP, and Shampoo were each retuned at every batch size from 128K to 2M tokens at fixed total budget under both weight decay and HyperBall (fixed hidden-matrix norms). Under HyperBall, Muon beats Shampoo at 128K tokens/update while Shampoo beats Muon at 2M. Theory on a noisy quadratic explains why: Newton's method divides gradients by curvature, cutting bias (remaining initialization error) at the cost of higher variance from noisy gradients; larger batches shrink variance, so rankings can reverse even with optimally tuned learning rates. A SignSGD toy model shows LR scaling shifts from square-root toward linear as the curvature-to-noise ratio (CNR = h^2/c) increases - the right rule depends on landscape and noise, not just the optimizer. A sharp-subspace intervention pins down where the batch-size penalty lives: checkpoint-branching from 128K to 2M with small-batch updates kept only in the sharpest 768 directions (~0.001% of matrix-parameter space) removes up to 59.5% of the local batch-size penalty (a random same-size subspace removes at most 3%); the benefit largely fades late in training.",
      "url": "https://arxiv.org/abs/2610.08975",
      "authors": [
        "Xingyu Dang",
        "Kaiyue Wen",
        "Sadhika Malladi"
      ],
      "tags": [
        "optimizer",
        "batch-size",
        "scaling-rules",
        "muon",
        "shampoo",
        "lm-pretraining",
        "curvature",
        "gradient-noise",
        "sharp-subspace"
      ],
      "venue": "arXiv 2610.08975 (cs.LG/stat.ML), submitted 6 Oct 2026, CC BY 4.0; interactive explainer at batch-size-scaling.com",
      "source": "web",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-09T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1337",
      "markdown": "https://papers.projxon.ai/entries/1337.md",
      "api": "https://papers.projxon.ai/api/entries/1337"
    },
    {
      "id": 1246,
      "kind": "model",
      "title": "Qwen-Image-2.1 Consistent Lighting LoRA (rh-qwen-image-2.1-lora)",
      "summary": "LoRA adapter (160 MiB safetensors) finetuned on Qwen-Image-2.1 for compositing products/objects into scenes with consistent lighting: removes unwanted reflections/glares, enhances specular highlights, adds natural contact shadows and front-back spatial relationships so the object blends seamlessly into the background. Trigger word: 'pengyu'. Works in ComfyUI / RunningHub / Hugging Face.",
      "url": "https://huggingface.co/RunningHubAI/rh-qwen-image-2.1-lora-2104918997757157378",
      "authors": [
        "RunningHubAI (on behalf of the author)"
      ],
      "tags": [
        "qwen-image-2.1",
        "lora",
        "relighting",
        "product-photography",
        "compositing",
        "comfyui",
        "runninghub"
      ],
      "venue": "Hugging Face release, Oct 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1246",
      "markdown": "https://papers.projxon.ai/entries/1246.md",
      "api": "https://papers.projxon.ai/api/entries/1246"
    },
    {
      "id": 545,
      "kind": "paper",
      "title": "LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters",
      "summary": "Freezes truncated-SVD factors of W and trains only R∈R^{r×r} between them, so parameter count is independent of hidden size (≈2n/r fewer than LoRA). GPT-3 rank-16 personalization: 96GB vs LoRA 144TB for 1M adapters. RoBERTa-large GLUE: rank 25 / 60K params avg 88.69 vs LoRA 800K 87.82 and VeRA 61K 87.83. LLaMA2-7B commonsense 80.5 vs LoRA 77.6 at 3.67M vs 56M params; LLaMA3-8B 85.3 vs 80.8. Mistral-7B GSM8K 70.35 / MATH 20.96 at 3.67M vs LoRA 168M 67.70 / 19.68. Accepted at ECAI 2025. Code https://github.com/MohammadrezaBanaei/LoRA-XS.",
      "url": "https://arxiv.org/abs/2405.17604",
      "authors": [
        "Klaudia Bałazy",
        "Mohammadreza Banaei",
        "Karl Aberer",
        "Jacek Tabor"
      ],
      "tags": [
        "lora-xs",
        "peft",
        "svd",
        "vera",
        "glue",
        "llama",
        "ecai",
        "jagiellonian",
        "epfl"
      ],
      "venue": "arXiv / Jagiellonian University / EPFL",
      "source": "",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 96,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/545",
      "markdown": "https://papers.projxon.ai/entries/545.md",
      "api": "https://papers.projxon.ai/api/entries/545"
    },
    {
      "id": 385,
      "kind": "dataset",
      "title": "X-Voice-Dataset-Train",
      "summary": "The X-Voice training dataset is a **large-scale multilingual speech corpus** curated for high-performance speech models. It provides a robust foundation for cross-lingual phonetic and prosodic modeling.",
      "url": "https://huggingface.co/datasets/XRXRX/X-Voice-Dataset-Train",
      "authors": [
        "XRXRX"
      ],
      "tags": [
        "hf-dataset-speech---tts",
        "speech---asr-webdataset-audio-text-datasets-mlcroissant"
      ],
      "venue": "XRXRX",
      "source": "huggingface",
      "license": "other",
      "published_year": 2026,
      "added_at": "2026-07-17T20:02:31.863Z",
      "has_dataset_profile": true,
      "license_class": "other",
      "langs": [
        "bg",
        "cs",
        "da",
        "de",
        "el",
        "en",
        "es",
        "et",
        "fi",
        "fr",
        "hr",
        "hu",
        "id",
        "it",
        "ja",
        "ko",
        "lt",
        "lv",
        "mt",
        "multilingual",
        "nl",
        "pl",
        "pt",
        "ro",
        "ru",
        "sk",
        "sl",
        "sv",
        "th",
        "vi",
        "zh"
      ],
      "modalities": [
        "audio",
        "text"
      ],
      "size_class": "10M<n<100M",
      "citation_count": null,
      "downloads": 1817,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/385",
      "markdown": "https://papers.projxon.ai/entries/385.md",
      "api": "https://papers.projxon.ai/api/entries/385"
    },
    {
      "id": 826,
      "kind": "paper",
      "title": "Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It",
      "summary": "Pretrained transformers use little of their depth to follow references in context: 13 base models reliably follow only 1.4-3.6 lines, and extra pretrained loops add little. A task-trained rank-8 LoRA at one early layer extends computation with all model weights frozen: Qwen3-8B improves from 15.5% to 99% exact accuracy on 24-line chains; a longer-trained LoRA reaches 50 lines; Ouro-1.4B reaches 60 lines after four loops and at least 160 after eight. Mechanism: the LoRA starts a relay -- program lines pass on their chain identity through a short range of middle layers, frozen heads read progressively further up the chain, and removing parent-line attention stops the relay. A frozen-model measurement locates the last useful intervention layer within tolerance in 3 of 4 held-out models. Task-specific LoRAs also improve MuSiQue. Takeaway: default answers understate the computation accessible through a tiny edit. Code and an interactive demo at https://lunamos.github.io/stop-thinking-too-early/",
      "url": "https://arxiv.org/abs/2609.36585",
      "authors": [
        "Zehao Jin",
        "Ruixuan Deng",
        "Junran Wang"
      ],
      "tags": [
        "transformers",
        "lora",
        "reasoning-depth",
        "multi-hop-retrieval"
      ],
      "venue": "arXiv (2026-09-29), cs.AI; code + interactive demo available",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/826",
      "markdown": "https://papers.projxon.ai/entries/826.md",
      "api": "https://papers.projxon.ai/api/entries/826"
    }
  ]
}
