← All people

Damien Benveniste

Voice

Author of The AiEdge newsletter; writes on machine learning systems and LLMs.

The AiEdge ↗

Recent posts

How LLM Rerankers Order Retrieved Passages

A reranker takes a question and a shortlist of retrieved passages, reads them again, and changes their order before a large language model (LLM) receives its context. The first search finds candidates across a large...

How Looped Transformers Reuse Their Weights

A looped Transformer reuses a group of neural-network layers several times before predicting the next token. Each pass receives the hidden representations produced by the previous pass. Those representations are the...

How the KV Cache Shapes AI Agent Costs

An AI agent can spend most of a model call reading a history it has already processed. The KV cache preserves the keys and values that a causal Transformer computed for earlier tokens, at each attention layer. Later...

How Hybrid LLMs Combine Memory, Attention, and Experts

A hybrid LLM processes a sequence with more than one kind of memory. Some layers update a compact running state as tokens arrive. Other layers retain representations of individual positions and consult them through...

How Persistent Agents Keep Working

A persistent agent keeps a task moving after the model's current context, the worker process, or the execution environment has ended. It does that by saving enough information outside those components to reconstruct the...

How Self-Improving Agents Learn from Experience

A self-improving agent uses evidence from earlier tasks to change something retained for later tasks, then demonstrates better behavior on new runs. The change might be a prompt, a tool, a reusable procedure, or the...

Build a Jev-Supervised AI Agent

An AI agent does more than write its final answer. It chooses a tool, reads the result, decides whether to continue, and sometimes has to admit that an action's outcome is unknown. TypeSafe released Jev in September...

How Jev Turns Questions Into Decisions

Jev is a decision model whose interface asks bounded questions about a supplied state and returns probabilities over the allowed answers. A support system might ask which queue should receive a ticket, whether a tool...

How AI Agent Memory Updates a Changed Preference

An AI coding assistant can remember that you use Python for deployment scripts and still get the next deployment wrong after you switch to Go. The problem is not that it forgot everything. It may remember both...

How LLM Routers Balance Cache Reuse and Queue Time

An LLM request router sits in front of several replicas of the same model and chooses which replica should receive each prompt. Cache-aware routing makes that placement decision before execution by considering reusable...

Four Retrieval Techniques for Video Search

Video looks like one input, but an AI cannot inspect it as one indivisible object. A two-hour recording is a sequence of changing images, sound, speech, and timestamps. Before a model can answer a question, some system...

Deep Dive: How AI Text Watermarks Work

An AI text watermark leaves detectable evidence in the words a model chooses. During generation, a secret scoring rule helps select the next piece of text. Later, a detector with the matching key can reconstruct that...

Deep Dive: How Speculative Decoding Makes LLMs Faster

Speculative decoding can make a coding assistant respond faster by having a small model propose several future tokens for a larger model to check together. The larger model, called the target, still determines the...

AI Digest: Model Validation, Agents, and Generative AI

This edition explores how a model can pass validation for the wrong reason, how an agent can earn a reward without completing its task, and what makes a tool retry safe after a crash.We'll also look inside speculative...