paper-with-me

홈 › Papers

FactorLLM: Factorizing Knowledge via Mixture of Experts for Large Language Models

2024-08-15 · Zhongyu Zhao, Menghang Dong, Rongyu Zhang, Wenzhao Zheng, Yunpeng Zhang, Huanrui Yang, Dalong Du, Kurt Keutzer, Shanghang Zhang

Recent research has demonstrated that Feed-Forward Networks (FFNs) in Large Language Models (LLMs) play a pivotal role in storing diverse linguistic and factual knowledge. Conventional methods frequently face challenges due to knowledge confusion stemming from their monolithic and redundant architectures, which calls for more efficient solutions with minimal computational overhead, particularly for LLMs. In this paper, we explore the FFN computation paradigm in LLMs and introduce FactorLLM, a novel approach that decomposes well-trained dense FFNs into sparse sub-networks without requiring any further modifications, while maintaining the same level of performance. Furthermore, we embed a router from the Mixture-of-Experts (MoE), combined with our devised Prior-Approximate (PA) loss term that facilitates the dynamic activation of experts and knowledge adaptation, thereby accelerating computational processes and enhancing performance using minimal training data and fine-tuning steps. FactorLLM thus enables efficient knowledge factorization and activates select groups of experts specifically tailored to designated tasks, emulating the interactive functional segmentation of the human brain. Extensive experiments across various benchmarks demonstrate the effectiveness of our proposed FactorLLM which achieves comparable performance to the source model securing up to 85% model performance while obtaining over a 30% increase in inference speed. Code: https://github.com/zhenwuweihe/FactorLLM.

📄 PDF Abstract BibTeX arXiv:2408.11855

Code (1)

zhenwuweihe/factorllm 공식 구현 pytorch

Tasks

Mixture-of-Experts

Similar Papers 제목 키워드 기반

Read-ME: Refactorizing LLMs as Router-Decoupled Mixture of Experts with System Co-Design

2024-10-24 · Ruisi Cai, Yeonju Ro, Geon-Woo Kim, Peihao Wang 외

The proliferation of large language models (LLMs) has led to the adoption of Mixture-of-Experts (MoE) architectures that dynamically leverage specialized subnetworks for improved efficiency and performance. Despite their…

Mixture-of-ExpertsMMLUScheduling

Memory Augmented Language Models through Mixture of Word Experts

2023-11-15 · Cicero Nogueira dos santos, James Lee-Thorp, Isaac Noble, Chung-Ching Chang 외

Scaling up the number of parameters of language models has proven to be an effective approach to improve performance. For dense models, increasing model size proportionally increases the model's computation footprint. In…

Mixture-of-Experts

Every Expert Matters: Towards Effective Knowledge Distillation for Mixture-of-Experts Language Models

2025-02-18 · Gyeongman Kim, Gyouk Chu, Eunho Yang

With the emergence of Mixture-of-Experts (MoE), the efficient scaling of model size has accelerated the development of large language models in recent years. However, their high memory requirements prevent their use in r…

Knowledge DistillationMixture-of-ExpertsModel Compression

LLaVA-CMoE: Towards Continual Mixture of Experts for Large Vision-Language Models

2025-03-27 · Hengyuan Zhao, Ziqin Wang, Qixin Sun, Kaiyou Song 외

Although applying Mixture of Experts to large language models for learning new tasks is widely regarded as an effective strategy for continuous learning, there still remain two major challenges: (1) As the number of task…

Mixture-of-Experts

Decoupled Mixture-of-Experts for Parametric Knowledge Injection

2026-06-12 · Baoqing Yue, Weihang Su, Qingyao Ai, Yichen Tang 외 arxiv

Knowledge injection aims to equip large language models (LLMs) with external, domain-specific, or time-sensitive knowledge. Existing approaches typically face a trade-off between flexibility and integration: retrieval-au…