Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

WePM: Unified On-Device Multimodal Model Cuts Memory 62% While Boosting Capabilities

WeChat's WePocketModel (WePM) unifies representation, generation, and decision tasks in a single 4B-parameter multimodal model for on-device use, introducing hierarchical conflict reconciliation (MGVB, ULKD, SEMO) and a Heterogeneous Capability Density metric; WePM-4B outperforms specialized model combos with 62% less memory and 2.64x higher capability density.

Problem: Model Redundancy in On-Device AI

Large models grow more capable, yet deploying AI on edge devices remains hard because products must satisfy memory, latency, and power constraints simultaneously. A hidden cost is model redundancy: when different tasks rely on separate specialized models, each carries its own backbone network, inflating parameter storage, memory footprint, and compute overhead.

WePM: Unified Multimodal Model for Edge Devices

WeChat's research team introduces WePocketModel (WePM) , an open-source unified model series that lets representation, generation, and decision tasks share a single vision-language backbone. One core parameter set supports multiple capabilities, reducing the redundancy of independent multi-model deployment and lowering on-device AI deployment cost.

Figure 1: WePM connects representation, generation, and decision through a shared vision-language backbone.
Figure 1: WePM connects representation, generation, and decision through a shared vision-language backbone.

Measuring Unified Model Value: Heterogeneous Capability Density (HCD)

Parameter count alone is insufficient; for edge applications the key question is how many usable, balanced capabilities a fixed resident-weight memory budget can support. The team proposes Heterogeneous Capability Density (HCD) :

"Capability families" are distinct from benchmark counts (e.g., OCR and visual QA both belong to generation and are not double-counted).

Overall quality uses harmonic mean to prevent a single strong task from masking weaknesses.

Higher HCD means the same resident memory carries more, stronger, and more balanced capabilities.

HCD formula illustration.
HCD formula illustration.

Three Conflicts in Multi-Task Unification

Simply merging tasks into one model does not guarantee coexistence. The team identifies three conflict types:

Information granularity mismatch : tasks need different information scopes and detail levels—some rely on global semantics, others on local attributes or fine-grained visual evidence.

Supervision form mismatch : learning objectives differ, supervision data is usually unpaired and not directly convertible.

Optimization rhythm mismatch : gradient magnitudes, loss weights, and training frequencies vary; one task can dominate shared-parameter updates, squeezing out others.

WePM's Hierarchical Conflict Reconciliation

WePM addresses each conflict with a dedicated module:

MGVB (Multi-Granularity Visual Buffer) : Within a fixed visual token budget, retains global, regional, and fine-grained visual information, dynamically selecting relevant evidence based on the question, description, or judgment condition.

ULKD (Unified Likelihood Knowledge Distillation) : Unifies token selection in generation and candidate ranking in retrieval as distribution matching. A generation teacher guides next-token predictions along the student's own sequence trajectory; a representation teacher transfers relative preferences and vector representations among candidates. This absorbs cross-task knowledge without fabricating fully paired data.

SEMO (Scheduled Efficient Multi-Task Optimization) : Splits task influence into controllable loss weight and participation frequency, making each task's contribution to shared parameters follow a preset capability trade-off rather than being driven by loss scale or data volume. While keeping the joint-objective gradient unchanged, only a single batch's computation graph is retained, significantly cutting training memory overhead.

Figure 2: WePM technical architecture.
Figure 2: WePM technical architecture.

Evaluation Results

The team first reused an existing unified retrieval-generation benchmark for direct comparison across five task groups: image retrieval, text retrieval, math reasoning, visual QA, and OCR. WePM leads the previous strongest unified baseline (ULME) on all five groups , raising the Joint metric from 38.15 to 52.74.

Table 1: WePM vs. prior SOTA joint training methods.
Table 1: WePM vs. prior SOTA joint training methods.

Evaluation extended to the full three capability families covering 30 representation, 39 generation, and 7 decision benchmarks. WePM-4B ranks first in average score across all three families among same-size models , demonstrating balanced competitive performance. This shows shared parameters need not sacrifice any capability family.

Figure 3: WePM-4B tops three capability families in same-size model comparison.
Figure 3: WePM-4B tops three capability families in same-size model comparison.

Memory and Capability Density Comparison

Beyond accuracy, unified models reduce memory overhead from deploying multiple independent models. The team built six specialist combos (one generation + one representation + one decision model each). In BF16 precision these combos require 21–43 GB resident weights with harmonic mean scores of 64.21–64.82. WePM-4B uses a single ~8 GB weight set, achieves a harmonic mean of 65.06, cuts resident weight by 61.9%, and reaches 2.64× the HCD of the best specialist combo —lower memory cost with slightly higher overall quality.

Figure 4: WePM-4B vs. specialist combos quality-memory trade-off.
Figure 4: WePM-4B vs. specialist combos quality-memory trade-off.

On-Device Application Demos

Two fully local demos run on a Mac with M5 chip showcase how one WePM-4B coordinates retrieval, generation, and decision in a single application chain:

Personal Agent : Retrieves local content, combines personal info to generate replies, and decides next steps—completing "search–understand–reply–decide" on-device without uploading personal images, text, or interactions to the cloud.

Game Assistant : Understands the game scene, checks backpack and chest contents for material sufficiency, and determines the next action—information retrieval, dialogue, and state decision all powered by the same WePM.

These demos illustrate not just multi-task ability but synergistic collaboration of retrieval, generation, and decision within one application pipeline , reusing the same core parameters across scenarios.

Open-Source Resources

Paper: https://arxiv.org/abs/2611.27365 Code repository: https://github.com/tencent/wepocketmodel Model collection:

https://huggingface.co/collections/tencent/wepocketmodel
About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

edge AIon-device AIHeterogeneous Capability Densityhierarchical conflict reconciliationmultimodal large language modelunified multimodal modelWePMWePocketModel

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion