[Paper Review] A System for Automated Image Editing from Natural Language Commands
This paper presents a two-level system that interprets natural language image editing commands by first classifying editing actions and then detecting associated entities using machine learning. The best-performing models were LSTM and SVM for action classification (F1 = 0.89), and BiLSTM-CRF for entity sequence detection (F1 = 0.73 on innermost entities), enabling automated execution of user requests without technical expertise.
This work presents the task of modifying images in an image editing program using natural language written commands. We utilize a corpus of over 6000 image edit text requests to alter real world images collected via crowdsourcing. A novel framework composed of actions and entities to map a user's natural language request to executable commands in an image editing program is described. We resolve previously labeled annotator disagreement through a voting process and complete annotation of the corpus. We experimented with different machine learning models and found that the LSTM, the SVM, and the bidirectional LSTM-CRF joint models are the best to detect image editing actions and associated entities in a given utterance.
Motivation & Objective
- To enable non-expert users to edit images using natural language instead of technical software commands.
- To resolve annotation disagreements in a large-scale image editing request corpus and complete its labeling.
- To develop a machine learning pipeline that maps natural language utterances to executable image editing actions and entities.
- To evaluate the performance of various models in classifying image editing actions and detecting associated entities.
- To lay the foundation for future joint modeling of actions and entities in image editing dialogues.
Proposed method
- The system uses a two-level framework: first classifying image editing actions (e.g., crop, adjust, delete), then detecting entities (e.g., region, object, modifier/value) related to those actions.
- A novel annotation framework maps natural language phrases to 18 predefined actions and five entity types, supporting nested and overlapping labels.
- The action classification model evaluates LSTM, SVM, Logistic Regression, and Random Forest using TensorFlow and Scikit-learn.
- The entity detection model compares standard CRF with the state-of-the-art BiLSTM-CRF model to improve sequence labeling of entities.
- The corpus of 9,101 edit requests was split into training (75%), validation (10%), and testing (15%) sets for action classification; entity data used 80% training, 10% validation, 10% testing.
- For nested entities, only the innermost label was used in evaluation to ensure consistent performance comparison.
Experimental results
Research questions
- RQ1Can natural language image editing requests be accurately mapped to executable actions and entities in image editing software?
- RQ2Which machine learning models perform best in classifying image editing actions from unstructured text?
- RQ3How effective is the BiLSTM-CRF model in detecting sequences of entities, especially in nested or ambiguous requests?
- RQ4To what extent does the two-level model architecture improve robustness by filtering out ambiguous or non-executable actions?
- RQ5Can the system handle diverse, real-world natural language variations in image editing requests without requiring technical terminology?
Key findings
- The LSTM and SVM models achieved the highest F1 score of 0.89 for action classification, outperforming Logistic Regression (0.87) and Random Forest (0.58).
- The BiLSTM-CRF model achieved an F1 score of 0.73 when detecting only the innermost entities, significantly outperforming the baseline CRF model (0.66).
- The LSTM model correctly classified low-frequency actions like 'rotate' with high accuracy, despite class imbalance in the dataset.
- The system demonstrated robustness to linguistic variation, including imperative, modal, and descriptive utterances, such as 'The image is blurry' or 'Zoom in on the zebra'.
- The framework supports overlapping and nested labels, allowing the same word to be annotated as both an action and a modifier/value entity, enhancing interpretive flexibility.
- The results suggest that a joint model for actions and entities could further improve performance, and that transfer learning in dialogic editing scenarios is a viable future direction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.