Replicating In-Context Learning (ICL) in computer vision remains challenging due to task heterogeneity. We propose \textbf{VIRAL}, a framework that elicits visual reasoning from a pre-trained image editing model by formulating ICL as conditional generation via visual analogy (xs:xt::xq:yq). We adapt a frozen Diffusion Transformer (DiT) using role-aware multi-image conditioning and introduce a Mixture-of-Experts LoRA to mitigate gradient interference across diverse tasks. Additionally, to bridge the gaps in current visual context datasets, we curate a large-scale dataset spanning perception, restoration, and editing. Experiments demonstrate that VIRAL outperforms existing methods, validating that a unified V-ICL paradigm can handle the majority of visual tasks, including open-domain editing. Our code is available at https://anonymous.4open.science/r/VIRAL-744A
@article{arxiv.2602.03210,
title = {VIRAL: Visual In-Context Reasoning via Analogy in Diffusion Transformers},
author = {Zhiwen Li and Zhongjie Duan and Jinyan Ye and Cen Chen and Daoyuan Chen and Yaliang Li and Yingda Chen},
journal= {arXiv preprint arXiv:2602.03210},
year = {2026}
}