Independent · Nonprofit · Open access
Deep Lex

AI Glossary

Large Language Model (LLM)

Deep learning model trained on vast text

Short definition

A deep learning model trained on vast text corpora capable of understanding and generating human-like language.

Definition

Definition

A Large Language Model (LLM) is a type of artificial intelligence system based on neural networks that uses deep learning techniques and is trained on vast amounts of text data to understand, generate, and manipulate human language. No universally agreed definition exists for what constitutes "large" in this context, though LLMs typically have at least one billion parameters, with leading models containing hundreds of billions or even trillions of parameters.

LLMs represent a subset of foundation models specifically designed for natural language processing tasks. They are built using transformer neural network architecture, which enables them to process entire sequences of text in parallel rather than sequentially, allowing for more efficient training and superior performance on language-related tasks.

The term gained prominence following the release of models such as OpenAI's GPT series, with ChatGPT bringing LLMs to widespread public attention in 2022. Modern LLMs demonstrate capabilities including text generation, language translation, question answering, summarisation, and increasingly, multimodal tasks involving images, audio, and other data types.

Technical Architecture and Capabilities

LLMs are constructed using transformer neural networks, which consist of encoder and decoder components with self-attention mechanisms. This architecture allows the model to understand relationships between words and phrases across entire documents, regardless of their distance from each other in the text.

The key distinguishing feature of LLMs is their scale, both in terms of parameters (the weights and connections within the neural network) and training data (typically involving petabytes of text from diverse sources including web pages, books, and other textual materials). Parameters function as a knowledge repository, with larger parameter counts generally correlating with enhanced capabilities and performance.

LLMs utilise various training methodologies including unsupervised learning on unlabelled text data, supervised fine-tuning on specific tasks, and reinforcement learning from human feedback (RLHF) to align model outputs with human preferences and values. This multi-stage training process enables LLMs to perform few-shot and zero-shot learning, adapting to new tasks with minimal or no additional training.

Limitations and Technical Challenges

Despite their impressive capabilities, LLMs face several well-documented limitations relevant to legal assessment. Hallucination remains a persistent problem, where models generate plausible-sounding but factually incorrect information. This issue is particularly concerning in professional contexts requiring accuracy and reliability.

LLMs lack true understanding of causation, often struggling with reasoning tasks that require genuine comprehension rather than pattern matching. They cannot access real-time information beyond their training data cutoff and may exhibit biases present in their training materials, potentially perpetuating discriminatory outcomes.

The "black box" nature of LLMs creates explainability challenges, making it difficult to understand how specific outputs are generated. This opacity complicates efforts to identify bias, ensure fairness, and assign accountability for harmful outputs.

Reference material

Sources

AWS, "What is LLM? - Large Language Models Explained" (2025). Center for Security and Emerging Technology, "What Are Generative AI, Large Language Models, and Foundation Models?" (2024). European Union, Regulation (EU) 2024/1689 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act), Official Journal of the European Union, L 1689, 12 July 2024, Article 3. Henderson, P., et al. "Large Legal Fictions: Profiling Legal Hallucinations in Large Language Models." Journal of Legal Analysis 16, no. 1 (2024): 64-93. Stanford Institute for Human-Centered Artificial Intelligence, "Foundation Models under the EU AI Act" (2024). Various technical and industry sources as cited above.