SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.08562 · 2024

Higher Layers Need More LoRA Experts

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2402.08562.json · badge: /api/ran/2402.08562.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
gcyzsl/mola canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
detect_nan_inf Ran
ran; our contract draft was wrong, not the code
gcyzsl/mola/src/mola_modeling_llama_hacked.py
pointer only (licence: NONE); the stored copy get_code serves, from cengzihao/adamoe, is pointer only (licence: NONE) · get_code("7b4d35d5ca974ddd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gcyzsl/mola 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_answer Ran
ran; our contract draft was wrong, not the code
gcyzsl/mola/preparation_scienceqa_data.py
pointer only (licence: NONE); the stored copy get_code serves, from thudm/moelora_riemannian, is pointer only (licence: NONE) · get_code("30a82d453ae174bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gcyzsl/mola 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_choice_text Ran
ran; our contract draft was wrong, not the code
gcyzsl/mola/preparation_scienceqa_data.py
pointer only (licence: NONE); the stored copy get_code serves, from thudm/moelora_riemannian, is pointer only (licence: NONE) · get_code("7a8dffc83d89cedd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gcyzsl/mola 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_context_text Ran
ran; our contract draft was wrong, not the code
gcyzsl/mola/preparation_scienceqa_data.py
pointer only (licence: NONE); the stored copy get_code serves, from thudm/moelora_riemannian, is pointer only (licence: NONE) · get_code("85f084f6054a421e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gcyzsl/mola 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_balancing_loss_func Ran
ran, violated the contract we drafted
gcyzsl/mola/src/mola_modeling_llama_hacked.py
pointer only (licence: NONE) · get_code("94e2e2c1c3336f07")
How it ran

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

rotate_half Ran
ran; our contract draft was wrong, not the code
gcyzsl/mola/src/mola_modeling_llama_hacked.py
pointer only (licence: NONE) · get_code("b99eea6376d1e212")
How it ran

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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 5 later) and 1 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
rotate_half 360 other papers
68 dated earlier, 25 the same month, 258 later, 6 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
get_choice_text 6 other papers
3 dated earlier, 3 later
2209.09513 (2022-09)
Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answering
2302.00923 (2023-02)
Multimodal Chain-of-Thought Reasoning in Language Models
2307.12626 (2023-07)
Enhancing Human-like Multi-Modal Reasoning: A New Challenging Dataset and Comprehensive Framework
and 3 more not named here
get_context_text 6 other papers
3 dated earlier, 3 later
2209.09513 (2022-09)
Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answering
2302.00923 (2023-02)
Multimodal Chain-of-Thought Reasoning in Language Models
2307.12626 (2023-07)
Enhancing Human-like Multi-Modal Reasoning: A New Challenging Dataset and Comprehensive Framework
and 3 more not named here
get_answer 2 other papers
2 later
2407.10223 (2024-07)
On Large Language Model Continual Unlearning
2502.15828 (2025-02)
A Stronger Mixture of Low-Rank Experts for Fine-Tuning Foundation Models
detect_nan_inf 1 other paper
1 later
2406.13233 (2024-06)
AdaMoE: Token-Adaptive Routing with Null Experts for Mixture-of-Experts Language 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-22.

Repositories linked to this paper

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

Abstract

Parameter-efficient tuning (PEFT) techniques like low-rank adaptation (LoRA) offer training efficiency on Large Language Models, but their impact on model performance remains limited. Recent efforts integrate LoRA and Mixture-of-Experts (MoE) to improve the performance of PEFT methods. Despite promising results, research on improving the efficiency of LoRA with MoE is still in its early stages. Recent studies have shown that experts in the MoE architecture have different strengths and also exhibit some redundancy. Does this statement also apply to parameter-efficient MoE? In this paper, we introduce a novel parameter-efficient MoE method, \textit{\textbf{M}oE-L\textbf{o}RA with \textbf{L}ayer-wise Expert \textbf{A}llocation (MoLA)} for Transformer-based models, where each model layer has the flexibility to employ a varying number of LoRA experts. We investigate several architectures with varying layer-wise expert configurations. Experiments on six well-known NLP and commonsense QA benchmarks demonstrate that MoLA achieves equal or superior performance compared to all baselines. We find that allocating more LoRA experts to higher layers further enhances the effectiveness of models with a certain number of experts in total. With much fewer parameters, this allocation strategy outperforms the setting with the same number of experts in every layer. This work can be widely used as a plug-and-play parameter-efficient tuning approach for various applications. The code is available at https://github.com/GCYZSL/MoLA.

For agents

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

get_harvested_code_for_paper("2402.08562")
get_code_for_paper("2402.08562")
have("2402.08562")

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

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

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

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

Connect an agent — have() is free.