Posts

Showing posts with the label hyperdimensional computing

A Couple of Hyperdimensional Computing Libraries

In a previous post , I wrote about Hyperdimensional computing (HDC) and showed some simple code illustrating the use of high dimensional vectors (HDVs). There is a large technical literature about HDC, but it's spread over several different disciplines and under several names, including Hyperdimensional Computing, Vector Symbolic Architectures (VSA),  Holographic Reduced Representations (HRR), and others. There are variations in implementation among the different models, but all use some form of HDVs. A two part survey, part 1 and part 2 , provide a comprehensive description of the field and the various approaches. Despite the number of academic articles, I was only able to find two working software packages implementing HDC, VSA  for R, implementing the HRR model, and torchhd for Python.  VSA VSA implements the HRR model . I was able to install VSA on R 4.2.3, but when I tried to install it with the latest version of R, 4.3.0, it fails to install due to an update in ...

High Dimensional Vectors

Image
Hyperdimensional  computing recently made the news . This article gives some examples of hyper vector databases. In a previous post , we looked at hyperdimensional computing (HDC) using high dimensional vectors. As we saw, orthogonality is an important property of high-d vectors. We said that two random (-1, 1) high-d vectors were orthogonal. What do we really mean by that? In these lecture notes , Kothari and Arora show the following result, \[P\left( {\left| {\cos ({\theta _{x,y}})} \right| > \sqrt {\frac{{\log (c)}}{N}} } \right) < \frac{1}{c}\]. What this is saying is that probability that the absolute value of the cosine of the angle between randomly generated high-d vectors is greater that a simple function of N and c . N is the dimension of the random vectors. c is an arbitrary constant. We can choose c to adjust the probability. What is a good choice for c ?  If we choose $c = {e^{0.01N}}$, then $\sqrt {\frac{{\log (c)}}{N}}  = 0.1$. In other ...

Hyperdimensional Computing

Image
I write because I don't know what I think until I read what I say. - Flannery O'Connor I program because I don't understand a subject until I see the code that I have written. - me Artificial neural networks (ANNs) are sometimes described by analogy to biological neurons. However, their mode of operation is not similar to biological brains. It's impossible to deny the impressive success of NN models like chatGPT-3 and 4 or DALL-E-2. Unfortunately, training these models requires very large computing infrastructure available to only a few institutions. chatGPT was trained using Microsoft's Azure cloud system. OpenAI has not disclosed the length of time required to train GPT-3, complicating the researchers’ estimations². However, Microsoft has built supercomputers for AI training and says that its latest supercomputer contains 10,000 graphics cards and over 285,000 processor cores². The process of training ChatGPT involves a combination of data preparation, model des...