🔍 Read the full analysis: A Guide To Sliding Windows And Context In LLM Training on ThorstenMeyerAI.com
Get hardware and tech essentials delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
TL;DR
A November 22 explainer from ThorstenMeyerAI.com describes how language models train on fixed-length token sequences and use context windows as working memory when answering prompts. It explains why full attention becomes more computationally expensive as windows grow, and why a million-token limit does not mean a model will use every part equally well.
ThorstenMeyerAI.com published an explainer on November 22 describing how large language models train on fixed-length text windows and use context windows to process prompts. The report says that leading models listed windows of about one million tokens as of that date, but cautions that a larger window does not guarantee reliable use of every detail and can raise computing costs and response times.
The article distinguishes two related meanings of a window. During training, text is divided into sequences of tokens, which are pieces of words or whole words depending on the tokenizer. The model learns to predict the next token at each position. The GPT-3 paper by Brown and colleagues said training used sequences of the full 2,048-token context window, combining shorter documents into a sequence and splitting longer ones where needed. A causal mask prevents predictions at a given position from using later tokens.
During use, the context window is the text a model can reference while generating a response. According to Anthropic’s documentation, it includes the prompt, conversation history, attached material and the response itself. The explainer calls this the model’s working memory: if all of those tokens do not fit, some material must be excluded or otherwise managed.
The report lists context windows of approximately one million tokens for several 2026 flagship offerings from Anthropic and Google, and 1,050,000 tokens for two OpenAI models, with up to 922,000 available for input. These are figures reported by the source as checked November 22, 2026, not an independent test of how well the models retrieve information across those windows.
The Cost of Longer Context
Longer windows let users provide more material in a single request, which can be useful for questions involving lengthy contracts, reports or conversation histories. But window capacity is not the same as dependable comprehension. The source cites the Lost in the Middle study, in which GPT-3.5-Turbo answered correctly 75.8% of the time when relevant information appeared at the beginning of a document and 53.8% when it appeared in the middle; the reported result with no documents was 56.1%. Those figures concern that study’s model and test setup, not all current models or every document task.
Cost and speed also matter. The explainer says full self-attention compares tokens across a sequence, with work scaling approximately as the square of sequence length. Under that scaling, doubling the number of tokens means roughly four times the attention work, with constant factors omitted. Longer prompts can also increase token-based charges. The source notes that some vendors charge more above specified thresholds and that prompt caching can reduce the cost of repeated material. The precise bill and latency depend on the model and provider.
Products Worth Considering

Apple MacBook Pro 16.3-inch with PROLED XDR Display, Silver

LG UltraGear 27GX700A-B 27-Inch QHD OLED Gaming Monitor

LG UltraGear 34G600A-B 34-Inch Curved WQHD Gaming Monitor
As an affiliate, we earn on qualifying purchases.
From 2,048 Tokens to Millions
The explainer traces the growth in advertised context limits from GPT-3’s 2,048 tokens in 2020 to million-token-scale windows listed for products from Anthropic, OpenAI and Google in 2026. It also names Longformer, introduced in 2020 with a 4,096-token window, and Mistral 7B from 2023 with an 8,192-token window. These examples provide a timeline, but do not establish a like-for-like performance comparison among systems.
Sliding-window attention is one method for limiting the work. Rather than allowing each token to attend to every other token, it restricts attention to nearby positions. The source says this makes computation grow in step with sequence length for a fixed-size window, instead of following full attention’s quadratic scaling. The trade-off is that a token cannot directly attend to distant text through that local attention operation; the source material does not detail the different architectures or techniques that may address long-range information.
A related mechanism is the key-value, or KV, cache. The article describes it as storage for computations from earlier tokens, allowing the model to avoid repeating that work as it generates each new token. The cache itself grows as tokens are added, so extending a prompt or response also has memory implications. Token counts are not identical across systems: the source cites Anthropic’s note that its newer tokenizer produces approximately 30% more tokens for the same text than its previous tokenizer.
“During training we always train on sequences of the full nctx = 2048 token context window, packing multiple documents into a single sequence when documents are shorter than 2048.”
— Brown et al., GPT-3 paper, as quoted by ThorstenMeyerAI.com
Limits Behind the Window Figures
The source gives advertised context limits and selected study results, but does not provide standardized, independent tests comparing the listed 2026 models on retrieval or accuracy across their full windows. It is therefore unclear how consistently each model handles information placed at different points in a million-token prompt. The cited GPT-3.5-Turbo study should not be treated as a direct measurement of newer systems.
The supplied material also does not include the full discussion promised by its headings on KV-cache mechanics, vendor pricing thresholds or the precise scaling chart. Actual token use varies by tokenizer, and costs and response times depend on provider-specific pricing and implementation. The source’s figures are time-specific and may change after November 22, 2026.
What to Check in Later Tests
The explainer is identified as part two of a seven-part series on how AI works; it says a later part will cover how the broader training pipeline fits together. For readers comparing long-context systems, the development to watch is not only advertised window size but also published evaluations of recall, accuracy, response time and cost under comparable conditions.
Users handling long documents will need to account for the model’s input and output token limits, tokenizer, pricing rules and any caching options. The source does not announce a new product, policy change or upcoming benchmark, so no specific next release or test date is confirmed.
Key Questions
What is an LLM context window?
It is the text a model can reference while generating a response. It generally includes the prompt, prior conversation, supplied documents and the answer, subject to the model’s limit.
Does a one-million-token window mean the model can reliably use every detail?
No. A large advertised limit describes capacity, not guaranteed recall or accuracy. The explainer cites a study where GPT-3.5-Turbo performed worse when relevant information appeared in the middle of a document, but that result does not establish performance for all current models.
Why can longer prompts cost more?
Providers may charge based on the number of input and output tokens, and the source says some apply higher rates above thresholds. Longer sequences also require more computation under full attention; exact prices and response times vary by provider and model.
How does sliding-window attention differ from full attention?
Full attention lets each token compare with every token in the sequence. Sliding-window attention limits a token’s attention to nearby positions, which can reduce the growth in computation as text length increases, while limiting direct attention to distant tokens.
What does a KV cache do?
A key-value cache stores computations for earlier tokens so a model does not have to redo all of that work as it generates more text. The cache grows as tokens are added, according to the explainer.
Source: ThorstenMeyerAI.com
