LLM Fundamentals interview question

Generative AILLM FundamentalsTransformersbasic

What is a large language model (LLM)?

  1. AA rule-based system whose grammar rules and dictionary are written by linguists, answering by matching those rules to the input.
  2. BA database of stored sentences that answers by returning the stored sentence most similar to the query, without generating new text.
  3. CA neural network, typically a Transformer, trained on very large text corpora to predict tokens, which lets it generate new text.
  4. DA model trained only on labelled question–answer pairs, so it can answer only the exact questions that appeared in its training set.
Show the answer and explanation

Correct answer: C, A neural network, typically a Transformer, trained on very large text corpora to predict tokens, which lets it generate new text.

Explanation LLM Fundamentals

A large language model is a neural network (in practice almost always a Transformer) with billions of learned parameters, trained on huge amounts of text to predict the next token. Generating text means repeatedly predicting a token, appending it, and predicting again.

Why the other descriptions are wrong:

  • Its behaviour is learned from data, not hand-written grammar rules; rule-based systems are the older, pre-statistical approach to NLP.
  • It does not look up stored sentences; it generates new token sequences, which is also why it can produce text that appears nowhere in its training data.
  • Pretraining uses unlabelled text (self-supervised), not only labelled QA pairs, and the model generalises to questions it has never seen.

Interview tip: define it in one line ("a large Transformer trained with next-token prediction on web-scale text"), then mention that chat assistants add instruction tuning and preference alignment on top.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Generative AI questions

  1. What is the difference between zero-shot and few-shot prompting?
  2. What is retrieval-augmented generation (RAG)?
  3. What does it mean to fine-tune a pretrained LLM?
  4. A chatbot's conversation history is growing longer than the model's context window. What is a common way to handle it?
  5. Asked for "revenue and number of orders that contain electronics, by customer segment", a text-to-SQL bot generated the query below. The Gold segment has…