Abstract
Low-level vision tasks, such as image restoration, enhancement, and stylization, have traditionally been addressed by specialized, task-specific models. While generalist models have recently emerged, they often struggle with fine-grained reconstruction quality and the diversity of low-level domains. This paper introduces GenLV, a generalist model for low-level vision capable of performing 30 distinct tasks within a single framework. By utilizing a Visual Task Prompt-based Image Processing (VPIP) framework and a novel cross-attention mechanism, GenLV achieves superior reconstruction quality and task flexibility compared to existing general-purpose architectures like Painter and PromptGIP.
Introduction
In computer vision, "low-level" tasks involve pixel-level manipulations—restoring a blurry photo, brightening a dark scene, or transforming a landscape into a pencil sketch. Historically, the field has relied on specialized architectures tailored to specific degradations. However, the recent trend toward generalist models aims to unify these tasks.
Existing generalist models face two primary hurdles. First, domain diversity makes it difficult to unify tasks with vastly different objectives (e.g., restoring a "clean" image versus creating a "stylized" one). Second, reconstruction quality often suffers because many generalists rely on the Masked Autoencoder (MAE) paradigm and Vision Transformers (ViT). While these are excellent for high-level semantic understanding, they often struggle with fine pixel details and low-frequency information like color and global style, frequently resulting in blurry outputs or "blocking" artifacts.
The GenLV Framework
To address these challenges, the authors propose the Visual task Prompt-based Image Processing (VPIP) framework. This framework shifts away from text-based instructions, which can be ambiguous for pixel-level tasks, and instead uses visual demonstrations.
Visual Task Prompts
GenLV is guided by a pair of images—an "input" and a "target"—that demonstrate the desired transformation. For example, providing a noisy image alongside its clean counterpart instructs the model to perform denoising. This visual prompting allows the model to adapt to various tasks without needing explicit text labels.
X-Restormer Backbone
Unlike previous models tied to ViT architectures, VPIP is backbone-agnostic. The authors utilize X-Restormer, a U-Net-like architecture specifically optimized for pixel-level accuracy. This choice ensures that the model maintains sharp textures and high-frequency details that are often lost in standard transformer-based generalists.
Prompt Cross-Attention Block (PCAB)
The "secret sauce" of GenLV is the Prompt Cross-Attention Block (PCAB). Previous models often concatenated the prompt and the input image, a method that is computationally expensive and prone to "content leakage," where the specific content of the prompt image bleeds into the output. In GenLV, the input image acts as the Query, while the prompt images provide the Key and Value. This allows the model to efficiently extract the "task instruction" from the prompt while remaining focused on the content of the target image.
Training and Task Diversity
GenLV was trained on a massive suite of 30 diverse tasks, categorized into four main areas:
- Image Restoration (10 tasks): Including Gaussian/Poisson noise removal, deblurring, JPEG artifact reduction, inpainting, deraining, and dehazing.
- Image Enhancement (8 tasks): Including low-light enhancement, HDR-to-SDR conversion, color correction, and retouching.
- Edge Detection (3 tasks): Including Canny, Laplacian, and perceptual edge detection.
- Image Stylization (9 tasks): Including pencil drawing, oil painting (Fauvism, Raphael style), and various neural style transfers.
Training utilized a combination of standard datasets such as ImageNet (for synthetic degradations), LOL (low-light), Adobe-MIT FiveK (retouching), and Rain13K.
Key Insights
Architecture and Pixel Fidelity
The research demonstrates that the ViT/MAE paradigm, while dominant in high-level vision, is suboptimal for low-level tasks. By switching to a restoration-focused backbone like X-Restormer, GenLV achieves significantly sharper textures and fewer artifacts than its predecessors.
Robustness of Cross-Attention
The use of cross-attention (PCAB) rather than global self-attention proved to be both more computationally efficient and more robust. A major finding was GenLV's stability across prompts; even when the specific images used in the prompt were changed, the output remained consistent as long as the task remained the same. This suggests the model has successfully learned to identify the underlying transformation rather than simply memorizing image pairs.
Results and Performance
GenLV demonstrated superior performance across all categories:
- Restoration: In dehazing benchmarks, GenLV achieved a PSNR of 28.91 dB, significantly outperforming PromptGIP (24.55 dB) and a standard X-Restormer without prompts (16.73 dB).
- Enhancement and Stylization: GenLV consistently outperformed Painter and PromptGIP, often by margins of 2-5 dB in PSNR. Qualitatively, GenLV produces results with superior color fidelity and sharper details, avoiding the "muddy" or gray-ish outputs common in older generalist models.
- Efficiency: The PCAB mechanism adds only a small overhead (~35.7G MACs) relative to the main network (~166.9G MACs), making it more efficient than global attention methods used in other frameworks.
Limitations and Future Work
While GenLV represents a significant step forward, it is not without limitations. The model still struggles with Out-of-Distribution (OOD) tasks—those it did not encounter during training. It has not yet achieved the "zero-shot" generalization capabilities seen in Large Language Models (LLMs). Additionally, with 30 million parameters, GenLV is relatively small. Future work will focus on scaling the model size and increasing the diversity of the training data to move closer to a true "Low-Level Vision Foundation Model."
Conclusion
GenLV proves that a single model can be a "jack-of-all-trades" in low-level vision without sacrificing the quality of a specialist. By combining visual task prompts with a restoration-optimized backbone and an efficient cross-attention mechanism, it sets a new standard for generalist image processing models.
Summary updated