Earlier quoted context omitted.
An 8 bit adder is too small and allows such 'hack'. He should try training a 32 or 64 bit adder, decrease the weights accuracy to bfloat16, introduce dropout regularization (or other kind of noise) to get more 'interesting' results. Addendum: another interesting variation to try is a small transformer network, and feeding the bits sequentially as symbols. This kind of architecture could compute bignum-sized integers.
A 32-bit adder is just 4 8-bit adders with carry connected. I don't see why it'd be significantly more difficult.
Reverse engineering a neural network's clever solution to binary addition
101–110 of 160 posts
Re: Reverse engineering a neural network's clever solution to binary addition
#102These stories remind me of a story from Discover Magazine https://www.discovermagazine.com/technology/evolving-a-consc... A researcher was using a process to "evolve" a FPGA and the result was a circuit that was super efficient but worked in ways that were unexpected: part of the circuit seemed unconnected to the rest but if removed the whole thing stopped working and it would only work at a specific temperature.
Re: Reverse engineering a neural network's clever solution to binary addition
#103Earlier quoted context omitted.
That's an accurate enough description of what's going on here, yeah, but I'm very curious if this could be implemented in hardware. What we've got is an inexact not-quite-binary adder, but one that's potentially smaller and faster than the regular binary ones.
Why it works here is that the "analog" representation is not influenced by noise, because it's simulated on digital hardware. On the other hand, why we use digital hardware precisely because it's robust against the noise present in the hardware analog circuits.
Re: Reverse engineering a neural network's clever solution to binary addition
#104Re: Reverse engineering a neural network's clever solution to binary addition
#105Impressive. Am I right that what is really going on here is that the network is implementing the "+" operator by actually having the CPU of the host carrying out the "+" when executing the network? I.e., the network converts the binary input and output to floating point, and then it is the CPU of the host the network is running on that really does the addition in floating point. So usually one does a bunch of FLOPs t…
That's an accurate enough description of what's going on here, yeah, but I'm very curious if this could be implemented in hardware. What we've got is an inexact not-quite-binary adder, but one that's potentially smaller and faster than the regular binary ones.
Because of that, I would (hand-wavingly) expect it can be made to work for a three-bit adder (with four bits of output)
Re: Reverse engineering a neural network's clever solution to binary addition
#106Earlier quoted context omitted.
> a TWh, which is about six million years' of power i'm not a physics guy but wanted to check this - a Watt is a per second measure, and a Terawatt is 1 trillion watts, so 1 TWh is 50 billion seconds of 20 Watts, which is 1585 years of power for a single brain, not 6 million. i'm sure i got this wrong as i'm not a physics guy but where did i go wrong here? a more neutral article (that doesn't have a clear "AI is harm…
A watt is not a per-second measure, Wh are the energy measurement to W being the power. TWh = 10^12Wh which means a trillion-watt for 1 hour. 10^12 / 20 (power of brain) / 24 (hours in a day) / 365 (days in a year) = 5 707 762 years.
Re: Reverse engineering a neural network's clever solution to binary addition
#107I'm pretty convinced that something equivalent to GPT could run on consumer hardware today, and the only reason it doesn't is because OpenAI has a vested interest in selling it as a service.
It's the same as Dall-E and Stable Diffusion - Dall-E makes no attempt to run on consumer hardware because it benefits OpenAI to make it so large that you must rely on someone with huge resources (i.e. them) to use it. Then some new research shows that effectively the same thing can be done on a consumer GPU.
I'm aware that there's plenty of other GPT-like models available on Huggingface, but (to my knowledge) there is nothing that reaches the same quality that can run on consumer hardware - yet.
Re: Reverse engineering a neural network's clever solution to binary addition
#108Earlier quoted context omitted.
Are transformers not already very specialized to the task of learning from sequences of word vectors? I'm sure there is more that can be done with them other than making the input sequences really long, but my point was that LLMs are hardly lacking in design specialized to their purpose.
> Are transformers not already very specialized to the task of learning from sequences of word vectors? No, you can use transformers for vision, image generation, audio generation/recognition, etc. They are 'specialized' in that they are for working with sequences of data, but almost everything can be nicely encoded as a sequence. In order to input images, for example, you typically split the image into blocks and th…
It is definitely interesting that we can do so much with a relatively small number of generic "primitive" components in these big models. but I suppose that's part of the point.
Re: Reverse engineering a neural network's clever solution to binary addition
#109Re: Reverse engineering a neural network's clever solution to binary addition
#110Earlier quoted context omitted.
A watt is not a per-second measure, Wh are the energy measurement to W being the power. TWh = 10^12Wh which means a trillion-watt for 1 hour. 10^12 / 20 (power of brain) / 24 (hours in a day) / 365 (days in a year) = 5 707 762 years.
One watt is one joule per second. What exactly do you mean by "a per-second measure"?