Papers › MLP Fusion: Towards Efficient Fine-tuning of Dense and Mixture-of-Experts Language Models

MLP Fusion: Towards Efficient Fine-tuning of Dense and Mixture-of-Experts Language Models

18 Jul 2023arXiv:2307.08941archive 2025-07-28

Mengting Ai, Tianxin Wei, Yifan Chen, Zeming Guo, Jingrui He

Fine-tuning a pre-trained language model (PLM) emerges as the predominant strategy in many natural language processing applications. However, this process is known to be expensive, especially on edge devices with low computing power. While general approaches (e.g. quantization and distillation) have been widely studied to reduce the compute/memory of PLM fine-tuning, one-shot compression techniques specifically designed for fine-tuning remain largely unexplored. In this paper, we investigate the neural tangent kernel (NTK)--which reveals the gradient descent dynamics of neural networks--of the multilayer perceptrons (MLP) modules in a PLM and propose to coin a lightweight PLM through NTK-approximating MLP fusion. By incorporating NTK into the compression process, MLP Fusion not only preserves the original model's output but also maintains its training dynamics. To achieve this, we reconsider the MLP as a bundle of sub-MLPs and cluster them into a given number of centroids, which can then be restored as a compressed MLP and surprisingly well approximate the NTK of the original PLM. Our approach is applicable to both standard MLP modules and Mixture-of-Experts (MoE) modules in PLMs, demonstrating its scalability and versatility. Additionally, we provide theoretical derivations to demonstrate how the proposed compression preserves the NTK. Extensive experiments of PLM fine-tuning on both natural language understanding and generation tasks are provided to verify the effectiveness of MLP fusion. Our code is available at https://github.com/weitianxin/MLP_Fusion.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.08941")

Code

Syntology Ran 10 of 14 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

weitianxin/mlp_fusion officialmentioned in paperjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 10 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
9ran
4unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from weitianxin/mlp_fusion. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Linear_sketch weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository ran no licence file found · pointer only · 8e65852945fc41b9 · report
Linear_svd weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository ran no licence file found · pointer only · 51c5a7fc7ae52036 · report
MMD_model weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository ran fingerprinted no licence file found · pointer only · 0081b17668e7a074 · report
ScaleLayer weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository ran fingerprinted no licence file found · pointer only · 77ecf773c5c9651a · report
SwitchTransformersConfig weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository ran no licence file found · pointer only · 905073406c036f74 · report
create_position_ids_from_input_ids weitianxin/MLP_Fusion/models/roberta/modeling_roberta.py official repository ran no licence file found · pointer only · 38f46ef4e03fee1c · report
create_position_ids_from_input_ids weitianxin/MLP_Fusion/models/roberta/modeling_flax_roberta.py official repository ran no licence file found · pointer only · 6697ea7953dcb4c6 · report
initial_val_plus_disturbance weitianxin/MLP_Fusion/nlg/adapters/low_rank_layer.py official repository ran no licence file found · pointer only · 9fea21a34c180fb0 · report
top_filtering weitianxin/MLP_Fusion/nlg/evaluate.py official repository ran · fixture could not drive it no licence file found · pointer only · 695eaa24be6f2a1d · report
truncated_gaussian weitianxin/MLP_Fusion/nlg/adapters/low_rank_layer.py official repository ran no licence file found · pointer only · 0178efd5619a35d7 · report
SwitchTransformersDenseActDense weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository unverified no licence file found · pointer only · 2005938ffe99509c · report
SwitchTransformersSparseMLP weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository unverified no licence file found · pointer only · 18725727fe1cf6cb · report
SwitchTransformersTop1Router weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository unverified no licence file found · pointer only · a04df7ea135e2987 · report
structure_prune weitianxin/mlp_fusion/switch/switch_transformers/modeling_switch_transformers.py official repository unverified no licence file found · pointer only · 7c85bc322e1c67a7 · report

Tasks

Language ModellingMixture-of-ExpertsNatural Language UnderstandingQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

NTK

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections