News for hackers. Stuff that matters.

teddykoker

OpenEquivariance [1] is another good baseline for with kernels for the Clebsch-Gordon tensor product and convolution, and it is fully open source. Both kernel implementations have been successfully implemented into existing machine learning interatomic potentials, e.g. [2,3].

[1] https://github.com/PASSIONLab/OpenEquivariance

[2] https://arxiv.org/abs/2504.16068

[3] https://arxiv.org/abs/2508.16067

Re:I made a transformer by hand (no training) on Friday September 22, 2023 @01:43PM (#37615122)
A related line of work is "Thinking Like Transformers" [1]. They introduce a primitive programming language, RASP, which is composed of operations capable of being modeled with transformer components, and demonstrate how different programs can be written with it, e.g. histograms, sorting. Sasha Rush and Gail Weiss have an excellent blog post on it as well [2]. Follow on work actually demonstrated how RASP-like programs could actually be compiled into model weights without training [3].

[1] https://arxiv.org/abs/2106.06981

[2] https://srush.github.io/raspy/

[3] https://arxiv.org/abs/2301.05062

Re:Extracting Audio from Visual Information on Wednesday August 17, 2022 @09:28PM (#32504096)
See also Radio2Speech [1] which uses a UNet to recover audio from a RF beam.

[1] https://zhaorunning.github.io/Radio2Speech/

Link to paper [1]. It looks like the authors construct a basic autoencoder to predict frames in videos of various videos (double pendulum, lava lamp, etc.) and then use the Levina–Bickel algorithm [2] to determine the expected "intrinsic dimension" of the latent space of the autoencoder. They then refer to the size of the intrinsic dimension as the "minimum number of variables required by the system to accurately capture the motion.", e.g. 24 for a video of a fireplace.

Personally, I wonder how much information this actually provides about a system. Since the neural network is non-linear, a single latent variable may theoretically function as more than one state variable.

[1]: https://www.nature.com/articles/s43588-022-00281-6.epdf?shar...

[2]: https://www.stat.berkeley.edu/~bickel/mldim.pdf

Re:DALL-E 2 has a secret language on Wednesday June 01, 2022 @12:00AM (#31577917)
According to [1], the byte pair encoding for “Apoploe vesrreaitais” (the words producing bird images) is "apo, plo, e</w>, ,ve, sr, re, ait, ais</w>", and Apo-didae & Plo-ceidae are families of birds.

[1] https://twitter.com/barneyflames/status/1531736708903051265?...

Re:K-Nearest Neighbors on Wednesday April 13, 2022 @04:21PM (#31019768)
For image retrieval, have you tried using a model trained with contrastive learning (e.g. SimCLR)? This could produce better embeddings for retrieval since the model is trained to explicitly minimize euclidean distance between similar pairs.

Thanks for the reference! Nice outline of various ANN approaches.

Re:K-Nearest Neighbors on Wednesday April 13, 2022 @01:15PM (#31017301)
I wonder how their advertised "vector database" works. kNN combined with embeddings from pre-trained deep learning models can be very useful for information retrieval, (e.g. searching for duplicate/similar images or text).

In the past I have used a k-d tree [1] for this, which allows O(log n) searches in the vector space. It seems they are offering a k-d-tree-as-a-service.

[1] https://en.wikipedia.org/wiki/K-d_tree

Re:A basic introduction to NumPy's einsum on Saturday April 09, 2022 @11:01PM (#30974127)
Also see Einops: https://github.com/arogozhnikov/einops, which uses a einsum-like notation for various tensor operations used in deep learning.

https://einops.rocks/pytorch-examples.html shows how it can be used to implement various neural network architectures in a more simplified manor.

Re:Hyper-realistic digital humans in Unity on Thursday March 24, 2022 @10:00AM (#30789860)
This might be what you’re looking for: https://gafniguy.github.io/4D-Facial-Avatars/
Re:A Gambler Who Cracked the Horse-Racing Code (2018) on Sunday May 02, 2021 @01:14PM (#27016914)
Yup! Just a multinomial logistic regression model with a bunch of proprietary data and engineered features.
Re:A Gambler Who Cracked the Horse-Racing Code (2018) on Sunday May 02, 2021 @09:49AM (#27015252)
You can find Benter’s paper about the model here: https://www.gwern.net/docs/statistics/decision/1994-benter.p...

About a year ago I read this and attempted to build a similar model (with more layers ;)) using data I scraped from Hong Kong Jockey Club’s website. Although I used much fewer features, it still produced profit in held-out races: https://teddykoker.com/2019/12/beating-the-odds-machine-lear.... Obviously there are many caveats when backtesting like this but I thought it was a fun project!