LEGO: Learning EGOcentric Action Frame Generation via Visual Instruction Tuning

Bolin Lai, Xiaoliang Dai, Lawrence Chen, Guan Pang, James M. Rehg, Miao Liu

TL;DR

LEGO (Learning EGOcentric action frame generation) is a novel framework that synthesizes first-person instructional images by conditioning a diffusion model on both an initial scene and a text prompt. By leveraging visual instruction tuning to enrich sparse action labels and incorporating high-level semantic embeddings from a Visual Large Language Model (VLLM), LEGO bridges the domain gap between third-person training data and first-person execution, significantly outperforming existing image manipulation baselines.

What Problem Does This Paper Address?

Imagine you are trying to repair a complex piece of machinery or cook a new dish while wearing an AR headset. A text-based AI might tell you to "scrub the trousers with a brush," but translating that text into the specific physical movements required in your exact environment is a non-trivial cognitive load. Humans process images much faster than text, and egocentric (first-person) visual guidance is the "gold standard" for skill transfer.

However, generating these images automatically is difficult for two main reasons:

  1. Data Scarcity: Existing egocentric datasets (like Ego4D) usually only have sparse "verb-noun" labels (e.g., "wash trouser"). They lack the granular detail—which hand to use, where to apply pressure, the spatial relation of objects—needed to guide a generative model.
  2. The Domain Gap: Most state-of-the-art diffusion models are pre-trained on "exocentric" (third-person) images from the web. They struggle to synthesize the unique perspective of a camera wearer, where hands and objects appear in specific, distorted ways.

Methods

The authors propose a two-stage approach to solve these challenges, centered around the LEGO model.

Overview of the LEGO model architecture, showing the instruction tuning and action frame generation stages.

1. Egocentric Visual Instruction Tuning

To fix the lack of detailed data, the researchers used GPT-3.5 to "hallucinate" detailed action descriptions based on existing bounding box data and action labels. They then used this curated data to finetune a VLLM (based on LLaVA). This finetuned VLLM can take a single egocentric frame and a simple query to produce a rich, descriptive narration of how an action should be performed in that specific context.

2. Action Frame Generation

The core generative engine is a Latent Diffusion Model (LDM). Rather than just using standard text prompts, LEGO uses a sophisticated conditioning mechanism:

  • Enriched Descriptions: The detailed text generated by the VLLM.
  • VLLM Embeddings: The authors found that the internal image and text embeddings from the finetuned VLLM contain crucial high-level semantic information that standard CLIP embeddings miss. These are projected into the LDM's feature space to provide better control over hand-object interactions.

Datasets

The model was trained and evaluated on two massive, well-established egocentric benchmarks:

  • Ego4D: A diverse dataset of daily life activities captured globally.
  • Epic-Kitchens-100: A large-scale dataset focused specifically on first-person kitchen activities.

The authors performed rigorous preprocessing, using aesthetic scores to filter out blurry frames and similarity metrics to ensure the training pairs represented meaningful action transitions.

Key Insights and Ideas

  • Semantics over Pixels: The "aha moment" here is that standard image-to-image translation isn't enough for actions. By using a VLLM to first "understand" the scene and then guide the diffusion process, the model learns the logic of the action (e.g., which hand holds the tool vs. the object).
  • The Power of Instruction Tuning: Finetuning the VLLM specifically on egocentric data was critical. Without it, the model's alignment with the first-person perspective dropped from over 80% to roughly 30%.
  • Embedding Fusion: Incorporating the VLLM’s internal embeddings as additional conditioning tokens proved more effective than just using the generated text alone, as it helped bridge the domain gap between web-scale pre-training and first-person reality.

Key Results

LEGO was compared against strong baselines like InstructPix2Pix (IP2P), SDEdit, and ProxEdit.

Fig. 1: When a user performing a complex task asks a large language model (LLM) for instructions (a) on how to complete the steps, she receives a generic answer and has to translate the guidance into her specific situation. If she is wearing a camera, then the prompt can be augmented with an egocentric view of the scene and passed to a Visual LLM (b), and the description is now contextualized to her situation. But she still faces the challenge of parsing a written description. When she uses our novel LEGO model (c), however, the combined image and prompt are used to automatically generate an image that provides visual guidance exactly in her situation from the egocentric viewpoint. Now she can complete her task seamlessly!
  • Quantitative: On the Ego4D dataset, LEGO outperformed the strongest baseline (IP2P) across all six primary metrics, including a significant boost in EgoVLP+ score (a metric specifically designed to measure action state transitions in egocentric video).
  • Qualitative (User Study): In human evaluations, LEGO was preferred as the "best" model 61% of the time for Ego4D, while the next best baseline (IP2P) was chosen only 17% of the time. Users noted that LEGO's results were much better at preserving the background context while accurately depicting the requested action.

Limitations and Future Work

Despite its success, the authors note several hurdles for future research:

  • Cluttered Scenes: The model still struggles to associate actions with the correct objects when the environment is "chaotic" or filled with irrelevant items.
  • Professional Tasks: Synthesizing highly technical hand-object interactions (like operating a wood cutter or a sewing machine) remains a challenge.
  • Metric Gap: Current automated metrics for image-text alignment don't generalize perfectly to the egocentric domain, suggesting a need for new, specialized evaluation frameworks.

By successfully generating context-aware instructional images, LEGO represents a significant step toward AI assistants that can truly "show" us how to perform tasks in the real world.

Summary updated

BibTeX
@inproceedings{lai2024lego,
  author = {Bolin Lai and Xiaoliang Dai and Lawrence Chen and Guan Pang and James M. Rehg and Miao Liu},
  title = {{LEGO: Learning EGOcentric Action Frame Generation via Visual Instruction Tuning}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72673-6\_8},
}
Figure