Posts

Showing posts with the label Binary

Sign Flipping before FWHT: Matrix Synthesis

Image
  A simple way to introduce context based mutability in concatenated context selected linear mappings.  Typically multiplied with a block sparse weight matrix to hold the learnable parameters.  Avoids having to directly switch matrix elements within a mutable matrix reducing memory address calculation and parameter fetching costs.  Disadvantage: lots of geometric disturbance. Better for more shallow neural networks. A difference between element swapping and sign flipping is that 2 swapped elements could be similar in value giving little change, a sign flip is always large. Concept could be used with ordinary weight matrices.

Learned Key Synthesis for OOD Tasks

Image
  Learned key synthesis for OOD tasks

Switched Linear Coding with Rectified Linear Autoencoders - Johnson & Corcoran 2013

  ReLU Networks Really Do Switch Linear Mappings There is a useful way to think about ReLU neural networks that is surprisingly easy to overlook: a ReLU network is a system that switches between linear mappings according to the input. This is not just an analogy. It follows directly from the mathematics. Consider a layer: h = ReLU(Wx + b) The ReLU operation sets negative activations to zero and leaves positive ones unchanged. Define Das a diagonal matrix whose entries are 1 where the corresponding activation is positive and 0 otherwise. We can then write: h = D(Wx + b) Now consider the next layer, with weight matrix V: y = VD(Wx + b) Notice what has happened. Multiplying V by D switches columns of V on or off. The input determines which columns participate in the next linear mapping. In other words, the network is not simply applying one fixed sequence of weight matrices. It is selecting an effective sequence of mappings according to the input. For any fixed activation pattern, the...

Context-Controlled Linear Mappings Using Binary Sign Flips

Image
Context-Controlled Linear Mappings Using Binary Sign Flips and Fast Walsh–Hadamard Transforms 1. Generating a constrained binary context The first component constructs a binary context vector from analog control signals and fixed Gaussian random vectors. Begin with analog signals, for example random projections of the input. Associate each signal with a fixed random vector whose components are sampled from a Gaussian distribution. Multiply each random vector by its corresponding analog signal and sum the weighted vectors. Binarize the resulting vector into +1 and -1 values. The result is a binary context that controls the signs of selected input dimensions. This construction provides a way to restrict the binary context space. Although an m-dimensional binary vector has 2ⁿ possible patterns in principle, a low-dimensional analog control process will reach only a subset of them. The context mechanism can therefore introduce useful variation without necessarily exposing the trainable map...