MEGA Hub

TransAnyText: Translating Arbitrary Text in E-commerce Images via Structured Visual Generation

Authors

Do you know Xiaoan Liu?You can claim authorship or link another user.Do you know Lichen Ma?You can claim authorship or link another user.Do you know Zipeng Guo?You can claim authorship or link another user.Do you know Yu He?You can claim authorship or link another user.Do you know Xiaoyan Su?You can claim authorship or link another user.Do you know Shaojie Guo?You can claim authorship or link another user.Do you know Hao Yang?You can claim authorship or link another user.Do you know Jingling Fu?You can claim authorship or link another user.Do you know Xiaolong Fu?You can claim authorship or link another user.Do you know Zhen Chen?You can claim authorship or link another user.Do you know Yu Guo?You can claim authorship or link another user.Do you know Fei Wang?You can claim authorship or link another user.Do you know Xinyi Liu?You can claim authorship or link another user.Do you know Yongjun Zhang?You can claim authorship or link another user.Do you know Ke Zhang?You can claim authorship or link another user.Do you know Junshi Huang?You can claim authorship or link another user.

Abstract

Cross-border e-commerce image translation is essential for global retail, where product images, banners, and detail pages need to be produced in different languages. Existing methods struggle to achieve accurate translation, faithful visual identity preservation, and easy-to-edit outputs, simultaneously. To address these challenges, we introduce TransAnyText, a structured visual code framework that reformulates image text translation as generating renderable HTML patches from source images and target languages. Our framework decouples semantic generation from pixel rendering: a vision-language model (VLM) handles visual understanding, cross-lingual translation, and structured visual generation, while a diffusion model performs background inpainting and pixel-level refinement, followed by deterministic rendering to synthesize the final image. Based on this formulation, we develop a three-stage post-training framework, where supervised fine-tuning (SFT) establishes the image-to-code mapping, privilege-gap weighted self-distillation (PWSD) improves the learning of style and layout tokens, and reinforcement learning with verifiable rewards (RLVR) further optimizes task-level performance. We further introduce TransAnyDataset and TransAnyBench, a multilingual dataset and benchmark for e-commerce image translation. Extensive experiments demonstrate competitive performance against cascaded pipelines, open-source end-to-end models, and closed-source image editing systems, providing an effective, controllable, and editable solution for cross-border e-commerce image translation.

Community

00