Skip to main content
QUICK REVIEW

[Paper Review] Meta Module Network for Compositional Visual Reasoning

Wenhu Chen, Zhe Gan|arXiv (Cornell University)|Oct 8, 2019
Multimodal Machine Learning ApplicationsComputer Science47 references11 citations
TL;DR

This paper proposes Meta Module Network (MMN), a novel neural module network architecture that uses a shared meta module to dynamically instantiate task-specific modules from function recipes, enabling scalable and generalizable visual reasoning. By encoding functions into embedding space, MMN generalizes to unseen functions and maintains constant model complexity, outperforming prior NMNs on GQA and CLEVR with strong zero-shot generalization on held-out functions.

ABSTRACT

Neural Module Network (NMN) exhibits strong interpretability and compositionality thanks to its handcrafted neural modules with explicit multi-hop reasoning capability. However, most NMNs suffer from two critical drawbacks: 1) scalability: customized module for specific function renders it impractical when scaling up to a larger set of functions in complex tasks; 2) generalizability: rigid pre-defined module inventory makes it difficult to generalize to unseen functions in new tasks/domains. To design a more powerful NMN architecture for practical use, we propose Meta Module Network (MMN) centered on a novel meta module, which can take in function recipes and morph into diverse instance modules dynamically. The instance modules are then woven into an execution graph for complex visual reasoning, inheriting the strong explainability and compositionality of NMN. With such a flexible instantiation mechanism, the parameters of instance modules are inherited from the central meta module, retaining the same model complexity as the function set grows, which promises better scalability. Meanwhile, as functions are encoded into the embedding space, unseen functions can be readily represented based on its structural similarity with previously observed ones, which ensures better generalizability. Experiments on GQA and CLEVR datasets validate the superiority of MMN over state-of-the-art NMN designs. Synthetic experiments on held-out unseen functions from GQA dataset also demonstrate the strong generalizability of MMN. Our code and model are released in Github https://github.com/wenhuchen/Meta-Module-Network.

Motivation & Objective

  • To address the scalability and generalizability limitations of Neural Module Networks (NMNs), which require handcrafted modules for each function and fail to generalize to unseen functions.
  • To design a flexible architecture that maintains constant model complexity as the number of functions increases.
  • To enable zero-shot generalization to unseen functions by leveraging structural similarity in function recipe embeddings.
  • To preserve the interpretability and compositionality of NMNs while improving practicality for real-world visual reasoning tasks.

Proposed method

  • A meta module is trained to dynamically instantiate instance modules based on input function recipes (key-value pairs) encoded into continuous embeddings.
  • Function recipes are embedded into a vector space, enabling the meta module to generate function-specific modules via parameter sharing.
  • A teacher-student training framework provides intermediate supervision: a symbolic teacher generates correct intermediate outputs, which guide the student instance modules.
  • The model uses a coarse-to-fine semantic parser to convert questions into executable programs, which are then executed via an execution graph of instantiated modules.
  • Joint training with module supervision (via teacher signals) and answer supervision ensures accurate reasoning and generalization.
  • The architecture supports zero-shot inference by embedding unseen function recipes and generating novel modules based on similarity to seen ones.

Experimental results

Research questions

  • RQ1Can a single meta module dynamically instantiate diverse, task-specific modules without increasing model complexity as the function set grows?
  • RQ2Can the model generalize to unseen functions by leveraging embedding similarity with seen functions?
  • RQ3Does the proposed method maintain strong interpretability and compositionality while improving scalability and generalization over standard NMNs?
  • RQ4How effective is module supervision in improving reasoning accuracy compared to end-to-end answer supervision alone?

Key findings

  • MMN achieves state-of-the-art performance on GQA and CLEVR, outperforming existing NMN-based models.
  • With module supervision (η = 0.5), MMN improves accuracy over 6-layered MCAN despite having similar parameter count to a 1-layered MCAN.
  • On held-out unseen functions, MMN achieves 61% zero-shot accuracy for verify_shape and 79% for choose_name, significantly above random baseline (5%).
  • The model achieves 59% Recall@1 and 73% Recall@2 for intermediate reasoning steps, indicating strong alignment with symbolic teacher outputs.
  • Ablation studies show that bootstrapping for 4 epochs improves performance, and module supervision is critical for high accuracy.
  • The method generalizes effectively to unseen functions by leveraging structural similarity in recipe embeddings, demonstrating robust zero-shot capability.

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.