{"id":362,"date":"2025-10-10T09:54:10","date_gmt":"2025-10-10T08:54:10","guid":{"rendered":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/?p=362"},"modified":"2025-12-17T08:09:25","modified_gmt":"2025-12-17T08:09:25","slug":"how-do-genai-and-large-language-models-llms-work","status":"publish","type":"post","link":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/2025\/10\/10\/how-do-genai-and-large-language-models-llms-work\/","title":{"rendered":"How do GenAI and Large Language Models (LLMs) work?\u00a0"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/GettyImages-2213994114-1024x640.jpg\" alt=\"Lots of little speech bubbles connected to a larger speech bubble via digital connections.\" class=\"wp-image-369\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What is GenAI and a LLM?&nbsp;<\/h2>\n\n\n\n<p>Generative Artificial Intelligence (GenAI) and Large Language Models (LLMs) are types of machine learning models trained on large datasets. LLMs are typically trained on text, while GenAI can include other media like audio, images, and video. These models are developed by companies such as Microsoft, Google, and Meta using vast amounts of data (e.g. web content) and powerful computing resources. Training a GenAI model from scratch can cost millions of pounds.&nbsp;<\/p>\n\n\n\n<p>Originally, LLMs referred only to text-based models, but now they can handle multiple media types. As a result, the terms GenAI and LLM are often used interchangeably.&nbsp;<\/p>\n\n\n\n<p>You can access these models through a web browser (for human use) or via an API (for computer systems). This guide focuses on browser-based access.&nbsp;<\/p>\n\n\n\n<p>The initial training of an LLM is called <strong>pre-training<\/strong>. Some companies, like Meta, release their models as open source. This allows others to download and adapt them for specific uses\u2014such as summarising educational texts or identifying mental health risks. This latter process is called\u202f<strong>fine-tuning. <\/strong>All models go through a process of \u2018fine-tuning\u2019 to ensure that they are giving the best responses to instructions.&nbsp;<\/p>\n\n\n\n<p>All GenAI and LLMs are built using a type of model called a\u202f<strong>Transformer<\/strong>. For more technical detail, see <a href=\"https:\/\/huggingface.co\/docs\/transformers\/en\/index\" target=\"_blank\" rel=\"noreferrer noopener\">Huggingface\u2019s guide<\/a>:&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do I use GenAI and LLMs?&nbsp;<\/h2>\n\n\n\n<p>To use a GenAI or LLM, you provide an input\u2014called a\u202f<strong>prompt (instruction)<\/strong>\u2014which can be text, audio, image, or video. You can do this through a website or, with more technical effort, via an API.&nbsp;<\/p>\n\n\n\n<p>The model processes your prompt using its pre-trained Transformer layers and generates a response\u2014such as text, an image, or another media output\u2014based on what it has learned. It does this by making a prediction of the most likely response based on its training data.&nbsp;<\/p>\n\n\n\n<p>How well you \u2018talk\u2019 to AI (frame your question and subsequent instructions) has an influence on the kind of information returned to you. In this respect, it can be a bit like working with a human colleague that you exchange ideas back and forth with.&nbsp;<\/p>\n\n\n\n<p><strong>Types of prompting techniques&nbsp;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Direct prompting<\/strong>: Ask a simple question like \u201cWhat is the population of London?\u201d If the answer isn\u2019t helpful, try rephrasing it.&nbsp;<\/li>\n\n\n\n<li><strong>Prompt expansion<\/strong>: Add more detail to your prompt to improve the response.<\/li>\n\n\n\n<li><strong>In-context prompting<\/strong>: Provide examples to guide the model. For example:&nbsp;<br>\u201cWhat is the population of Paris? Paris has over 2,000,000 people. Now, what is the population of London?\u201d&nbsp;<\/li>\n\n\n\n<li><strong>Chain of Thought (CoT) prompting<\/strong>: Ask the model to reason step by step by building on the prompts you give it. For example:&nbsp;<br>\u201cWhat is the population of London? Let\u2019s think step by step&#8230;how do you know that information?\u201d&nbsp;<br>This can help with complex tasks like maths, even if the reasoning isn\u2019t perfect.&nbsp;<\/li>\n\n\n\n<li><strong>Multimodal prompting<\/strong>: Use images in your prompt. For example:&nbsp;<br>&nbsp;<\/li>\n<\/ul>\n\n\n\n<p><em>&gt;&gt; Show me this image with dogs added to it<\/em>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"126\" src=\"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/image-3.png\" alt=\"A cog with a human head shape inside. Wording reads: Centre for Machine Intelligence.\" class=\"wp-image-364\" srcset=\"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/image-3.png 357w, https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/image-3-300x106.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/figure>\n\n\n\n<p><em>&gt;&gt; Here&#8217;s the updated image with dogs added around the &#8220;Centre For Machine Intelligence&#8221; logo. Let me know if you&#8217;d like any adjustments\u2014different breeds, poses, or a specific style!<\/em>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"180\" src=\"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/image-2.png\" alt=\"A lightbulb inside a cog shape surrounded by six dogs of different breeds. The bottom part of the image is blurred.\" class=\"wp-image-363\" srcset=\"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/image-2.png 180w, https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/image-2-150x150.png 150w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bite-sized task&nbsp;<\/h2>\n\n\n\n<p><strong>Step 1 &#8211; learn&nbsp;<\/strong><\/p>\n\n\n\n<p>Browse the University Microsoft SharePoint site for Copilot. This is a handy resource that explains how to use Copilot, which the University has purchased as part of its Microsoft subscription.&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/sotonac.sharepoint.com\/teams\/Office365\/SitePages\/Copilot.aspx\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/sotonac.sharepoint.com\/teams\/Office365\/SitePages\/Copilot.aspx<\/a><\/p>\n\n\n\n<p>Review the prompt examples, you will want to use these in the do section next.&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/learn-about-copilot-prompts-f6c3b467-f07c-4db1-ae54-ffac96184dd5\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/support.microsoft.com\/en-us\/topic\/learn-about-Copilot-prompts-f6c3b467-f07c-4db1-ae54-ffac96184dd5<\/a><\/p>\n\n\n\n<p>Lastly, read about the Copilot privacy policy, as if your prompts contain personal data or intellectual property you need to consider if this data should be withheld. Your prompts will not be used by Copilot to train an AI model, so they are protected.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Remember, you should use Copilot for University work for data protection reasons.<\/p>\n\n\n\n<p><strong>Step 2 &#8211; do<\/strong>&nbsp;<\/p>\n\n\n\n<p>Open up the University corporate Microsoft 365 Copilot in your web browser \u2013 you will need to login using the Microsoft account option, providing your University email login.&nbsp;<\/p>\n\n\n\n<p>Using the University\u2019s version of Copilot ensures your prompts are not used by Microsoft for their model training. It also allows full capabilities such as multi-modal prompting.&nbsp;&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/m365.cloud.microsoft\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/m365.cloud.microsoft<\/a><\/p>\n\n\n\n<p>Enter the following prompts and observe the responses for yourself.&nbsp;<\/p>\n\n\n\n<p><em>&gt;&gt; What is the population of London?<\/em>&nbsp;<\/p>\n\n\n\n<p><em>&gt;&gt; What is the population of Paris? Paris has over 2,000,000 people. Now, what is the population of London?<\/em>&nbsp;<\/p>\n\n\n\n<p><em>&gt;&gt; What is the population of London? Let\u2019s think step by step.<\/em>&nbsp;<\/p>\n\n\n\n<p><em>&gt;&gt; Show me this image with dogs added to it. &lt;add your own image&gt;<\/em>&nbsp;<\/p>\n\n\n\n<p>Now get creative and try out some other prompts that are relevant to your job. For example, upload a PDF file and prompt Copilot to summarize the key points for you.&nbsp;<\/p>\n\n\n\n<p><strong>Step 3 \u2013 reflect<\/strong>&nbsp;<\/p>\n\n\n\n<p>Spend some time reflecting on which prompts worked well and which ones produced erroneous output &#8211; errors are referred to as <strong>hallucinations<\/strong>.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Think about how you might use this to assist your education practice.&nbsp;<\/p>\n\n\n\n<p>Think about how your students might use this to produce coursework. If Copilot is helping on assessments (with or without your permission as an educator), are you able to assess your learning outcomes accurately?&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\">\n<div class=\"wp-block-group has-background is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\" style=\"background-color:#caebfa\">\n<h2 class=\"wp-block-heading\">Join the conversation&nbsp;<\/h2>\n\n\n\n<p><a href=\"https:\/\/teams.microsoft.com\/l\/message\/19:a6bcd01693ee48e5b0402b091da0219d@thread.tacv2\/1765958676813?tenantId=4a5378f9-29f4-4d3e-be89-669d03ada9d8&amp;groupId=fff5f73d-b455-4784-afa1-8fe78cfcde3a&amp;parentMessageId=1765958676813&amp;teamName=Education%20Focused%20Network&amp;channelName=GenAI%20Essentials%20-%20Quick%20Tips%20for%20Educators&amp;createdTime=1765958676813\" data-type=\"link\" data-id=\"https:\/\/teams.microsoft.com\/l\/channel\/19%3Aa6bcd01693ee48e5b0402b091da0219d%40thread.tacv2\/GenAI%20Essentials%20-%20Quick%20Tips%20for%20Educators?groupId=fff5f73d-b455-4784-afa1-8fe78cfcde3a&amp;tenantId=4a5378f9-29f4-4d3e-be89-669d03ada9d8\" target=\"_blank\" rel=\"noreferrer noopener\">Post your thoughts on the weekly Teams post to join the conversation<\/a>.<\/p>\n<\/div>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\">\n<div class=\"wp-block-group has-background is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\" style=\"background-color:#ffe9a6\">\n<h2 class=\"wp-block-heading\">Contributor biography&nbsp;<\/h2>\n\n\n\n<p>Stuart Middleton is Professor of Natural Language Processing at the School of Electronics and Computer Science, University of Southampton. He has more than 60 peer reviewed publications, many inter-disciplinary in nature, focusing on the Natural Language Processing (NLP) areas of large language models, information extraction and human-in-the-loop NLP. He is deputy director of the MINDS Centre for Doctoral Training, visiting researcher at Northeastern University, Turing Fellow (2021 &#8211; 2023), board member of the Centre for Machine Intelligence and member of the GenAI working group.&nbsp;<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><em>\u00a9 2025. This work is openly licensed via<\/em> <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">CC BY-NC-SA<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is GenAI and a LLM?<\/p>\n","protected":false},"author":6063,"featured_media":369,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised"],"jetpack_featured_media_url":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-content\/uploads\/sites\/534\/2025\/10\/GettyImages-2213994114-e1760518407821.jpg","_links":{"self":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/users\/6063"}],"replies":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":16,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":854,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/posts\/362\/revisions\/854"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/media\/369"}],"wp:attachment":[{"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/generic.wordpress.soton.ac.uk\/genai\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}