WHY?

Representing bilinear relationship of two inputs is expensive. MLB efficiently reduced the number of parameters by substituting bilinear operation with Hadamard product operation. This paper extends this idea to capture bilinear attention between two multi-channel inputs.

WHAT?

Using the low-rank bilinear pooling, attention on visual inputs given a question vector can be calculated efficiently. This can be generalized to represent a bilinear model for two multi-channel inputs. While indicates kth element of intermediate representation,

Attention between two input channels can be calculated similarly as in MLB.

BAN reflects the linear projection of multiple co-attention.

Low-rank bilinear pooling allowed efficient calculation of multiple glimpses of attention distribution given a single reference vector. BAN generalized this idea for two multi-channel inputs.

$$ \mathbf{f’}_k=(\mathbf{X}^T\mathbf{U’})^T_K\mathcal{A}(\mathbf{Y}^T\mathbf{V}’)_k\

Reading and writing in DNC are implemented with differentiable attention mechanism.

image

The controller of DNC is an variant of LSTM architecture that takes an input vector() and a set of read vectors() as input(concatenated). Concatenated input and hidden vectors from both previous timestep() and from previous layer() are concatenated again to be used as input for LSTM to produce next hidden vector(). Hidden vectors from all layers at a timestep are concatenated to emit an output vector() and an interface vector(). The output vector() is the sum of and read vectors of the current timestep.

THe interface vectors are consists of many vectors that interacts with memory: R read keys(), read strengths(), write key(), write strength(), erase vector(), write vector(), R free gates(), the allocation gate(), the write gate() and R read modes(\mathbf{\pi}_t^i).

Read vectors are computed with read weights on memory. Memory matrix are updated with write weights, write vector and erase vector.

Memory are addressed with content-based addressing and dynamic memory allocation. Contesnt-based addressing is basically the same as attention mechanism. Dynamic memory allocation is designed to clear memory as analogous to free list memory allocation scheme.

So?

image

DNC showed good result on bAbI task, and Graph tasks.

Graves, Alex, et al. “Hybrid computing using a neural network with dynamic external memory.” Nature 538.7626 (2016): 471.