Lloyd's algorithm has been the default for k-means clustering for couple of decades now and Meta just showed it's sitting in a suboptimal corner of the hyperparameter space.
Their new e-means algorithm gets better clustering loss in ~1.2–3 epochs compared to k-means gets in 25.
Day 49, 50 & 51 of 210: Building an AI systems & vector search engine from scratch.
- Implemented free-list slab allocator, it was somewhat similar to chained arena except it allows individual objects to be freed and reused.
Day 48 of 210: Building an AI systems & vector search engine from scratch.
- Went through bits and pieces of implementing chained arena. This is where we extend bump allocator with extensible nodes that gets incrementally added as prior node becomes full.
- Planned how i need to
Day 47 of 210: Building an AI systems & vector search engine from scratch.
Started doing a recap after a bit of a break.
- Revised how bump allocator works tried to implement it from scratch again.
- Went through the code of how it's implemented in secan.
- Recaped the internals
Day 45 & 46 of 210: Building an AI systems & vector search engine from scratch.
Applied what learned from drills to secan:
- [secan] Packaged a custom `ChainedArenaAllocator` into `secan::memory` (`secan/include/secan/memory/arena.hpp`).
- [secan] Added 64-byte aligned SIMD test harnesses to verify zero pointer misalignment and O(1) reset-without-free reuse. 100% CTest pass.