Abstract
Automatic generation of graphic layouts for advertising posters requires a delicate balance between aesthetic placement and content preservation. Current models often suffer from a "domain gap" because they are trained on datasets where text has been synthetically removed via inpainting, leaving behind artifacts that do not exist in real-world clean images. This paper introduces PDA-GAN (Pixel-level Domain Adaption GAN), which incorporates a lightweight pixel-level discriminator to align features between inpainted and clean image domains. By targeting shallow-level features where artifacts are most detectable, PDA-GAN effectively ignores inpainting noise to focus on the underlying image structure. Experimental results demonstrate that PDA-GAN significantly reduces subject and product occlusion, outperforming existing state-of-the-art methods.
Introduction
Designing effective advertising posters involves placing textual and graphical elements in a way that ensures readability while avoiding the occlusion of key visual subjects or products. While deep learning has advanced image-aware layout generation, the lack of large-scale "clean image + layout" pairs necessitates the use of inpainted datasets. Inpainting, however, introduces subtle textures and artifacts. A model trained exclusively on these "dirty" images often fails to generalize to the "clean" images used in production—a phenomenon known as the domain gap. Previous attempts to mitigate this via Gaussian blurring often resulted in the loss of critical fine-grained details. PDA-GAN addresses this by learning to bridge the gap through unsupervised domain adaptation.
Methods
The proposed PDA-GAN framework addresses the domain gap through three integrated components: a Layout Generator, a Pixel-level Discriminator, and an Unsupervised Domain Adaptation (UDA) strategy.
Layout Generator
The generator is based on the DEtection TRansformer (DETR) architecture. It utilizes a multi-scale CNN to extract features from the background image, which are then processed by a Transformer encoder-decoder to predict bounding boxes and classes for elements such as Text, Logos, and Underlays.
Pixel-level Discriminator (PD)
The core innovation, the Pixel-level Discriminator, is designed to detect local inpainting artifacts. Unlike global discriminators that provide a single score for an entire image, the PD operates on shallow-level feature maps. The authors observed that inpainting artifacts are most prominent in these early layers. By forcing the generator to produce features that are indistinguishable between inpainted (source) and clean (target) domains at a pixel level, the model learns to ignore domain-specific noise and focus on the structural content common to both.
Results and Discussion
PDA-GAN was evaluated using the CGL-Dataset (54,546 images) and a target domain of 120,000 clean product images. The model achieved state-of-the-art results across several key metrics. Notably, it reduced Subject Occlusion ($R_{shm}$) by 17.5% and Product Occlusion ($R_{sub}$) by 14.5% compared to the previous best model, CGL-GAN. It also showed a 6.21% improvement in Background Complexity ($R_{com}$), indicating better placement in simple, readable areas.
Qualitative analysis reveals that PDA-GAN is exceptionally adept at identifying "safe" areas for text placement. In cases where the background is inherently complex, the model intelligently generates "underlays" (semi-transparent boxes) to maintain text readability without sacrificing the visual integrity of the poster. The Pixel-level Discriminator is highly efficient, adding less than 2% to the total discriminator parameter count while providing significant gains in robustness.
Conclusion
PDA-GAN successfully bridges the inpainting-induced domain gap in layout generation. By leveraging pixel-level adaptation on shallow features, the model produces professional-grade layouts that respect the primary subjects of an image. While the model excels at content preservation, future work will explore incorporating user-defined constraints and increasing the stylistic diversity of generated layouts to better serve the varied needs of graphic designers.
Summary updated