<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alankrit Verma</title>
    <description>The latest articles on DEV Community by Alankrit Verma (@alankritverma).</description>
    <link>https://dev.to/alankritverma</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3810413%2F534cb6dc-3366-4fa4-b44a-49ba12793a1b.jpg</url>
      <title>DEV Community: Alankrit Verma</title>
      <link>https://dev.to/alankritverma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alankritverma"/>
    <language>en</language>
    <item>
      <title>The Last Pivot: Why Quality Gates Killed My Final KV-Cache Speedup</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Mon, 27 Apr 2026 04:40:54 +0000</pubDate>
      <link>https://dev.to/alankritverma/the-last-pivot-why-quality-gates-killed-my-final-kv-cache-speedup-3m0f</link>
      <guid>https://dev.to/alankritverma/the-last-pivot-why-quality-gates-killed-my-final-kv-cache-speedup-3m0f</guid>
      <description>&lt;p&gt;The strongest latency signal in the whole project came at the very end. On Qwen2.5-7B with an 8K context, attention was about a third of every decode step, enough that skipping two thirds of history could make decoding about 1.2 times faster even after paying for the skipping. Then the quality check failed. Fifteen selector-and-step combinations passed on their own, but not one selector passed all four decode steps, so I didn't build it. This last part is about two pivots and the rule that stopped both of them: a speed ceiling only earns you the right to run a quality gate, not the right to implement.&lt;/p&gt;

&lt;p&gt;By this point the packed-codebook TurboQuant latency path was closed. &lt;a href="https://dev.to/alankritverma/when-a-good-approximation-still-loses-29c7"&gt;The eager value-path variants failed&lt;/a&gt;, the exact cleanup didn't move latency enough, the primitive feasibility check failed badly, and &lt;a href="https://dev.to/alankritverma/beating-eager-turboquant-was-not-enough-why-dense-gpu-attention-still-won-adn"&gt;the fused kernel&lt;/a&gt; beat eager but not dense. Another TurboQuant variant would have been circular, so the hypothesis had to change, and so did the rules for acting on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A new rule first
&lt;/h2&gt;

&lt;p&gt;From here on, nothing got implemented until a speed ceiling and an oracle quality gate had both passed on the same target. The rule exists because every partial result invites overreading. Bytes can compress while quality fails. Synthetic quality can pass while real model quality fails. Attention can get faster while full decoding barely moves. A speed ceiling can pass while no stable selector exists. And a pass on one row can hide instability from one step to the next. This became the part of the series about deciding when not to build.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F316qg55gfy2nqxbh0rxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F316qg55gfy2nqxbh0rxu.png" alt="Two pivots. Hardware-friendly int4 K/V passed bytes but failed real-KV quality, so no kernel was built. Work reduction on Qwen2.5-7B passed the speed ceiling but failed oracle quality, so no selector was built." width="800" height="280"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Each pivot cleared its first gate and failed the quality gate after it.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Pivot one: a simpler, hardware-friendly format
&lt;/h2&gt;

&lt;p&gt;The packed-codebook representation had been expensive to consume, so the first pivot traded cleverness for a shape the hardware likes: plain blockwise int4 keys and values, quantized over blocks of 32 along the last dimension, in a symmetric and an affine version. The hope was a simpler unpack-and-dequantize path, a predictable memory layout, and an easier kernel later. It was only a quality probe, never wired into the cache API, and the rule was strict: if quality on real model keys and values failed, the kernel didn't get written.&lt;/p&gt;

&lt;p&gt;On real KV from &lt;code&gt;HuggingFaceTB/SmolLM2-135M-Instruct&lt;/code&gt;, both formats compressed the cache by a good margin and kept the next-token argmax. Both failed the decode-logit error gate badly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiffgvr4kqjc1rhnw05b3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiffgvr4kqjc1rhnw05b3.png" alt="Decode-logit error on real KV against the ≤ 0.25 gate. Both formats were five to seven times over." width="800" height="110"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Decode-logit error on real KV against the ≤ 0.25 gate. Both formats were five to seven times over.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Top-k@10&lt;/th&gt;
&lt;th&gt;Argmax kept&lt;/th&gt;
&lt;th&gt;Decode-logit MSE&lt;/th&gt;
&lt;th&gt;Required&lt;/th&gt;
&lt;th&gt;KV ratio&lt;/th&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;symmetric int4&lt;/td&gt;
&lt;td&gt;0.800&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;1.739284&lt;/td&gt;
&lt;td&gt;≤ 0.25&lt;/td&gt;
&lt;td&gt;3.56×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;affine int4&lt;/td&gt;
&lt;td&gt;0.800&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;1.360282&lt;/td&gt;
&lt;td&gt;≤ 0.25&lt;/td&gt;
&lt;td&gt;3.20×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The tempting reading was that argmax survived, so maybe it was fine. That isn't a good enough bar. Top-k overlap only just touched its minimum, and the logit error was far outside the target. The synthetic numbers from earlier had looked fine, but random tensors turned out not to predict real model keys and values. So the decision was not to build the kernel. Byte compression is not quality. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/hfkv-quality-k0-prep-summary.md" rel="noopener noreferrer"&gt;quality probe summary&lt;/a&gt; has the details.&lt;/p&gt;
&lt;h2&gt;
  
  
  Pivot two: do less attention instead
&lt;/h2&gt;

&lt;p&gt;The second pivot stopped asking how to compress historical values and asked whether the model needs all of them for stable decoding at all. That isn't cache compression; it's reducing dense attention work by attending over a selected subset of history instead of all of it. But it only helps if attention is a big enough share of a decode step, so the first gate was a speed ceiling. With &lt;code&gt;p_attn&lt;/code&gt; the share of decode time spent in attention, &lt;code&gt;f&lt;/code&gt; the fraction of history kept active, and &lt;code&gt;h&lt;/code&gt; the selector's overhead as a share of the original step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;speedup = 1 / ((1 − p_attn) + p_attn · f + h)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The equation is deliberately simple. It asks one thing: even if a perfect selector existed, is there enough attention work to remove? On small models the answer was mostly no. SmolLM2-135M gave a real quality signal, but attention wasn't a big enough share of decoding for the ceiling to matter. So I moved to a larger target, &lt;code&gt;Qwen/Qwen2.5-7B-Instruct&lt;/code&gt; with about 8,192 tokens of context.&lt;/p&gt;

&lt;p&gt;That's where the room finally appeared. In &lt;code&gt;bfloat16&lt;/code&gt; a dense decode step took about 20.447 ms, and the SDPA projection put attention's share at &lt;code&gt;p_attn = 0.334&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Active fraction&lt;/th&gt;
&lt;th&gt;Speedup, 0% overhead&lt;/th&gt;
&lt;th&gt;5% overhead&lt;/th&gt;
&lt;th&gt;10% overhead&lt;/th&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0.337&lt;/td&gt;
&lt;td&gt;1.28×&lt;/td&gt;
&lt;td&gt;1.21×&lt;/td&gt;
&lt;td&gt;1.14×&lt;/td&gt;
&lt;td&gt;pass at 5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.350&lt;/td&gt;
&lt;td&gt;1.28×&lt;/td&gt;
&lt;td&gt;1.20×&lt;/td&gt;
&lt;td&gt;1.13×&lt;/td&gt;
&lt;td&gt;pass at 5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.376&lt;/td&gt;
&lt;td&gt;1.26×&lt;/td&gt;
&lt;td&gt;1.19×&lt;/td&gt;
&lt;td&gt;1.12×&lt;/td&gt;
&lt;td&gt;near miss&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That was a real result, not a fake one. But a speed ceiling is only half the story. The next question was whether a selector you could actually implement could keep quality while keeping only about 34 to 38 percent of history.&lt;/p&gt;

&lt;h2&gt;
  
  
  The oracle said no
&lt;/h2&gt;

&lt;p&gt;The quality gate ran on Qwen2.5-7B-Instruct at an 8,192-token context, over four decode steps in &lt;code&gt;bfloat16&lt;/code&gt;, with an active-fraction limit of 0.376. The dense reference was finite on every step, so it was a valid run. Fifteen selector-step rows passed. Zero selector configurations passed all four steps.&lt;/p&gt;

&lt;p&gt;That distinction is the whole point. A row passing says a selector worked on one step. An implementation needs a selector family that works consistently across decode steps, and none did.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Selector&lt;/th&gt;
&lt;th&gt;Active fraction&lt;/th&gt;
&lt;th&gt;Passed steps&lt;/th&gt;
&lt;th&gt;Failed steps&lt;/th&gt;
&lt;th&gt;Max MSE&lt;/th&gt;
&lt;th&gt;Main failure&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;global_block_mass&lt;/code&gt;, f = 0.376, b = 16&lt;/td&gt;
&lt;td&gt;0.374&lt;/td&gt;
&lt;td&gt;0, 1, 3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;0.585789&lt;/td&gt;
&lt;td&gt;step 2 MSE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;global_block_mass&lt;/code&gt;, f = 0.350, b = 16&lt;/td&gt;
&lt;td&gt;0.348&lt;/td&gt;
&lt;td&gt;0, 3&lt;/td&gt;
&lt;td&gt;1, 2&lt;/td&gt;
&lt;td&gt;0.900147&lt;/td&gt;
&lt;td&gt;steps 1, 2 MSE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;global_block_mass&lt;/code&gt;, f = 0.337, b = 16&lt;/td&gt;
&lt;td&gt;0.335&lt;/td&gt;
&lt;td&gt;0, 2, 3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.919634&lt;/td&gt;
&lt;td&gt;step 1 MSE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;recent_sink&lt;/code&gt;, sink = 4, recent = 3072&lt;/td&gt;
&lt;td&gt;0.375&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;0, 1, 2, 3&lt;/td&gt;
&lt;td&gt;0.163465&lt;/td&gt;
&lt;td&gt;layer-local relative L2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The most tempting row was &lt;code&gt;recent_sink&lt;/code&gt;, which kept 4 sink tokens and the 3,072 most recent. Its worst decode-logit MSE was 0.163465, top-k overlap stayed at 0.8 or above, and argmax was stable. But it failed every step on the layer-local check: the median relative L2 error after &lt;code&gt;o_proj&lt;/code&gt; was 0.1394 against a limit of 0.10. The dangerous move here is to relax the gate because the result is close. That's how projects go in circles. The gate existed before the result, the result failed it, and so the runtime selector didn't get built. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/work-reduction-oracle-summary.md" rel="noopener noreferrer"&gt;work-reduction summary&lt;/a&gt; has every row.&lt;/p&gt;

&lt;h2&gt;
  
  
  What survived
&lt;/h2&gt;

&lt;p&gt;The ending isn't that everything was useless. What survived is more precise than that.&lt;/p&gt;

&lt;p&gt;Dense GPU decoding is a serious baseline. It has a simple data layout, optimized kernels, clean tensor operations, and nothing to unpack or rebuild, and any compressed path has to beat that rather than its own prototype.&lt;/p&gt;

&lt;p&gt;Memory and latency are separate scorecards. Cache compression can be worth having even when it doesn't cut latency, but then it should be judged on cache bytes per token, maximum context before running out of memory, batch size at fixed VRAM, throughput under memory pressure, and quality at long context. That's a different product goal from faster decoding when the dense cache already fits.&lt;/p&gt;

&lt;p&gt;A speed ceiling is necessary but not sufficient. Qwen2.5-7B showed attention can be a big enough share of decoding for work reduction to matter, and the oracle still couldn't find one stable selector under the hard gate.&lt;/p&gt;

&lt;p&gt;And a paper's claim is not an integration claim. A paper can make a valid primitive or memory claim. Integrating into &lt;code&gt;transformers&lt;/code&gt; needs its own proof: full decode timing, real model quality, update cost, the value path, generation overhead, and the target hardware and dtype.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it ended
&lt;/h2&gt;

&lt;p&gt;The honest state at the end is that there's no active GPU decode-latency path. The eager TurboQuant-family variants, the packed-codebook fused path with its residual, value and integration work, the hardware-friendly int4 kernel, and the Qwen work-reduction selector are all closed as latency paths. What's still useful is storage and capacity compression, the exact cleanup as baseline hygiene, the measurement discipline, and the map of failures. If the work continues, the next project isn't one more latency variant. It's a separate memory and capacity plan with its own scorecard.&lt;/p&gt;

&lt;p&gt;The project started from a simple hope: a smaller KV cache would mean faster transformers. The real lesson was harder. Compression only speeds up decoding if the compressed form is cheap to consume on the path that actually executes, and that condition failed again and again: in the eager value approximations, in the packed-codebook primitive timing, in the fused logits upper bound, in simple int4 quality, and in long-context work reduction. That isn't wasted work. It's a map of where the obvious traps are, and in performance engineering a good negative map is often what saves the next six months.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A speed ceiling is only permission to run a quality gate. It is not permission to implement.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every run from all four parts is in the &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/results-ledger.md" rel="noopener noreferrer"&gt;results ledger&lt;/a&gt;. The series starts with &lt;a href="https://dev.to/alankritverma/a-smaller-kv-cache-did-not-make-transformers-faster-2j"&gt;why a smaller KV cache didn't make transformers faster&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post, with a live chart and figures that follow light and dark mode, is on &lt;a href="https://alankrit.me/writing/the-last-pivot-why-quality-gates-killed-my-final-kv-cache-speedup" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
      <category>research</category>
      <category>benchmarking</category>
    </item>
    <item>
      <title>Beating Eager TurboQuant Was Not Enough: Why Dense GPU Attention Still Won</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Mon, 27 Apr 2026 04:37:16 +0000</pubDate>
      <link>https://dev.to/alankritverma/beating-eager-turboquant-was-not-enough-why-dense-gpu-attention-still-won-adn</link>
      <guid>https://dev.to/alankritverma/beating-eager-turboquant-was-not-enough-why-dense-gpu-attention-still-won-adn</guid>
      <description>&lt;p&gt;I wrote a fused kernel that computed TurboQuant-style attention logits straight from packed 4-bit codes, and it ran 7 to 18 times faster than my eager PyTorch version. Against plain dense FP16 logits, though, its best result was 1.99× at a 16K context and 1.56× at 8K, and I had set the bar at 2×. That bar was there for a reason: logits are only the first step of attention. This post is about why beating your own prototype is the wrong finish line, and why boring dense math is so hard to beat on a GPU.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/alankritverma/when-a-good-approximation-still-loses-29c7"&gt;The previous part&lt;/a&gt; ended with the eager value-path experiments frozen. That left two ways to read the failure. Either the compressed-attention idea was weak, or the eager implementation level was. Those are different claims, so they needed different tests: first an exact cleanup to remove algebraic waste without changing the algorithm, then a deliberately narrow upper bound that strips away most eager overhead and asks whether the compressed representation can beat dense GPU logits at all, before anyone spends time on softmax, values, residuals and model integration.&lt;/p&gt;

&lt;h2&gt;
  
  
  An exact cleanup that wasn't enough
&lt;/h2&gt;

&lt;p&gt;The compressed-key baseline decoded every historical value out of its rotated space before taking the weighted sum. Because the inverse rotation is linear, the same result comes from summing in rotated space and rotating once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Σₜ aₜ R⁻¹(zₜ)  =  R⁻¹(Σₜ aₜ zₜ)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here &lt;code&gt;zₜ&lt;/code&gt; is token &lt;code&gt;t&lt;/code&gt;'s value in rotated space and &lt;code&gt;aₜ&lt;/code&gt; its attention weight. This is exactly the existing codec math, up to ordinary floating-point accumulation, and it cuts the output-side rotations per decode step from &lt;code&gt;H_kv · T&lt;/code&gt; (KV heads times context length) to &lt;code&gt;H_kv · G · Q&lt;/code&gt; (KV heads times query groups times query positions). For single-token decoding over a long history, that's a large algebraic reduction.&lt;/p&gt;

&lt;p&gt;It passed correctness, and it improved &lt;code&gt;value_decode_sec&lt;/code&gt; by about 2.9% in the focused benchmark. Exact cleanup is good engineering, but it isn't automatically a speedup anyone would notice. After it, the only serious latency question left in the TurboQuant family was a primitive one. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/exact-reference-value-decode-summary.md" rel="noopener noreferrer"&gt;rewrite summary&lt;/a&gt; has the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  The primitive question
&lt;/h2&gt;

&lt;p&gt;Dense decoding compares the current query against every historical key: &lt;code&gt;L = Q Kᵀ&lt;/code&gt;. The TurboQuant-style hope is to get those logits from the compressed keys directly, from their codes, scales and residuals, without ever rebuilding the dense keys. That's the headline promise: store fewer key bytes, compute logits from the compressed form, and skip the dense key reads.&lt;/p&gt;

&lt;p&gt;But a compressed representation has costs of its own. Low-bit codes have to be unpacked, looked up in a codebook, multiplied by a radius or scale, corrected with a residual, and combined with a rotated or transformed query, all while reading extra metadata. So the real question was never whether the representation is smaller, or whether it beats my eager Python version. It was whether it is cheaper to consume than dense FP16 keys.&lt;/p&gt;

&lt;p&gt;The first feasibility check used synthetic, large, grouped-query shapes and compared the compressed reference primitive against dense attention logits operation by operation. It wasn't close: the compressed primitive was roughly 12 to 24 times slower than dense, and encoding a single token cost about 0.65 to 0.84 ms. That ruled out more eager PyTorch variants. It left one fair objection, though: of course eager PyTorch lost, but a fused kernel might remove the unpacking and codebook overhead. The objection was valid, so I wrote the kernel. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/primitive-feasibility-summary.md" rel="noopener noreferrer"&gt;feasibility summary&lt;/a&gt; has those runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  A kernel built to be an upper bound
&lt;/h2&gt;

&lt;p&gt;The fused proof was intentionally small. It didn't implement full attention, values, residual correction, or model integration. It computed only the packed-codebook main logits: unpack the int4 codes, look them up in the codebook, multiply by the radius, and take dot products against each query group. That made it an upper bound. If main logits alone couldn't beat dense logits by a wide margin, full attention would have no room left at all.&lt;/p&gt;

&lt;p&gt;It did remove most of the eager overhead. On the main-logits operation it was roughly 7 to 18 times faster than my eager TurboQuant implementation, which is a real engineering improvement. But the target was never my eager version. It was dense logits, and dense logits were extremely strong.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yx5qy38hwkzxnmeg542.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yx5qy38hwkzxnmeg542.png" alt="Fused main logits against dense FP16 logits, llama70b-style grouped-query shapes, FP16 output. The dashed line is the 2× gate; nothing reached it." width="799" height="210"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Fused main logits against dense FP16 logits, llama70b-style grouped-query shapes, FP16 output. The dashed line is the 2× gate; nothing reached it.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Block tokens&lt;/th&gt;
&lt;th&gt;Context&lt;/th&gt;
&lt;th&gt;Dense logits&lt;/th&gt;
&lt;th&gt;Fused main logits&lt;/th&gt;
&lt;th&gt;Fused vs dense&lt;/th&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;8,192&lt;/td&gt;
&lt;td&gt;0.061 ms&lt;/td&gt;
&lt;td&gt;0.048 ms&lt;/td&gt;
&lt;td&gt;1.27×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;16,384&lt;/td&gt;
&lt;td&gt;0.093 ms&lt;/td&gt;
&lt;td&gt;0.049 ms&lt;/td&gt;
&lt;td&gt;1.90×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;8,192&lt;/td&gt;
&lt;td&gt;0.060 ms&lt;/td&gt;
&lt;td&gt;0.039 ms&lt;/td&gt;
&lt;td&gt;1.56×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;16,384&lt;/td&gt;
&lt;td&gt;0.092 ms&lt;/td&gt;
&lt;td&gt;0.046 ms&lt;/td&gt;
&lt;td&gt;1.99×&lt;/td&gt;
&lt;td&gt;near miss&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;td&gt;8,192&lt;/td&gt;
&lt;td&gt;0.058 ms&lt;/td&gt;
&lt;td&gt;0.108 ms&lt;/td&gt;
&lt;td&gt;0.54×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;256&lt;/td&gt;
&lt;td&gt;8,192&lt;/td&gt;
&lt;td&gt;0.059 ms&lt;/td&gt;
&lt;td&gt;0.043 ms&lt;/td&gt;
&lt;td&gt;1.38×&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The best tile, 64 tokens per block, nearly reached 2× at 16K and fell well short at 8K. And this was still only the logits. Full attention would add an online softmax, value accumulation, residual correction, cache updates, and integration overhead on top. A near miss on the cheapest part of the job wasn't enough, so I stopped the packed-codebook fused-kernel path there. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/fused-kernel-proof-summary.md" rel="noopener noreferrer"&gt;kernel proof summary&lt;/a&gt; has the full sweep.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why dense logits were so hard to beat
&lt;/h2&gt;

&lt;p&gt;Dense FP16 logits have a boring shape, and that's exactly why they're strong. The data is contiguous, the operations are regular tensor math on heavily optimized GPU paths, and nothing needs unpacking, looking up, or rescaling per token. The packed-codebook path stores fewer bytes, but none of those bytes is immediately useful arithmetic. Each one has to be unpacked and interpreted first, and that interpretation cost is the whole fight.&lt;/p&gt;

&lt;p&gt;My kernel had one more practical handicap. It used Triton's &lt;code&gt;tl.dot&lt;/code&gt;, which wants a tile dimension of at least 16, but the query groups in these grouped-query shapes are smaller. With a query-group size of 8 in the llama70b-style profile, half of every tile was padding; with 4 in the llama8b-style profile, three quarters was. Going lower level removed the Python overhead, but it didn't change the fact that dense attention had the cleaner shape for the hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about the TurboQuant result?
&lt;/h2&gt;

&lt;p&gt;This is where benchmark language matters. The &lt;a href="https://research.google/blog/turboquant-redefining-ai-efficiency-with-extreme-compression/" rel="noopener noreferrer"&gt;Google Research post&lt;/a&gt; and the &lt;a href="https://arxiv.org/abs/2504.19874" rel="noopener noreferrer"&gt;paper&lt;/a&gt; describe extreme KV and vector compression, quality retained at low bit widths, and faster attention-logit computation in a specialized setup. That isn't the same bar as dropping a cache into Hugging Face &lt;code&gt;generate()&lt;/code&gt; and beating dense FP16 or BF16 decoding end to end. Logits are one part of a decode step. A primitive result leaves out cache updates, the value path, the rest of the model, and generation overhead. Comparing against unquantized FP32 keys is different from comparing against an optimized FP16 or BF16 dense path. And specialized kernels on an H100 aren't the same environment as a general local &lt;code&gt;transformers&lt;/code&gt; fork.&lt;/p&gt;

&lt;p&gt;So this work doesn't show that TurboQuant is wrong. It shows that my packed-codebook TurboQuant-family path didn't have enough headroom to become a full decode-latency win in this repo. That distinction is the useful part: it stopped me from turning a near-miss primitive into months of residual, value and model-integration work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The lesson
&lt;/h2&gt;

&lt;p&gt;The rule I took from this stage is simple to say and easy to forget. A compressed path has to beat the real baseline, and for GPU decoding that's optimized dense attention, not the first eager prototype. A logits-only win also needs enough margin to pay for the rest of attention. If the best result barely reaches the threshold at one context length and misses at another, full attention won't fix that for free.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A compressed kernel has to beat the real dense baseline, not just its own prototype.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The packed-codebook latency path closed here. Not because compression is fake or the math is useless, but because the compressed form wasn't cheap enough to consume next to dense FP16 and BF16 GPU math. That left two pivots: a representation friendlier to the hardware, or giving up on compressing values and reducing dense attention work instead. Both had to pass the same discipline of separate gates for bytes, speed and quality. They're the subject of &lt;a href="https://dev.to/alankritverma/the-last-pivot-why-quality-gates-killed-my-final-kv-cache-speedup-3m0f"&gt;the last part&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post, with a live chart and figures that follow light and dark mode, is on &lt;a href="https://alankrit.me/writing/beating-eager-turboquant-was-not-enough-why-dense-gpu-attention-still-won" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>gpu</category>
      <category>research</category>
      <category>transformers</category>
    </item>
    <item>
      <title>When A Good Approximation Still Loses</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Sun, 26 Apr 2026 07:29:57 +0000</pubDate>
      <link>https://dev.to/alankritverma/when-a-good-approximation-still-loses-29c7</link>
      <guid>https://dev.to/alankritverma/when-a-good-approximation-still-loses-29c7</guid>
      <description>&lt;p&gt;My last eager experiment kept only 12.5 to 25 percent of historical tokens active in the value path, and value decoding still got more than twice as slow: 11.9 ms became about 26 ms. Every idea before it had a reasonable argument for why it should be cheaper. This post is about the gap between an approximation that is mathematically sound and one that a GPU and a framework can actually execute cheaply.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://dev.to/alankritverma/a-smaller-kv-cache-did-not-make-transformers-faster-2j"&gt;the first part&lt;/a&gt;, shrinking the KV cache turned out to be a different problem from making attention faster, so I built a stable compressed-key baseline. It wasn't fast enough to be the answer, but it was coherent, and it let me separate the key side from the value side. Once the keys were handled, the remaining cost was obvious: the model still has to mix the values of every historical token.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;None of this is a verdict on the TurboQuant paper or on every possible fused implementation. It's a verdict on the eager value-path family I built in this &lt;code&gt;transformers&lt;/code&gt; fork.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The bet on the value side
&lt;/h2&gt;

&lt;p&gt;After the attention weights are computed, the output is still a weighted sum over all of history:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;o = Σₜ aₜ vₜ
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the implementation decodes or touches most historical values on every step, it hasn't escaped the long-context cost. So the goal was to keep enough value information for quality while not paying full historical cost everywhere. The trouble is that "enough" depends on the query, the head, and how sensitive the output is.&lt;/p&gt;

&lt;p&gt;My plan wasn't to approximate values at random and hope generation survived. It was structured:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep the compressed-key path stable.&lt;/li&gt;
&lt;li&gt;Preserve recent and sink values exactly, because they are high-risk.&lt;/li&gt;
&lt;li&gt;Summarize low-risk historical values only if the quality loss is bounded.&lt;/li&gt;
&lt;li&gt;Select active historical chunks only where the approximation risk is high.&lt;/li&gt;
&lt;li&gt;Require the implementation to reduce real hot-path work, not just the theoretical token count.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The mistake was that step five stayed weaker than the other four for far too long.&lt;/p&gt;

&lt;h2&gt;
  
  
  What held up, and what didn't
&lt;/h2&gt;

&lt;p&gt;One ingredient kept making sense throughout: a small exact window for the most recent tokens plus a few sink tokens. Recent tokens often matter a lot, sink tokens can have special attention behavior, and keeping both exact helps stability. It was never a speed breakthrough in eager execution, but it was the only value-side idea that stayed defensible.&lt;/p&gt;

&lt;p&gt;My first broad hybrid mixed that window with delayed value quantization, saliency bookkeeping, anchors, and selective residual logic. It lost. It added complexity without removing enough of the dominant work, ran slower than the compressed-key baseline, and wasn't cleanly better on fidelity. Saliency-heavy variants and anchors went the same way: more bookkeeping, more branches, and no clear runtime win. The shared lesson is that hybrid logic has to remove dominant work, not just add selective corrections.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9wnui0xejg5pi004y6gz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9wnui0xejg5pi004y6gz.png" alt="Timeline of the eager experiments: baseline caches and compressed keys kept; hybrid values, chunk summaries, active chunks and the vectorized test were dead ends; then eager variants were frozen." width="800" height="220"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The eager experiments in order. Only the baselines survived.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Chunk summaries were fast because they were wrong
&lt;/h2&gt;

&lt;p&gt;The next idea replaced many token-level contributions with one per chunk. For each chunk of &lt;code&gt;c&lt;/code&gt; tokens, take its mean value and its total attention mass:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;μⱼ = (1/c) Σₜ∈Cⱼ vₜ
Mⱼ = Σₜ∈Cⱼ aₜ
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and approximate the chunk's contribution &lt;code&gt;Σₜ∈Cⱼ aₜ vₜ&lt;/code&gt; with &lt;code&gt;Mⱼ μⱼ&lt;/code&gt;. Applied to every historical chunk, this could be faster, but it was fast for the wrong reason: it threw away too much information to do the task. A speedup that comes from destroying quality isn't an optimization.&lt;/p&gt;

&lt;h2&gt;
  
  
  Active chunks: better math, terrible runtime
&lt;/h2&gt;

&lt;p&gt;The obvious fix was to summarize only the chunks where a summary is safe, and keep the risky ones exact. I scored each chunk by its attention mass times the spread of its values. High mass means the chunk matters; high spread means its mean is a poor stand-in. Chunks with a high score stayed active and exact, and the rest were summarized.&lt;/p&gt;

&lt;p&gt;That was a real approximation argument. It wasn't a runtime argument, and the eager implementation was a disaster.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbnqhqg6nni0la17fq4dy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbnqhqg6nni0la17fq4dy.png" alt="Decode step at 2,048 tokens. The active-chunk path was about 21× slower than the baseline it was meant to improve." width="797" height="135"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Decode step at 2,048 tokens. The active-chunk path was about 21× slower than the baseline it was meant to improve.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Decode 2048&lt;/th&gt;
&lt;th&gt;Memory context 2048&lt;/th&gt;
&lt;th&gt;Long next-token MSE&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;stable compressed-key baseline&lt;/td&gt;
&lt;td&gt;54.607 ms&lt;/td&gt;
&lt;td&gt;13.717 s&lt;/td&gt;
&lt;td&gt;0.349&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;exact recent/sink window&lt;/td&gt;
&lt;td&gt;70.205 ms&lt;/td&gt;
&lt;td&gt;14.485 s&lt;/td&gt;
&lt;td&gt;0.326&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;active-chunk value approximation&lt;/td&gt;
&lt;td&gt;1,148.843 ms&lt;/td&gt;
&lt;td&gt;311.692 s&lt;/td&gt;
&lt;td&gt;0.494&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The profile explained it. The implementation selected active chunks, looped over them in Python, decoded tiny slices again and again, and scattered small contributions back one at a time. At decode 2,048, value decode time went from 9.080 ms to 1,079.421 ms. That isn't a small miss; it's the wrong shape of work. I had proved an approximation bound, not a runtime win.&lt;/p&gt;

&lt;p&gt;The process lesson mattered as much as the result. Before any large run, an approximation now needs its hot path written down: how many gathers, decodes, reductions, scatters, and Python-level loops actually happen in one decode step. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/active-chunk-background-postmortem.md" rel="noopener noreferrer"&gt;active-chunk postmortem&lt;/a&gt; has the full profile.&lt;/p&gt;
&lt;h2&gt;
  
  
  One last eager test
&lt;/h2&gt;

&lt;p&gt;That left a narrow question: was the active-chunk idea bad, or only its implementation? I ran one final test to find out. It kept the same compressed-key baseline and redesigned only how historical values take part: exact sink and recent tokens, a dense staging buffer for values that had just aged out of the recent window, fixed-size historical chunks with the risky ones kept active, summaries for the rest, and vectorized gather, decode and reduction instead of Python loops. The output splits into four parts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;o = o_sink + o_recent + o_staging + o_history

o_history ≈ Σⱼ∈A Σₜ∈Cⱼ aₜ vₜ  +  Σⱼ∉A Mⱼ μⱼ
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;where &lt;code&gt;A&lt;/code&gt; is the set of active chunks. This time the gate was written down before the run. To pass, a configuration needed all of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;at least 20% better decode-step latency than the compressed-key baseline&lt;/li&gt;
&lt;li&gt;at least 40% less value-decode time&lt;/li&gt;
&lt;li&gt;an active token fraction of at most 0.25&lt;/li&gt;
&lt;li&gt;at least 20% better long-context latency&lt;/li&gt;
&lt;li&gt;no material collapse in fidelity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The grid was deliberately small: chunks of 16 with 12.5% or 25% active, and chunks of 32 with 12.5% active. It was a falsification test, not a sweep.&lt;/p&gt;

&lt;h2&gt;
  
  
  Active fraction is not runtime
&lt;/h2&gt;

&lt;p&gt;No configuration passed. The active token fraction stayed within budget every time, and the decode step got about 3% faster, far short of the 20% the gate asked for. Value decoding, the thing the design was meant to cut, more than doubled.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb88s6b75b6yvr1jda6n2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb88s6b75b6yvr1jda6n2.png" alt="Fewer active tokens, more value-decode time. Every configuration stayed within its active-token budget and still lost." width="799" height="160"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Fewer active tokens, more value-decode time. Every configuration stayed within its active-token budget and still lost.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Long-context latency got about 25% worse, and fidelity regressed: next-token MSE against the dense model rose from 0.2326 to between 0.33 and 2.16, and top-k overlap fell from 1.0 to between 0.4 and 0.7.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Chunk · active&lt;/th&gt;
&lt;th&gt;Decode step&lt;/th&gt;
&lt;th&gt;Value decode&lt;/th&gt;
&lt;th&gt;Active fraction&lt;/th&gt;
&lt;th&gt;Long-context&lt;/th&gt;
&lt;th&gt;Fidelity MSE&lt;/th&gt;
&lt;th&gt;Top-k&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;baseline&lt;/td&gt;
&lt;td&gt;70.604 ms&lt;/td&gt;
&lt;td&gt;11.906 ms&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;td&gt;14.212 s&lt;/td&gt;
&lt;td&gt;0.2326&lt;/td&gt;
&lt;td&gt;1.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16 · 12.5%&lt;/td&gt;
&lt;td&gt;68.726 ms&lt;/td&gt;
&lt;td&gt;26.461 ms&lt;/td&gt;
&lt;td&gt;0.125&lt;/td&gt;
&lt;td&gt;17.756 s&lt;/td&gt;
&lt;td&gt;1.3115&lt;/td&gt;
&lt;td&gt;0.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16 · 25%&lt;/td&gt;
&lt;td&gt;68.768 ms&lt;/td&gt;
&lt;td&gt;26.149 ms&lt;/td&gt;
&lt;td&gt;0.25&lt;/td&gt;
&lt;td&gt;17.884 s&lt;/td&gt;
&lt;td&gt;0.3314&lt;/td&gt;
&lt;td&gt;0.7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32 · 12.5%&lt;/td&gt;
&lt;td&gt;68.386 ms&lt;/td&gt;
&lt;td&gt;26.341 ms&lt;/td&gt;
&lt;td&gt;0.1333&lt;/td&gt;
&lt;td&gt;17.780 s&lt;/td&gt;
&lt;td&gt;2.1598&lt;/td&gt;
&lt;td&gt;0.4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The mistake had been to picture the cost as the active fraction times the dense cost. It is closer to the sum of everything the step actually does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cost = selection + gather + active decode + active reduce + inactive reduce + bookkeeping
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Vectorizing removed the catastrophic Python loop, but it didn't change that sum enough to move the result. So the disciplined decision was to freeze eager variants in this compressed-attention family. The test was a kill gate rather than a hyperparameter search, and it was set up that way on purpose: focused correctness tests, decode, prefill and long-context runs at about 2,048 tokens, next-token logit fidelity, and profile counters for every piece of the step. The &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/spike-a-vectorized-active-background-summary.md" rel="noopener noreferrer"&gt;run summary&lt;/a&gt; and the &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/results-ledger.md" rel="noopener noreferrer"&gt;results ledger&lt;/a&gt; have every number.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does and doesn't prove
&lt;/h2&gt;

&lt;p&gt;It proves that this eager value-path family shouldn't keep getting new variants, that vectorizing a bad workload isn't automatically enough, that runtime cost has to be modelled before broad benchmarks, and that quality gates matter as much as speed gates. It doesn't prove that compressed attention is useless, that TurboQuant-style key ideas are worthless, that lower-level fused implementations can't work, or that the official TurboQuant result is wrong. The honest conclusion is narrower: the eager implementation level failed for this family. That's still worth knowing, because it stops the next round of work from being one more eager variant with one more heuristic.&lt;/p&gt;

&lt;h2&gt;
  
  
  One exact cleanup left
&lt;/h2&gt;

&lt;p&gt;Before going lower level, there was one exact improvement worth proving. The compressed-key baseline decoded every historical value out of its rotated space and then took the weighted sum:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;o = Σₜ aₜ R⁻¹(zₜ)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because the inverse rotation &lt;code&gt;R⁻¹&lt;/code&gt; is linear, that equals rotating once after the sum:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;o = R⁻¹(Σₜ aₜ zₜ)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That isn't a heuristic or an approximation; it's the same codec math in a cheaper order. For SmolLM2-135M at 2,048 tokens, the output-side inverse rotations drop from about &lt;code&gt;H_kv · T = 3 · 2048 = 6,144&lt;/code&gt; to &lt;code&gt;H_kv · G · Q = 3 · 3 · 1 = 9&lt;/code&gt;, where &lt;code&gt;H_kv&lt;/code&gt; is the number of KV heads, &lt;code&gt;G&lt;/code&gt; the query groups per KV head, and &lt;code&gt;Q&lt;/code&gt; the query positions in a decode step. If even that didn't move the profile, the only TurboQuant-family question left was a lower-level one: could a fused, Triton- or CUDA-style compressed-attention primitive beat dense GPU attention by enough to be worth integrating?&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd keep
&lt;/h2&gt;

&lt;p&gt;This work didn't produce a faster cache path. It produced a map. The exact recent/sink window was defensible but not enough. Summaries were fast only because they lost information. Active chunks had a sound approximation argument and a terrible hot path. Vectorizing fixed the loop and still missed the gate. And active fraction, cache size and runtime turned out to be three different numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Active token fraction is not runtime.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A few habits came out of it that I'd keep on any performance project: give every approximation a written runtime cost before you run it; treat Python loops in a decode hot path as guilty until proven otherwise; let a failed hard gate stop a branch instead of inviting more tuning; and make every serious run emit enough configuration and profiling data to explain itself later. The &lt;a href="https://dev.to/alankritverma/beating-eager-turboquant-was-not-enough-why-dense-gpu-attention-still-won-adn"&gt;next part&lt;/a&gt; takes the lower-level question head on, against dense GPU attention.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post, with a live chart and figures that follow light and dark mode, is on &lt;a href="https://alankrit.me/writing/when-a-good-approximation-still-loses" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>performance</category>
      <category>research</category>
    </item>
    <item>
      <title>A Smaller KV Cache Did Not Make Transformers Faster</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Sun, 26 Apr 2026 07:22:26 +0000</pubDate>
      <link>https://dev.to/alankritverma/a-smaller-kv-cache-did-not-make-transformers-faster-2j</link>
      <guid>https://dev.to/alankritverma/a-smaller-kv-cache-did-not-make-transformers-faster-2j</guid>
      <description>&lt;p&gt;I compressed a transformer's KV cache from 50.9 MiB down to 0.9 MiB, and generation got slower: 2.25 seconds became 3.91. That result looks like a paradox until you notice that a smaller cache and a cheaper attention step are two different things, and I had only built the first one. This post is about that distinction, because it ended up shaping everything I tried afterwards.&lt;/p&gt;

&lt;p&gt;The setup was a Hugging Face &lt;code&gt;transformers&lt;/code&gt; fork where I was exploring &lt;a href="https://research.google/blog/turboquant-redefining-ai-efficiency-with-extreme-compression/" rel="noopener noreferrer"&gt;TurboQuant&lt;/a&gt;-style cache compression. Long-context generation makes the KV cache hard to ignore: every new token reuses the keys and values of every token before it, so the cache grows with the context. The obvious idea is to compress it, store fewer bytes, and expect generation to speed up.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is not a claim that TurboQuant doesn't work. The &lt;a href="https://arxiv.org/abs/2504.19874" rel="noopener noreferrer"&gt;paper&lt;/a&gt; describes an online vector quantization method with residual correction that preserves inner products. I tested something narrower: whether a TurboQuant-style compressed-attention path could be useful inside a local, eager &lt;code&gt;transformers&lt;/code&gt; implementation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Two claims hiding in one idea
&lt;/h2&gt;

&lt;p&gt;"Fewer cache bytes should mean faster generation" sounds like one claim, but it bundles two. The first is that the cache stores fewer bytes. The second is that the attention step does less work. Compression can easily deliver the first without the second, so the question I actually needed to ask was whether the attention hot path consumed less work, or whether I had only stored the same work in a smaller format.&lt;/p&gt;

&lt;p&gt;It helps to look at what attention reads. For a single head during decoding:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a = softmax(q Kᵀ)
o = a V
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;q&lt;/code&gt; is the current token's query, &lt;code&gt;K&lt;/code&gt; and &lt;code&gt;V&lt;/code&gt; are the cached keys and values for every earlier token, &lt;code&gt;a&lt;/code&gt; is how much attention each earlier token gets, and &lt;code&gt;o&lt;/code&gt; is what this token takes from history. Keys decide where to look; values are what gets mixed. Both grow with the context, which leaves compression two different targets: store the cache in fewer bytes, or run attention without rebuilding the dense history every step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring before building
&lt;/h2&gt;

&lt;p&gt;I started with the cache strategies &lt;code&gt;transformers&lt;/code&gt; &lt;a href="https://huggingface.co/docs/transformers/en/kv_cache" rel="noopener noreferrer"&gt;already ships&lt;/a&gt;: &lt;code&gt;DynamicCache&lt;/code&gt; as the dense eager baseline, &lt;code&gt;quanto&lt;/code&gt; as a strong storage-compression baseline, and &lt;code&gt;hqq&lt;/code&gt; as a second quantized cache. The benchmark ran &lt;code&gt;HuggingFaceTB/SmolLM2-135M-Instruct&lt;/code&gt; generating with roughly 2,048 tokens of context, and I measured latency, cache footprint, bytes per token, runtime memory, and whether outputs matched the dense baseline on simple cases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb6hu2bg0tas0p8dro6yu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb6hu2bg0tas0p8dro6yu.png" alt="quanto shrinks the cache by about 56× and still runs slower than the dense baseline. Same model, same 2,048-token context." width="800" height="220"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;quanto shrinks the cache by about 56× and still runs slower than the dense baseline. Same model, same 2,048-token context.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;quanto&lt;/code&gt; is the interesting row. It took the cache from 50.911 MiB to 0.913 MiB, an excellent storage result, while mean latency went from 2.250 s to 3.912 s. The full numbers are below, and every run is in the &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/results-ledger.md" rel="noopener noreferrer"&gt;results ledger&lt;/a&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Backend&lt;/th&gt;
&lt;th&gt;What it represents&lt;/th&gt;
&lt;th&gt;Latency&lt;/th&gt;
&lt;th&gt;Cache&lt;/th&gt;
&lt;th&gt;Bytes / token&lt;/th&gt;
&lt;th&gt;Runtime peak Δ&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dynamic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;dense eager baseline&lt;/td&gt;
&lt;td&gt;2.250 s&lt;/td&gt;
&lt;td&gt;50.911 MiB&lt;/td&gt;
&lt;td&gt;23,040&lt;/td&gt;
&lt;td&gt;0.102 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;quanto&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;storage compression&lt;/td&gt;
&lt;td&gt;3.912 s&lt;/td&gt;
&lt;td&gt;0.913 MiB&lt;/td&gt;
&lt;td&gt;413&lt;/td&gt;
&lt;td&gt;0.048 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hqq&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;alternative quantized cache&lt;/td&gt;
&lt;td&gt;9.770 s&lt;/td&gt;
&lt;td&gt;19.133 MiB&lt;/td&gt;
&lt;td&gt;8,659&lt;/td&gt;
&lt;td&gt;0.040 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Where the time went
&lt;/h2&gt;

&lt;p&gt;The slowdown makes sense once you follow a token through the quantized cache. New keys and values are produced as dense tensors, quantized for storage, and kept compressed. Then, on every decode step, the cached tensors are dequantized and handed back to attention as ordinary dense keys and values. Attention itself never changes. It still reads dense tensors; it just has to wait for them to be rebuilt first.&lt;/p&gt;

&lt;p&gt;So the architecture was compressed storage feeding dense execution, not compressed attention. The first can save memory. Only the second can make attention faster.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43kau7mrvdux0yucr9x7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43kau7mrvdux0yucr9x7.png" alt="Two paths: a storage-only cache that dequantizes back to dense attention, and a compressed-attention path that avoids rebuilding dense history." width="800" height="334"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Storage compression saves bytes, but attention still runs dense. Compressed attention changes what attention reads.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Changing what attention reads
&lt;/h2&gt;

&lt;p&gt;This is why TurboQuant-style work stayed interesting to me. Its bigger promise isn't storing the cache in fewer bits; it's computing attention directly from the compressed representation. The dense key path computes a logit against every historical key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;logitₜ = q · kₜ
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A compressed-key path would instead approximate that from the stored code and a residual, without ever materializing the full key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;logitₜ ≈ compressed_dot(q, code(kₜ), residual(kₜ))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a change to the execution path, not another cache backend, and it doesn't fit the shape of the existing storage-only &lt;code&gt;QuantizedCache&lt;/code&gt;. The project stopped being about adding a backend and became about changing what attention actually consumes.&lt;/p&gt;

&lt;p&gt;I built a stable compressed-key baseline to test the direction. It wasn't meant to be the final system. Its job was to prove an end-to-end compressed-key attention path could exist in a Llama-style eager stack, and to give later experiments a fixed point to compare against. It kept historical keys compressed, computed logits from them with residual correction, and left the value path whole so correctness stayed easy to interpret. It held up better than anything I built after it. There was some directional evidence that it gets more interesting at larger model and context sizes, but not enough to make that the headline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Values were the hard part
&lt;/h2&gt;

&lt;p&gt;Compressing the keys only covers half of attention. Once the weights are computed, the output still mixes every historical value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;o = Σₜ aₜ vₜ
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the implementation reconstructs or touches values across most of history, that half stays expensive no matter how cheap the logits get. That's exactly where the remaining cost was, and it moved my question from "can I compress the cache?" to "can I keep the compressed-key path and make historical values structurally cheaper to mix?" That question is harsher than cache compression, because the compressed form now has to be cheap to &lt;em&gt;use&lt;/em&gt;, not just small to store. It led to the second half of the work, and most of the value-path approximations I tried there failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this phase settled
&lt;/h2&gt;

&lt;p&gt;Existing quantized caches are genuinely good at shrinking stored memory, and dense eager execution is a serious baseline precisely because its hot path is so simple. Neither fact says anything about attention cost, which is the thing I actually wanted to reduce. The compressed-key baseline was worth keeping as an anchor; the next bottleneck was the values.&lt;/p&gt;

&lt;p&gt;All of this came from one local fork, one benchmark setup, and a small model first. It isn't a universal result for every model and GPU. But it answered the systems question I cared about, which was whether I was reducing attention cost or only cache storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I had reduced storage. I had not yet won execution.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://dev.to/alankritverma/when-a-good-approximation-still-loses-29c7"&gt;next part&lt;/a&gt; picks up there: trying to make historical value mixing cheap without breaking quality. The benchmark notes and every run are in the &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence" rel="noopener noreferrer"&gt;evidence repo&lt;/a&gt;, with a &lt;a href="https://github.com/AlankritVerma01/turboquant-kv-cache-evidence/blob/main/evidence/benchmark-summaries/pre-turboquant-quantized-cache-report.md" rel="noopener noreferrer"&gt;baseline summary&lt;/a&gt; of the storage-versus-latency results.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post, with a live chart and figures that follow light and dark mode, is on &lt;a href="https://alankrit.me/writing/a-smaller-kv-cache-did-not-make-transformers-faster" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>performance</category>
      <category>research</category>
    </item>
    <item>
      <title>Synthetic Population Testing for Recommendation Systems</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Sat, 04 Apr 2026 02:04:50 +0000</pubDate>
      <link>https://dev.to/alankritverma/synthetic-population-testing-for-recommendation-systems-58f5</link>
      <guid>https://dev.to/alankritverma/synthetic-population-testing-for-recommendation-systems-58f5</guid>
      <description>&lt;p&gt;&lt;a href="https://dev.to/alankritverma/why-offline-evaluation-is-not-enough-for-recommendation-systems-15ii"&gt;The last post&lt;/a&gt; ended on a split verdict. On MovieLens, a popularity baseline beat a genre-based recommender on Recall@10 and NDCG@10, yet the genre model came out ahead under all four simulated kinds of user I tested, by 0.184 in utility for explorers and 0.279 for niche-interest users. This post is about the test that produced the second half of that verdict: what it actually computes, what the sessions look like, and how far to trust it. The short version is that it's useful for making tradeoffs visible, and that part of Model B's lead comes from the test rewarding the same thing Model B ranks by.&lt;/p&gt;

&lt;h2&gt;
  
  
  The harness
&lt;/h2&gt;

&lt;p&gt;The test is a small recommender behavior QA harness. It compares one baseline against one candidate under one fixed setup and reports four things: the standard offline ranking metrics, utility under each simulated user lens, behavioral diagnostics (novelty, repetition and catalog concentration), and short session traces you can read.&lt;/p&gt;

&lt;p&gt;The canonical run uses MovieLens 100K. A rating of 4 or more counts as a positive, users need at least 10 ratings and 5 positives to be included, which leaves 938 of them, and each user's last two positives are held out for the ranking metrics. Model A recommends the most popular films the user hasn't seen. Model B scores each film by how well its genres match the user's genre profile, built from the films they rated highly, adds a small popularity prior, then reranks its shortlist so that the top ten don't all share genres.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a simulated user scores a recommendation
&lt;/h2&gt;

&lt;p&gt;Each lens is a weighted sum over four properties of a film. Affinity is how closely its genres match the user's profile. Popularity is how often it was rated, as a fraction of the most-rated film's count, and novelty is one minus that. Repetition is how similar its genres are to the last two films the user picked. The lenses differ only in their weights:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lens&lt;/th&gt;
&lt;th&gt;Affinity&lt;/th&gt;
&lt;th&gt;Popularity&lt;/th&gt;
&lt;th&gt;Novelty&lt;/th&gt;
&lt;th&gt;Repetition&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Conservative mainstream&lt;/td&gt;
&lt;td&gt;0.55&lt;/td&gt;
&lt;td&gt;0.35&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;−0.10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explorer&lt;/td&gt;
&lt;td&gt;0.45&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0.35&lt;/td&gt;
&lt;td&gt;−0.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Niche-interest&lt;/td&gt;
&lt;td&gt;0.70&lt;/td&gt;
&lt;td&gt;−0.10&lt;/td&gt;
&lt;td&gt;0.20&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Low-patience&lt;/td&gt;
&lt;td&gt;0.60&lt;/td&gt;
&lt;td&gt;0.10&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;−0.30&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A session runs four steps. At each step the model shows ten films, the simulated user looks at the top five and picks the one their lens scores highest, and that pick joins their history so the next step can't repeat it and the repetition term sees it. A lens's score for a model is the average utility of those picks across all 938 users. Every user goes through all four lenses, so "explorer" doesn't mean a group of people the harness found. It means every user, scored as if they valued discovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the lenses found
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhzsr7yozife7bogg93mb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhzsr7yozife7bogg93mb.png" alt="How much more utility Model B delivers than Model A under each lens. It's ahead everywhere, by a lot for explorers and niche-interest users." width="799" height="160"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;How much more utility Model B delivers than Model A under each lens. It's ahead everywhere, by a lot for explorers and niche-interest users.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lens&lt;/th&gt;
&lt;th&gt;Model A&lt;/th&gt;
&lt;th&gt;Model B&lt;/th&gt;
&lt;th&gt;B − A&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Conservative mainstream&lt;/td&gt;
&lt;td&gt;0.519&lt;/td&gt;
&lt;td&gt;0.532&lt;/td&gt;
&lt;td&gt;0.012&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explorer&lt;/td&gt;
&lt;td&gt;0.339&lt;/td&gt;
&lt;td&gt;0.523&lt;/td&gt;
&lt;td&gt;0.184&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Niche-interest&lt;/td&gt;
&lt;td&gt;0.443&lt;/td&gt;
&lt;td&gt;0.722&lt;/td&gt;
&lt;td&gt;0.279&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Low-patience&lt;/td&gt;
&lt;td&gt;0.321&lt;/td&gt;
&lt;td&gt;0.364&lt;/td&gt;
&lt;td&gt;0.043&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The gaps follow the weights. The niche lens puts the most weight on affinity and penalizes popularity, and that's where B gains most. The explorer lens rewards novelty, which A's blockbusters can't supply. The mainstream lens gives popularity a weight of 0.35, enough to almost cancel B's affinity advantage, and the gap shrinks to 0.012. Low-patience weights affinity heavily too, but it also punishes repetition hardest, and B's genre-matched picks tend to resemble the user's last few, which likely spends much of its affinity advantage.&lt;/p&gt;

&lt;p&gt;The traces show what that means for one person. For an explorer, Model A stays on familiar, heavily exposed titles while Model B follows a narrower and much more novel thread:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Model A: Raiders of the Lost Ark → Fargo → Toy Story → Return of the Jedi
Model B: Prophecy, The → Cat People → Wes Craven's New Nightmare → Relic, The
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a low-patience user the difference is less about novelty. Model B moves through a less concentrated part of the catalog instead of circling the same mainstream core:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Model A: Star Wars → Fargo → Return of the Jedi → Toy Story
Model B: Monty Python and the Holy Grail → Full Monty → American President → Truth About Cats &amp;amp; Dogs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Diagnostics that disagree
&lt;/h2&gt;

&lt;p&gt;The last post showed that Model B's top ten are far more novel (0.678 against 0.395) and much less concentrated in the most popular tenth of the catalog (0.717 against 1.000, since A only ever recommends the most popular films). The third diagnostic goes the other way. Repetition here measures how alike neighbouring films in a top-ten list are by genre, and Model B scores 0.664 against A's 0.279, even with its diversity rerank. That makes sense once you see where the films come from: B draws its list from the user's favourite genres, while a list of blockbusters happens to span action, comedy, crime and animation. Neither number is wrong. They're two strategies leaving different signatures, which is the kind of thing a single average can't show you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this can't tell you
&lt;/h2&gt;

&lt;p&gt;The biggest caveat is that the yardstick isn't neutral. Affinity, which carries between 0.45 and 0.70 of every lens's weight, is genre similarity to the user's profile, and genre similarity to the user's profile is exactly what Model B ranks by. Model A never looks at genre at all. So every simulated user is partly scoring the films on Model B's own terms, and some of B's lead under every lens is built in rather than discovered. What the harness does get right is that the assumption is written down, in one weights table, where anyone can see it and argue with it. A fairer version would score affinity with a signal B doesn't use, such as the user's held-out ratings or a separately trained collaborative model, and that's the experiment I'd run next.&lt;/p&gt;

&lt;p&gt;Two smaller points. The lenses are assumptions, not segments: no user in the data was identified as an explorer, so the results say how each model would fare if users valued what a lens values, not how many users do. And the robustness check is thinner than it looks. Seeds 0, 1 and 2 give identical results because nothing in the pipeline is random, so they show nothing. The one real variation, holding out only each user's last positive instead of the last two, shifts the numbers slightly (Recall@10 0.095 against 0.057, explorer gain 0.185, niche gain 0.280) without changing any direction. All of this is one dataset, two models and no live users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it fits
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8jo1vtz9n4wy3oj8iupd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8jo1vtz9n4wy3oj8iupd.png" alt="Four layers: standard offline evaluation; segment- and trajectory-aware diagnostics, where this harness sits; richer synthetic population testing, maybe next; online experiments for final validation." width="800" height="314"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The harness sits at layer two: explicit behavioral lenses and short trajectory diagnostics on top of the familiar offline comparison.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The stack I have in mind keeps offline replay as the first screen, adds lens- and trajectory-aware diagnostics like these as the second, leaves room for richer simulated users after that, and still relies on online experiments for the final call. The value of layer two isn't that it predicts what live users will do. It's that it turns questions a team should ask before shipping, such as who gets a better experience, whether the candidate collapses toward the most popular items, and whether it gets more repetitive, into numbers you can run and inspect. Even the caveat above is an example: a tradeoff that would stay hidden inside one average becomes something you can point at.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is not the final answer. It is the first concrete artifact of the missing layer.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post, with live charts and figures that follow light and dark mode, is on &lt;a href="https://alankrit.me/writing/synthetic-population-testing-for-recommendation-systems" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>algorithms</category>
      <category>research</category>
    </item>
    <item>
      <title>Why Offline Evaluation Is Not Enough for Recommendation Systems</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Sun, 29 Mar 2026 16:40:52 +0000</pubDate>
      <link>https://dev.to/alankritverma/why-offline-evaluation-is-not-enough-for-recommendation-systems-15ii</link>
      <guid>https://dev.to/alankritverma/why-offline-evaluation-is-not-enough-for-recommendation-systems-15ii</guid>
      <description>&lt;p&gt;On a small MovieLens test, a plain popularity baseline beat a personalized recommender on every standard offline ranking metric I measured. Yet when I scored the same two models against four simulated kinds of user, the personalized one came out ahead under all four, by a wide margin for explorers and people with niche tastes. The aggregate numbers hid that completely. This post is about why: recommendation systems are interactive, and offline evaluation quietly treats them like static predictors.&lt;/p&gt;

&lt;p&gt;That isn't an argument for throwing offline evaluation away. It's practical, fast and often highly informative, and almost every team relies on it for good reason. The claim is narrower. Recommenders shape the behavior they later observe, and that puts real limits on what replaying history can tell you about a new system.&lt;/p&gt;

&lt;h2&gt;
  
  
  What offline evaluation measures
&lt;/h2&gt;

&lt;p&gt;In a recommender, offline evaluation means scoring a model on logged interactions instead of live traffic. You train on past user-item behavior, hold out a later slice, and ask whether the model ranks the held-out items highly for the right users. For a movie service the history might be watches, clicks, ratings and add-to-list events, and the basic question is whether a film someone later watched would have appeared near the top of the model's list. Metrics such as Recall@K, hit rate and NDCG summarize how well the model recovers those held-out interactions.&lt;/p&gt;

&lt;p&gt;It's an attractive loop: concrete, reproducible, and cheap. Candidates can be compared on the same held-out data, regressions caught before launch, and small improvements measured without the cost and risk of an online experiment. But it's worth being precise about what it says. Offline evaluation doesn't measure how users would respond to a new policy in a live environment. It measures how well a model lines up with interactions recorded under earlier exposure. The held-out watch isn't just a fact about the user. It's also a fact about what the user was shown.&lt;/p&gt;

&lt;h2&gt;
  
  
  The data comes from a policy
&lt;/h2&gt;

&lt;p&gt;That's the root of every limitation below. What users do in the logs depends partly on what earlier systems chose to show them, so offline evaluation isn't observing a neutral ground truth about relevance. It's observing relevance through the filter of past exposure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbr1da77sc9l7h9dkow59.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbr1da77sc9l7h9dkow59.png" alt="A loop: the ranking policy decides what users see; users can only respond to what they see; those responses are logged; the logs train and evaluate the next policy." width="800" height="294"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Recommender data is produced by the system it's later used to judge.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In notation: call the policy that generated the logs &lt;code&gt;π₀&lt;/code&gt; and the new one you want to evaluate &lt;code&gt;π₁&lt;/code&gt;. Offline replay uses observations gathered under &lt;code&gt;π₀&lt;/code&gt; to estimate how good &lt;code&gt;π₁&lt;/code&gt; is. If &lt;code&gt;π₁&lt;/code&gt; behaves much like &lt;code&gt;π₀&lt;/code&gt;, that estimate can be informative. If it changes what gets exposed, the estimate gets much less complete. What we want is user response under the new policy; what we usually have is user response under the old one. They overlap, but they aren't the same thing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Exposure bias
&lt;/h3&gt;

&lt;p&gt;Users can only react to items they were shown. An interaction log is a record of preference under a particular pattern of exposure, so a missing click or watch doesn't cleanly mean an item was irrelevant. Often the item simply never appeared. If a movie platform has given heavy exposure to well-known studio releases and very little to niche films, the logs hold dense evidence about the mainstream catalog and sparse evidence about everything else. Feedback only exists where &lt;code&gt;π₀(i | u, c)&lt;/code&gt; was meaningfully above zero for user &lt;code&gt;u&lt;/code&gt;, item &lt;code&gt;i&lt;/code&gt; and context &lt;code&gt;c&lt;/code&gt;, so replay samples from what earlier policies made visible, not from all the pairs that might matter. That can make "popular" look easier to measure than "personally relevant," even when the second is closer to the product's goal.&lt;/p&gt;

&lt;h3&gt;
  
  
  Old-policy lock-in
&lt;/h3&gt;

&lt;p&gt;This gets sharper when a new policy differs from the old one in systematic ways. The new model is judged with evidence produced by the system it may be trying to replace, which creates an asymmetry: models that resemble the old policy enjoy rich, clean evidence, while models that move probability toward less-exposed parts of the catalog are judged exactly where the logs are thinnest. If the old system favored familiar blockbusters, a candidate that keeps ranking them highly will line up well with the log. A candidate that surfaces quieter but well-matched films may look weaker offline, not because users dislike them, but because the old system rarely gave anyone the chance to show they liked them. That's one way a better recommender can look worse offline. When two models differ only slightly, offline comparison is still very useful. When a candidate changes exposure in meaningful ways, the metric deserves more caution than it usually gets.&lt;/p&gt;

&lt;h3&gt;
  
  
  New items and cold start
&lt;/h3&gt;

&lt;p&gt;The same logic is harshest for new or rarely shown content. Offline evaluation is strongest where historical evidence is plentiful and weakest where exposure has been limited, recent or absent, which is often exactly where a recommender is meant to add value by introducing new items and widening coverage. A newly added independent film may be a great match for a narrow set of users based on metadata or nearby signals, but if it barely appeared under the previous policy, the logs can't say how good that recommendation would be. Replay inherits the conservatism of past exposure. Over time, that can make conservative strategies look more reliable than they are, and exploratory ones less supported than they deserve. For recommenders, novelty is often where the evidence is thinnest.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trajectory blindness
&lt;/h3&gt;

&lt;p&gt;Even without the exposure problem, recommendation quality isn't purely one step. Most offline metrics ask whether the model put the held-out item near the top: a question about immediate alignment with a logged event. But people experience recommenders as sequences. They come back across sessions, notice repetition, and build trust or impatience. They learn whether the system helps them explore or just loops them through small variations of what it already knows how to sell. A recommender that keeps serving similar popular thrillers can look sensible one step at a time and feel narrow and repetitive over a week. Another might trade a little one-step certainty for a better sequence that mixes reliable picks with the occasional well-matched discovery. In notation, most offline metrics judge something close to the quality of &lt;code&gt;rₜ&lt;/code&gt; at a single step, while the experience depends on the whole sequence &lt;code&gt;(a₁, r₁), …, (a_T, r_T)&lt;/code&gt;: how concentrated it is, whether novelty arrives at the right rate, whether boredom builds up, and whether the system adapts.&lt;/p&gt;

&lt;p&gt;Put together, these point to one conclusion. Offline evaluation often treats recommendation as a static prediction problem with fixed labels, when it's really an interactive system: it chooses what to expose, exposure shapes what users can respond to, and those responses become the next round of data. The question isn't only whether a model can replay the past, but whether it supports good interaction under a changed policy. Replay answers that only in part.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it still earns its place
&lt;/h2&gt;

&lt;p&gt;None of this makes offline evaluation disposable; it defines its scope. It's fast, reproducible and cheap. It screens model changes before they reach users and supports regression testing, debugging, ablations and benchmarking. If a ranking model can't compete in historical replay, it's usually hard to justify sending it live traffic, and online tests are expensive in time, user attention and risk. The mistake isn't using offline evaluation. It's treating it as the complete test.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evaluation aspect&lt;/th&gt;
&lt;th&gt;What offline replay usually captures&lt;/th&gt;
&lt;th&gt;What it tends to miss&lt;/th&gt;
&lt;th&gt;Movie example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Immediate relevance&lt;/td&gt;
&lt;td&gt;Whether held-out watches rank near the top&lt;/td&gt;
&lt;td&gt;Whether that ranking holds under a different exposure policy&lt;/td&gt;
&lt;td&gt;A familiar blockbuster makes the top K because it was already heavily shown&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Policy shift&lt;/td&gt;
&lt;td&gt;Small improvements close to the old policy&lt;/td&gt;
&lt;td&gt;Quality where the candidate differs most&lt;/td&gt;
&lt;td&gt;A model that surfaces more niche dramas has little support where it departs from the old system&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Novel or underexposed items&lt;/td&gt;
&lt;td&gt;Some signal for items with enough past exposure&lt;/td&gt;
&lt;td&gt;Items that were new, rare, or under-shown&lt;/td&gt;
&lt;td&gt;A new indie film gets little offline credit even if it fits the user well&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cold start&lt;/td&gt;
&lt;td&gt;Very coarse performance on sparse users or items&lt;/td&gt;
&lt;td&gt;Early quality when history is thin&lt;/td&gt;
&lt;td&gt;A new documentary arrives with too little evidence to judge fairly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repetition across sessions&lt;/td&gt;
&lt;td&gt;Little, unless explicitly measured&lt;/td&gt;
&lt;td&gt;Accumulated sameness over repeated visits&lt;/td&gt;
&lt;td&gt;Slight variations of the same thriller, session after session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Novelty and exploration&lt;/td&gt;
&lt;td&gt;Limited signal through held-out items&lt;/td&gt;
&lt;td&gt;Whether useful discovery happens at the right rate&lt;/td&gt;
&lt;td&gt;A good long-tail sci-fi pick the old logs barely ever exposed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Segment differences&lt;/td&gt;
&lt;td&gt;Averages over the whole evaluation set&lt;/td&gt;
&lt;td&gt;Which user groups are helped or hurt&lt;/td&gt;
&lt;td&gt;Mainstream users do well under A while explorers do better under B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Experience over time&lt;/td&gt;
&lt;td&gt;Almost nothing in one-step metrics&lt;/td&gt;
&lt;td&gt;Trust, boredom, fatigue and satisfaction across sequences&lt;/td&gt;
&lt;td&gt;Acceptable next picks while the user slowly disengages from repetition&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Model A and Model B
&lt;/h2&gt;

&lt;p&gt;To make that concrete, picture two movie rankers. Model A is conservative: it leans toward popular, broadly watched titles and stays in the historically dominant parts of the catalog. It's usually safe, usually familiar, and often repetitive. Model B is more personal: it still recommends mainstream films when they fit, but it's more willing to surface niche titles and less obvious matches when a user's profile suggests they'd land.&lt;/p&gt;

&lt;p&gt;Now suppose the logs came from an older policy that behaved a lot like Model A. Evaluated offline, Model A will often look strong for a simple reason: it agrees with the exposure pattern that produced the data. Model B may serve particular users better, especially those with narrow tastes or an appetite for discovery, but if its best picks sit in rarely exposed parts of the catalog, the logs can't give it much credit. That doesn't make B better overall. Some users genuinely prefer A's safety, and that's part of the point: quality varies across users and sessions, and one aggregate score hides it.&lt;/p&gt;

&lt;p&gt;I built a small comparison on MovieLens 100K to see this happen. Model A is a popularity baseline. Model B is a lightweight recommender built from user genre profiles with a modest popularity prior. Neither is meant to be state of the art; the point was to see what different layers of evaluation say about the same pair.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr23lmkoushz7bmxphom3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr23lmkoushz7bmxphom3.png" alt="On ranking metrics the popularity baseline wins. On behavior, Model B is far more novel and much less concentrated in the most popular titles." width="798" height="120"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;On ranking metrics the popularity baseline wins. On behavior, Model B is far more novel and much less concentrated in the most popular titles.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If the evaluation stopped at Recall and NDCG, the conclusion would be simple: the popularity baseline wins. But the two models clearly behave differently. Model B reaches much further into the catalog, and replay has no way to say whether that helps anyone, because the logs barely cover the films it reaches for. So I tried a second kind of test: score both models against four simulated kinds of user, each valuing familiarity, discovery and variety differently. Under all four, Model B comes out ahead, by the most for explorers and niche-interest users.&lt;/p&gt;

&lt;p&gt;That result is less clean than it sounds, and &lt;a href="https://dev.to/alankritverma/synthetic-population-testing-for-recommendation-systems-58f5"&gt;the next post&lt;/a&gt; is about the test itself: how a simulated user scores a recommendation, what each model's sessions look like, and the reasons not to take the gap at face value. The point here is narrower. The same pair of models gets a different verdict depending on whether you ask "did it recover the logged watches?" or "what would it be like to use?", and replay can only ask the first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Offline evaluation is indispensable, but it is not the whole test.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Its limit is structural, not procedural: the data it relies on was constrained by earlier exposure, so it can only partly test a system that changes what gets shown. The fix isn't to drop replay but to build around it: be explicit about where the logged evidence is thin, and add some test that probes interaction instead of treating replay as the whole story.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post, with live charts and figures that follow light and dark mode, is on &lt;a href="https://alankrit.me/writing/why-offline-evaluation-is-not-enough-for-recommendation-systems" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>architecture</category>
      <category>research</category>
    </item>
    <item>
      <title>How GenAI Genesis Began</title>
      <dc:creator>Alankrit Verma</dc:creator>
      <pubDate>Sat, 07 Mar 2026 05:12:44 +0000</pubDate>
      <link>https://dev.to/alankritverma/how-genai-genesis-began-523b</link>
      <guid>https://dev.to/alankritverma/how-genai-genesis-began-523b</guid>
      <description>&lt;p&gt;I came to the University of Toronto as a shy, math-driven student on a scholarship, with a strong sense that I owed something back. That instinct took me into student leadership through AMACSS, where I helped run a small experiment called AI Olympics with 39 participants. It showed us that students wanted a serious place to build, learn and belong in AI. So my co-founder, Adib Fallahpour, and I scaled that spark into GenAI Genesis: first a cross-campus student hackathon, and eventually one of Canada's largest student AI hackathons. Along the way I helped lead the vision, the website, sponsorships, partnerships and the long-term structure behind it, including helping establish the GenAI Genesis Foundation, so the mission could outlast any one organizing cycle. And now, in 2026, it's entering its biggest and most ambitious chapter yet.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Some communities are joined. Others are built because you cannot stop thinking about the version that should exist.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft29j4hor4p7x32260lt5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft29j4hor4p7x32260lt5.webp" alt="The GenAI Genesis team gathered around a celebration cake in front of the event screen." width="799" height="534"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;GenAI Genesis team with the cake. Surprise cake courtesy of Hasleen Kaur (Head of Finance 2025, Co-Chair 2026) and Ivan Semenov (Head of Operations 2025, Co-Chair 2026).&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Where it started
&lt;/h2&gt;

&lt;p&gt;Some things you plan carefully. Others begin so quietly that you only realize much later you were standing at the start of something bigger. GenAI Genesis was one of those.&lt;/p&gt;

&lt;p&gt;When I joined U of T I was, in many ways, still shy. I wasn't the loudest voice in the room, and I was still working out what kind of life I wanted to build and what I wanted to contribute. But I knew one thing clearly: I'd been given a rare opportunity and I didn't want to waste it. Coming to this country and this university on a scholarship meant a lot to me. It let me study freely, dream more freely, and imagine a future I might not otherwise have had, and from the start it left me with a deep feeling that I had to give back to the community that had given so much to me.&lt;/p&gt;

&lt;p&gt;I cared about a lot of things at once: math, building projects, real-world impact, and, very deeply, community. I cared about recognition too, but not just for ego; I wanted to build things that mattered. Math had been part of my identity for a long time. I'd prepared seriously for the Euclid Mathematics Contest and scored 90/100, and that mattered to me for more than the number. Euclid gives you credibility, but more importantly it gave me confidence. It made me more ambitious, it made me believe I could build something meaningful, and it made me want to create spaces where other students could feel that same challenge, excitement and possibility.&lt;/p&gt;

&lt;p&gt;So when I got to U of T Scarborough, I looked around and asked a simple question: where is that energy here? Honestly, I didn't see enough of it. The computer science community in particular wasn't booming. This was after COVID, when a lot of campus communities still felt quiet, fragmented and hard to revive. There was talent but not enough momentum, curiosity but not enough structure, ambition but not enough places for it to gather. Somewhere along the way I quietly made it my mission to help fix that. Not alone, of course; communities are never built alone. But I wanted to be one of the people pushing hard in that direction.&lt;/p&gt;

&lt;p&gt;That instinct led me to AMACSS, the Association of Mathematical and Computer Science Students, which is the departmental student association for the CMS department at U of T Scarborough. In first year I joined as First-Year Representative Coordinator: I represented first-year computer science and math students to the association, and the association back to them, and I coordinated a team of seven people. That turned out to be one of my first lessons in leadership. I learned quickly that leading isn't just taking initiative. It's understanding people, assigning responsibility thoughtfully, getting buy-in, and leading with grace when everyone brings different levels of energy, skill, confidence and commitment. I'd always liked taking initiative, but AMACSS sharpened that into something more deliberate. And in that chapter the first version of GenAI Genesis quietly appeared, though not under that name yet. It started as AI Olympics.&lt;/p&gt;
&lt;h2&gt;
  
  
  Before Genesis, there was AI Olympics
&lt;/h2&gt;

&lt;p&gt;AI Olympics was the first experiment, and it came from a mix of inspirations. Part of it was my love of math competitions and the intellectual excitement they create. Part of it was the online hackathons I'd taken part in, where I'd seen how energizing it is when people come together to build under time pressure. I kept asking myself why we didn't have something like that at our university.&lt;/p&gt;

&lt;p&gt;At one point I was brainstorming with Katrina Best, who was president at the time, about what would make a strong event for first-year students. At first we thought about something closer to a math contest. Then the idea evolved, I brainstormed it with my team as well, and slowly it shifted from an Olympiad to something more build-oriented, more alive and more experimental. That's where AI Olympics was born. The name came from the same spirit: we wanted something that felt like an Olympiad, but more modern, more hands-on and more builder-focused, and "AI Olympics" felt close enough to that energy; at the time, it captured exactly what we were trying to do.&lt;/p&gt;

&lt;p&gt;It was a smaller hackathon-style event, about six to seven hours long, with 39 participants. It was essentially the first-year team's event through AMACSS, and leading it as First-Year Representative Coordinator made it feel especially personal. Many participants were beginners, and the room didn't feel like elite competition in the intimidating sense; it felt like collective learning. People were curious, experimenting, and just starting to see what they could build. We taught them how to use the tools and gave them a website template they could plug their work into so they could build faster. We wanted to reduce friction and maximize momentum, so they'd feel they could actually make something even if they were just getting started.&lt;/p&gt;

&lt;p&gt;One of my favourite small memories from that day is that we ordered coffee from Tim Hortons not once, not twice, but three times, because people kept wanting more, and everyone had apparently decided together that vanilla was the flavour of innovation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvt8lzz0jnfh87rgodo26.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvt8lzz0jnfh87rgodo26.webp" alt="A group selfie of AI Olympics participants and organizers in a lecture room." width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI Olympics&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Looking back, AI Olympics was small, but it wasn't small in meaning. It showed us that people wanted a space to learn, a space to build, and a space where AI felt exciting, approachable, social and full of possibility. The feedback made that obvious. People wanted to do it again: to keep learning, keep contributing, build in public. They wanted more. That was the moment the idea stopped feeling like a one-off event and started feeling like the beginning of a much larger mission. AI Olympics was the spark; GenAI Genesis was the system we built around it.&lt;/p&gt;
&lt;h2&gt;
  
  
  The moment it stopped being small
&lt;/h2&gt;

&lt;p&gt;Around then I was working very closely with Adib Fallahpour, who isn't just my co-founder but a good friend. I first worked with Adib through my first-year team, and over time it became clear we were on the same wavelength in a lot of ways. He's kind, a big thinker, and someone with strong vision. We both cared deeply about scaling this beyond its first version. Neither of us wanted it to stay a small campus event people vaguely remembered; we wanted it to become something that lasted.&lt;/p&gt;

&lt;p&gt;I still remember a moment in second year, when Adib and I were housemates. He came into my room and we started talking about what this could actually become. Not just another event or another student initiative, but a serious hackathon at scale: a home for people interested in AI, machine learning, software and ambitious building more broadly. That conversation stayed with me, because from then on this stopped being a nice idea and became a serious project. Like most ambitious student things, it began with a lot of conversations, a lot of hustle and a slightly unreasonable amount of belief.&lt;/p&gt;

&lt;p&gt;We started by defining it on paper. What exactly was GenAI Genesis? What would it look like at scale? What kind of experience were we trying to create? And what problem were we solving? To us, the problem felt clear. At the time, Toronto didn't have enough community around this space, not the entrepreneurial, energetic, builder-first AI ecosystem we wanted to see among students. There was talent, but not enough connected ambition; there were students interested in AI and ML, but not enough platforms bringing them together in a serious way. So we decided to build one.&lt;/p&gt;

&lt;p&gt;The name came together surprisingly quickly. We broke it into two parts. "Genesis" suggested beginning, emergence and evolution, and "GenAI" was the word in the air at the time. The name reflected that moment, but the mission was always broader than generative AI: it was about AI, machine learning, software, and the community around building them. Put together, it felt like a beginning worth naming.&lt;/p&gt;

&lt;p&gt;We didn't have a full team right away; at first we were figuring it out from scratch. Adib and I were both part of Google Developer Student Club, which gave us a starting point and people we knew we could bring in. Then we looked beyond Scarborough and reached across campuses, especially to St. George, where some of the strongest technical student communities already were. That's how collaborations took shape with groups like GDG, UTMIST and UofT AI, and later CSSU.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;An important distinction:&lt;/strong&gt; GenAI Genesis wasn't a club-created event that I happened to be involved in. Those groups mattered enormously, and their support helped the vision scale far beyond what we could have done alone in the early stages. They brought expertise, reach, operational support and legitimacy. But the mission itself, the initial push and the insistence that this had to exist, came from us.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I want to be careful and clear about that, because founder stories get flattened over time into partnerships, logos and sponsor lists. The truth is usually more human. It begins with a few people seeing a gap and deciding they aren't willing to leave it empty.&lt;/p&gt;
&lt;h2&gt;
  
  
  The people who helped us scale it
&lt;/h2&gt;

&lt;p&gt;Some of the most important early support came from people who believed in the idea and helped us take it seriously. Richard, from UTMIST, played a crucial role in 2024. He was a senior to us and incredibly strong operationally, and he helped us understand what it means to run something at scale, to think through logistics properly, and to turn energy into structure. Nimit, through UofT AI, also played a very important part in bringing the initiative together. Between them, Richard and Nimit helped us build the cross-campus support that let GenAI Genesis grow beyond its first form.&lt;/p&gt;

&lt;p&gt;Those collaborations mattered a lot, not because the event belonged to those communities, but because they helped us bring the mission to the scale it deserved. Sometimes scaling an idea isn't about finding people who will take it over. It's about finding people who understand it well enough to help it rise.&lt;/p&gt;
&lt;h2&gt;
  
  
  A quick timeline
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Year&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;th&gt;Why it mattered&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Winter 2023&lt;/td&gt;
&lt;td&gt;We ran AI Olympics through AMACSS with 39 participants&lt;/td&gt;
&lt;td&gt;It proved there was demand for a build-first AI space&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Winter 2024&lt;/td&gt;
&lt;td&gt;We launched the first large-scale GenAI Genesis&lt;/td&gt;
&lt;td&gt;The experiment became a serious institution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2025&lt;/td&gt;
&lt;td&gt;We scaled dramatically, with more sponsors, more prizes and many more submissions&lt;/td&gt;
&lt;td&gt;The hackathon became a recognized force in the student AI ecosystem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026&lt;/td&gt;
&lt;td&gt;We're taking it to our biggest scale yet&lt;/td&gt;
&lt;td&gt;Bigger footprint, bigger ambition, bigger future&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every row in that table was held together by a lot of invisible work: outreach, relationship management, budget stress, website iterations, venue uncertainty, and a hundred tiny decisions that never show up in a recap post.&lt;/p&gt;
&lt;h2&gt;
  
  
  2024: when the idea met reality
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbjx10fk6nnz9yzkxhxqk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbjx10fk6nnz9yzkxhxqk.webp" alt="Participants and organizers talking in a building atrium at GenAI Genesis 2024." width="800" height="535"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Getting Started with GenAI Genesis 2024&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The 2024 edition was when things got serious. In winter 2024 we launched the first large-scale GenAI Genesis in downtown Toronto. Until then the idea had energy, promise and momentum, but 2024 was when it had to pass the test every ambitious student project eventually faces: could we actually execute this at scale?&lt;/p&gt;

&lt;p&gt;That year taught me a lot, and I mean the kind of lessons that only show up when vision collides with logistics. We had to learn to work with a much larger team, coordinate across campuses, lead people with different styles, strengths and expectations, manage conflict and disagreement without letting it fracture the mission, build trust with sponsors, and make big promises responsibly.&lt;/p&gt;

&lt;p&gt;In the middle of all that, I was deeply involved in the work itself. From the very beginning until now I've led the website side of GenAI Genesis; tech has always been one of the areas I stayed especially close to. I was also heavily involved in sponsorships and partnerships: cold outreach, talking to organizations, building those relationships, and helping create the external support system that made the event possible. One of the most memorable parts was our connection with Google, and how that relationship went from something that felt surreal at first to a meaningful long-term thread in the GenAI Genesis story. There's a strange feeling when big names start trusting something you built. It's exciting, but it's also sobering, because it makes you realize how much is now at stake.&lt;/p&gt;

&lt;p&gt;The 2024 edition brought in support from names including Google, Knockri, Wombo, Vector Institute, the Academic Advising &amp;amp; Career Centre at UTSC, and the Rotman School of Management. Around 254 participants submitted a project, and we awarded roughly $3,000 in prizes. But what I remember most isn't just the numbers; it's how much we had to figure out on the fly. Booking the venue was a huge hassle, and a lot of things were fragile. Judging especially was something we didn't have perfect prior experience with at that scale. And yet, when the time came, the team handled it with surprising grace, making last-minute changes so the judging was fair, thoughtful and well run. That stayed with me, because it showed that even though we were new to this scale, we could rise to it. That was the year GenAI Genesis stopped feeling like a hopeful experiment. It felt real.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn80ehmq6nozocpn8o61r.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn80ehmq6nozocpn8o61r.webp" alt="A full lecture hall of participants with laptops at GenAI Genesis 2024." width="800" height="535"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;GenAI Genesis 2024&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;genesis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

  &lt;span class="na"&gt;v0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AI Olympics"&lt;/span&gt;
  &lt;span class="na"&gt;participants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;39&lt;/span&gt;
  &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;an experiment&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;a room full of beginners&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;a lot of coffee&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;a lot of belief&lt;/span&gt;
  &lt;span class="na"&gt;now&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;a cross-campus movement&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;a large-scale AI hackathon&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;a serious community&lt;/span&gt;
  &lt;span class="na"&gt;constant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;vision&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;people&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;momentum&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2025: scale changes everything
&lt;/h2&gt;

&lt;p&gt;Then came 2025, and 2025 felt different. It was the year GenAI Genesis started to feel less like an event and more like an ecosystem. We were no longer running entirely on instinct. We'd learned processes and built systems, and we understood much better what worked, what broke, what participants valued and what scale requires. We planned earlier, moved more formally and operated with more clarity.&lt;/p&gt;

&lt;p&gt;The leadership structure evolved too. In the earlier chapter the co-chair structure included me, Adib, Nimit and Richard. By 2025 they were me, Adib and Matthew Tamura. Matthew had already been a strong contributor in 2024 through UTMIST, and I deeply appreciated him: thoughtful, visionary and good at leading a team properly. In 2025 he stepped into a bigger leadership role with us, and it made a big difference.&lt;/p&gt;

&lt;p&gt;We also worked hard to improve the participant experience in ways that went beyond the surface. We brought in more sponsors, created more networking opportunities, designed stronger supporting events during the hackathon, sharpened the logistics and raised the whole experience, and the scale reflected it. In 2025 we gave around $15,000 in awards, and 621 participants submitted a project. We had backing from Google, BWC, Cohere, AMD, CGI, RBC, Northeastern University, Edge.io Solutions, the Academic Advising &amp;amp; Career Centre and the University of Toronto, and support from partners including the United Nations Association in Canada, One Degree Cooler, Vector Institute and Hack Canada.&lt;/p&gt;

&lt;p&gt;One of the most exciting moments that year was when AMD came in and supported us in a way that let participants run more complex machine learning workloads on an AMD GPU-backed local cluster. That felt genuinely wild. It was one of those moments where you step back and realize the hackathon isn't just getting bigger in numbers; it's getting more technically meaningful too.&lt;/p&gt;

&lt;p&gt;From the outside, growth can look glamorous. From the inside it often looks like spreadsheets, calls, follow-ups, contingency planning, team alignment, venue negotiations, technical troubleshooting, partnership mapping, and a hundred open loops in your head at once. People usually see the lights. Founders remember the wiring.&lt;/p&gt;

&lt;p&gt;By 2025 I was exhausted. Truly. But it was the kind of exhaustion that comes from building something you care about so much that you keep choosing it, again and again, even when it would be easier not to. There were many moments in those years when I could have spent my time on something else for my résumé, some other project or opportunity, some other clean, convenient line on paper. And again and again I chose GenAI Genesis, because by then it wasn't just a project. It was a commitment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv61djez3grm6j7j9fybh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv61djez3grm6j7j9fybh.webp" alt="Six people, some holding prize boxes, standing in front of a lecture hall at GenAI Genesis 2025." width="800" height="1067"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Some of the winners at GenAI Genesis 2025&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What people see vs. what it takes
&lt;/h2&gt;

&lt;p&gt;People usually experience a hackathon at the moment it becomes exciting. Founders experience it in the months before that, when it's still fragile. Building one like this isn't just posters and prize money. It looks more like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;sponsor outreach and partnership management&lt;/li&gt;
&lt;li&gt;website design and technical infrastructure&lt;/li&gt;
&lt;li&gt;judge and mentor coordination&lt;/li&gt;
&lt;li&gt;cross-campus relationship building&lt;/li&gt;
&lt;li&gt;team alignment across different working styles&lt;/li&gt;
&lt;li&gt;planning future editions before the current one is even over&lt;/li&gt;
&lt;li&gt;making sure the vision survives internal complexity&lt;/li&gt;
&lt;li&gt;solving ten operational problems before breakfast&lt;/li&gt;
&lt;li&gt;keeping something founder-led while still making it collaborative&lt;/li&gt;
&lt;li&gt;a lot of invisible thinking about what the next step even is&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A polished event always has a chaotic prequel, and a surprising amount of inner work goes into making sure the chaos doesn't win.&lt;/p&gt;

&lt;h2&gt;
  
  
  What GenAI Genesis has meant to me
&lt;/h2&gt;

&lt;p&gt;At one level, GenAI Genesis is about AI and machine learning. But if I'm honest, it has never only been about AI. It's about belonging, ambition and opportunity. It's about building the kind of space I wish there had been more of when I first arrived: a place where students don't just come to listen, collect swag and leave, but come to make things, meet each other, stretch, take themselves seriously, find their people, and realize they're more capable than they thought. That's what I wanted to create, and I think it's why this became more than a hackathon to me. It has become a community, a signal, a platform, and in some ways living proof that if you build the right room, the right people will find each other inside it.&lt;/p&gt;

&lt;p&gt;I've also learned a lot about myself through it. I learned how passionate I am about the things I truly care about, and how much I care about my team. I learned that leadership isn't something you perform; it's something you practice. I learned how much invisible thinking goes into visible outcomes, and that building something meaningful costs time, energy, sleep and sometimes other opportunities. But I also learned that some things are worth choosing repeatedly, and this was one of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The foundation behind the future
&lt;/h2&gt;

&lt;p&gt;As GenAI Genesis grew, it became more and more important that it could sustain itself beyond the intensity of one year, one organizing cycle or one group of students. That's a big part of why I helped establish the GenAI Genesis Foundation as an NGO, along with four other directors. That step mattered deeply to me. If GenAI Genesis was going to keep growing properly, it needed more than momentum: it needed structure, continuity and a long-term home. Founding the Foundation was part of making sure that what we built wouldn't just peak, but would endure, and I'm very proud of that.&lt;/p&gt;

&lt;h2&gt;
  
  
  People I want to thank
&lt;/h2&gt;

&lt;p&gt;No founder story is ever truly solo, and GenAI Genesis certainly wasn't.&lt;/p&gt;

&lt;p&gt;I started this with Adib Fallahpour, my co-founder, so I want to begin there. Thank you, Adib, for building this vision with me from the early days, for dreaming big, for caring deeply, and for helping turn a small experiment into something much larger than either of us could have reached alone.&lt;/p&gt;

&lt;p&gt;Thank you to Richard, who helped us significantly in 2024 through UTMIST. He brought strong operational guidance at a time when we were still learning how to scale properly, and his support played an important role in bringing the hackathon to life at a bigger level. Thank you to Nimit, who helped us through UofT AI and contributed meaningfully to the initiative's growth in its earlier large-scale chapter; cross-campus support mattered a lot, and Nimit was part of that story.&lt;/p&gt;

&lt;p&gt;For 2025, thank you to Matthew Tamura, who joined Adib and me as a co-chair that year. Matthew brought a lot of clarity, vision and leadership, and I deeply appreciated building that edition alongside him. And for 2026, thank you to Hasleen Kaur and Ivan Semenov, who are co-chairing this year with me. Both are wonderful people and wonderful friends, and I'm genuinely grateful to be building this chapter with them.&lt;/p&gt;

&lt;p&gt;Many more people have contributed to GenAI Genesis behind the scenes over the years: teammates, sponsors, organizers, mentors, judges, friends and supporters. I carry a lot of gratitude for all of them. Communities may remember the banner, but founders remember the people who helped hold it up.&lt;/p&gt;

&lt;h2&gt;
  
  
  And now, 2026
&lt;/h2&gt;

&lt;p&gt;What started as a 39-person experiment has grown into something far bigger, and in 2026 we're taking GenAI Genesis to its biggest scale yet. We're preparing to bring together close to 1,000 people in person, across three major spaces at the University of Toronto, Convocation Hall, Bahen and Myhal, to create an experience that's bigger not just in attendance but in ambition, energy and depth. This year feels different, not because the mission has changed, but because the scale has finally caught up with the size of the vision. This year we're going much, much bigger. We're crossing into four digits, building across multiple buildings, and thinking bigger than ever.&lt;/p&gt;

&lt;p&gt;This year is meaningful for me personally in another way too: 2026 will be my last year as Co-Chair of the hackathon, and after this I'll move into more of an advisory role. There's something beautiful about that, because one of the deepest measures of building something well is whether it can keep growing beyond the chapter where you're the one carrying it most directly. That's what I want for GenAI Genesis. I want it to outgrow any one person, any one year and any one team, and to keep being a place where ambitious students find each other, where builders take themselves seriously, where new ideas get room to breathe, and where community is a force multiplier rather than just a word on a poster.&lt;/p&gt;

&lt;p&gt;So if you've been watching from the sidelines, this is your sign. Join us on March 13, 14 and 15, 2026. Come build with us, meet the people shaping what comes next, and be part of something that started small but refused to stay small. And when you do, I hope you feel what I felt at the start of this whole journey: that strange, beautiful energy that appears when ambitious people gather around an idea and decide to make it real. That, in the end, is what GenAI Genesis has always been about.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect
&lt;/h2&gt;

&lt;p&gt;If this story resonated with you, feel free to connect with me online, follow GenAI Genesis, or reach out. I always love meeting people who care deeply about building communities, technology and meaningful things. You can see the 2026 event on the &lt;a href="https://genaigenesis.ca/" rel="noopener noreferrer"&gt;official GenAI Genesis website&lt;/a&gt;, look back at the &lt;a href="https://genai-genesis-2025.devpost.com/" rel="noopener noreferrer"&gt;2025 Devpost&lt;/a&gt;, follow &lt;a href="https://www.instagram.com/genaigenesis/" rel="noopener noreferrer"&gt;GenAI Genesis on Instagram&lt;/a&gt;, or &lt;a href="https://www.linkedin.com/in/alankritverma/" rel="noopener noreferrer"&gt;connect with me on LinkedIn&lt;/a&gt;. And if you want to build something meaningful together, reach out.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The original of this post is on &lt;a href="https://alankrit.me/writing/how-genai-genesis-began" rel="noopener noreferrer"&gt;my site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>hackathon</category>
      <category>community</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
