Settings

Theme

LoRA Without Regret

thinkingmachines.ai

184 points by grantpitt 4 months ago · 61 comments

Reader

HumblyTossed 4 months ago

The name gets me every single time. Always think it’s going to be about radio LoRa

  • papascrubs 4 months ago

    Not just me then. It's always the first thing that springs to mind.

    • apple4ever 4 months ago

      Nope not just you! Gets me everytime.

      • CaptainOfCoit 4 months ago

        Microsofts inability to properly name things once again introduces more confusion than clarity, thanks Microsoft :)

        At this point I think they do it on purpose, as their metrics for "people visiting the website/repository" or whatever gets increased as people thinking the repository is about the existing concept/technology.

  • dannyfritz07 4 months ago

    Dang it! Got me too! I've been wanting to hop into Meshtastic lately.

    • ijustlovemath 4 months ago

      Set up a node! Bare boards that work with the app are like $50 and take a few clicks to flash and setup. The basic antenna with no amp makes contacts up to 50mi away if the conditions are right. I have one in a window and one in a backpack at all times.

      • jacquesm 4 months ago

        It's insane how far you can go between hops, really most impressive. Where I live the mesh density is fairly high but I've also tried it in places where it was vanishingly low and yet I never completely lost contact. LoRa is very much an underappreciated technology.

    • wkjagt 4 months ago

      I have a couple of nodes up, but not seeing a lot of traffic

  • halfmatthalfcat 4 months ago

    Same - sad it's not.

  • dvfjsdhgfv 4 months ago

    By the way, some time ago when I checked there were two cool applications of LoRa: (1) a mesh, for (hopefully) truly decentralized and more difficult to disrupt communication, (2) a gateway, so that you could get data from your sensors in remote places via standard internet protocols.

    Both are very cool, but I wonder if I missed something else?

  • sifar 4 months ago

    And I thought you were going to say thinking machines :). Buy yeah LoRA trips me up too.

  • canadiantim 4 months ago

    I thought it was Lora the CRTD implementation, but then realized that Loro

  • mrandish 4 months ago

    Yeah, kinda disappointed it's just more AI stuff...

kouteiheika 4 months ago

> However, the literature is unclear on how well LoRA performs relative to FullFT.

I think the literature is clear on that?

"LoRA vs Full Fine-tuning: An Illusion of Equivalence" -- https://arxiv.org/abs/2410.21228v1

Quoting from the conclusions:

> The paper describes the finding that LoRA and full fine-tuning, with equal performance on the fine-tuning task, can have solutions with very different generalization behaviors outside the fine-tuning task distribution. We found that LoRA and full fine-tuning yield models with significant differences spectral properties of their weight matrices: LoRA models often containing “intruder dimensions”, high-ranking singular vectors approximately orthogonal to the singular vectors of pre-trained weight matrices. The existence of intruder dimensions correlates with the fine-tuned model forgetting more of the pre-training distribution as well as forgetting more when trained on tasks sequentially in a continual learning setup.

I'm surprised they didn't cite this; it's a well known paper.

  • adhi01 4 months ago

    To say that the 'literature is clear on that' while citing a single paper, which has been rejected from ICLR, is a bit of an overstatement.

  • lelanthran 4 months ago

    > I'm surprised they didn't cite this; it's a well known paper.

    I'm surprised you copied and pasted all of that without explaining what it means.

    Does LoRA perform worse, better or statistically insignificantly different to FullFT?

    You aren't able to tell from what you pasted, are you?

    • cheald 4 months ago

      Standard LoRA (W_delta = B@A with standard inits) generally underperforms FT, primarily because of "intruder dimensions" (new high-ranking singular vectors which misalign with the singular vectors of the underlying weights) as outlined in the paper.

      There are techniques like PiCa and SVFT which can mitigate much of the loss, though.

      • tangjurine 4 months ago

        pica came out two days ago, how did you find out about it?

        • cheald 4 months ago

          The one I was referring to was from this paper, first published in May: https://arxiv.org/abs/2505.20211v1

          I don't recall how I found out about it, but it was either paperswithcode or an LLM research session working through the intruder dimensions problem.

          In my Stable Diffusion tests, it substantially improves LoRA training speed and fidelity, though I've got some experiments that seem to even further substantially improve on it by adding learnable rotations of the singular vectors.

    • crimsoneer 4 months ago

      If you're going to be snarky, could you at least clarify what the answer is for those of us who don't stay on top of ML research...?

      • lelanthran 4 months ago

        > If you're going to be snarky, could you at least clarify what the answer is for those of us who don't stay on top of ML research...?

        The answer is "There's a difference, perhaps", but the GP appeared to imply that LoRA performed worse.

        My understanding is that that paper found differences, but did not conclude that the differences were quantifiably better or worse, but this is not what GP's post implied.

      • p1esk 4 months ago

        The paper does not make any clear conclusions about LoRA vs FullFT performance, beyond "the two methods seem to be learning different things".

  • richardvsu 4 months ago

    Why would they cite a paper that’s not helping with their Tinker API that was released soon after? :)

mountainriver 4 months ago

> LoRA works well when not capacity constrained, i.e., the number of trainable parameters exceeds the amount of information to be learned, which can be estimated in terms of dataset size

I’m shocked they didn’t look at progressive merging of LoRAs. Research shows that’s the best way of improving its ability to model higher level features.

Seems like a massive miss, not to mention there is other research that contradicts a lot of their findings. This feels a bit like a researchers first pass at learning LoRA

logannyeMD 4 months ago

Missed opportunity to title this "Lo-RAgrets"

sgt101 4 months ago

Question for dudes building modern nn's... what's the thinking on estimating structural capacity for real world problem? How should I estimate how many parameters to choose for the model?

  • p1esk 4 months ago

    You test different models on your real world problem, and pick the smallest one that works.

    • sgt101 4 months ago

      I just think that there has to be some heuristic..

      • BoorishBears 4 months ago

        Closest thing to a heuristic is trying the task with non fine-tuned models and building an intuition for how far off each model is, what directions it's off in, and how easily you can improve that direction via fine-tuning.

        For example, for classification, if is hallucinating semantically similar, but not technically valid classes, you can probably fine-tune your way out of the gap with a smaller model.

        But if your task requires world knowledge, you likely need a larger model. It's not cheap, efficient, or generally useful to fine-tune for additional world knowledge directly.

_def 4 months ago

Took me a moment to realize this is not about LoRa.

markisus 4 months ago

Can someone explain the bit counting argument in the reinforcement learning part?

I don’t get why a trajectory would provide only one bit of information.

Each step of the trajectory is at least giving information about what state transitions are possible.

An infinitely long trajectory can explore the whole state space if there are no absorbing states. Such a trajectory would provide a massive amount of information about the system, even if we ignored the final reward.

  • navar 4 months ago

    I believe it's because the way you measure things in RL, each episode only tells you whether it was good (say reward +1) or bad (say 0 or negative reward), it does not tell you anything about the trace that was produced to get the outcome. This reward is the only thing measured to produce your gradients. Hence why the amount of info in it is O(1).

    This is in contrast to more "supervised" forms of learning where you could get a loss for each token produced (e.g. cross entropy loss), and where you'd get, as a consequence O(number of tokens) information into your gradients.

  • mountainriver 4 months ago

    A fair amount of research has shown that RL doesn’t add knowledge to the base model it just optimizes paths that already exist. Now ProRL from Nvidia showed there are ways of adding knowledge, mostly through progressive merging.

    I’m still not fully convinced of the 1bit claim, they made other mistakes in the blog post

lewtun 4 months ago

For those interested in playing with an implementation of these ideas, my colleagues at HF made some recipes here: https://github.com/huggingface/trl/blob/main/docs/source/lor...

_spduchamp 4 months ago

Well since we all thought this was about Meshtastic stuff, let's just give in and make this that radio/Meshtastic comment thread.

Stumbled on this today... https://hackerpager.net/

I really want something like this with flip out keyboard and could do Signal on LTE/WiFi.

rco8786 4 months ago

I've been curious about LoRA and find a lot of these articles interesting. But I've been unable to find a good "LoRA for idiots" kind of starting point that gets me started actually doing some training with my data. Anybody know of a more practical guide I could use for that?

  • CaptainOfCoit 4 months ago

    Unsloths documentation probably gets as close to practical as it can get: https://docs.unsloth.ai/get-started/fine-tuning-llms-guide

    Be sure to validate everything you're reading though as of late I've come across more and more things that don't seem 100% accurate in their docs, seems to heavily depend on what section.

    • ijk 4 months ago

      My sense is they need to go back and update previous docs; they release a lot of software updates and a lot of notebooks showing how to use the features, but the two might fall out of sync. Would that match your observations?

Yenrabbit 4 months ago

Thinking Machines have put out a string of incredibly high-quality posts lately. Hard to oversell how much cred it's buying them with the AI research community! Keep up the great work folks

raaron773 4 months ago

The amount of people who mistook this for long range radio and were disappointed when it isnt about it is way too damn high. (This is including me)

  • ineedasername 4 months ago

    It might be useful to use this thread in a dataset to train a LoRa so that LLM agents can more easily disambiguate the great LoRa acronym collision of ‘25. No longer will future generations suffer the indignity of either/or/both confusions.

eagsalazar2 4 months ago

stupid website hijackes cmd-back-arrow.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection