
Martin Loretz
Hey, I'm just a human trying to figure out how this universe works. I love research, engineering and building stuff, like a computer out of logic gates or a motorized Bobby Car. I'm interested in artificial intelligence, rockets, computation, physics and molecular biology. Optimist.
Papers
Accelerating LLM Inference via Vector Index Based Output Embeddings
01/07/2026 - Large output embedding matrices create a significant memory bandwidth bottleneck during autoregressive decoding, especially for compact LLMs with large multilingual vocabularies. We reformulate the output projection followed by top-k token selection as a maximum inner product search over token embeddings and replace the dense vocabulary projection with an HNSW-based vector index.
CoupledNorm: Efficient Normalization via Shared RMS Statistics
01/07/2026 - Normalization layers are treated as computationally inexpensive, yet they still introduce nonnegligible latency during autoregressive decoding. We propose CoupledNorm, a simple modification to Pre-Norm Transformer blocks that removes one of the two RMS calculations per layer.
Discretized Boosted Decision Trees for High-Speed FPGA-Optimized Digit Recognition
02/07/2025 - This paper presents a high-speed, FPGA-optimized implementation of boosted decision trees for handwritten digit recognition on the MNIST dataset, achieving a test set accuracy of 97.73% and a throughput of 640 million images per second on a Cyclone V FPGA.
Blog
Accelerate CPU based LLM Inference with a Vector Index on the Output Embeddings (up to 28% for llama 3.2 1B)
15/01/2025 - The input and output embedding layers of transformer-based LLMs are massive. For example, GPT-2's embeddings make up 38.5M out of 124M total parameters.
Exploring the activation ratios of different MLP layers
21/09/2024 - I've become interested in understanding how many neurons in a layer (Linear + ReLU) actually contribute to the next layer versus those that remain inactive after the activation function.
Polynomials as weights and activations for MLP's
03/05/2024 - I recently read the Kolmogorov-Arnold Networks paper and I'm fascinated by the idea of moving from fixed activations on the nodes of a MLP to learned ones at the edges. Combined with some other thoughts, I applied this idea to image classification and in this process came up with the idea of polynomial MLP's.
Random thoughts:

If you shake a box of lego long enough, at some point it will be assembled by chance.

Life 4.0 will be able to rewrite the universe by exploiting the simulation and changing the rules of physics.

I think turing was right in the sense that if you can't tell a difference, there is no difference.









