Albon Wu  / Writing
[ʼælban ʼwu]

Blog
Vintage 1849 illustration of an Asiatic elephant in profile.

Trunq: a prompt compression engine

I've been working on a token-aware text compression service called trunq. This obviously makes it suitable for LLM prompt compression, but the underlying logic actually has very little to do with LLMs and everything to do with classical NLP.

post
math
ml
Screenshot collage of a webpage layout with small post thumbnails and a profile photo.

This site, version 3

In May 2023, I created this website. I'd never touched JS, let alone React, but I was dying to write code that wasn't for EECS 281. So I followed the Next.js Pages Router tutorial

post
web

The padding oracle attack, step by step

A major con of CBC is the so-called padding oracle attack. Padding is often performed with PKCS#7 padding. If the end of your message requires b bytes to fill the last block

post
math
Color heatmap of values by sequence position vs embedding dimension, with colorbar.

A graphical interpretation of sinusoidal positional encodings

In the original transformer architecture, Vaswani et al. introduced sinusoidal positional encodings, given by

post
math
ml

The symmetries of a tetrahedron are isomorphic to A4A_4

An interesting problem from Math 412.

post
latex
Notes
Typeset equation defining an integral of a step function as a sum.

Elementary Analysis

Sequences, differentiation, and integration, plus some algebra and topology.

notes
Line plot of training loss (blue) and validation loss (red) over epochs.

Machine Learning

Theory and implementation of (supervised and unsupervised) machine learning algorithms.

notes
partial
Protocol-style diagram with message arrows, XOR operation, and a decision bit.

Cryptography

Precise attack models and security definitions, and constructions of real-world cryptosystems.

notes
partial
Two Bloch-sphere diagrams showing qubit state vectors/rotations.

Quantum Programming

Quantum circuits, algorithms, and computation.

notes
partial
Black-and-white Cayley table with elements k, r120, r240, f1, f2, f3.

Modern Algebra

Rings, groups, fields, and some other topics.

notes
partial
Also see crosswords and more writing.