Abstract
The circulation of prohibited and restricted (PR) goods in online transactions poses a significant threat to consumer rights and public safety. Regulating these illegal activities is hindered by a lack of comprehensive datasets and the adversarial tactics sellers use to disguise products. This paper introduces a multimodal dataset comprising 38,513 images and 77,026 text descriptions. Furthermore, we propose the PRIG (Prohibited and Restricted Image Generator) framework, which integrates a PR-adapter for optimized image prompts, a text description generator combining CLIP and MobileVLM, and a fine-tuned Stable Diffusion model with a novel loss function. Experimental results demonstrate that PRIG generates diverse, accurate images that significantly enhance intelligent supervision for online transactions.
Introduction
Regulating e-commerce for illegal goods is a persistent "cat-and-mouse" game. While AI models excel at identifying common consumer goods, they often struggle with prohibited items like controlled weapons, endangered wildlife, or restricted pharmaceuticals. This difficulty stems from data scarcity and "adversarial modifications"—tactics where sellers hide items, use unusual angles, or employ euphemisms to bypass automated filters. To address this, we developed a framework to generate high-quality synthetic data that mimics these adversarial tactics, providing a robust training ground for supervision models.
The PRIG Framework
The PRIG framework is designed to generate high-fidelity, diverse images of illegal goods by bridging the gap between raw visual data and semantic understanding.
Core Components
- PR-adapter: To prevent the model from simply memorizing pixels, the PR-adapter utilizes traditional augmentation (e.g., Gaussian blur, noise, elastic transformation) alongside CLIP-based compression. This forces the generator to focus on high-level semantic features rather than superficial details.
- Text Description Generator: Standard Large Language Models (LLMs) often misidentify illegal goods without context. Our framework combines CLIP for zero-shot category matching with MobileVLM, a lightweight multimodal LLM. CLIP identifies the product category, which acts as a "hint" for MobileVLM to generate a rich, detailed textual description.
- Image Generator with $L_{PRIG}$ Loss: We fine-tuned a Stable Diffusion Model (SDM) using a novel three-part loss function. This function specifically targets "text concept overlap" to prevent different parts of a description from blurring together and ensures "concept retention" so that key details are not lost during the generation process.
Datasets and Benchmarks
We introduced the Prohibited and Restricted Goods Dataset, featuring 38,513 images across 10 major categories (e.g., Hazardous control equipment, Protected animals, Financial currency) and 115 subcategories. To validate the dataset's utility, we benchmarked it against 14 state-of-the-art (SOTA) classification models and 12 detection models. ConvNeXt emerged as the top classifier with 88.07% accuracy, while SSD was the most effective detector with 91.48% mAP.
Key Results
PRIG outperformed standard Stable Diffusion and other SOTA models like Anydoor and IP-adapter across all metrics. Notably, it achieved a Fréchet Inception Distance (FID) of 6.12, a significant improvement over the standard SDM’s 8.53. In a blind user study with 20 professionals, PRIG-generated images scored higher in consistency, accuracy, and detail than those from baseline models.
Conclusion and Future Work
While PRIG represents a significant step forward, challenges remain regarding class imbalance for rare items and the detection of heavily occluded objects. Future research will focus on model compression and knowledge distillation to enable real-time monitoring on mobile devices, further empowering regulatory bodies to combat illegal online trade.
Summary updated