SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.19564 · ICLR · 2025

Bi-LoRA: Efficient Sharpness-Aware Minimization for Fine-Tuning Large-Scale Models

Xiaolin Huang, Tao Li, Zhehao Huang, Yuhang Liu, Zuopeng Yang

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2508.19564.json · badge: /api/ran/2508.19564.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
CrazyElements/Bi-LoRA canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
SeqToSeqEncode Ran
ran; our contract draft was wrong, not the code
CrazyElements/Bi-LoRA/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from rainstonee/CDKA, is pointer only (licence: NONE) · get_code("45db30ac52f3cd6d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

cache_to_disk Ran
ran; our contract draft was wrong, not the code
CrazyElements/Bi-LoRA/data.py
pointer only (licence: NONE); the stored copy get_code serves, from rainstonee/CDKA, is pointer only (licence: NONE) · get_code("1d0db22ae067b53c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

causalLMEncode Ran
ran; our contract draft was wrong, not the code
CrazyElements/Bi-LoRA/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from rainstonee/CDKA, is pointer only (licence: NONE) · get_code("38de4191703bb96a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

extract_num Ran
ran, honoured the contract we drafted
CrazyElements/Bi-LoRA/eval_gsm8k.py
pointer only (licence: NONE) · get_code("37956805de2d38a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

find_all_linear_modules Ran
ran; our contract draft was wrong, not the code
CrazyElements/Bi-LoRA/run_exp.py
pointer only (licence: NONE); the stored copy get_code serves, from rainstonee/CDKA, is pointer only (licence: NONE) · get_code("65f3cc97d3e5034f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

find_hidden_state_size Ran
ran, honoured the contract we drafted
CrazyElements/Bi-LoRA/run_exp.py
pointer only (licence: NONE) · get_code("573cdad4d6e25842")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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_forward_hook Ran
ran; our contract draft was wrong, not the code
CrazyElements/Bi-LoRA/logTrainer.py
pointer only (licence: NONE) · get_code("3d89ae379c578057")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

setup_logger Ran
ran; our contract draft was wrong, not the code
CrazyElements/Bi-LoRA/run_exp.py
pointer only (licence: NONE) · get_code("11121e01fff2c974")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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.

load_flan_v2 Not yet run
unverified (harvested, no recorded run)
CrazyElements/Bi-LoRA/data.py
pointer only (licence: NONE) · get_code("1b37d30c5eaded49")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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. No invocation recorded.

load_meta_math Not yet run
unverified (harvested, no recorded run)
CrazyElements/Bi-LoRA/data.py
pointer only (licence: NONE) · get_code("963559e86ce91fd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, CrazyElements/Bi-LoRA 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. 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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 4 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.

FunctionAlso present inEarliest-datedOthers named
SeqToSeqEncode 2 other papers
1 dated earlier, 1 later
2312.00700 (2023-12)
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models
2602.01267 (2026-02)
Diving into Kronecker Adapters: Component Design Matters
cache_to_disk 2 other papers
1 dated earlier, 1 later
2312.00700 (2023-12)
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models
2602.01267 (2026-02)
Diving into Kronecker Adapters: Component Design Matters
causalLMEncode 2 other papers
1 dated earlier, 1 later
2312.00700 (2023-12)
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models
2602.01267 (2026-02)
Diving into Kronecker Adapters: Component Design Matters
find_all_linear_modules 2 other papers
1 dated earlier, 1 later
2312.00700 (2023-12)
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models
2602.01267 (2026-02)
Diving into Kronecker Adapters: Component Design Matters
load_flan_v2 1 other paper
1 dated earlier
2312.00700 (2023-12)
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models
load_meta_math 1 other paper
1 dated earlier
2312.00700 (2023-12)
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models

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-24.

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) enables parameter-efficient fine-tuning of large pre-trained models. Yet LoRA can face generalization challenges. One promising way to improve the generalization is Sharpness-Aware Minimization (SAM), which has proven effective for small-scale training scenarios. In this paper, we propose Bi-directional Low-Rank Adaptation (Bi-LoRA), which introduces an auxiliary adversarial LoRA module. This design explicitly decouples sharpness optimization, handled by the auxiliary module, from task adaptation, performed by the primary module. Such a separation yields two key benefits. First, it transforms SAM's sequential computation of adversarial perturbation and gradient descent into a parallel form, which roughly halves the time and conquers the main obstacle of applying SAM in LoRA. Second, it provides perturbations from the auxiliary module that do not collapse into the restricted optimization subspace of the primary module, enabling broader sharpness exploration and flatter minima. Bi-LoRA simultaneously achieves both efficiency and effectiveness within a single framework, as validated by extensive experiments across diverse architectures and tasks. Code is available at https://github.com/CrazyElements/Bi-LoRA.

For agents

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

get_harvested_code_for_paper("2508.19564")
get_code_for_paper("2508.19564")
have("2508.19564")

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

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

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

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

Connect an agent — have() is free.