๐ŸŽฌ FiLM

Deep Learning / General Models

Feature-wise linear modulation (FiLM) is a general technique for influencing a neural network's output via some external conditioning input. A FiLM layer allows us to inject conditioning into the intermediate activations by using conditioning to perform an affine transformation on the features.

Formally, FiLM learns a "generator" consisting of two functions and that output

Then, for a network's activations , the film layer performs

and are generally unique to each feature map (in the case of CNNs) or feature, so this allows extreme flexibility in influencing the activations.

Notably, empirical results show that FiLM doesn't require to be normalized pre-transformation. FiLM thus generalizes all prior โœ‚๏ธ Normalization > Conditional Normalization approaches under this simple framework.

VQA Model

FiLM is especially effective with vision-language tasks due to the multimodal input capability. Specifically, for visual question-answer problems, we have a ๐Ÿ‘๏ธ Convolutional Neural Network visual pipeline with FiLM layers and a โ›ฉ๏ธ Gated Recurrent Unit generator. The GRU is responsible for processing the question semantics, and injecting this information into the CNN allows us to perform accurate answer predictions.

Content by William Liang, written in Obsidian.
Thank you to all the educators who made these notes possible.