A large language model (LLM) is a neural network trained on huge amounts of text to predict the next token.
The model reads the text so far, scores every vocabulary entry, and samples one token from the resulting probabilities.
tokens = encode(prompt)
while not done(tokens):
logits = model(tokens) # one score per vocabulary entry
probs = softmax(logits[-1]) # next-token probabilities
tokens.append(sample(probs)) # pick one, feed it back in
print(decode(tokens))
Autoregressive means each output becomes part of the next input.
The weights hold patterns, not a fact database, so fluent text is not proof of correctness.
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
An LLM is a neural network trained on a huge amount of text to do one thing, predict the next token.
When it generates, it reads the text so far and produces a score for every entry in its vocabulary.
A softmax turns those scores into probabilities, and the model samples one token from them.
It appends that token and runs again, and that loop of each output becoming part of the next input is what autoregressive means.
One thing I'd stress is that the weights store patterns, not a database of facts, so fluent text is no proof the answer is correct.
Weak answers to avoid
Describes it as a database or search engine of factsThe weights hold learned patterns, not stored records. Say that directly, and add that fluent output is no proof of correctness.
Says it writes whole words or sentences at onceIt emits one token per step, and tokens are often word pieces. Walk the loop: score the vocabulary, softmax, sample, append, repeat.
Claims it always picks the single most likely wordGeneration samples from a probability distribution, which is why one prompt can return different text. Name the sampling step.
Stays vague with 'it understands language'Talk of understanding gives no mechanism. Name the training objective, next-token prediction, and describe the generation loop step by step.
Interview lens
Likely follow-ups, what you can say, and the weak answers to avoid.