SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.16252 · 2026

SOS-LoRA: Static Orthogonal-Subspace Low-Rank Adaptation with Fixed Multi-Scale Scaling

Yi Chang, Yuan Wu, Yupeng Chang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 1 failure of our instrument; 0 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/2607.16252.json · badge: /api/ran/2607.16252.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
llm172/sos-lora community
Papers with Code archive
4 ran · 0 no recorded run
FunctionStatusWhere it lives
GateMean1WithUniformPrior Ran
ran on a synthesized input · constructed an object; no result was computed
llm172/sos-lora/train_sos-lora.py
code served (permissive licence) · get_code("7175bc46c74e890e")
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, GateMean1WithUniformPrior: 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)

# Create arguments for GateMean1WithUniformPrior.forward
logits = torch.randn(4, dtype=torch.float32)
temperature = 1.0
uniform_prior = 0.1

ARGS = {
    "logits": logits,
    "temperature": temperature,
    "uniform_prior": uniform_prior
}
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 GateMean1WithUniformPrior — 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 GateMean1WithUniformPrior 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
LoRA_DualOrtho_Op Ran
ran on a synthesized input · constructed an object; no result was computed
llm172/sos-lora/train_sos-lora.py
code served (permissive licence) · get_code("07e61c237cde925c")
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, LoRA_DualOrtho_Op: 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.functional as F

torch.manual_seed(0)

# Parameters for LoRA_DualOrtho_Op.forward and backward
batch_size = 2
seq_len = 3
input_dim = 4
num_experts = 2
r = 2

# x: [b, s, i] - batch, sequence, input
x = torch.randn(batch_size, seq_len, input_dim, requires_grad=True)

# A: [n, r, i] - num_experts, r, input_dim
A = torch.randn(num_experts, r, input_dim, requires_grad=True)

# current_lambda: float for weighting orthogonality gradient
current_lambda = 0.5

ARGS = {
    "x": x,
    "A": A,
    "current_lambda": current_lambda,
    "num_experts": num_experts,
    "r": r,
}
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 LoRA_DualOrtho_Op — 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 LoRA_DualOrtho_Op 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
SOSLoRALayer Ran
ran on a synthesized input · constructed an object; no result was computed
llm172/sos-lora/train_sos-lora.py
code served (permissive licence) · get_code("8c8f9437819d0b7f")
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, SOSLoRALayer: 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)

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

# Define all parameters for SOSLoRALayer
ARGS = {
    'base_layer': base_layer,
    'num_experts': 2,
    'r': 4,
    'alpha': 1.0,
    'dropout': 0.1,
    'gamma_max': 2.5,
    'rank_mode': 'total',
    'normalize_scales': None,
    'dropout_position': 'postA',
    'orth_loss_mode': 'rowwise_cross',
    'scale_base': 'expert',
    'scale_anchor_beta': 0.0,
    'gate_temperature_start': 2.0,
    'gate_uniform_prior': 0.0,
    'loraplus_lr_ratio': 1.0,
}
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 SOSLoRALayer — 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 SOSLoRALayer 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
compute_ortho_grad_on_tensor Ran
ran; our contract draft was wrong, not the code
llm172/sos-lora/train_sos-lora.py
code served (permissive licence) · get_code("889fe8fde2b4426b")
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 3, dtype family float, shape (2, 3, 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 torch.nn.functional as F

torch.manual_seed(0)

# Construct a small tensor of shape [K, r, in]
# K = num_experts = 2
# r = 3
# in = 4
num_experts = 2
r = 3
in_features = 4

tensor = torch.randn(num_experts, r, in_features, dtype=torch.float32)
eps = 1e-06

ARGS = {
    "tensor": tensor,
    "num_experts": num_experts,
    "r": r,
    "eps": eps
}
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 Tensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 4 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

Low-Rank Adaptation (LoRA) is a widely used parameter-efficient fine-tuning (PEFT) method for large language models. Under a fixed rank budget, LoRA parameterizes each adapted weight through a single low-dimensional inputside pathway, which may couple heterogeneous behaviors through shared input directions and induce interference during optimization. We propose Static Orthogonal Subspace LoRA (SOS-LoRA), a drop-in extension that reparameterizes a rank-r tot update as a sum of K static (always-on, non-routed) low-rank experts. SOS-LoRA (i) decomposes the total rank across experts, (ii) applies a fixed multi-scale scaling scheme to encourage scale-separated optimization dynamics, and (iii) promotes diverse input-side directions via cross-expert orthogonal initialization and a lightweight regularizer. SOS-LoRA remains fully mergeable, adding no inference-time parameters or latency after merging. Experiments on reasoning and knowledge-intensive benchmarks (Llama 2/3), encoder-based NLU (GLUE), and math reasoning (GSM8K/MATH) show consistent gains over matched-budget LoRA baselines and recent variants. Code is available at https://github.com/llm172/sos-lora.

For agents

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

get_harvested_code_for_paper("2607.16252")
get_code_for_paper("2607.16252")
have("2607.16252")

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

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

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

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

Connect an agent — have() is free.