Vision-Language Image Cropping With In-Context Prompt Retrieval

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing image cropping methods rely on specialized networks or features that struggle to generalize effectively to new requirements or diverse datasets, particularly in tasks like subject-aware and aspect ratio-aware cropping, and fine-tuning large vision-language models (VLMs) for downstream tasks is challenging.

Innovation Solution

A unified framework called Cropper uses in-context learning with an efficient prompt retrieval mechanism and iterative refinement strategy to automate the selection of in-context examples, enabling effective image cropping without explicit training, applicable to free-form, subject-aware, and aspect ratio-aware tasks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If specialized networks or features are trained on specific datasets for image cropping, then cropping performance on those datasets is improved, but adaptability to new requirements or diverse datasets deteriorates

Engineering Contradiction:
Improvecropping performanceVSAvoidadaptability to new requirements
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent applies universality by using a single pre-trained VLM for multiple cropping tasks (free-form cropping, subject-aware cropping, aspect ratio-aware cropping) without task-specific training. The model handles diverse cropping requirements through in-context learning with retrieved examples, eliminating the need for separate specialized networks for each cropping type while maintaining high performance across all tasks.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent uses copying by retrieving and utilizing example crop-results from a database as in-context learning inputs. Instead of training the model on specific datasets, the system copies relevant cropping examples and provides them to the VLM, allowing the model to learn from these copied instances during inference without parameter updates, thus achieving adaptability across different datasets and requirements.

Inventive Principle:
Principle #26Copying

2Measurement precision

If unique networks are developed and retrained for specialized cropping tasks, then task-specific performance is improved, but device complexity and retraining requirements worsen

Engineering Contradiction:
Improvetask-specific performanceVSAvoidnetwork complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent employs a single universal VLM architecture that handles multiple specialized cropping tasks (free-form, subject-aware, aspect ratio-aware) without requiring separate network developments. The model's versatility is achieved through in-context learning mechanisms rather than architectural modifications, significantly reducing device complexity while maintaining task-specific performance.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent applies parameter changes by modifying the input context (prompts and retrieved examples) rather than changing network parameters through retraining. The VLM adapts to different cropping tasks by receiving task-specific instructions and example data in its input, allowing parameter-free adaptation that eliminates the need for developing and retraining unique networks for each task.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If VLM is fine-tuned for downstream tasks, then task performance is improved, but ease of operation and suitability for multiple tasks worsens

Engineering Contradiction:
Improvetask performanceVSAvoidfine-tuning difficulty
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

The patent uses copying to retrieve example crop-results from a database and provide them as in-context learning inputs to the VLM. This approach copies relevant task information directly into the model's context window, eliminating the need for fine-tuning operations while maintaining high task performance. The system operates by copying examples rather than modifying model parameters, greatly simplifying ease of operation.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent implements self-service by enabling the VLM to adapt to new tasks autonomously through in-context learning without requiring external fine-tuning interventions. The model serves itself by learning from retrieved examples provided in its input context, eliminating the need for complex fine-tuning procedures and making the system easier to operate across multiple downstream tasks.

Inventive Principle:
Principle #25Self-service

4Measurement precision

If in-context learning examples are manually selected for VLM, then learning effectiveness is improved, but productivity and automation level worsen

Engineering Contradiction:
Improvelearning effectivenessVSAvoidautomation level
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent introduces an intermediary retrieval mechanism that automatically selects relevant in-context learning examples based on the input image and task requirements. This intermediary system queries a database of crop-results and filters/selects appropriate examples to provide to the VLM, replacing manual selection with automated retrieval while maintaining learning effectiveness through relevance-based selection criteria.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system applies self-service by enabling the retrieval mechanism to autonomously select and provide relevant in-context examples without human intervention. The automated retrieval process queries the database, evaluates relevance based on image similarity and task context, and supplies appropriate examples to the VLM, thereby maintaining high learning effectiveness while maximizing productivity and automation level.

Inventive Principle:
Principle #25Self-service

Data Source

PatentEP4672167A1Vision-language model for image cropping through in-context learning
Publication Date: 2025.12.31 GOOGLE LLC
  • EP4672167A1 patent drawingFigure 1
  • EP4672167A1 patent drawingFigure 2
  • EP4672167A1 patent drawingFigure 3

AI summary

The technology provides for enhanced image cropping via in-context learning. It includes an efficient prompt retrieval mechanism for image cropping to automate the selection of in-context examples. It also includes an iterative refinement strategy to iteratively enhance the predicted crops. The image cropping framework is applicable to a wide range of cropping tasks, including free-form cropping, subject-aware cropping, and aspect ratio-aware cropping. The approach employs a trained large vision-language model associated with in-context learning. For instance, given an input image (whether from free-form, subject-aware or aspect ratio-aware cropping), the top-K semantically similar images from a dataset are retrieved as an in-context learning prompt. Then the in-context learning prompt is fed to a pretrained vision-language model to generate a set of crops. The crop candidates of the set are iteratively refined to yield a final output crop. The final output crop can then be applied to a downstream imaging task.