Domain-Agnostic Neural Oil Painting via Normalization Affine Test-Time Adaptation

Authors: Qichao Dong, Lingyu Liu, yaxiong-wangYaxiong Wang, Jason Liu, Zhedong Zheng

Published in ACM International Conference on Multimedia (ACM MM) - BNI Track, 2025

Recommended citation: Qichao Dong, Lingyu Liu, Yaxiong Wang, Jason Liu, Zhedong Zheng, "Domain-Agnostic Neural Oil Painting via Normalization Affine Test-Time Adaptation." ACM Multimedia - BNI Track, 2025.
Download PDF: https://zdzheng.xyz/files/2025/Qichao_TTA.pdf

Code is available at: https://domain-agnostic-neural-oil-painting.github.io/DANP/

Abstract: Neural oil painting synthesis is to sequentially predict brushstroke color and position, forming an oil painting step by step, which could serve as a painting teacher for education and entertainment. Existing methods usually suffer from degraded generalization for real-world photo inputs due to the training-test distribution gap, often manifesting as stroke-induced artifacts (e.g., over-smoothed textures or inconsistent granularity). In an attempt to mitigate this gap, we introduce a domain-agnostic neural painting (DANP) framework that aligns model to the test domain. In particular, we focus on updating affine parameters of normalization layers efficiently, while keeping other parameters frozen. To stabilize adaptation, our framework introduces: (1) Asymmetric Dual-Branch with mirror augmentation for robust feature alignment via geometric transformations, (2) Dual-Branch Interaction Loss combining intra-branch reconstruction and inter-branch consistency, and we also involve an empirical optimization strategy to mitigate gradient oscillations in practice. Experiments on real-world images from diverse domains (e.g., faces, landscapes, and artworks) validate the effectiveness of DANP in resolution-invariant adaptation, decreasing ~11.3\% reconstruction error at 512px and ~20.3\% at 1024px compared to the baseline model. It is worthy noting that our method is compatible with existing methods, e.g., Paint Transformer, and further improves the ~10.3\% perceptual quality.

@inproceedings{dong2025domain,
author = "Dong, Qichao and Liu, Lingyu and Wang, Yaxiong and Liu, Jason J. R. and Zheng, Zhedong",
title = "Domain-Agnostic Neural Oil Painting via Normalization Affine Test-Time Adaptation",
abstract = "Neural oil painting synthesis is to sequentially predict brushstroke color and position, forming an oil painting step by step, which could serve as a painting teacher for education and entertainment. Existing methods usually suffer from degraded generalization for real-world photo inputs due to the training-test distribution gap, often manifesting as stroke-induced artifacts (e.g., over-smoothed textures or inconsistent granularity). In an attempt to mitigate this gap, we introduce a domain-agnostic neural painting (DANP) framework that aligns model to the test domain. In particular, we focus on updating affine parameters of normalization layers efficiently, while keeping other parameters frozen. To stabilize adaptation, our framework introduces: (1) Asymmetric Dual-Branch with mirror augmentation for robust feature alignment via geometric transformations, (2) Dual-Branch Interaction Loss combining intra-branch reconstruction and inter-branch consistency, and we also involve an empirical optimization strategy to mitigate gradient oscillations in practice. Experiments on real-world images from diverse domains (e.g., faces, landscapes, and artworks) validate the effectiveness of DANP in resolution-invariant adaptation, decreasing \textasciitilde 11.3\\% reconstruction error at 512px and \textasciitilde 20.3\\% at 1024px compared to the baseline model. It is worthy noting that our method is compatible with existing methods, e.g., Paint Transformer, and further improves the \textasciitilde 10.3\\% perceptual quality.",
booktitle = "ACM Multimedia - BNI Track",
note = "Oral Presentation",
url = "https://zdzheng.xyz/files/2025/Qichao\_TTA.pdf",
code = "https://domain-agnostic-neural-oil-painting.github.io/DANP/",
funding = "FDCT/0043/2025/RIA1, 202401035, SRG2024-00002-FST",
year = "2025" }