SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.16894 · ICML · 2025

Make LoRA Great Again: Boosting LoRA with Adaptive Singular Values and Mixture-of-Experts Optimization Alignment

Yu Cheng, Zhenyi Lu, Chenghao Fan, Wei Wei, Xiaoye Qu, Sichen Liu, Chengfeng Gu

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.16894.json · badge: /api/ran/2502.16894.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
facico/goat-peft canonical (classifier label)
classifier basis: classifier_2025
6 ran · 2 no recorded run
FunctionStatusWhere it lives
GOATExpert Ran
ran on a synthesized input · constructed an object; no result was computed
facico/goat-peft/goat/peta/src/goat/layer.py
code served (permissive licence) · get_code("f6281dca802f5478")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GOATExpert: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# lora_A: a simple linear layer that takes inputs and projects them
# The forward method calls self.lora_A(self.lora_dropout(inputs))
# inputs will have shape [batch, input_dim], so lora_A should map from input_dim to some intermediate_dim
lora_A = nn.Linear(in_features=4, out_features=3)

# lora_B: takes output of lora_A and projects to output_dim
# The forward method calls self.lora_B(self.lora_A(...))
# So lora_B takes 3-dimensional input (from lora_A output) and projects to output_dim
lora_B = nn.Linear(in_features=3, out_features=5)

# lora_dropout: a dropout layer applied to inputs
# The forward method calls self.lora_dropout(inputs)
# inputs have shape [batch, 4], so dropout just needs to be callable on that
lora_dropout = nn.Dropout(p=0.1)

# scaling: a float multiplier
scaling = 2.0

ARGS = {
    "lora_A": lora_A,
    "lora_B": lora_B,
    "lora_dropout": lora_dropout,
    "scaling": scaling,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GOATExpert — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GOATExpert output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GOATLayer Ran
ran on a synthesized input · constructed an object; no result was computed
facico/goat-peft/goat/peta/src/goat/layer.py
code served (permissive licence) · get_code("b114d1cbcd1d211b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GOATLayer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from abc import ABC

torch.manual_seed(0)

class StubBaseTunerLayer(nn.Module):
    """Stub for peft.tuners.tuners_utils.BaseTunerLayer"""
    pass

# Create a simple base layer
base_layer = nn.Linear(in_features=8, out_features=6, bias=True)

ARGS = {
    "base_layer": base_layer,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
peft, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GOATLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GOATLayer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
TopKGOATLayer Ran
ran on a synthesized input · constructed an object; no result was computed
facico/goat-peft/goat/peta/src/goat/layer.py
code served (permissive licence) · get_code("ee58e5aa29c6bc1a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, TopKGOATLayer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Gate network: takes flattened inputs and outputs logits for each expert
class GateNetwork(nn.Module):
    def __init__(self, input_dim, num_experts):
        super().__init__()
        self.linear = nn.Linear(input_dim, num_experts)
    
    def forward(self, x):
        return self.linear(x)

# Expert network with lora_A attribute
class ExpertNetwork(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
        # lora_A is accessed in get_expert_similarity_loss
        self.lora_A = nn.Linear(input_dim, output_dim // 2)
    
    def forward(self, x):
        return self.linear(x)

# Setup parameters
input_dim = 4
output_dim = 3
num_experts = 5
top_k = 2

# Create gate network
gate = GateNetwork(input_dim, num_experts)

# Create expert networks
experts = nn.ModuleList([
    ExpertNetwork(input_dim, output_dim)
    for _ in range(num_experts)
])

# Build ARGS dictionary
ARGS = {
    'experts': experts,
    'gate': gate,
    'top_k': top_k,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TopKGOATLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TopKGOATLayer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collate_fn Ran
ran; our contract draft was wrong, not the code
facico/goat-peft/goat/train_vit.py
code served (permissive licence) · get_code("9a79ef50064b77e4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create example data: each example is a tuple of (pixel_values, label)
# pixel_values should be shape (3, 224, 224) as asserted in the function
# We'll create tiny stand-in tensors with the right shape
examples = [
    (torch.randn(3, 224, 224).tolist(), 0),  # Convert to list as the function expects
    (torch.randn(3, 224, 224).tolist(), 1),
]

ARGS = {
    'examples': examples
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_dataset Ran
ran; our contract draft was wrong, not the code
facico/goat-peft/goat/train_nlg.py
code served (permissive licence) · get_code("7450a473b4f17f71")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned MockDataset. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch

class MockDataset:
    def __init__(self, size):
        self.data = list(range(size))
    
    def __len__(self):
        return len(self.data)
    
    def select(self, indices):
        subset = MockDataset(0)
        subset.data = [self.data[i] for i in indices]
        return subset

dataset = MockDataset(10)
rank = 0
world_size = 3

ARGS = {
    "dataset": dataset,
    "rank": rank,
    "world_size": world_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockDataset — a MockDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDataset output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_dataset Ran
ran; our contract draft was wrong, not the code
facico/goat-peft/goat/train_vit.py
code served (permissive licence) · get_code("7d02e789de7329ec")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Subset. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math
from torch.utils.data import TensorDataset

torch.manual_seed(0)

# Create a simple dataset with 10 samples
# Each sample is a tuple of (input_tensor, label_tensor)
x = torch.randn(10, 4)
y = torch.randint(0, 2, (10,))
dataset = TensorDataset(x, y)

ARGS = {
    "dataset": dataset,
    "rank": 0,
    "world_size": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Subset — a Subset output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gather_from_all_processes Not yet run
unverified (harvested, no recorded run)
facico/goat-peft/goat/train_nlg.py
code served (permissive licence) · get_code("5075efb5ce5f9c08")
How it ran

no invocation recorded.

gather_from_all_processes Not yet run
unverified (harvested, no recorded run)
facico/goat-peft/goat/train_vit.py
code served (permissive licence) · get_code("e76c4ac7377a13ee")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

While Low-Rank Adaptation (LoRA) enables parameter-efficient fine-tuning for Large Language Models (LLMs), its performance often falls short of Full Fine-Tuning (Full FT). Current methods optimize LoRA by initializing with static singular value decomposition (SVD) subsets, leading to suboptimal leveraging of pre-trained knowledge. Another path for improving LoRA is incorporating a Mixture-of-Experts (MoE) architecture. However, weight misalignment and complex gradient dynamics make it challenging to adopt SVD prior to the LoRA MoE architecture. To mitigate these issues, we propose Great LoRA Mixture-of-Expert (GOAT), a framework that (1) adaptively integrates relevant priors using an SVD-structured MoE, and (2) aligns optimization with full finetuned MoE by deriving a theoretical scaling factor. We demonstrate that proper scaling, without modifying the architecture or training algorithms, boosts LoRA MoE's efficiency and performance. Experiments across 25 datasets, including natural language understanding, commonsense reasoning, image classification, and natural language generation, demonstrate GOAT's state-of-the-art performance, closing the gap with Full FT. Our code is available at: https://github.com/ Facico/GOAT-PEFT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.16894")
get_code_for_paper("2502.16894")
have("2502.16894")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2502.16894.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2502.16894.svg)](https://syntology.ai/paper/2502.16894)

Connect an agent — have() is free.