NewsCrawler.org

Does stacking small LoRAs approach Full Fine-Tuning? Tested on a Japanese model

小さなLoRAを積み重ねるとFull Fine-Tuningに近づくのか? 日本語モデルで確かめた
回数と実効ランクの関係。逐次LoRAは回数とともに実効ランクが上がり、rank 64ではFull FTに近づく。通常LoRAは横ばい
全24層、7種類の行列ごとの実効ランク。逐次LoRA rank 64とFull FTの線は、MLPのdownを除いてほぼ同じ形になる
rank 64での評価PPLの推移。3方式とも16回目が最良で、Full FT 27.5、通常LoRA 29.6、逐次LoRA 29.9
Image: zenn.dev

The author, from ExaWizards, tests a method where a LoRA[1] is trained, merged into the model weights, reinitialized and repeated. Each update has low rank, but the sum of the updates gains rank with each cycle. The article says that for the matrices it studies, 32 cycles of rank 64 LoRA cover the same range of updates as Full Fine-Tuning[2], though this only shows that such updates exist, not that training reaches them.

The model llm-jp-3-1.8b was trained on 2,143 Aozora Bunko works written in old kanji and old kana spelling, about 22.5 million characters in total, and tested on 92 works it had not seen. Three methods were compared on the same data and the same number of steps (7,040): sequential LoRA, merged every 110 steps; normal LoRA; and Full Fine-Tuning.

After 64 cycles, sequential LoRA of rank 64 reached an effective rank[3] of 1,428, against 1,516 for Full FT. The best perplexity[4] was 27.5 for Full FT, 29.9 for sequential LoRA and 29.6 for normal LoRA. At the same perplexity, sequential LoRA worsened perplexity on modern text about 35% less than normal LoRA. The article notes that effective rank does not measure the direction of the updates.

Read the original zenn.dev

Sources

  • Zenn JA

    小さなLoRAを積み重ねるとFull Fine-Tuningに近づくのか? 日本語モデルで確かめた

    8 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page