Skip to content
NEWBudgetBench: memory strategy evaluation under a fixed token budget (arXiv:2609.13149) →
Aditya Karnam

I work across the AI stack, from silicon to software factories.

I am an AI research engineer. I work on the full path from hardware to product: inference performance on Apple Silicon, small-model training and distillation, agent systems and harnesses, retrieval and memory, evals, and the software factories that put them to work.

The work runs the whole stack: roofline and decode studies on Apple Silicon, a 6,000-row LongMemEval benchmark, a Rust coding agent, and a retrieval library over 15+ backends. Every result ships with its harness and its limits, and bugs I find get fixed upstream.

Research · Writing · Live · About · Contact

Pace and depth

2024-11: 27 contributions2024-12: 37 contributions2025-01: 21 contributions2025-02: 1 contributions2025-03: 8 contributions2025-04: 28 contributions2025-05: 22 contributions2025-06: 17 contributions2025-07: 40 contributions2025-08: 70 contributions2025-09: 64 contributions2025-10: 47 contributions2025-11: 34 contributions2025-12: 12 contributions2026-01: 6 contributions2026-02: 190 contributions2026-03: 164 contributions2026-04: 263 contributions2026-05: 145 contributions2026-06: 78 contributions2026-07: 578 contributions2026-08: 497 contributions2026-09: 324 contributions2026-10: 88 contributions2026-11: 86 contributionsNOV 2024NOV 2026
6.6x
more shipped in 2026 than in 2025
6/6
layers of the AI stack, from agents down to silicon
25/25
months active on GitHub, without a break
Thought leadership14 frameworks, 8 books and 2 white papers on governing AI agents, co-authored with Arjun JaggiRead the frameworks →

Wins and reach

15+
Vector backends behind one embenx API
~1.3 MB
Quecto agent core, two direct dependencies
7.8K
Stars on mlx-lm (1.2K forks), where my merged PR fixed LoRA on 3 MoE models
185
GitHub stars on mcp-scholarly, a paper-search MCP server (27 forks)
2
arXiv preprints: BudgetBench and CAG
10
Papers, theses and journal articles on my Scholar profile

Research

All research
Paper · 20260.646BudgetBench: memory strategy evaluation under a fixed token budgetOn LongMemEval (500 questions), retrieval at a 2K budget scored 0.646; truncation needed 8K to reach 0.650. arXiv:2609.13149.LimitWhether a budgeted strategy matches full context is unresolved: no paired interval on either model establishes equivalence.Distillation · 2026+5.5 MMLUOrnith-1.5-9B, two-teacher distillation on MLXA 4.9 GB build scores +5.5 MMLU and +3.0 HumanEval over the 8.9 GB release it replaces; the gain comes from reasoning termination, not knowledge.LimitOne model, one machine. None of the original MMLU, TruthfulQA or HumanEval targets were reached.Inference · 2026+119%Speculative decoding on Apple SiliconQwen3.8-27B with a 0.8B draft model peaks at a 119% decode speedup, after patching mlx_lm to accept its hybrid attention cache.LimitDepends on unmerged upstream PR #1486. One draft-to-target ratio (0.8B:27B) tested.Inference · 2026~80xWhy batching does not fix decodeOn an M5 Pro, GEMM holds a flat ~80x throughput advantage over GEMV, which is why batching helps prefill and barely touches decode.LimitOne chip, one framework (mlx 0.32.0, float16). Per-size ratios ran about 64x to 108x; nothing measured below 1,024.Retrieval · 20262.7xTokens per paper: DocLang vs Docling vs raw PDFDocLang costs 2.7x markdown tokens on a stock tokenizer and loses on retrieval; 38% of the paper was bibliography and boilerplate.LimitTwo papers and one small embedder. The recall difference is within noise at this sample size.Numerics · 20258.9e-4MLX non-determinism on Apple SiliconThe same matrix multiply, computed two ways on an M2, differs by a relative error of 1.6e-5 at 512x512 and 8.9e-4 at 4096x4096.LimitOne chip, an M2 MacBook Pro. Values are approximate and the post reports no run-to-run variance.
Ask my work
Ask about the work
Ask about projects, research direction, or what a recruiter, engineer, or researcher should know about this work.

Research areas

Hardware and inference

What serving stacks do on real silicon: roofline limits, batching, memory walls and numerical reproducibility on Apple Silicon.

Models and distillation

Small-model fine-tuning and distillation, measured against the larger models they are meant to replace.

Agents and software factories

Harnesses, runtimes and orchestration for coding agents, built so their behavior can be inspected.

Retrieval and memory

Vector backends, temporal memory and context budgets: how agents remember within a fixed cost.

Evaluation

Protocols and harnesses that score behavior under constraints, including the null results.

Applied ML

Machine learning for healthcare and evolutionary methods for network analysis, from earlier published work.

Selected writing

All posts

Open source and systems

  • mlx-lm

    Added mx.stop_gradient to MoE router indices so LoRA training no longer crashes on granitemoe, granitemoehybrid and lfm2_moe.

  • embenx

    One Collection API across 15+ vector backends, with hybrid search, temporal memory and an MCP server.

  • subagent-fleet

    Routes coding-agent subagents across local Ollama machines with health checks, warmup and a live dashboard.

  • quecto

    A ~1.3 MB synchronous core with two direct dependencies, SQLite-backed sessions and an approval-gated sandbox.

  • awesome-agentic-memory

    mem0, Letta, Zep, A-MEM and others compared by memory type, backend and MCP support.

Principles

01
Measure first

Write down the number before changing anything, then change one thing.

02
Publish the nulls

Negative results and bugs in my own measurements go in the write-up.

03
Small and inspectable

Prefer systems whose traces, tool calls and evals someone else can read.

Off the clock

I love old NES games and I cook. Both are lessons in constraints: a few kilobytes of RAM, one pan, whatever is in the fridge. I bring the same habit to benchmarks.

Currently

Now

Making local agent runtimes observable (subagent-fleet), turning retrieval into durable memory infrastructure (embenx), and keeping the agent-memory map current. Next up: a write-up on why agent memory is not just retrieval.

Explore the site

Research →Papers, experiments, questionsWriting →Agents, memory, local inferenceSystems →Runtimes, retrieval, toolingLive →Try paper search and running toolsQuecto →A 1.3 MB agent harness in RustToolkit →Prompt tools, memory frameworksAbout →From genetics to AI systems

Contact

Find me on GitHub, LinkedIn or Twitter.

© 2026 Aditya Karnam