\

Predicting LoRA size for any dataset

63 points - yesterday at 10:34 PM

Source
  • augment_me

    today at 6:36 PM

    Memorizing a dataset =/= learning a task.

    Cross entropy of a finite dataset measures signal + noise(redundancy, quirks, typos, etc)

    If you have 10MB of math data, the underlying task of learning the reasoning pattern might have low entropy and fit in a much lower LoRA rank, even though memorizing the dataset requires more.

    On any task like GSM, Math500, Openthought3 this would just be massive overfitting.

    Also they assume that the 2M-token context chunking is independent but for example logs are usually not.

    ---

    I think this is good to point out, because the company seems to sell a solution to cram private company wikis into the Lora adapters, so the measures are upper bounds in terms of info due to their assumption of memorization.

    • bee_rider

      today at 6:11 PM

      Are there related questions along the lines of β€œwhat elements could I add to the dataset that would most increase the LoRA size.”

      Is there a metric other than size that can describe a LoRA’s… usefulness? Trueness to the original? (Is trueness to the original a positive or negative in this context, anyway?). Then maybe we can formulate questions about things like <usefulness>/<size>.

      • natsu529

        today at 6:11 PM

        It's super interesting. i want to fit this for image-generation-model.

        • hinkley

          today at 6:05 PM

          Fascinating, Quercus!

          • keel_dev

            today at 5:16 PM

            Great result. One question on the conservation finding: you show learning X bits of SFT data costs roughly X bits of prior knowledge, validated on datasets drawn from the base model's distribution. Do you expect that 1:1 exchange to hold for SFT data that is genuinely out-of-distribution β€” e.g. teaching new domain knowledge rather than a format or style the model already 'knows'? In that regime the new information isn't just reweighting existing knowledge, so I'd guess the exchange rate could differ, or the capacity curve could shift. Did any of your datasets probe that regime?

            • ayon_jodder

              today at 5:41 PM

              [flagged]

              • josefritzishere

                today at 4:45 PM

                [dead]