Large Language Models & Generative AI

Key points

  • LLMs predict next tokens at massive scale using Transformer architecture; scaling laws drive ever-larger models
  • Key LLM risks: hallucinations (false information with confidence), prompt sensitivity, bias from training data, knowledge cutoff
  • Generative AI creates text, images, audio, and video; governance must address IP, misinformation, deepfakes, and misuse
  • Prompt engineering shapes LLM behaviour but creates inconsistency, injection risks, and testing challenges
  • Fine-tuning (full, LoRA) and adaptation inherit source model biases; full lineage documentation required
  • Agentic AI: autonomous planning, tool use, and multi-step action with reduced human oversight at each decision point
  • Agentic governance challenges: cascading errors, expanded attack surface, accountability gaps, unpredictable emergent behaviour
  • RAG grounds outputs in external knowledge, reducing hallucinations but requiring knowledge base governance and retrieval monitoring

Large Language Models & Generative AI

Understanding LLMs and generative AI is critical for modern AI governance. These technologies have moved from research curiosities to widespread commercial deployment in under three years, creating governance challenges that existing frameworks were not designed to address.

Large Language Models (LLMs)

How LLMs Work

Large language models are neural networks based on the Transformer architecture, trained on vast quantities of text data. The core training objective is deceptively simple: predict the next token (word or subword) in a sequence. By performing this task billions of times across enormous datasets, the model develops broad capabilities in language understanding, generation, reasoning, and even tasks it was never explicitly trained for.

The training process begins with tokenisation, where text is broken into tokens. The model then processes these tokens through layers of attention mechanisms that allow it to consider relationships between all tokens simultaneously, rather than processing them one at a time. Scaling laws have shown that model performance tends to improve predictably as the model size, dataset size, and compute increase, which has driven the trend toward ever-larger models.

Key LLM Characteristics

Emergent Abilities: Capabilities that appear only at sufficient scale, without being explicitly trained. A model that cannot perform a task at one size may perform it well at a larger size, making it difficult to predict what a model will be capable of before training it.

Few-shot Learning: LLMs can learn new tasks from just a few examples provided in the prompt, without any parameter updates. This makes them remarkably flexible but also means their behaviour is heavily influenced by prompt design.

Prompt Sensitivity: The same question phrased differently can produce substantially different outputs. This creates consistency and reliability challenges for governance, as the system's behaviour depends not just on its training but on how each individual interaction is framed.

Hallucinations: LLMs generate plausible-sounding but factually incorrect information with apparent confidence. The model has no reliable mechanism for distinguishing what it "knows" from what it is fabricating. This is one of the most significant governance challenges, particularly in high-stakes applications like healthcare, legal, and financial advice.

Knowledge Cutoff: LLMs are limited to information present in their training data. They cannot access current events or updated information unless augmented with external tools or retrieval systems.

Notable LLM Families

The LLM landscape includes proprietary models such as GPT-4 and successors from OpenAI, Claude from Anthropic (designed with a focus on safety and helpfulness), and Gemini from Google. Open-source and open-weight alternatives include Llama from Meta, Mistral, and others. The distinction between proprietary and open models has significant governance implications regarding transparency, auditability, and control.

Generative AI Applications

Text Generation

LLMs power conversational chatbots and virtual assistants, content creation (articles, emails, marketing copy, code), document summarisation, language translation, and question answering over documents. Each application carries distinct governance considerations. A chatbot interacting with consumers may need different safeguards than an internal code generation tool.

Image Generation

Diffusion models such as DALL-E, Midjourney, and Stable Diffusion generate images from text descriptions. They can also edit existing images, create variations, and synthesise realistic photographs. Governance risks include generation of non-consensual intimate imagery, creation of misleading or fraudulent visuals, copyright concerns over training data (multiple lawsuits are active), and reinforcement of stereotypes and biases present in training images.

Audio and Video

Text-to-speech systems can generate natural-sounding speech, and voice cloning technology can replicate a specific person's voice from short audio samples. Video generation from text prompts is rapidly improving. These capabilities enable valuable applications (accessibility, content creation) but also create serious risks around deepfakes, fraud, impersonation, and erosion of trust in authentic media.

Prompt Engineering and Its Governance Implications

Prompt engineering refers to the practice of designing inputs to elicit desired outputs from LLMs. Techniques include zero-shot prompting (providing instructions without examples), few-shot prompting (providing examples of the desired input-output pattern), chain-of-thought prompting (asking the model to show its reasoning step by step), and role prompting (instructing the model to adopt a specific persona or expertise).

From a governance perspective, prompt engineering creates several challenges. Outputs are highly dependent on prompt design, making behaviour inconsistent. Prompts can be crafted to elicit harmful, biased, or policy-violating outputs (prompt injection attacks). The same model can behave very differently depending on the prompt, complicating testing and validation. Organisations deploying LLM-based applications must govern not just the model but the prompt templates and system instructions that shape its behaviour.

Fine-tuning and Adaptation

Organisations rarely use foundation models exactly as they come from the provider. Common adaptation approaches include full fine-tuning (retraining the entire model on domain-specific data, which is expensive but highly effective), parameter-efficient fine-tuning using techniques like LoRA and QLoRA (adapting only a small number of parameters, making fine-tuning practical for smaller organisations), and retrieval augmented generation, covered in detail below.

Each adaptation approach inherits biases from the source model and can introduce new biases from the adaptation data. Governance requires documenting the full model lineage (what base model was used, what data was added, what testing was performed) and testing the adapted model independently, not assuming that the base model's safety properties carry over.

Risks and Limitations

Technical Risks

The most significant technical risks include hallucinations (generating false information with confidence), bias (reflecting and sometimes amplifying prejudices present in training data), toxicity (generating harmful, offensive, or dangerous content), copyright uncertainty (models trained on copyrighted material, with unresolved legal questions about the outputs), and adversarial vulnerability (susceptibility to prompt injection, jailbreaking, and other manipulation techniques).

Safety and Misuse Risks

Generative AI can be misused for misinformation and disinformation at scale, fraud and impersonation through synthetic text, voice, and video, creation of malicious code, phishing and social engineering attacks, and generation of content that bypasses safety guardrails through jailbreaking techniques.

Governance Responses

Responsible deployment of generative AI requires multiple layers of protection. Safety training through techniques like RLHF (Reinforcement Learning from Human Feedback) and Constitutional AI aligns model behaviour with human values and safety guidelines. Content filtering systems detect and block harmful outputs. Red teaming involves deliberately attempting to make the model fail or produce harmful outputs before deployment. Monitoring tracks model behaviour in production to detect emerging issues. Use restrictions define and enforce acceptable use policies. Transparency involves disclosing model limitations and the fact that content is AI-generated.

Agentic AI Systems

What is Agentic AI?

Agentic AI refers to systems that can autonomously plan, reason, use tools, and take multi-step actions to achieve goals with minimal human intervention. Unlike traditional AI that responds to individual prompts, agentic systems can decompose complex goals into subtasks, decide which tools or APIs to call, maintain context and state across multiple steps, adapt strategies based on intermediate results, and interact with external systems and environments.

Agentic Architectures

Common agentic architectures include single-agent systems where one model orchestrates tools and actions, multi-agent systems where multiple specialised agents collaborate or compete, tool-augmented agents where LLMs can call external tools such as search engines, databases, or APIs, and hierarchical agents where a planning agent delegates to execution agents.

Governance Challenges

Agentic AI introduces distinctive governance challenges. Reduced human oversight occurs because each step in a multi-step action chain happens without human review. Cascading errors mean a mistake in one step compounds through subsequent steps. An expanded attack surface arises because tool access and external system interaction create new vulnerability points. Accountability gaps emerge when multiple agents interact, making it difficult to assign responsibility for outcomes. Unpredictable emergent behaviour means the combination of planning, tool use, and environmental interaction can produce unexpected results. The AIGP BoK v2.1 explicitly identifies agentic AI as an area requiring governance attention.

Retrieval Augmented Generation (RAG)

How RAG Works

RAG is a technique that enhances LLM outputs by retrieving relevant information from external knowledge sources before generating a response. The process involves receiving a query, searching a knowledge base (often using vector embeddings to find semantically similar content), retrieving relevant documents or passages, including the retrieved context alongside the query in the prompt, and generating a response grounded in the retrieved information.

Governance Benefits and Considerations

RAG offers significant governance benefits: it reduces hallucinations by grounding responses in actual documents, enables attribution and source tracking, allows updating knowledge without retraining the model, and keeps sensitive data in controlled repositories rather than embedded in model weights.

However, RAG also introduces its own governance considerations. The knowledge base requires its own data governance (quality, currency, access controls, and compliance). Retrieval accuracy and relevance must be monitored, as retrieving the wrong documents can produce confidently wrong answers. There is a risk of retrieving and surfacing sensitive information that should be access-controlled. Finally, the generated response must be monitored to verify it faithfully reflects the retrieved sources rather than hallucinating additional claims.

Practise AIGP questions

Members get the AIGP question bank with explanations, flashcards, timed mock exams, Privacy Pro AI, progress tracking and the Pass Guarantee.