AIAny
Icon for item

Foundations of Large Language Models

A concise textbook-style book that explains foundational concepts and techniques for large language models, covering pre-training, generative models, prompting, alignment, inference, and reasoning. Structured as self-contained chapters for readers with some ML/NLP background or those seeking a principled introduction to LLM foundations.

Introduction

The rapid rise of large language models shifted NLP from task-specific, supervised pipelines to a pretrain-then-adapt paradigm. This book distills that methodological shift into a compact, chaptered treatment that emphasizes the core ideas you need to understand why current LLMs work and how key components interact.

Key Findings
  • Pre-training foundations: explains common self-supervised objectives and why scale and data diversity drive emergent capabilities, so readers can judge trade-offs between objectives and corpus design.
  • Generative model mechanics: walks through decoder/encoder-decoder choices, scaling laws, and strategies to handle long contexts, so you understand architectural and training implications for generation quality.
  • Prompting and instruction methods: surveys prompting families (static prompts, chain-of-thought, automatic prompt design) and their practical limits, so readers can pick prompting approaches aligned with task constraints.
  • Alignment and fine-tuning: covers instruction tuning and human-feedback alignment techniques (including SFT/RLHF-style ideas), clarifying what alignment achieves and where it fails.
  • Inference and reasoning: discusses runtime inference strategies and reasoning techniques, highlighting how model capabilities interact with decoding and chain-of-thought approaches.
Who it's for and trade-offs

Great fit if you want a principled, compact reference that explains why common LLM practices (pretraining objectives, architecture choices, prompting, alignment) work and how they connect. It is accessible without deep prior specialization, but assumes basic ML/NLP and Transformer familiarity. Look elsewhere if you need exhaustive state-of-the-art survey papers, implementation recipes, or hands-on tutorials with code—this work emphasizes foundations and conceptual clarity over step-by-step engineering.

Where it fits

Positions itself between a classroom textbook and a curated set of research notes: useful for students, researchers new to LLMs, and engineers who need conceptual grounding before diving into implementation or benchmarking.

Information

  • Websitearxiv.org
  • OrganizationsNLP Lab, Northeastern University, NiuTrans Research
  • AuthorsTong Xiao, Jingbo Zhu
  • Published date2025/01/16

More Items

Reuses Transformer weights across depth and neighboring tokens to improve language-model compute efficiency. It combines within-token iteration with cross-token state feedback, outperforming standard and looped baselines in matched-compute tests.

Evaluates whether language and generative models can handle the full game-development pipeline, from white-box construction and asset creation to playtesting and refinement. Across 60 tasks and four engines, strong standalone assets often fail to translate into playable integrated games.

Improves 4D video question answering by expressing object motion in the reference coordinate system required by each question. Experiments find that question-aligned relative trajectories work better than supplying world-coordinate trajectories.