paper-with-me

홈 › Papers

FPMoE: A Sparse Mixture-of-Experts Approach to Functional Code Generation

2026-05-27 · Loc Pham, Lang Hong Nguyet Anh, Thanh Le-Cong arxiv

Despite rapid progress in LLM-based code generation, existing models are predominantly trained on imperative languages, leaving functional programming languages (FPLs) such as Haskell, OCaml, and Scala chronically underexplored, with even frontier models performing substantially worse on FPLs. Fine-tuning is a natural remedy, but our experiments show that per-language fine-tuning fails to capture shared functional abstractions, while merged multi-language fine-tuning introduces cross-language interference. To address this, we introduce FPMoE, a lightweight, open-source code generation model built on a sparse Mixture-of-Experts (MoE) architecture with three language-specific routed experts (one each for Haskell, OCaml, and Scala) and a shared expert that captures cross-language functional patterns such as monadic reasoning and type-directed programming. This design resolves both failure modes simultaneously: dedicated experts eliminate interference, while the shared expert preserves abstractions that per-language models miss. On FPEval, FPMoE substantially outperforms fine-tuned baselines and, with only 3B active parameters, matches the performance of much larger models including DeepSeek-Coder-6.7B, Qwen2.5-Coder-14B-Instruct, and Qwen3-Coder-30B-A3B.

📄 PDF Abstract BibTeX arXiv:2605.27849

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Mixture of Tunable Experts - Behavior Modification of DeepSeek-R1 at Inference Time

2025-02-16 · Robert Dahlke, Henrik Klagges, Dan Zecha, Benjamin Merkel 외

We present the Mixture-of-Tunable-Experts (MoTE), a method that extends the Mixture-of-Experts architecture of Large Language Models (LLMs). Without additional training, MoTE enables meaningful and focused behavior chang…

Mixture-of-Experts

CBDES MoE: Hierarchically Decoupled Mixture-of-Experts for Functional Modules in Autonomous Driving

2025-08-11 · Qi Xiang, Kunsong Shi, Zhigui Lin, Lei He arxiv

Bird's Eye View (BEV) perception systems based on multi-sensor feature fusion have become a fundamental cornerstone for end-to-end autonomous driving. However, existing multi-modal BEV methods commonly suffer from limite…

3D Object DetectionAutonomous Driving

Mosaic Pruning: A Hierarchical Framework for Generalizable Pruning of Mixture-of-Experts Models

2025-11-25 · Wentao Hu, Mingkuan Zhao, Shuangyong Song, Xiaoyan Zhu 외 arxiv

Sparse Mixture-of-Experts (SMoE) architectures have enabled a new frontier in scaling Large Language Models (LLMs), offering superior performance by activating only a fraction of their total parameters during inference. …

Code Generation

Variational Proximal Policy Optimization

2026-06-06 · Ousmane Amadou Dia arxiv

Reinforcement Learning from Human Feedback via Proximal Policy Optimization often suffers from policy mode collapse, brittle exploration loops, and distribution drift. This paper introduces Variational Proximal Policy Op…

Reinforcement LearningMathematical Reasoning

Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Experts

2025-09-23 · Qi Wang, Hanyang Peng, Yue Yu arxiv

Mixture-of-Experts (MoE) models enable scalable performance by activating large parameter sets sparsely, minimizing computational overhead. To mitigate the prohibitive cost of training MoEs from scratch, recent work empl…