SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.02734 · September 2026

LoRA-TSD: Tangent-Space Spectral Descent for LoRA via Muon-Style Updates

Aleksandr Beznosikov, Andrey Veprikov, Dmitrii Andriianov

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2609.02734.json · badge: /api/ran/2609.02734.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
brain-lab-research/LoRA-TSD canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
apply_riemannian_lora Ran
ran; our contract draft was wrong, not the code
brain-lab-research/LoRA-TSD/src/models/riemannian_lora_layer.py
code served (permissive licence) · get_code("b589c65e8beb918c")
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 SimpleModel. 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)

# Create a simple model with PEFT LoRA structure
class SimpleLoRAModule(nn.Module):
    def __init__(self):
        super().__init__()
        # Create a base linear layer
        self.base_layer = nn.Linear(3, 4)
        # Create LoRA A and B layers to match PEFT structure
        self.lora_A = nn.Linear(4, 8, bias=False)
        self.lora_B = nn.Linear(8, 3, bias=False)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.lora_module = SimpleLoRAModule()
        self.other_linear = nn.Linear(4, 5)
    
    def forward(self, x):
        return self.other_linear(x)

# Build the model
model = SimpleModel()

# Define ARGS dict with all parameters for apply_riemannian_lora
ARGS = {
    "model": model,
    "r": 2,
    "lora_alpha": 4,
    "lora_dropout": 0.1,
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
create_preconditioner Ran
ran; our contract draft was wrong, not the code
brain-lab-research/LoRA-TSD/src/optimizers/lora_rite.py
pointer only (licence: MIT); the stored copy get_code serves, from gkevinyen5418/LoRA-RITE, is pointer only (licence: NONE) · get_code("5ed0f5c52db3d133")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from gkevinyen5418/LoRA-RITE, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_muon_full_param_groups Ran
ran; our contract draft was wrong, not the code
brain-lab-research/LoRA-TSD/src/models/lora.py
code served (permissive licence) · get_code("77530cd18a06bbb2")
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 list. 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)

# Build a small model with named Linear modules
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.layer2 = nn.Linear(3, 2)
        self.submodule = nn.Sequential(
            nn.Linear(2, 4),
        )
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        return x

model = SimpleModel()

# Ensure weights require gradients
for param in model.parameters():
    param.requires_grad = True

# Define target_modules - these should match the last part of module names
# that are Linear layers we want to extract
target_modules = ['layer1', 'layer2']

ARGS = {
    'model': model,
    'target_modules': target_modules,
}
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 list — a list 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
inv_sqrt_via_newtonschulz Ran
ran; our contract draft was wrong, not the code
brain-lab-research/LoRA-TSD/src/optimizers/lora_muon_manifold.py
code served (permissive licence) · get_code("2a4f69aa64b5b661")
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 Tensor, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

torch.manual_seed(0)

# Create a small symmetric positive definite (SPD) matrix
# The function expects a square matrix P
r = 4
P = torch.randn(r, r, dtype=torch.float32)
# Make it symmetric positive definite by computing P @ P.T
P = P @ P.T

ARGS = {
    "P": P,
    "steps": 7,
    "eps": 1e-05,
    "exact": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
parse_config Ran
ran; our contract draft was wrong, not the code
brain-lab-research/LoRA-TSD/src/args_parser.py
code served (permissive licence) · get_code("9295cf090395cc88")
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 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
import argparse

torch.manual_seed(0)

ARGS = {
    'argv': [
        '--run-name', 'test_run',
        '--optimizer', 'adamw',
        '--model', 'gpt2',
        '--dataset', 'wikitext',
        '--output-dir', 'results',
        '--steps', '100',
        '--seed', '42',
        '--eval-every', '20',
        '--eval-batch-size', '16',
        '--train-batch-size', '32',
        '--grad-accum-steps', '1',
        '--grad-clip-norm', '1.0',
        '--checkpoint-dir', 'checkpoints',
        '--checkpoint-every', '50',
        '--resume-from', None,
        '--lr-a', '0.001',
        '--lr-b', '0.005',
        '--lr-scheduler', 'linear',
        '--weight-decay', '0.01',
        '--max-delta-norm', '0.5',
        '--adam-beta1', '0.9',
        '--adam-beta2', '0.999',
        '--adam-eps', '1e-08',
        '--lora-pro-eps-inv', '1e-06',
        '--muon-momentum', '0.95',
        '--muon-ns-steps', '5',
        '--muon-nesterov',
        '--riemannian-momentum', '0.95',
        '--lora-rite-beta1', '0.9',
        '--lora-rite-beta2', '0.999',
        '--lora-rite-eps', '1e-06',
        '--lora-rite-clip', '1.0',
        '--lora-rite-cap', '0.0',
        '--lora-rite-skip', '1.0',
        '--lmm-momentum', '0.95',
        '--lmm-ns-steps', '8',
        '--lmm-inv-sqrt-steps', '7',
        '--lmm-eps', '1e-05',
        '--momentum-cf', '0.9',
        '--ball-iters', '5',
        '--ball-ridge-eps', '1e-08',
        '--ball-balance-mode', 'norm',
        '--ball-rebalance-every', '1',
        '--rsvd-q', '15',
        '--rsvd-scale', '0.0',
        '--lora-r', '16',
        '--lora-alpha', '16',
        '--lora-target-modules', 'k_proj', 'q_proj', 'v_proj',
        '--lora-dropout', '0.05',
    ]
}
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 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
f Not yet run
unverified (harvested, no recorded run)
brain-lab-research/LoRA-TSD/src/optimizers/lora_tsd.py
code served (permissive licence) · get_code("42c1e5e5c2470c48")
How it ran

no invocation recorded.

get_full_finetune_model Not yet run
unverified (harvested, no recorded run)
brain-lab-research/LoRA-TSD/src/models/lora.py
code served (permissive licence) · get_code("c88bc918e340f1e7")
How it ran

no invocation recorded.

get_lora_model Not yet run
unverified (harvested, no recorded run)
brain-lab-research/LoRA-TSD/src/models/lora.py
code served (permissive licence) · get_code("50ddd8c128ff2ec5")
How it ran

no invocation recorded.

get_riemannian_param_groups Not yet run
unverified (harvested, no recorded run)
brain-lab-research/LoRA-TSD/src/models/riemannian_lora_layer.py
code served (permissive licence) · get_code("4470db177328cd5b")
How it ran

no invocation recorded.

tangent_projected_grad Not yet run
unverified (harvested, no recorded run)
brain-lab-research/LoRA-TSD/src/optimizers/lora_tsd.py
code served (permissive licence) · get_code("3640fb938b491e28")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

FunctionAlso present inEarliest-datedOthers named
create_preconditioner 2 other papers
2 dated earlier
2410.20625 (2024-10)
LoRA Done RITE: Robust Invariant Transformation Equilibration for LoRA Optimization
2605.31484 (2026-05)
Balanced LoRA: Removing Parameter Invariance to Accelerate Convergence

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

Low-rank adaptation (LoRA) is the standard way to fine-tune large models, yet when its two factors are trained independently, the update ignores the geometry of the low-rank weight change it induces. We introduce LoRA-TSD, an optimizer that treats every LoRA step as a tangent vector of the fixed-rank matrix manifold and takes the spectral-norm steepest-descent step of Muon inside that tangent space, mapping the result back to the factors through a retraction native to the LoRA parametrization. The step avoids expensive operations on full weight matrices, and its retraction is up to $2.8\times$ cheaper than the truncated-SVD retraction used by prior manifold methods. We prove that the Frobenius-norm version of our surrogate recovers LoRA-Pro, and we identify the tangent-projected gradient, the Riemannian gradient of the manifold, as the stationarity measure natural to LoRA training and computable from the factor gradients alone. Under this measure we give the first global convergence guarantees for both LoRA-Pro and LoRA-TSD, with rates that drive the factor-gradient norms to zero. Across six commonsense and natural-language-inference benchmarks with Llama-3.2-1B, Llama-3.1-8B and Qwen3-32B, LoRA-TSD outperforms every competing LoRA optimizer and stays robust to the adapter rank. Code is available at https://github.com/brain-lab-research/LoRA-TSD.

For agents

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

get_harvested_code_for_paper("2609.02734")
get_code_for_paper("2609.02734")
have("2609.02734")

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

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

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

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

Connect an agent — have() is free.