Who Leads Now? Token-Level Modality Arbitration for Chart-to-Code Generation

Qinghao Fu, Yarong Wang, Shunlei Ning, Yilin Wang, Shunwen Bai +4 more
8/16/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Chart-to-code generation requires a model to read the fine-grained visual details of a chart and write executable code that reproduces it. Existing chart-to-code methods either train visual and coding abilities separately, or fine-tune on chart-to-code data with the two abilities entangled.

Show full abstract

Neither strategy accounts for the distinct nature of the two abilities or the interference that arises when they are optimized together. We propose MoCA (Mixture of Cross-modal Arbitration), which separates the two abilities rather than blending them. MoCA is built on Cross-modal Arbitration Block (CAB), which maintains a visual branch and a code branch as two distinct pathways, and a lightweight arbiter that arbitrates their relative contributions at every layer and generated token. We train MoCA in two stages: a supervised warm-up on self-distilled reasoning trajectories that decomposes visual understanding into explicit steps, followed by reinforcement learning with rewards on both the reasoning process and the final code. Analysis shows that the arbiter learns structured rather than arbitrary allocations, with expert contributions varying systematically across tokens, layers, and instances. Across three benchmarks, MoCA delivers competitive performance against general-domain and chart-specialized models. Ablation results show that the gains cannot be attributed to a larger model size alone, but instead arise from the joint contributions of complementary visual and code branch initialization and input-conditioned arbitration through CAB.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fu2026leads,
  title  = {Who Leads Now? Token-Level Modality Arbitration for Chart-to-Code Generation},
  author = {Qinghao Fu and Yarong Wang and Shunlei Ning and Yilin Wang and Shunwen Bai and Xinda Wang and Jiaotuan Wang and Yinan Nie and Wei Zhou},
  year   = {2026},
  eprint = {2608.15510},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.15510v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.15510.svg)](https://codeofpaper.com/paper/2608.15510)

Discussion