Skip to content

LLM Engineering

The engineering of large language models in production: serving them, adapting them, giving them context, and measuring them.

LLM engineering is the work of making a language model useful inside a system: serving it cheaply and predictably, adapting it to a task, giving it the right context, and measuring whether it actually does what it was asked to do. The papers here sit at that layer — between the model weights and the product.

Serving. Inference is not one problem but a set of them: batching and scheduling determine throughput, the KV cache and its eviction policy determine latency under long contexts, and speculative decoding and the various quantisation schemes trade accuracy for latency and memory. The recurring measurement is throughput at a fixed latency target, or latency at a fixed accuracy, with the batch composition and the input length stated — because those two numbers are meaningless without them.

Adaptation. Fine-tuning, preference optimisation and parameter-efficient methods all answer the same question with different budgets: how do you change the model's behaviour when you have a large corpus and no labels, a small labelled set, or no preference data at all? The comparisons in the literature are usually against a prompt-only baseline, and the interesting result is often that the baseline is stronger than expected — which is worth knowing before spending a fine-tuning budget.

Context. Retrieval and prompt construction decide what the model sees at all. The evaluation question here has moved past "does retrieval find the right chunk" towards "does the assembled context help the model answer the question", which is a different and much harder measurement: it needs an answer-level oracle rather than a passage-level one.

Measurement. Benchmarks for language models are easy to overfit and easy to misread, and the papers collected here spend unusual effort on the methodology: what the task distribution looks like, whether the contamination check is honest, and how much of the reported gain survives when the prompt is tuned as carefully as the model.

The pages below gather that work and link to every paper's full converted text, so the numbers can be checked against the experimental setup that produced them.

Topic: LLM Engineering

Papers: 192

Key questions this topic covers

  • LLM inference
  • LLM serving
  • LLM fine-tuning
  • RAG evaluation
  • LLM context engineering
  • LLM benchmarks
  • model quantization
  • LLM evaluation
  • retrieval augmented generation

Inference serving and deployment

Adaptation and fine-tuning

Retrieval and context construction

Quantization and efficiency

Evaluation and benchmarking

Other research in this topic

Latest in this topic