Skip to main content
QUICK REVIEW

[Paper Review] Learning to Globally Edit Images with Textual Description

Hai Wang, J. D. Williams|arXiv (Cornell University)|Oct 13, 2018
Multimodal Machine Learning ApplicationsComputer Science55 references17 citations
TL;DR

This paper proposes an end-to-end trainable deep learning framework for global image editing using free-form textual descriptions, leveraging GANs and RNN-based text encoders. The filter bank model achieves the best balance of performance and efficiency, and replacing RNN with Graph RNN further improves results, marking the first work to enable purely text-driven global image editing without predefined rules.

ABSTRACT

We show how we can globally edit images using textual instructions: given a source image and a textual instruction for the edit, generate a new image transformed under this instruction. To tackle this novel problem, we develop three different trainable models based on RNN and Generative Adversarial Network (GAN). The models (bucket, filter bank, and end-to-end) differ in how much expert knowledge is encoded, with the most general version being purely end-to-end. To train these systems, we use Amazon Mechanical Turk to collect textual descriptions for around 2000 image pairs sampled from several datasets. Experimental results evaluated on our dataset validate our approaches. In addition, given that the filter bank model is a good compromise between generality and performance, we investigate it further by replacing RNN with Graph RNN, and show that Graph RNN improves performance. To the best of our knowledge, this is the first computational photography work on global image editing that is purely based on free-form textual instructions.

Motivation & Objective

  • To enable global image editing using arbitrary textual instructions without relying on handcrafted rules or APIs.
  • To collect a large-scale dataset of image transformation pairs with corresponding free-form textual descriptions for training.
  • To design and compare three trainable models—bucket, filter bank, and end-to-end—varying in complexity and expert knowledge encoding.
  • To investigate the effectiveness of Graph RNN for text encoding in image editing, improving over standard RNNs.
  • To demonstrate that learned transformations can be local despite training on global edits, indicating rich, non-linear mapping capabilities.

Proposed method

  • The system uses a conditional GAN architecture with an encoder-decoder structure, where text descriptions are embedded via RNN or Graph RNN and conditioned on the generator to produce edited images.
  • Three models are proposed: a bucket-based model with handcrafted filters, a filter bank model with learnable filters, and a fully end-to-end model with no prior structure.
  • The filter bank model uses a set of trainable filters that are dynamically selected by the text encoder, allowing flexible and efficient transformation learning.
  • Graph RNN is applied to the text encoder to model long-range dependencies and word relationships, improving performance on ambiguous or long descriptions.
  • A custom dataset of ~2,000 image-text pairs is collected via Amazon Mechanical Turk, covering diverse global editing operations like brightness, contrast, and color adjustments.
  • Training employs adversarial loss, perceptual loss, and L1 loss to ensure realistic and faithful image generation.

Experimental results

Research questions

  • RQ1Can a deep learning model learn to perform global image editing from free-form textual descriptions without predefined rules?
  • RQ2How does the performance of different model architectures (bucket, filter bank, end-to-end) compare in terms of quality, memory usage, and training efficiency?
  • RQ3Can Graph RNN improve text encoding for image editing compared to standard RNNs, especially for long or ambiguous instructions?
  • RQ4To what extent can a model trained on global edits learn local transformations, and how does this compare to expert annotations?
  • RQ5Is it feasible to train a purely end-to-end system on real-world, diverse textual descriptions for image editing?

Key findings

  • The filter bank model achieves the best trade-off between performance and efficiency, requiring only 1/Kb of the memory needed by the bucket model for K_b buckets.
  • Graph RNN outperforms standard GRU in both standalone and pairwise ratings, with a standalone score of 3.35 ± 1.24 vs. 3.31 ± 1.22.
  • The model learns complex, non-global mappings: RGB remapping distributions show wider output ranges than expert A, indicating local transformations.
  • Each learned filter in the filter bank corresponds to a specific edit type (e.g., brightness increase or decrease), despite no explicit supervision on filter functions.
  • The system generalizes well to unseen instructions, demonstrating that end-to-end training on real data enables robust text-to-image editing.
  • The model successfully learns to apply edits even when the textual instruction is long or ambiguous, particularly benefiting from Graph RNN's structural awareness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.