arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.09633cs.CV
收藏

上下文翻译:迈向统一图像识别、处理与生成

In-Context Translation: Towards Unifying Image Recognition, Processing, and Generation

Institute of Image Communication and Network Engineering, Shanghai Jiao Tong University(上海交通大学图像通信与网络工程研究所);School of Information Systems, Singapore Management University(新加坡管理大学信息系统学院);MoE Key Laboratory of Artificial Intelligence, AI Institute, Shanghai Jiao Tong University(上海交通大学人工智能研究院(教育部人工智能重点实验室));School of Electronics and Computer Science, University of Southampton(南安普顿大学电子与计算机科学学院)

Han Xue, Qianru Sun, Li Song, Wenjun Zhang, Zhiwu Huang

AI总结:

提出上下文翻译(ICT)框架,通过标准化RGB图像对和上下文学习统一视觉识别、处理与生成任务,在十个基准上表现优异,且训练更高效低成本。

摘要:

我们提出上下文翻译(ICT),这是一个通用学习框架,旨在统一视觉识别(如语义分割)、低级图像处理(如去噪)和条件图像生成(如边缘到图像合成)。得益于这种统一,ICT显著减少了为特定任务设计模型时固有的归纳偏差,并最大化相似任务之间的相互增强。然而,由于各种数据格式和训练流程的差异,跨大量任务的统一并非易事。为此,ICT引入了两种设计。首先,它将不同任务的输入输出数据标准化为RGB图像对,例如,语义分割数据将一个RGB图像与其分割掩码配对,且掩码也采用相同的RGB格式。这便将不同任务转化为两个RGB图像之间的一般翻译任务。其次,它将不同任务的训练标准化为一般的上下文学习,其中“上下文”指的是输入包含目标任务的一个示例输入输出对以及一个查询图像。学习目标是生成与查询配对的“缺失”数据。因此,隐式翻译过程发生在查询与生成的图像之间。在实验中,ICT统一了十个视觉任务,并在各自基准上展示了令人印象深刻的性能。值得注意的是,ICT在计算机视觉的三大类任务中均表现良好,而其两个竞争对手(Painter和PromptDiffusion)最多仅在两类任务中有效。此外,与竞争对手相比,仅使用4块RTX 3090 GPU训练的ICT在训练上表现出更高的效率和更低的成本。

英文摘要:

We propose In-Context Translation (ICT), a general learning framework to unify visual recognition (e.g., semantic segmentation), low-level image processing (e.g., denoising), and conditional image generation (e.g., edge-to-image synthesis). Thanks to unification, ICT significantly reduces the inherent inductive bias that comes with designing models for specific tasks, and it maximizes mutual enhancement across similar tasks. However, the unification across a large number of tasks is non-trivial due to various data formats and training pipelines. To this end, ICT introduces two designs. Firstly, it standardizes input-output data of different tasks into RGB image pairs, e.g., semantic segmentation data pairs an RGB image with its segmentation mask in the same RGB format. This turns different tasks into a general translation task between two RGB images. Secondly, it standardizes the training of different tasks into a general in-context learning, where "in-context" means the input comprises an example input-output pair of the target task and a query image. The learning objective is to generate the "missing" data paired with the query. The implicit translation process is thus between the query and the generated image. In experiments, ICT unifies ten vision tasks and showcases impressive performance on their respective benchmarks. Notably, ICT performs well across three major categories of computer vision tasks, while its two competitors (Painter and PromptDiffusion) are only effective in at most two of these task categories. In addition, compared to its competitors, ICT trained on only 4 RTX 3090 GPUs is shown to be more efficient and less costly in training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑