[{"data":1,"prerenderedAt":968,"buildId":969},["ShallowReactive",2],{"ai-article-outline-en":3},{"path":4,"url":5,"title":6,"description":7,"published":8,"publishedIso":8,"publishedLong":9,"updated":8,"updatedIso":8,"updatedLong":9,"wasUpdated":10,"parts":11,"nodes":68,"learningPaths":959},"blog\u002Fai","\u002Fblog\u002Fai\u002F","How modern language models work","From text to tokens, attention, sampling, retrieval and tools: how a large language model turns a prompt into an answer, and what it does not do along the way.","2026-10-02","October 2, 2026",false,[12,21,33,43,49,59],{"id":13,"title":14,"nodeIds":15},"part-1","From text to vectors",[16,17,18,19,20],"text","tokenization","token-ids","embeddings","position",{"id":22,"title":23,"nodeIds":24},"part-2","Inside the transformer",[25,26,27,28,29,30,31,32],"contextual-representations","transformer-layers","attention","qkv","dense-attention","sparse-attention","context-window","kv-cache",{"id":34,"title":35,"nodeIds":36},"part-3","Choosing the next token",[37,38,39,40,41,42],"logits","softmax","sampling","sampling-controls","discarded-candidates","search-and-verification",{"id":44,"title":45,"nodeIds":46},"part-4","Running a model yourself",[47,48],"quantization","local-inference",{"id":50,"title":51,"nodeIds":52},"part-5","Bringing in outside information",[53,54,55,56,57,58],"rag","retrieval-vs-attention","external-memory","tool-use","mcp","code-retrieval",{"id":60,"title":61,"nodeIds":62},"part-6","Learning, and what the words mean",[63,64,65,66,67],"training","hallucination","synthetic-data","self-improvement","agi",[69,94,123,147,176,205,231,261,285,315,343,368,401,431,456,481,510,535,563,593,625,657,687,712,740,770,796,826,856,884,910,935],{"id":16,"order":70,"partId":71,"title":72,"summary":73,"concepts":74,"searchTerms":79,"learningObjectives":85,"misconceptions":88,"buildsOn":90,"seeAlso":91},1,null,"Text","A language model never reads letters directly: before it can do anything, text has to become a sequence of integers.",[16,75,76,77,78],"input","unicode","bytes","preprocessing",[80,81,82,83,84],"characters","letters","utf-8","how does an llm read text","input text",[86,87],"Explain why a neural network cannot consume text as written","Name the steps between a string and the model's first computation",[89],"A language model reads the letters of a prompt the way a person does.",[],[92],{"id":17,"title":93},"Tokenization",{"id":17,"order":95,"partId":71,"title":93,"summary":96,"concepts":97,"searchTerms":103,"learningObjectives":111,"misconceptions":114,"buildsOn":116,"seeAlso":118},2,"Text is split into units from a fixed vocabulary: whole words, pieces of words, or raw bytes.",[17,98,99,100,101,102],"token","vocabulary","subword","byte pair encoding","wordpiece",[104,105,106,107,108,109,110],"tokenizer","tokens","bpe","sentencepiece","subwords","word pieces","how many tokens",[112,113],"Describe how a subword tokenizer splits common and rare words","Explain why token counts differ between models",[115],"One token is one word.",[117],{"id":16,"title":72},[119,121],{"id":18,"title":120},"Token IDs",{"id":31,"title":122},"Context windows",{"id":18,"order":124,"partId":71,"title":120,"summary":125,"concepts":126,"searchTerms":131,"learningObjectives":138,"misconceptions":140,"buildsOn":142,"seeAlso":144},3,"Each token is replaced by its position in the vocabulary. The number is an index, and carries no meaning of its own.",[127,128,129,130],"token id","vocabulary index","special tokens","integer",[132,133,134,135,136,137],"token ids","input ids","vocab index","bos","eos","end of sequence token",[139],"Explain why token IDs are indices rather than quantities",[141],"Tokens with nearby IDs have similar meanings.",[143],{"id":17,"title":93},[145],{"id":19,"title":146},"Embeddings",{"id":19,"order":148,"partId":71,"title":146,"summary":149,"concepts":150,"searchTerms":156,"learningObjectives":162,"misconceptions":165,"buildsOn":167,"seeAlso":169},4,"Token IDs select rows of a learned table of vectors: the model's starting point for each token, not its final word on meaning.",[151,152,153,154,155],"embedding","embedding table","vector","static embedding","embedding model",[157,158,159,160,161],"word vectors","vector representation","semantic vectors","embedding matrix","meaning of words",[163,164],"Describe what an embedding table is and how it is used","Distinguish a token's input embedding from its contextual representation",[166],"An embedding is a fixed definition of what a word means.",[168],{"id":18,"title":120},[170,172,174],{"id":25,"title":171},"Context-dependent representations",{"id":53,"title":173},"Retrieval-augmented generation",{"id":54,"title":175},"Retrieval versus attention",{"id":20,"order":177,"partId":71,"title":178,"summary":179,"concepts":180,"searchTerms":185,"learningObjectives":192,"misconceptions":195,"buildsOn":197,"seeAlso":199},5,"Positional information","Attention on its own ignores word order, so position has to be injected. Most current models do it by rotating queries and keys (RoPE).",[181,20,182,183,184],"positional encoding","word order","rotary position embedding","rope",[186,187,188,189,190,191],"positional embeddings","sinusoidal","alibi","relative position","token order","rotary embeddings",[193,194],"Explain why a transformer needs positional information","Contrast absolute position embeddings with rotary embeddings",[196],"Every model adds a position vector to each token embedding.",[198],{"id":19,"title":146},[200,202,204],{"id":27,"title":201},"Self-attention",{"id":28,"title":203},"Queries, keys and values",{"id":31,"title":122},{"id":25,"order":206,"partId":71,"title":171,"summary":207,"concepts":208,"searchTerms":213,"learningObjectives":219,"misconceptions":222,"buildsOn":224,"seeAlso":227},6,"As vectors pass through the network, each token's representation is rewritten using the tokens around it.",[209,210,211,212],"contextual representation","hidden state","residual stream","contextual embedding",[214,215,216,217,218],"hidden states","activations","word sense","polysemy","meaning in context",[220,221],"Explain how the same token ends up with different vectors in different sentences","Describe where contextual representations exist and how long they last",[223],"The meaning of a word in context is looked up from a stored table.",[225,226],{"id":19,"title":146},{"id":20,"title":178},[228,230],{"id":26,"title":229},"Transformer layers",{"id":27,"title":201},{"id":26,"order":232,"partId":71,"title":229,"summary":233,"concepts":234,"searchTerms":242,"learningObjectives":250,"misconceptions":253,"buildsOn":255,"seeAlso":257},7,"A transformer is a stack of blocks. Each one lets tokens exchange information (attention), then transforms every token on its own (an MLP).",[235,236,237,238,239,240,241],"transformer","layer","transformer block","feed-forward network","mlp","residual connection","mixture of experts",[243,244,245,246,247,248,249],"decoder only","architecture","ffn","layer norm","moe","how many layers","parameters",[251,252],"Name the two sublayers of a transformer block and what each does","Explain why the same weights can process inputs of any length",[254],"Each layer of the model handles a different word of the input.",[256],{"id":25,"title":171},[258,259],{"id":27,"title":201},{"id":63,"title":260},"Inference versus training",{"id":27,"order":262,"partId":71,"title":201,"summary":263,"concepts":264,"searchTerms":269,"learningObjectives":274,"misconceptions":277,"buildsOn":279,"seeAlso":281},8,"Each token's representation gathers information from other positions in the context, weighted by how relevant the model computes them to be.",[265,27,266,267,268],"self-attention","attention head","attention weights","causal mask",[270,271,272,273],"attention mechanism","multi-head attention","attention is all you need","how does attention work",[275,276],"Explain what attention computes for one position","State the scope of what attention can reach",[278],"Attention lets the model look things up beyond what is in its context.",[280],{"id":26,"title":229},[282,283,284],{"id":28,"title":203},{"id":54,"title":175},{"id":31,"title":122},{"id":28,"order":286,"partId":71,"title":203,"summary":287,"concepts":288,"searchTerms":295,"learningObjectives":302,"misconceptions":305,"buildsOn":307,"seeAlso":309},9,"Each token is projected into a query (what it looks for), a key (what it can be matched on) and a value (what it passes along).",[289,290,291,28,292,293,294],"query","key","value","dot product","scaled dot-product attention","grouped-query attention",[296,297,298,299,300,301],"q k v","query key value","attention formula","gqa","multi-query attention","attention scores",[303,304],"Write down scaled dot-product attention and explain each term","Explain why keys and values are what gets cached",[306],"Attention selects one matching token, like a database lookup.",[308],{"id":27,"title":201},[310,312,313],{"id":32,"title":311},"KV cache",{"id":20,"title":178},{"id":38,"title":314},"Probabilities and softmax",{"id":29,"order":316,"partId":71,"title":317,"summary":318,"concepts":319,"searchTerms":324,"learningObjectives":332,"misconceptions":335,"buildsOn":337,"seeAlso":339},10,"Dense attention","In full (dense) attention every token can attend to every earlier token, so the work grows with the square of the sequence length.",[320,321,322,323],"dense attention","full attention","quadratic cost","flashattention",[325,326,327,328,329,330,331],"quadratic complexity","n squared","attention cost","flash attention","global attention","why is attention expensive","long documents",[333,334],"Explain why attention cost grows quadratically with length","Distinguish exact optimisations like FlashAttention from approximations",[336],"FlashAttention is an approximation of attention.",[338],{"id":28,"title":203},[340,342],{"id":30,"title":341},"Sparse and sliding-window attention",{"id":31,"title":122},{"id":30,"order":344,"partId":71,"title":341,"summary":345,"concepts":346,"searchTerms":352,"learningObjectives":358,"misconceptions":361,"buildsOn":363,"seeAlso":365},11,"Some attention layers restrict each token to a window or pattern of positions, trading direct reach for lower cost. It all happens inside the model.",[347,348,349,350,351],"sparse attention","sliding-window attention","local attention","attention pattern","receptive field",[353,349,354,355,356,357],"sliding window","longformer","bigbird","block sparse","windowed attention",[359,360],"Describe sliding-window attention and how information still travels beyond the window","Explain why sparse attention is not a form of retrieval",[362],"Sparse attention fetches the relevant parts of a long document, like search.",[364],{"id":29,"title":317},[366,367],{"id":54,"title":175},{"id":31,"title":122},{"id":31,"order":369,"partId":71,"title":122,"summary":370,"concepts":371,"searchTerms":377,"learningObjectives":385,"misconceptions":388,"buildsOn":392,"seeAlso":395},12,"The context window is the most tokens a model can process at once: prompt, documents, tool results and its own output together.",[372,373,374,375,376],"context window","context length","context","long context","prompt",[378,379,380,381,382,383,384],"context size","token limit","max tokens","128k","1 million tokens","lost in the middle","larger context window",[386,387],"Define the context window precisely","Explain why a larger context window does not remove the need for retrieval",[389,390,391],"The context window is a slice of the model's embeddings.","Everything inside the context window is used equally well.","A large enough context window makes retrieval unnecessary.",[393,394],{"id":27,"title":201},{"id":17,"title":93},[396,397,398,399],{"id":32,"title":311},{"id":53,"title":173},{"id":54,"title":175},{"id":55,"title":400},"External memory",{"id":32,"order":402,"partId":71,"title":311,"summary":403,"concepts":404,"searchTerms":409,"learningObjectives":415,"misconceptions":419,"buildsOn":422,"seeAlso":425},13,"During generation, keys and values already computed for earlier tokens are kept and reused, so each new token only computes its own.",[405,406,407,408],"kv cache","key-value cache","prefix caching","inference memory",[32,410,411,412,413,414],"key value cache","prompt caching","paged attention","why is generation slow","cache",[416,417,418],"Explain what the KV cache stores and why it speeds up generation","Estimate how KV cache memory grows with context length","State what the KV cache does not contain",[420,421],"The KV cache stores alternative completions the model considered.","The KV cache is a form of long-term memory or learning.",[423,424],{"id":28,"title":203},{"id":31,"title":122},[426,428,430],{"id":41,"title":427},"What happens to the tokens not chosen",{"id":39,"title":429},"Decoding and sampling",{"id":63,"title":260},{"id":37,"order":432,"partId":71,"title":433,"summary":434,"concepts":435,"searchTerms":440,"learningObjectives":446,"misconceptions":448,"buildsOn":450,"seeAlso":453},14,"Logits","The final representation at the last position is turned into one score per vocabulary entry: the logits.",[37,436,437,438,439],"unembedding","language modeling head","next-token prediction","score",[441,442,443,444,445],"lm head","output layer","next token scores","logit","next token prediction",[447],"Describe how a hidden state becomes a score for every token in the vocabulary",[449],"Logits are probabilities.",[451,452],{"id":25,"title":171},{"id":26,"title":229},[454,455],{"id":38,"title":314},{"id":39,"title":429},{"id":38,"order":457,"partId":71,"title":314,"summary":458,"concepts":459,"searchTerms":464,"learningObjectives":470,"misconceptions":473,"buildsOn":475,"seeAlso":477},15,"Softmax turns the logits into a probability distribution over the entire vocabulary.",[38,460,461,462,463],"probability distribution","probability","normalization","calibration",[465,466,467,468,469],"probabilities","next token probability","exponential","logprobs","confidence",[471,472],"Compute softmax for a small list of logits","Explain why a high probability is not the same as a correct answer",[474],"A token with high probability is likely to be factually correct.",[476],{"id":37,"title":433},[478,480],{"id":40,"title":479},"Temperature, top-k and top-p",{"id":28,"title":203},{"id":39,"order":482,"partId":71,"title":429,"summary":483,"concepts":484,"searchTerms":489,"learningObjectives":499,"misconceptions":502,"buildsOn":504,"seeAlso":506},16,"Generation is a loop: choose one token from the distribution, append it to the input, run the model again.",[485,39,486,487,488],"decoding","autoregressive generation","greedy decoding","beam search",[490,491,492,493,494,495,496,497,498],"generation loop","argmax","next token","how does an llm generate text","autoregressive","streaming","random","randomly","pick words",[500,501],"Describe the autoregressive generation loop","Explain why decoding settings belong to the inference software rather than the model",[503],"The model writes a whole answer at once and then displays it word by word.",[505],{"id":38,"title":314},[507,508,509],{"id":40,"title":479},{"id":41,"title":427},{"id":32,"title":311},{"id":40,"order":511,"partId":71,"title":479,"summary":512,"concepts":513,"searchTerms":519,"learningObjectives":527,"misconceptions":529,"buildsOn":531,"seeAlso":533},17,"Temperature reshapes the distribution; top-k and top-p cut off its unlikely tail before a token is drawn.",[514,515,516,517,518],"temperature","top-k","top-p","nucleus sampling","min-p",[520,521,522,523,524,525,526],"top p","top k","nucleus","creativity","randomness","deterministic output","temperature 0",[528],"Describe the effect of temperature, top-k and top-p on the next-token distribution",[530],"Raising the temperature makes the model think more creatively.",[532],{"id":39,"title":429},[534],{"id":38,"title":314},{"id":41,"order":536,"partId":71,"title":427,"summary":537,"concepts":538,"searchTerms":543,"learningObjectives":552,"misconceptions":555,"buildsOn":557,"seeAlso":560},18,"Next-token candidates that were not chosen are normally discarded. The model does not keep them as alternative lines of reasoning.",[539,540,541,468,542],"rejected candidates","alternative completions","single sequence","speculative decoding",[544,545,546,547,548,549,550,551],"does the model consider alternatives","branches","other answers","parallel reasoning","unchosen tokens","tokens not chosen","not picked","rejected tokens",[553,554],"Explain why ordinary decoding produces exactly one sequence","Distinguish implicit alternatives in a distribution from explicitly generated alternatives",[556],"During generation the model explores several answers in parallel and keeps the best one.",[558,559],{"id":39,"title":429},{"id":32,"title":311},[561],{"id":42,"title":562},"Multiple samples, search and verification",{"id":42,"order":564,"partId":71,"title":562,"summary":565,"concepts":566,"searchTerms":573,"learningObjectives":581,"misconceptions":584,"buildsOn":586,"seeAlso":588},19,"Systems can explore alternatives deliberately: generate several candidates, search over partial solutions, and check the results. It is an outer loop around generation.",[567,568,569,570,571,572],"best-of-n","self-consistency","verification","tree search","test-time compute","reward model",[574,575,576,577,578,579,580],"multiple samples","majority vote","verifier","reasoning models","thinking","test time compute","generate and test",[582,583],"Describe best-of-n sampling and self-consistency","Explain why multi-candidate search is an outer loop rather than part of token generation",[585],"Running more candidates at inference time trains the model.",[587],{"id":41,"title":427},[589,591],{"id":65,"title":590},"Self-training and synthetic data",{"id":56,"title":592},"Tool use",{"id":47,"order":594,"partId":71,"title":595,"summary":596,"concepts":597,"searchTerms":603,"learningObjectives":614,"misconceptions":617,"buildsOn":619,"seeAlso":622},20,"Quantization","Quantization stores a model's weights in fewer bits, such as 8 or 4 instead of 16, trading a little accuracy for a model that is smaller and faster to read.",[47,598,599,600,601,602],"quantisation","int8","4-bit","precision","model compression",[604,605,606,607,608,609,610,611,612,613],"gguf","q4","q8","fp16","bf16","awq","gptq","smaller model","compress a model","bits per weight",[615,616],"Estimate the memory a model's weights need at a given precision","Explain what per-block scales do and why quality usually survives 8 and 4 bits",[618],"A quantized model is a smaller model trained separately from the original.",[620,621],{"id":26,"title":229},{"id":32,"title":311},[623,624],{"id":19,"title":146},{"id":63,"title":260},{"id":48,"order":626,"partId":71,"title":627,"summary":628,"concepts":629,"searchTerms":636,"learningObjectives":646,"misconceptions":649,"buildsOn":651,"seeAlso":654},21,"Running a model on your own hardware","Whether a model runs locally is mostly a question of memory: it must hold the weights and the KV cache, and generation speed is set by how fast those weights can be read.",[630,631,632,633,634,635],"local inference","self-hosted model","memory bandwidth","vram","tokens per second","prefill and decode",[637,638,639,640,641,642,643,644,645],"run llm locally","llama.cpp","ollama","gpu memory","how much ram do i need","why is my local model slow","apple silicon","cpu inference","self-hosting",[647,648],"Estimate whether a model fits in a machine's memory","Explain why generation speed follows memory bandwidth rather than processor speed",[650],"Faster processor cores are what make a local model generate faster.",[652,653],{"id":47,"title":595},{"id":32,"title":311},[655,656],{"id":26,"title":229},{"id":63,"title":260},{"id":53,"order":658,"partId":71,"title":173,"summary":659,"concepts":660,"searchTerms":666,"learningObjectives":674,"misconceptions":677,"buildsOn":679,"seeAlso":682},22,"RAG searches an external collection at request time and places the most relevant passages in the context before the model answers.",[661,53,662,663,664,665],"retrieval-augmented generation","retrieval","vector search","chunking","reranking",[667,668,669,670,671,672,673],"retrieval augmented generation","vector database","semantic search","knowledge base","grounding","citations","document search",[675,676],"Walk through the steps of a RAG pipeline","Name the main ways a RAG system fails",[678],"RAG teaches the model new facts by updating it.",[680,681],{"id":31,"title":122},{"id":19,"title":146},[683,684,685],{"id":54,"title":175},{"id":55,"title":400},{"id":58,"title":686},"Codebase-aware retrieval",{"id":54,"order":688,"partId":71,"title":175,"summary":689,"concepts":690,"searchTerms":693,"learningObjectives":699,"misconceptions":702,"buildsOn":705,"seeAlso":709},23,"Attention mixes information among tokens already in the context. Retrieval decides which outside information gets into the context at all.",[662,27,691,692],"similarity search","context selection",[694,695,696,697,698],"difference between attention and retrieval","is attention retrieval","does a bigger context window replace rag","long context vs rag","retrieval vs long context",[700,701],"Contrast attention and retrieval by where they run and what they operate on","Explain why sparse attention and long contexts do not replace retrieval",[703,704],"Attention and retrieval are the same thing at different scales.","A long enough context window makes retrieval unnecessary.",[706,707,708],{"id":27,"title":201},{"id":30,"title":341},{"id":53,"title":173},[710,711],{"id":31,"title":122},{"id":55,"title":400},{"id":55,"order":713,"partId":71,"title":400,"summary":714,"concepts":715,"searchTerms":721,"learningObjectives":728,"misconceptions":731,"buildsOn":733,"seeAlso":736},24,"Anything a system should remember beyond one context window has to be stored outside the model and read back in as tokens.",[716,717,718,719,720],"memory","external memory","long-term memory","persistence","agent memory",[722,723,724,725,726,727],"does the model remember","chat memory","remember previous conversations","notes","scratchpad","vector store",[729,730],"Explain why a model has no memory across requests by itself","Describe how memory features are built from storage and retrieval",[732],"A chat assistant remembers you because the model learned from your earlier conversations.",[734,735],{"id":31,"title":122},{"id":53,"title":173},[737,738,739],{"id":32,"title":311},{"id":63,"title":260},{"id":56,"title":592},{"id":56,"order":741,"partId":71,"title":592,"summary":742,"concepts":743,"searchTerms":749,"learningObjectives":756,"misconceptions":759,"buildsOn":761,"seeAlso":764},25,"A model can emit a structured request to call a tool. Software outside the model runs it and feeds the result back into the context.",[744,745,746,747,748],"tool use","function calling","tool call","agent","agent loop",[745,750,751,752,753,754,755],"tools","agents","agentic","api calls","run code","plugins",[757,758],"Describe the loop between a model and the application that runs its tool calls","Explain where tool execution and permissions actually live",[760],"The model itself executes the code or API calls it requests.",[762,763],{"id":39,"title":429},{"id":31,"title":122},[765,767,768,769],{"id":57,"title":766},"Model Context Protocol (MCP)",{"id":53,"title":173},{"id":58,"title":686},{"id":55,"title":400},{"id":57,"order":771,"partId":71,"title":766,"summary":772,"concepts":773,"searchTerms":779,"learningObjectives":785,"misconceptions":788,"buildsOn":791,"seeAlso":793},26,"MCP is an open protocol for exposing tools, data and prompts to AI applications. It standardises the connection, not the retrieval.",[774,57,775,776,777,778],"model context protocol","protocol","mcp server","mcp client","json-rpc",[776,780,781,782,783,784],"what is mcp","is mcp rag","connectors","integrations","anthropic mcp",[786,787],"Describe the parts of an MCP connection and what a server can expose","Explain why MCP is not itself retrieval or memory",[789,790],"MCP is a kind of RAG.","MCP gives the model direct access to systems.",[792],{"id":56,"title":592},[794,795],{"id":53,"title":173},{"id":58,"title":686},{"id":58,"order":797,"partId":71,"title":686,"summary":798,"concepts":799,"searchTerms":806,"learningObjectives":814,"misconceptions":817,"buildsOn":819,"seeAlso":822},27,"Coding agents find the relevant parts of a repository with search tools, such as text search, symbol indexes, embeddings or code graphs, and read them into context.",[800,801,802,803,804,805],"code search","codebase retrieval","code knowledge graph","symbol index","language server","grep",[807,808,809,810,811,812,813],"coding agent","repository","repo","ripgrep","code graph","how do coding agents understand a codebase","lsp",[815,816],"List the main ways an agent searches a codebase and when each works best","Explain why exact identifiers favour lexical search",[818],"A coding agent reads and understands the whole repository at once.",[820,821],{"id":53,"title":173},{"id":56,"title":592},[823,824,825],{"id":57,"title":766},{"id":55,"title":400},{"id":54,"title":175},{"id":63,"order":827,"partId":71,"title":260,"summary":828,"concepts":829,"searchTerms":836,"learningObjectives":843,"misconceptions":846,"buildsOn":849,"seeAlso":852},28,"Training changes a model's weights. Inference, meaning ordinary use, runs fixed weights and changes nothing in the model.",[63,830,831,832,833,834,835],"inference","pretraining","fine-tuning","weights","in-context learning","gradient descent",[837,838,839,840,841,842],"does chatgpt learn from my conversations","does the model learn while chatting","rlhf","backpropagation","post-training","weights update",[844,845],"Distinguish what changes during training from what changes during inference","Explain in-context learning without weight updates",[847,848],"A model learns from each conversation as it happens.","In-context learning updates the model's weights.",[850,851],{"id":26,"title":229},{"id":39,"title":429},[853,854,855],{"id":65,"title":590},{"id":55,"title":400},{"id":32,"title":311},{"id":64,"order":857,"partId":71,"title":858,"summary":859,"concepts":860,"searchTerms":863,"learningObjectives":871,"misconceptions":874,"buildsOn":877,"seeAlso":880},29,"Hallucination","A model can state something false as fluently as something true, because it generates likely text and has no store of facts to check against.",[64,861,862,463,671],"confabulation","factual errors",[864,865,866,867,868,869,870],"why does ai make things up","made up citations","fake references","is the model lying","wrong answers","how to reduce hallucinations","confidently wrong",[872,873],"Explain why fluent output is no evidence that it is correct","Name the main ways systems reduce hallucination, and what each depends on",[875,876],"A model looks facts up in an internal database, and a hallucination is the wrong row coming back.","When a model hallucinates, it knows the answer is false and says it anyway.",[878,879],{"id":63,"title":260},{"id":39,"title":429},[881,882,883],{"id":53,"title":173},{"id":42,"title":562},{"id":56,"title":592},{"id":65,"order":885,"partId":71,"title":590,"summary":886,"concepts":887,"searchTerms":893,"learningObjectives":899,"misconceptions":902,"buildsOn":904,"seeAlso":907},30,"Model outputs that have been filtered, checked or ranked can become training data for a later model: a learning loop outside generation.",[888,889,890,891,892],"synthetic data","self-training","distillation","rejection sampling","model collapse",[894,895,896,897,898],"training on model outputs","ai generated training data","self improvement loop","bootstrapping","data flywheel",[900,901],"Describe a generate, verify and train loop","Explain why verification quality limits self-training",[903],"A model improves itself every time it generates and checks an answer.",[905,906],{"id":63,"title":260},{"id":42,"title":562},[908],{"id":66,"title":909},"Recursive self-improvement",{"id":66,"order":911,"partId":71,"title":909,"summary":912,"concepts":913,"searchTerms":918,"learningObjectives":924,"misconceptions":927,"buildsOn":929,"seeAlso":931},31,"The idea that an AI system could improve its own capabilities, including its ability to improve itself. A research concept, not a current mechanism.",[914,915,916,917],"recursive self-improvement","intelligence explosion","automated ai research","feedback loop",[919,920,921,922,923],"singularity","self improving ai","ai improving ai","takeoff","seed ai",[925,926],"State the recursive self-improvement hypothesis","Identify which parts of today's training loops resemble it, and which do not",[928],"Current models rewrite their own weights to become smarter while they run.",[930],{"id":65,"title":590},[932,934],{"id":67,"title":933},"AGI, and why definitions vary",{"id":63,"title":260},{"id":67,"order":936,"partId":71,"title":933,"summary":937,"concepts":938,"searchTerms":943,"learningObjectives":950,"misconceptions":953,"buildsOn":955,"seeAlso":957},32,"Artificial general intelligence has no single agreed definition, so any claim about it depends on which definition is being used.",[939,67,940,941,942],"artificial general intelligence","definition","generality","benchmarks",[944,945,946,947,948,949],"what is agi","when will agi arrive","human level ai","superintelligence","general intelligence","asi",[951,952],"Compare several definitions of AGI","Evaluate an AGI claim by identifying the definition and the measurement behind it",[954],"AGI is a well-defined threshold that a model either passes or does not.",[956],{"id":66,"title":909},[958],{"id":63,"title":260},[960,964],{"id":961,"title":962,"nodes":963},"llm-generation","How an LLM generates text",[17,19,20,27,32,37,39],{"id":965,"title":966,"nodes":967},"coding-agents","How AI coding agents understand a repository",[31,54,53,55,56,57,58],1795596271915,"0da95fdd-5522-4f9d-b2e6-bcb75a6c8f49"]