ML researcher Umar Jamil presents benchmark results from his paper 'Writing in the Margins,' which uses chunked KV cache prefilling to boost LLM long-context retrieval.
“As you can see, for example smaller models have a better more more improvement.”
quote is from the automated transcript, cleaned for reading:
filler sounds and stutters are removed, nothing is rephrased. names can be misheard
(the analysis reads context, assessments check outside sources). how →
More from Umar Jamil
AssertionSupported
Jamil: Writing in the Margins solves the lost-in-the-middle problem
“It improves the ability of any language model to extract relevant information, so solving the lost in the middle problem”
Umar JamilSep 19, 2024▶ 22:54[Paper Club] Writing in the Margins: Chunked Prefill KV Caching for Long Context Retrieval
AssertionSupported
Jamil: 'Writing in the Margins' works on any transformer without fine-tuning
“So it can be used with any transformer model without fine-tuning, just by doing it, just by doing this inference differently.”
Umar JamilSep 19, 2024▶ 13:32[Paper Club] Writing in the Margins: Chunked Prefill KV Caching for Long Context Retrieval
AssertionNot checkable as stated
Jamil: Chunked prefill is experimental in vLLM, likely used by majors
“This is called the chunked pre-fill, and it's an experimental feature that has been recently introduced in VLLN, but it's probably used in more sophisticated inference engines at major companies.”
Umar JamilSep 19, 2024▶ 6:07[Paper Club] Writing in the Margins: Chunked Prefill KV Caching for Long Context Retrieval
Insight
Jamil: Writing in the Margins avoids re-prefilling tokens, halving compute cost
“Again, to the language model to generate the answer, and it would cost you another million, because the model has to reprocess this prefilling again of one million tokens, so it would cost you two million tokens, but with writing in the margins, it would cost …”
Umar JamilSep 19, 2024▶ 16:43[Paper Club] Writing in the Margins: Chunked Prefill KV Caching for Long Context Retrieval
Insight
Masking out prior KV cache tokens pushes autoregressive transformers out of distribution
“The token number two in the KVCache is a contextualized version of the token zero, one, and two. So if you tell the model to only look at the last tokens you are creating an autoregressive model that is generating the logits of a P of let's say X, but only loo…”
Umar JamilSep 19, 2024▶ 33:09[Paper Club] Writing in the Margins: Chunked Prefill KV Caching for Long Context Retrieval
AssertionNot checkable as stated
Jamil: OpenAI and Cohere Overlap Prefill and Generation to Maximize GPU Utilization
“Token generation is memory bound means that the limitation is only given by how much your KVCache can hold. So the memory can hold in terms of KVCache. While prefilling is compute bound, so to maximize the GPU utilization, whenever you work with OpenAI or Cohe…”
Umar JamilSep 19, 2024▶ 43:05[Paper Club] Writing in the Margins: Chunked Prefill KV Caching for Long Context Retrieval
Made with StarZero
Turn any episode into a week of clips.
This entire site, over 200 episodes transcribed, diarized, checked and made playable,
runs on the StarZero media pipeline. Drop in your own episode and the podcast clipper finds the
moments worth sharing, cuts them, captions them, and reframes them for every feed.
We use essential cookies to make the site work. With your permission we
also use analytics cookies (Google Analytics and Mixpanel) to understand
usage and improve StarZero. See our Cookie Policy.