CoolFace
Modelpublic

hellogroup-opensource/Xuanwu

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes
Model Card

Xuanwu

Evolving General Multimodal Models into an Industrial-Grade Foundation for Content Ecosystems

![Paper](https://arxiv.org/abs/2603.29211) ![License](https://www.apache.org/licenses/LICENSE-2.0) ![GitHub](https://github.com/hellogroup-opensource/Xuanwu)

Xuanwu VL-2B is a compact vision-language foundation model for industrial content ecosystems. It is designed to balance general multimodal understanding, fine-grained content moderation, and adversarial OCR robustness within an approximately 2B-parameter budget.

The model combines InternViT-300M + a lightweight 2-layer MLP projector + Qwen3 1.7B, together with dynamic high-resolution perception, business-oriented data curation, structured chain-of-thought supervision, and GRPO-based post-training alignment.

Highlights

  • Compact ~2B architecture for deployment-sensitive moderation settings.
  • Dynamic high-resolution perception with up to 12 local 448 x 448 tiles plus a global thumbnail.
  • Progressive three-stage training: pre-training, mid-training, and post-training.
  • Structured moderation reasoning in the form of Observation -> Extraction -> Reasoning -> Conclusion.
  • Strong business moderation and adversarial OCR performance while retaining competitive general multimodal capability.

Model Details

ItemValue
Model typeAutoregressive vision-language model
ArchitectureInternViT-300M + 2-layer MLP projector + Qwen3-1.7B
ParametersApproximately 2B
Visual front endDynamic tiling with up to 12 local crops plus 1 global thumbnail
Token controlPixel Unshuffle; each 448 x 448 tile contributes 256 visual tokens
Context lengthUp to 16,384 packed tokens
Training stackDeepSpeed, bf16 / AMP, Flash Attention-2
Hardware64 x NVIDIA A100 80GB GPUs
Training cost~3,500 GPU hours
Language coveragePrimarily English and Chinese

Training

StageEffective scalePurpose
Pre-training18.63MCross-modal alignment and general image-text learning
Mid-training2.801MGeneral-capability retention plus moderation and adversarial OCR injection
SFT8.408MHigh-fidelity supervised tuning for rules, format, and reasoning
RL810kGRPO alignment for classification, format, and OCR character alignment

The raw pretraining inventory contains 20,078,399 source samples across nine top-level categories, including captioning, chart and table understanding, VQA, OCR, document understanding, science, mathematics, and text-only data. Mid-training and post-training further add business moderation data, adversarial OCR data, and manually reviewed LLM-assisted annotations.

Evaluation

Headline Results

AreaMetricXuanwu VL-2BReference
General multimodalOpenCompass average-767.90InternVL 3.5 2B: 64.27
Text-only retentionaverage-958.38InternVL 3.5 2B: 59.02
Business moderationaverage recall over 7 categories94.38InternVL 3.5 2B: 47.98
Adversarial OCRweighted overall recall82.82Gemini-2.5-Pro: 76.72

General Multimodal Benchmarks

BenchmarkInternVL 3.5 2BXuanwu VL-2B
HallusionBench46.7847.32
AI2D77.9582.19
MMStar56.2060.47
OCRBench83.1089.80
MMBench v1.175.0879.02
MMMU (val)50.5148.11
MathVista60.3068.40
average-764.2767.90

Business Moderation and Adversarial OCR

Xuanwu VL-2B reaches 94.38 average recall over seven business moderation categories and 82.82 weighted overall recall on the adversarial OCR benchmark. On adversarial OCR, it performs particularly strongly on aigc, noise, warp, and watermark subsets.

Gemini-2.5-Pro is reported in the paper as a zero-shot commercial control model without domain adaptation. The comparison is intended as a task-specialized reference rather than a claim of superiority under identical training conditions.

Prompt Format

For difficult moderation and adversarial OCR cases, the paper uses the following structured response pattern:

text
[Observation] describe the main subjects and background
[Extraction] recover visible or concealed text and symbols
[Reasoning] compare the extracted evidence against moderation rules
[Conclusion] output the final decision (Safe / Violating-Category)

Reported evaluation results use greedy decoding with temperature = 0 and max_tokens = 8192.

Intended Uses

  • Research on industrial multimodal systems, especially content moderation and adversarial OCR.
  • Deployment-sensitive multimodal understanding where a compact 2B-scale model is preferred.
  • Assistive moderation workflows with structured explanations and OCR-aware reasoning.

Limitations

  • The model can still miss violations in extreme cases such as ultra-dense overlapping watermarks or nearly invisible hidden text.
  • In long reasoning chains, the model may occasionally hallucinate or over-attribute a violation because of local high-risk cues.
  • Moderation behavior is shaped partly by business-specific policies and data, so transfer to other platforms or jurisdictions is not guaranteed.
  • Outputs should be verified before use in high-stakes review decisions.

Citation

bibtex
@article{zhang2026xuanwu,
  title={Xuanwu: Evolving General Multimodal Models into an Industrial-Grade Foundation for Content Ecosystems},
  author={Zhang, Zhiqian and Zhao, Xu and Xu, Xiaoqing and Liang, Guangdong and Wang, Weijia and Lv, Xiaolei and Li, Bo and Gao, Jun},
  journal={arXiv preprint arXiv:2603.29211},
  year={2026}
}

Links