GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo

THE RESEARCH LIBRARY · PAPERS FOR FDES

AI research, explained for the work.

100 papers on building, evaluating and serving AI. Understand the mechanism, examine the evidence, and see what changes when you put the idea into production.

Explore the library Every paper starts with a free summary.
The guided starting pathProduction foundations → retrieval → agents → serving
  1. STAGE 01

    Understand production work

    Describe a customer workflow, its dependencies, what success means and who owns it after launch.

    1. 01Hidden Technical Debt in ML Systems
    2. 02Measuring Agents in Production
  2. STAGE 02

    Understand the model and grounding

    Explain the architecture and build a basic question-answering app over documents.

    1. 03Attention Is All You Need
    2. 04RAG
  3. STAGE 03

    Measure retrieval and answers

    Build a small eval set and test evidence placement, retrieval quality and faithfulness.

    1. 05Lost in the Middle
    2. 06Ragas
  4. STAGE 04

    Add controlled actions

    Give an agent a few well-designed tools, clear stopping rules and useful feedback.

    1. 07ReAct
    2. 08SWE-agent
  5. STAGE 05

    Evaluate reliability

    Write a rubric, check the judge against humans, and run repeated and perturbed tests.

    1. 09LLM-as-a-Judge
    2. 10AI Agent Reliability
  6. STAGE 06

    Understand customization and serving

    Say when adaptation could help, and how context length and concurrency set the memory bill.

    1. 11LoRA
    2. 12PagedAttention and vLLM

Find your next paper

Browse by topic, or search for an idea.

100 papers

PART 1

Foundations

The ideas every system you deploy is built on.
2015 Read first

Hidden Technical Debt in ML Systems

Google's 2015 field guide to why ML systems are cheap to build and expensive to keep alive, and where the cost hides when nobody is looking.

14 min breakdownRead summary
2017 Read first

Attention Is All You Need

The 2017 Google paper that introduced the Transformer: attention and position information in place of recurrent and convolutional layers.

12 min breakdownRead summary
2020

GPT-3: Few-Shot Learners

The 2020 OpenAI paper that showed a big enough model can learn a task from a few examples in its prompt, no fine-tuning, and made prompting a discipline.

13 min breakdownRead summary
2022

InstructGPT

The 2022 OpenAI paper that turned GPT-3 into an assistant with human feedback, and showed a 1.3B model people preferred to the 175B original.

12 min breakdownRead summary
2022

Chain-of-Thought Prompting

The 2022 Google paper that showed examples with their working shown, not just their answers, can triple a large model's accuracy on multi-step problems.

11 min breakdownRead summary
2020 Read first

RAG

The 2020 paper that named RAG: a generator paired with a searchable index, so a model's knowledge can be checked, cited and updated without retraining.

11 min breakdownRead summary
2019

Sentence-BERT

The 2019 paper that made BERT usable for semantic search: one vector per sentence, compared by cosine, turning a 65-hour job into 5 seconds.

11 min breakdownRead summary
2023 Read first

Lost in the Middle

The 2023 Stanford paper that showed models use evidence at the start and end of a long prompt far better than in the middle, sometimes worse than no evidence at all.

11 min breakdownRead summary
2018

BERT

Select 15% of tokens for prediction, train a Transformer encoder with context from both sides, then fine-tune for each task. BERT set records on eleven language benchmarks.

10 min breakdownRead summary
2023

Mamba

Make a state space model's update depend on the current token, so it can choose what to remember, and run it as a fused GPU scan. Transformer-level quality to 2.8B parameters with no KV cache.

11 min breakdownRead summary
2024

DeepSeek-V3

A 671B mixture-of-experts model, 37B active per token, trained in FP8 for 2.788M H800 GPU-hours, with a compressed attention cache and bias-balanced experts. Read the cost line closely.

11 min breakdownRead summary
PART 2

Building and evaluating LLM apps

Agents, pipelines, structured output and how to grade them.
PART 3

Retrieval, documents and memory

Getting the right context in front of the model, and keeping it.
2024

RAG or Long-Context LLMs?

The 2024 Google DeepMind study that found long context beats RAG on quality, RAG wins on cost, and a model that says when it cannot answer can route between them.

11 min breakdownRead summary
2024

Late Chunking

The 2024 Jina AI paper that fixes chunks losing their context: run the whole document through the embedding model first, then cut the token vectors into chunks.

10 min breakdownRead summary
2024

GraphRAG

Microsoft's 2024 paper on answering questions about a whole corpus, not one passage: build an entity graph, summarize its communities, then map-reduce over the summaries.

11 min breakdownRead summary
2024

ColPali

The 2024 paper that skips PDF parsing: embed each page image with a vision-language model into many small vectors, and let tables, charts and layout count in search.

10 min breakdownRead summary
2026Recent

Qwen3-VL Embedding and Reranker

Alibaba's 2026 report on one embedding model and one reranker for text, images, document pages and video, and the trade-offs of dimensions, precision and reranking.

10 min breakdownRead summary
2026Recent

RAGPerf

The 2026 UIUC and IBM benchmark that profiles a RAG system stage by stage and finds where the time, memory and money really go, rarely where teams look.

10 min breakdownRead summary
2025

Agentic Context Engineering (ACE)

The 2025 Stanford and SambaNova paper that improves agents by growing a detailed playbook of lessons in their context, with small edits instead of rewrites, and no weight updates.

11 min breakdownRead summary
2025

Recursive Language Models

The 2025 MIT paper that stops stuffing long inputs into the context window: put the input in a variable, let the model write code to slice it and call itself on the pieces.

11 min breakdownRead summary
2025

Mem0

The 2025 paper behind the Mem0 memory layer: extract facts from conversations, keep them current with add, update and delete, and trade a little accuracy for a lot of speed.

10 min breakdownRead summary
2023

Self-RAG

Train a model to emit its own control tokens: whether to retrieve, whether a passage is relevant, whether each sentence is supported. Beam search on those scores; strong results, with fine print.

12 min breakdownRead summary
2024

RAPTOR

Cluster a document's chunks, summarize each cluster, repeat to a root, and search every level at once: broad questions get summaries, narrow ones get chunks. Gains are modest.

11 min breakdownRead summary
2024

RAFT

Fine-tune on questions paired with the right document plus distractors, with answers that quote the right one, so the model learns to read past bad retrieval. Strong on APIs; read the tables closely.

10 min breakdownRead summary
PART 4

Agents, evaluation and security

What agents do in the real world, how they fail, and how they are attacked.
2024 Read first

SWE-agent

The 2024 Princeton paper that showed an agent's tools matter as much as its model: a purpose-built interface for searching, viewing and editing code beat a raw shell by seven points.

10 min breakdownRead summary
2024

AI Agents That Matter

The 2024 Princeton critique of agent benchmarks: report cost next to accuracy, compare against simple baselines, keep a real held-out set, and stop mistaking leaderboards for procurement advice.

11 min breakdownRead summary
2025

Why Multi-Agent Systems Fail

Berkeley read 1,642 traces from seven multi-agent frameworks and named 14 ways they fail. Most failures trace back to how the agents are organized and checked, not to the model inside them.

14 min breakdownRead summary
2025 Read first

Measuring Agents in Production

Twenty deployment teams and 86 deployed systems describe how agents actually ship: frontier models prompted by hand, fixed workflows, short leashes and humans checking the output.

13 min breakdownRead summary
2023

Reflexion

The 2023 paper that taught agents to learn from failure without training: after each failed attempt, the model writes itself a lesson and reads it on the next try.

12 min breakdownRead summary
2023

SWE-bench

The benchmark that moved coding evaluation from toy functions to real repositories: 2,294 GitHub issues, each graded by the project's own tests. In 2023 the best model fixed under 2%.

12 min breakdownRead summary
2026Recent

τ-Knowledge

A support-agent benchmark built like a real deployment: 698 interlinked bank documents, tools you can only find by reading them, and a simulated customer. The best agent passed a quarter of tasks.

13 min breakdownRead summary
2026 Read firstRecent

AI Agent Reliability

Princeton borrowed reliability engineering from aviation and nuclear power, turned it into twelve metrics for AI agents, and found that two years of accuracy gains bought only small reliability gains.

13 min breakdownRead summary
2026Recent

SkillsBench

Agent Skills, folders of instructions and scripts an agent loads on demand, lifted pass rates from 34% to 51% across 18 agent setups. Focused Skills helped most; self-written ones hurt.

12 min breakdownRead summary
2026Recent

ττ-bench (hyper-tau-bench)

A benchmark that turns an FDE engagement into the task: messy records, a client to interview, a flaky API and a serving budget. AI-built agents scored under a third of an expert's.

14 min breakdownRead summary
2024

AgentDojo

The standard testbed for prompt injection against tool-using agents: 97 tasks, 629 attack cases, and a finding that the most capable models were often the easiest to hijack.

13 min breakdownRead summary
2026Recent

Indirect Prompt Injection Arena

464 red-teamers made 272,000 attempts to hijack 13 frontier agents and make them hide it. Every model fell at least sometimes, and attacks that beat the strongest model worked almost everywhere.

13 min breakdownRead summary
PART 5

Customization and reasoning

Changing a model's behavior, and paying for it to think longer.
PART 6

Serving, latency and cost

What makes inference fast, cheap and able to hold many users.
2022

FlashAttention

The 2022 Stanford kernel that made attention fast by counting memory trips, not math: exact attention computed in on-chip tiles, several times faster, with memory linear in sequence length.

11 min breakdownRead summary
2023 Read first

PagedAttention and vLLM

The Berkeley paper behind vLLM: manage the KV cache like operating-system virtual memory, in small pages allocated on demand, and serve 2 to 4 times more requests on the same GPU.

13 min breakdownRead summary
2023

AWQ

MIT's 4-bit weight quantization that asks the activations which weights matter, protects about 1% of channels by scaling instead of keeping them in 16-bit, and runs over 3× faster than FP16 on GPUs.

11 min breakdownRead summary
2023

SGLang

A serving system for programs that call a model many times: it caches KV across requests in a radix tree, decodes fixed JSON text in one step, and ran agent workloads up to 6.4× faster.

11 min breakdownRead summary
2024

DistServe

Prefill is compute-bound and decode memory-bound, so sharing one GPU makes each slow the other. DistServe splits them onto separate GPUs and served up to 7.4× more requests within latency targets.

12 min breakdownRead summary
2025

LMCache

Treat the KV cache as data that outlives the request: store it beyond the GPU, move it in big chunks, and reuse it across queries and engines. With vLLM, up to 15× throughput.

12 min breakdownRead summary
2024

RouteLLM

Train a small router on human preference data to send each query to a strong, costly model or a weak, cheap one. On MT Bench it reached 95% of GPT-4's score using GPT-4 for 13% of queries.

12 min breakdownRead summary
PART 7

Beyond text

Vision, speech and the tabular baseline you should always try first.
PART 8

Harness design and boundaries

The engineering around the model: what it may touch, what it is told, and how you tell a change helped.
2026Recent

Agent harness design decisions

A source-reading survey of 70 public agent projects that names the five decisions every harness makes. Its vocabulary is useful; several of its headline statistics cannot be reproduced.

14 min breakdownRead summary
2026Recent

Harness design for coding agents

Hold the agent loop fixed, vary one harness component at a time, and measure. Context management, planning and tool choice each helped some models and hurt or merely cost others.

15 min breakdownRead summary
2026Recent

Meta-Harness

Let a coding agent rewrite the code around a model, reading every earlier attempt's code, scores and traces. It beat hand-built harnesses; its biggest lesson is that raw traces beat summaries.

13 min breakdownRead summary
2026Recent

Evaluating AGENTS.md

Coding agents follow the instructions in AGENTS.md files closely. On 438 real tasks, those files did not make them solve more, and every agent spent 8 to 50% more per task.

13 min breakdownRead summary
2026Recent

Auditing agent harness safety

An agent can hand back the right answer after reading records it should not, leaking data between agents, or calling tools it was never given. This benchmark audits the whole run, not the reply.

13 min breakdownRead summary
2025

CaMeL: prompt injection by design

Stop asking the model to resist injected instructions. Have it write a plan before it sees any untrusted data, then let an interpreter track where every value came from and enforce who may receive it.

15 min breakdownRead summary
2025

AgentSpec

Write safety rules as trigger, check and enforce, and run them before every agent step. Hand-written rules stopped most risky actions in milliseconds; rules written by an LLM were patchier.

13 min breakdownRead summary
2025

Prompt injection design patterns

Six ways to build agents that resist prompt injection by limiting what untrusted text can touch, worked through ten real applications. The trade is plain: every pattern gives up some generality.

14 min breakdownRead summary
PART 9

Actions, tools and orchestration

How an agent expresses actions, runs independent work at once, and divides a task among roles.
2024

CodeAct: code as the action format

Let an agent act by writing Python instead of one JSON tool call at a time. On multi-tool tasks the best model solved 74% against 52% with JSON; on single calls JSON was as good or better.

13 min breakdownRead summary
2023

Toolformer

A model writes candidate API calls into ordinary text, keeps those whose results make the next words easier to predict, and trains on them. A 6.7B model learned when to call a calculator.

13 min breakdownRead summary
2022

PAL: program-aided language models

Have the model translate a word problem into Python and let the interpreter compute. Codex beat a 540B model on grade-school math, and led by 38 points once the numbers got large.

11 min breakdownRead summary
2023

ReWOO: plan before you observe

Write the whole tool plan up front with placeholders for results, run the tools, answer once. Tokens fell about fivefold versus ReAct, but the plan cannot adapt to what tools return.

13 min breakdownRead summary
2023

LLMCompiler: parallel function calls

Plan tool calls as a dependency graph, then run every call whose inputs are ready at the same time. Against ReAct this cut latency up to 3.7× and cost up to 6.7×, with similar accuracy.

12 min breakdownRead summary
2024

Agentless

Fix GitHub issues with a fixed localization, repair and validation pipeline. Agentless resolved 32% of SWE-bench Lite for $0.70 per issue, leading the open-source systems in the paper's comparison.

13 min breakdownRead summary
2024

OpenHands

An open platform for agents that work like developers: one event stream of actions and observations, a sandboxed runtime with shell, Python and browser, and agents that hand off to each other.

12 min breakdownRead summary
2023

AutoGen

Microsoft's framework for building LLM apps as conversations between agents that write code, run it, ask humans and check each other, and what its own results say about when more agents help.

16 min breakdownRead summary
2024

Magentic-One

Microsoft's five-agent team led by an Orchestrator that keeps a task ledger and a progress ledger, re-plans when stuck, and was scored with error bars that show what a leaderboard can't tell you.

15 min breakdownRead summary
2024

AFlow

Treat an LLM workflow as code and let Monte Carlo tree search, with an LLM proposing one edit at a time, find a better one. It beat hand-built workflows on six benchmarks. Read the evaluation closely.

14 min breakdownRead summary
PART 10

Planning, feedback and improvement

Search, critique and optimization loops, and the evidence that says whether they helped.
2025

GEPA

A prompt optimizer that reads its failures in plain language, rewrites one module's prompt at a time, and keeps every prompt that wins somewhere. It beat GRPO on five of six tasks with fewer rollouts.

15 min breakdownRead summary
2024

TextGrad

Backpropagation with words: an LLM critiques each step of a pipeline, critiques flow backward through the graph, and an LLM rewrites prompts, code or answers. A PyTorch-style API, uneven evidence.

13 min breakdownRead summary
2023

Tree of Thoughts

Let the model propose several next steps, judge which are still promising, and search with backtracking. On the Game of 24, GPT-4 went from 4% to 74%, at a cost the paper itemizes.

13 min breakdownRead summary
2022

Self-Consistency

Sample many chain-of-thought answers and take the majority vote. A one-line change that added up to 17.9 points on GSM8K, and whose agreement rate doubles as a confidence score.

12 min breakdownRead summary
2023

Self-Refine

One model drafts, critiques its own draft, and rewrites it, up to four times. Big gains on style and constraint tasks, none on math, and a headline average that mixes win rates with scores.

12 min breakdownRead summary
2023

LLMs Cannot Self-Correct Reasoning Yet

Asked to review and fix their own reasoning with no outside signal, GPT-3.5, GPT-4 and Llama-2 got worse on every benchmark. The earlier gains came from answer keys and unequal compute.

11 min breakdownRead summary
2024

The Prompt Report

A systematic survey of 1,565 prompting papers: a shared vocabulary, 58 text techniques in six families, a small benchmark, and a 47-step case study that shows how fragile hand prompt engineering is.

12 min breakdownRead summary
PART 11

Memory and context

What persists across turns and tasks, and how long work fits inside a context window.
2023

MemGPT

Treat the context window like RAM: a small editable working memory in the prompt, everything else in searchable storage, and the model paging data in and out itself through function calls.

12 min breakdownRead summary
2023

Generative Agents

Twenty-five simulated townspeople with a memory stream, reflection and plans. The retrieval score behind them, recency plus importance plus relevance, became the template for agent memory.

13 min breakdownRead summary
2023

Voyager

A GPT-4 agent that teaches itself Minecraft by proposing its own next task, writing code, checking the result, and saving what works as a reusable skill. Memory here is a library of verified programs.

12 min breakdownRead summary
2024

Agent Workflow Memory

Web agents that turn successful runs into reusable, abstracted workflows and improve as they work: WebArena success from 23.5% to 35.5% with no human-written workflows. Check what is relative.

11 min breakdownRead summary
2025

A-MEM

Memory as Zettelkasten: each interaction becomes a note with LLM-written keywords and context, linked to related notes; old notes are rewritten as new ones arrive. Big temporal gains, mixed elsewhere.

11 min breakdownRead summary
2025

MemOS

A memory operating system for LLM apps: text, KV-cache and parameter memories in one governed unit, the MemCube, with scheduling, lifecycle and access control. Strong benchmarks, run by the vendor.

12 min breakdownRead summary
2024

LongMemEval

500 hand-written questions buried in user-assistant chat histories up to 1.5M tokens, testing five memory abilities. Long-context models lost 30-55% of their accuracy; commercial memory did worse.

12 min breakdownRead summary
2025

Context-Folding

Give an agent two tools, branch and return, so it can do token-heavy work in a side thread and keep only the result. Trained with RL, a 32K-context agent matched a 327K one. Mind which baseline.

12 min breakdownRead summary
2024

LLMLingua-2

Compress prompts 2-5x with a small encoder that decides, word by word, what to keep, trained on GPT-4's deletions. Fast and faithful in domain; behind question-aware compression out of it.

11 min breakdownRead summary
2023

Prompt Cache

Precompute the attention states of reusable prompt pieces once and splice them into later prompts: 5 to 10 times faster first tokens, with an approximation that can cost accuracy.

12 min breakdownRead summary
2026Recent

Context Language Models

Give the model write access to its own context, as a file it edits with Bash, and let it invent its own compaction. Beats fixed harnesses at lower compute in most tests, with caveats in the setup.

13 min breakdownRead summary
2026Recent

U-Fold

Keep the full history, and on every user message rebuild a small working context: a summary with a to-do list plus verbatim lines from past tool output. Small gains over ReAct, big ones under noise.

11 min breakdownRead summary
2026Recent

ContextBench (coding agents)

1,136 real issues with expert-traced gold code, so you can score what a coding agent read, not only whether its patch passed. The retrieval scores did not rank agents the way solve rates did.

11 min breakdownRead summary
2025

Lost in Multi-Turn Conversation

Across 15 models and six tasks, splitting instructions across turns lowered scores by 39% on average. Early answers and persistent wrong assumptions made conversations less reliable.

12 min breakdownRead summary
PART 12

Systems classics for agents

Older rules about failure, authority and latency that every agent with real actions inherits.

“Most cited” uses dated Semantic Scholar counts shown on each paper. Citation counts describe research influence, not a recommendation for your system.