An unofficial, read-only Hacker News reader.

Predicting LoRA size for any dataset (opens external site)

131 points by jxmorris12 4 days ago | engram.com | 13 comments on HN

View full thread · View on Hacker News

Comment thread (4)

  1. 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.

    Replies (1)
    1. would "Predicting LoRA size for any SFT dataset" have been fairer?
      Replies (1)
      1. Not really, because again it conflates learning with memorization.

        Better titles could be:

        Predicting the LoRA rank needed to overfit a dataset on Qwen-0.8B

        or

        How much can a LoRA memorize?

        Replies (1)
        1. > because again it conflates learning with memorization

          Honestly I respectfully disagree, the article doesn't try to draw a distinction between task-relevant bits vs noisy bits in its analysis. I think it's worth appreciating that classical theory can extrapolate so far

          You raise a good point that in practice we probably want to post-train for an end task later, but it's considerably harder to get a similarly general, straightforward result. And assessing the S/N of domain-specific data is arguably a harder problem (IIUC this is Engram's purported specialty)