Skip to main content
QUICK REVIEW

[Paper Review] Cross-Modulation Networks for Few-Shot Learning

Hugo Prol, Vincent Dumoulin|arXiv (Cornell University)|Dec 1, 2018
Domain Adaptation and Few-Shot LearningComputer Science20 references5 citations
TL;DR

This paper proposes Cross-Modulation Networks, a novel architecture that enables support and query examples to interact at multiple levels of abstraction in few-shot learning via feature-wise modulation using FiLM layers. By integrating this mechanism into Matching Networks, the model achieves state-of-the-art performance on miniImageNet in the 5-way, 1-shot setting, demonstrating that cross-modulation significantly improves generalization by refining intermediate representations through joint conditioning.

ABSTRACT

A family of recent successful approaches to few-shot learning relies on learning an embedding space in which predictions are made by computing similarities between examples. This corresponds to combining information between support and query examples at a very late stage of the prediction pipeline. Inspired by this observation, we hypothesize that there may be benefits to combining the information at various levels of abstraction along the pipeline. We present an architecture called Cross-Modulation Networks which allows support and query examples to interact throughout the feature extraction process via a feature-wise modulation mechanism. We adapt the Matching Networks architecture to take advantage of these interactions and show encouraging initial results on miniImageNet in the 5-way, 1-shot setting, where we close the gap with state-of-the-art.

Motivation & Objective

  • Address the limitation of late-stage similarity computation in metric-based few-shot learning, where support and query features are only compared at the final embedding level.
  • Explore whether early and continuous interaction between support and query examples during feature extraction can improve representation quality and generalization.
  • Develop a cross-modulation mechanism that allows feature-wise modulation of intermediate representations using both support and query features as conditioning signals.
  • Demonstrate that such interaction leads to more robust and discriminative metric spaces in few-shot classification.
  • Investigate the necessity and effectiveness of cross-modulation at different levels of abstraction within the network.

Proposed method

  • Introduce a cross-modulation mechanism based on Feature-wise Linear Modulation (FiLM), where modulation parameters (γ, β) are generated by a FiLM generator that takes both support and query features as input.
  • The FiLM generator computes modulation parameters via a fully connected head applied to the global average pooled concatenation of support and query feature maps, enabling joint conditioning at each layer.
  • Apply the FiLM transformation to intermediate convolutional features: $\mathrm{FiLM}(x) = (1 + \gamma_0 \gamma_z) \odot x + \beta_0 \beta_z $, with learned $\gamma_0, \beta_0$ and modulated $\gamma_z, \beta_z$.
  • Integrate the cross-modulation blocks after each of the three main convolutional blocks in the feature extractor, allowing interaction at multiple abstraction levels.
  • Use L1 regularization on $\gamma_0$ and $\beta_0$ to encourage sparse, selective modulation, focusing on relevant features.
  • Adapt the Matching Networks framework by replacing its standard feature extractor with the cross-modulated version, maintaining the same inference mechanism based on cosine similarity and weighted voting.

Experimental results

Research questions

  • RQ1Can early and continuous interaction between support and query examples improve few-shot classification beyond late-stage similarity matching?
  • RQ2Does cross-modulation at multiple levels of abstraction lead to more robust and discriminative feature representations?
  • RQ3How much does the model rely on cross-modulation versus self-modulation, and which network blocks benefit most from cross-modulation?
  • RQ4What is the contribution of cross-modulation to overall performance, and does distorting it significantly degrade accuracy?
  • RQ5Can the cross-modulation mechanism be effectively applied to standard metric learning baselines like Matching Networks without architectural overhaul?

Key findings

  • The proposed Cross-Modulation Network achieves a test accuracy of 78.4% on miniImageNet in the 5-way, 1-shot setting, closing the gap with state-of-the-art methods.
  • Distorting the cross-modulation mechanism by adding random noise to the modulation parameters results in a 7.97% drop in test accuracy, confirming that the model learns to rely on cross-modulation during training.
  • The model learns to apply cross-modulation most heavily at the second and fourth convolutional blocks, as indicated by higher absolute values of $\gamma_0$ and $\beta_0$ post-multipliers in these layers.
  • Analysis of the FiLM generator weight matrices reveals that while self-modulation has a stronger influence on the modulation parameters, cross-modulation still contributes meaningfully to the final representation.
  • The ablation study shows that selectively disabling cross-modulation in different blocks reduces performance, with the most significant drop occurring when modulation is removed from the second and fourth blocks.
  • The improvement from cross-modulation is most pronounced in the 1-shot regime, with only a 0.59% gain in the 5-shot setting, suggesting diminishing returns as few-shot data increases.

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.