Chart2Code-MoLA: Efficient Multi-Modal Code Generation via Adaptive Expert Routing

Yifei Wang, Jacky Keung, Zhenyu Mao, Jingyu Zhang*, Yuchen Cao

*Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review

Abstract

Chart-to-code generation is a critical task in automated data visualization, translating complex chart structures into executable programs. While recent Multi-modal Large Language Models (MLLMs) improve chart representation, existing approaches still struggle to achieve cross-type generalization, memory efficiency, and modular design. To address these challenges, this paper proposes C2C-MoLA, a multimodal framework that synergizes Mixture of Experts (MoE) with Low-Rank Adaptation (LoRA). The MoE component uses a complexity-aware routing mechanism with domain-specialized experts and load-balanced sparse gating, dynamically allocating inputs based on learnable structural metrics like element count and chart complexity. LoRA enables parameter-efficient updates for resource-conscious tuning, further supported by a tailored training strategy that aligns routing stability with semantic accuracy. Experiments on Chart2Code-160k show that the proposed model improves generation accuracy by up to 17%, reduces peak GPU memory by 18%, and accelerates convergence by 20%, when compared to standard fine-tuning and LoRAonly baselines, particularly on complex charts. Ablation studies validate optimal designs, such as 8 experts and rank-8 LoRA, and confirm scalability for real-world multimodal code generation.
Original languageEnglish
Title of host publication32nd Asia-Pacific Software Engineering Conference (APSEC 2025)
PublisherIEEE
Number of pages12
Publication statusPresented - 5 Dec 2025
Event32nd Asia-Pacific Software Engineering Conference (APSEC 2025) - Wynn Palace, Macao
Duration: 2 Dec 20255 Dec 2025
https://conf.researchr.org/home/apsec-2025

Conference

Conference32nd Asia-Pacific Software Engineering Conference (APSEC 2025)
Abbreviated titleAPSEC 2025
CityMacao
Period2/12/255/12/25
Internet address

Research Keywords

  • Chart-to-Code Generation
  • Multi-Modal Learning
  • Mixture of Experts (MoE)
  • Low-Rank Adaptation (LoRA)

Fingerprint

Dive into the research topics of 'Chart2Code-MoLA: Efficient Multi-Modal Code Generation via Adaptive Expert Routing'. Together they form a unique fingerprint.

Cite this