Hacker News new | ask | show | jobs
by Rayhem 752 days ago
> If you have a laser, you can print an optical neural network using a consumer 3D printer.

I would love to look into this more. Do you have a reference that would give some instructions on how to give this a go?

1 comments

You could think of a lens as a "Fourier transformer," not in the LLM sense directly but in the sense of something that executes a Fourier transform. See the excellent videos by Huygens Optics including this one: https://www.youtube.com/watch?v=Y9FZ4igNxNA entitled "Fourier optics used for optical pattern recognition."

Having established that, well, it's not hard to imagine that something that's good at running Fourier transforms is probably good for other situations where you need to run a lot of dot products in parallel. That, in turn, should sound like an awfully familiar problem...

Ok, but dot products and Fourier transforms are both linear operations. Maxwell's equations are linear (light also obeys them).

Neural nets, on the other hand, generally require nonlinear operations. As do most computer programs.

So the explanation here is either not complete, or perhaps applies to a very restricted type of neural network only.

Good point. I know there are people working on optical NNs, but I have no idea how they handle nonlinear activation functions.
There’re a handful of ways to introduce electro-optical and all-optical non-linearities into optical neural networks. Here’s a fair survey of the field: https://dl.acm.org/doi/full/10.1145/3607533