Posts

Showing posts with the label Flip

The FWHT: More Than a Cheap FFT

The FWHT: More Than a Cheap FFT C. M. Rader's 1969 paper, A New Method of Generating Gaussian Random Variables by Computer , is an interesting early application of the Fast Walsh–Hadamard Transform (FWHT). The idea was simple and elegant: take a vector of uniform random variables, transform it using a Hadamard matrix, and obtain a collection of variables whose individual distributions increasingly resemble Gaussian distributions. The computational appeal is considerable. The FWHT produces N outputs using O(N log₂ N) additions and subtractions, making it a remarkably economical transformation. A little geometric entanglement The normalized FWHT is an orthogonal transformation, so it preserves vector length. ‖HX/√N‖₂ = ‖X‖₂ This introduces an interesting geometric constraint. The transformed coordinates share a common length budget. Although their individual distributions can approximate Gaussian distributions and their pairwise correlations can vanish, they aren't truly independ...

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...