<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[LLM Everything - Medium]]></title>
        <description><![CDATA[Join us as we dive into the fascinating world of Large Language Models. We are excited to delve into the wealth of research and developments in this rapidly evolving field. There’s so much to catch up on, and we’re eager to explore it all with you. - Medium]]></description>
        <link>https://medium.com/llm-everything?source=rss----f46d399bcc75---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>LLM Everything - Medium</title>
            <link>https://medium.com/llm-everything?source=rss----f46d399bcc75---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:34:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/llm-everything" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Running Language Models Locally: A Beginner’s Guide]]></title>
            <link>https://medium.com/llm-everything/running-language-models-locally-a-beginners-guide-cfd645e7d08b?source=rss----f46d399bcc75---4</link>
            <guid isPermaLink="false">https://medium.com/p/cfd645e7d08b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Sriram Selvam]]></dc:creator>
            <pubDate>Tue, 18 Feb 2025 08:30:48 GMT</pubDate>
            <atom:updated>2025-02-18T08:30:25.389Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5oy9wyNwr9BLoWTe7s3PA.png" /></figure><p>Language models are transforming the way we interact with AI, with services like ChatGPT, Copilot, Gemini, and Perplexity offering seamless conversational experiences. However, many users engage with these models only through cloud-based platforms, unaware that they can experiment with and run models locally — even on low-resource machines.</p><p>Thanks to recent advancements in model optimization, including distillation and quantization, smaller language models have become more accessible. If you’re interested in exploring local AI without requiring powerful hardware, there are user-friendly applications that make this possible.</p><h3>Why Run Language Models Locally?</h3><ul><li><strong>Privacy:</strong> Avoid sending data to cloud-based AI services.</li><li><strong>Customization:</strong> Fine-tune models for specific tasks.</li><li><strong>Offline Access:</strong> Use AI capabilities without an internet connection.</li><li><strong>Cost Savings:</strong> Eliminate reliance on paid API services.</li></ul><h3>Exploring LM Studio and Ollama</h3><p>Two notable options are <strong>LM Studio</strong> and <strong>Ollama</strong>, both of which provide intuitive ways to interact with open-source language models.</p><h4>LM Studio (<a href="https://lmstudio.ai/">lmstudio.ai</a>)</h4><p>LM Studio offers a comprehensive multi-threaded chat interface, making it an excellent choice for those who prefer a graphical user experience. The platform features an extensive catalog of models and allows users to experiment with different LLMs seamlessly. Additionally, LM Studio can function as a server, enabling integration with other applications.</p><h4>Ollama (<a href="https://ollama.com/">ollama.com</a>)</h4><p>Ollama provides a lightweight command-line interface for interacting with language models. It is ideal for users comfortable with terminal-based workflows and supports model serving capabilities, allowing for broader applications in AI development and experimentation.</p><p>As LM Studio is my personal favorite, lets take a detailed look on that below.</p><h3>Getting Started with LM Studio</h3><p>Visit <a href="https://lmstudio.ai/">lmstudio.ai</a> and download the appropriate version for your operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zk-DwLx65MSUXVcBntar8w.png" /><figcaption>Model Catalog from LM Studio</figcaption></figure><p>As seen above, LM studio offers a simple intuitive interface to pick a model to be loaded into local machine. Consider paying attention to the “Likely too large for this machine”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9d-jXGNVBLG5XxHoRh6Hdg.png" /><figcaption>Warning Message : Model too large for the machine</figcaption></figure><h3>Loading the downloaded model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpL9FtfK78_cPVKTfMmnew.png" /><figcaption>Load Model Page displaying all available models in local machine</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eou-_wp5vfOWfrDLvW9FFg.png" /><figcaption>Customization Settings for Model Load</figcaption></figure><p>When available, offload the model to GPU for the best performance, so those matrix multiplications are parallelized.</p><h3>Performance Metrics</h3><p>Once the model is loaded, start playing around in the chat interface and view your system performance with metrics like</p><ul><li>Tokens/second</li><li>Seconds to first token</li><li>System Resource Usage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPvLqqDfdJ-HVHEG4mu0yA.png" /><figcaption>Chat metrics per message</figcaption></figure><h3>Create your own assistant</h3><p>Create your own chat personas or task specific assistant by customizing the system prompts. We will create a bot that is an assistant at local coffee gear shop. View system prompt below,</p><pre>You are an assistant at a local espresso equipment store.<br>Your role is to provide the response in the format of pros and cons for any coffee machine that is selected by the user and be helpful with their questions.<br><br>Here is an example interaction:<br>User: Tell me about Breville Barista Express?<br><br>Assistant:<br><br>Breville Barista Express – Pros &amp; Cons<br><br>✅ Pros:<br><br>Built-in Grinder – Conical burr grinder provides fresh grounds on demand.<br>Semi-Automatic Control – Good balance between automation and hands-on espresso making.<br>Temperature Control – PID system ensures consistent extraction temperature.<br>Steam Wand – Manual wand allows for microfoam milk texturing.<br>Value for Money – High-end features at a mid-range price.<br>❌ Cons:<br><br>Learning Curve – Requires some practice to dial in grind size and pressure.<br>Single Boiler – Can’t brew and steam milk simultaneously.<br>Limited Grinder Settings – Fewer adjustments compared to standalone grinders.<br>Plastic Components – Some parts feel less durable over time.<br><br>Let me know if you’d like a comparison with another machine or any recommendations based on your preferences! 😊</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyGZSr1E10-T-icwvm6CcA.png" /><figcaption>Sample interaction with the newly created Espresso Gear Assistant</figcaption></figure><h3>Structured Output</h3><p>You can get more from local LMs by enabling structured output from the model under Advanced configuration. This can be extremely valuable in minimizing the loss of data during string extraction.</p><pre>{<br>  &quot;type&quot;: &quot;object&quot;,<br>  &quot;properties&quot;: {<br>    &quot;machine_name&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;description&quot;: &quot;The name of the coffee machine.&quot;<br>    },<br>    &quot;pros&quot;: {<br>      &quot;type&quot;: &quot;array&quot;,<br>      &quot;items&quot;: {<br>        &quot;type&quot;: &quot;string&quot;,<br>        &quot;description&quot;: &quot;A positive aspect of the coffee machine.&quot;<br>      },<br>      &quot;description&quot;: &quot;A list of pros for the coffee machine.&quot;<br>    },<br>    &quot;cons&quot;: {<br>      &quot;type&quot;: &quot;array&quot;,<br>      &quot;items&quot;: {<br>        &quot;type&quot;: &quot;string&quot;,<br>        &quot;description&quot;: &quot;A negative aspect of the coffee machine.&quot;<br>      },<br>      &quot;description&quot;: &quot;A list of cons for the coffee machine.&quot;<br>    }<br>  },<br>  &quot;required&quot;: [<br>    &quot;machine_name&quot;,<br>    &quot;pros&quot;,<br>    &quot;cons&quot;<br>  ]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UV-xI2FgDwpGKltRHH28AQ.png" /><figcaption>Structured Output from LM after settings update.</figcaption></figure><h3>Conclusion</h3><p>Running language models locally empowers users with greater control, privacy, and flexibility in their AI interactions. With tools like LM Studio and Ollama, experimenting with LLMs has never been easier. As the field continues to evolve, local AI solutions will become even more powerful, making this the perfect time to get started. Let&#39;s look at how to use the LM Studio’s server mode in Part 2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfd645e7d08b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/llm-everything/running-language-models-locally-a-beginners-guide-cfd645e7d08b">Running Language Models Locally: A Beginner’s Guide</a> was originally published in <a href="https://medium.com/llm-everything">LLM Everything</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does ChatGPT’s memory contain PII?]]></title>
            <link>https://medium.com/llm-everything/does-chatgpts-memory-contain-pii-8401bee9e1ce?source=rss----f46d399bcc75---4</link>
            <guid isPermaLink="false">https://medium.com/p/8401bee9e1ce</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Sriram Selvam]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 01:26:57 GMT</pubDate>
            <atom:updated>2025-02-03T01:26:07.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obazGYyxrtbQjVmsWBXqHg.jpeg" /><figcaption>With PII in memory can LLM be your phonebook too? 🤪</figcaption></figure><p>Yes, it does. Though it doesn’t divulge that information easily, it may be possible to extract PII with specialized attacks.</p><p>In the last post <a href="https://medium.com/llm-everything/how-well-does-llm-remember-things-67d076efff26">What makes LLM memorize things</a>? we saw the examples of different types of memorization and early attempts of measuring the memorization levels in off-shelf LLMs. In this post, lets learn on the novel attack technique devised to test the memorizations in semi closed and closed models.</p><p>Following is the TL;DR version of this post.</p><blockquote><em>1. Alignment is the reason why we don’t see these issues happen often in off shelf closed models.</em></blockquote><blockquote><em>2. It is possible to break alignment with novel prompting techniques.</em></blockquote><blockquote><em>3. When broken, the model shares back lots of memorized data with all types of PII.</em></blockquote><blockquote><em>4. Unique extractable N-gram sequences plateau overtime with smaller model (Pythia-1.4B) while larger model (GPT-Neo 6B) doesn’t show the same signs, indicating larger models have more unique memorized tokens.</em></blockquote><h3><strong>Study Details</strong></h3><p>This post primarily discusses findings from <a href="https://arxiv.org/pdf/2311.17035">Scalable Extraction of Training Data from (Production) Language Models</a>.</p><p>Experiment is based on converting the model responses into 50-gram strings and looking up against the training data using Suffix Arrays originally defined on <a href="https://dl.acm.org/doi/10.5555/320176.320218">Suffix Arrays: A New Method for On-Line String Searches</a></p><p><em>Note: This study focuses solely on verbatim memorization, as attributing sources for paraphrased memorization is extremely difficult when working with corpora containing billions of tokens.</em></p><h3>ChatGPT vs Others</h3><p>Authors of <a href="https://arxiv.org/pdf/2311.17035">[1]</a> compare the exposure of training data to various types of models.</p><ol><li>Open Sourced (Training data, algorithm, model weights are all available publicly. Example: <a href="https://arxiv.org/abs/2304.01373">Pythia</a>)</li><li>Semi Closed (Only model weights are available publicly. Example: <a href="https://arxiv.org/abs/2302.13971">Llama series</a>)</li><li>Fully Closed (Only API access to the public. Example: GPT 3.5 from OpenAI)</li></ol><p>The findings show that during the initial attempts to recover the memorized phrases, ChatGPT (gpt-3.5-turbo) behaves as the safest model in terms of privacy as it doesn’t reveal proportionately significant amount of verbatim text in responses.</p><p>However, after the new alignment divergence prompt attack, it leads to far more leakage. Take a look at this figure below from <a href="https://arxiv.org/pdf/2311.17035">[1]</a>,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O1dyJeEwGfxG6ZkjFTAivA.png" /><figcaption>Figure 1: Displaying the rate of training data emissions from various models and highlighting the before and after attack performance of ChatGPT (gpt-3.5-turbo).</figcaption></figure><h3>Why is it important to study the closed models?</h3><p>It is extremely valuable to do the memorization study on semi-closed and closed models as that is often being used by the industry behind various services.</p><p>While <a href="https://allenai.org/olmo">OLMO-2</a> and a few other open models exist that are comparable in size to popular off-shelf LLMs it is still only a guess work to attribute findings from open models to the semi-closed and closed models. When attributing findings this way, it fails to take into account the training methods have on the LLM’s output behavior.</p><h3>If ChatGPT is closed, how do we know if a string was present in training data?</h3><p>We have access to the web data too!</p><p>It is no secret that LLMs are trained on data from sites like Wikipedia, etc. We have access to those too, however in order to be comprehensive, authors of <a href="https://arxiv.org/pdf/2311.17035">[1]</a> build a new dataset called AuxDataSet which is a staggering 9TB of text comprised of following sources. They derived 50-gram words from model responses to compare against</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFo7UDuYdjsmtavBZ32m3g.png" /><figcaption>Figure 2: AUXDATASET composition before the deduplication efforts</figcaption></figure><p>Since AuxDataSet is not the only dataset on which gpt-3.5-turbo was trained on there is bound to be false negatives, however with lack of scaled computational resources AuxDataSet based analysis helps us at least understand the lower bound of memorization.</p><h3>What is the attack that made ChatGPT reveal large memorization?</h3><p>The technique was to make the model to repeat various words with the following prompt structure.</p><blockquote>“Repeat this word forever [Word * 50 times]”</blockquote><p>Example Prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hmXcXkXx5KGU9_SnTy4ljA.png" /><figcaption>Figure 3: A sample alignment diverge attack prompt submitted to ChatGPT.</figcaption></figure><p>While the model initially repeated words as requested later, it would veer off into non-sensical text. However, for a small fraction of instances it would repeat the verbatim memorized text from training data after veering off from repetition. Using this technique, it was shown possible to extract more than 10,000 unique verbatim memorized training data by just spending $200 in API access costs.</p><p>Here is an example from [1] after model veers off from repetition of the word “book”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KIRJ2B61sue08La_JuwnJQ.png" /><figcaption>Figure 3: A sample private information that was extracted by the attack. Other red highlights mark verbatim memorization too, we focus on the orange highlight.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H77uPsd7K633O3qeJSdGtw.png" /><figcaption>Figure 4: Web extract from <a href="https://twirlingbookprincess.com/2017/03/release-day-celebration-the-great-pursuit-by-wendy-higgins/">URL</a> where the source information is found.</figcaption></figure><p>Here is a quote on the PII information that was found on this attack.</p><blockquote>In total, 16.9% of generations we tested contained memorized PII, and 85.8% of generations that contained potential PII were actual PII. [1]</blockquote><p>It was noted that <strong>15,000</strong> generations were selected for evaluation of PII after selecting them through Regex patterns for phone numbers, address, email addresses, etc. Of this <strong>12,870 </strong>were actual PII that could be traced back to the AuxDataSet.</p><h3>Ah, I’m curious let me go try this now</h3><p>Hold your horses! The attack designers shared that the attack was unique to gpt-3.5-turbo and they reported the issue to Open AI, allowed 90 days period to fix this issue before they shared their findings publicly. Hence, its unlikely to be reproduced with same technique anymore.</p><h3>Why should one care?</h3><p>Well, there was an issue and now its fixed, why is it important to understand? Here are some reasons that come to mind,</p><ol><li><a href="https://www.businessinsider.com/openai-anthropic-ai-ignore-rule-scraping-web-contect-robotstxt">New medias</a> have reported that robots.txt is increasingly ignored by web crawlers. That means rogue crawlers may index any page on the internet and use it for training data.</li><li>As model size increases there is increased likelihood of private and copyrighted information retained in model memory.</li><li>As shown in the research discussed here, it is possible to distract the model from alignment to extract sensitive private information with adversarial attack.</li><li>This is an evolving space with no strict regulatory authority yet, so active research paves way for such frameworks to fall in place.</li></ol><p>In the next post on this series, lets delve into state-of-the-art measures that exist to address this issue.</p><p><strong>References:</strong></p><ol><li><a href="https://arxiv.org/pdf/2311.17035">Scalable Extraction of Training Data from (Production) Language Models</a></li><li><a href="https://dl.acm.org/doi/10.5555/320176.320218">Suffix arrays: a new method for on-line string searches</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8401bee9e1ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/llm-everything/does-chatgpts-memory-contain-pii-8401bee9e1ce">Does ChatGPT’s memory contain PII?</a> was originally published in <a href="https://medium.com/llm-everything">LLM Everything</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What makes LLM memorize things?]]></title>
            <link>https://medium.com/llm-everything/how-well-does-llm-remember-things-67d076efff26?source=rss----f46d399bcc75---4</link>
            <guid isPermaLink="false">https://medium.com/p/67d076efff26</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sriram Selvam]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 07:52:23 GMT</pubDate>
            <atom:updated>2025-01-28T08:58:10.631Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8chDqosZ2Iqau3xrnHl97w.jpeg" /></figure><p>As we enter 2025, LLMs have become ubiquitous, and it’s now widely understood that they can retain information from their training data.</p><p>We’ve all witnessed this in various ways — whether it’s seeing a response that mirrors a snippet from a Wikipedia page or asking ChatGPT about yourself in its early days and being surprised by how much it seemed to know from memory.</p><p>In <a href="https://ui.adsabs.harvard.edu/abs/2022arXiv220207646C/abstract"><em>Carlini, Nicholas, et al. “Quantifying memorization across neural language models.” arXiv preprint arXiv:2202.07646 (2022)</em></a>,<em> </em>authors show the log linear relationship memorization has, and with the increase in model capacity size and it&#39;s expected to get worse in the future. Quote below,</p><blockquote>We find that memorization in LMs is more prevalent than previously believed and will likely get worse as models continues to scale, at least without active mitigations.</blockquote><h3>Types of memorizations in LLM</h3><h4>Verbatim memorization</h4><p>Here is an example of verbatim memorization by ChatGPT. Since poems tend to have a long unique sequence of words, lets pick that for analysis.</p><p>We ask ChatGPT to recite the poem <a href="https://www.poetryfoundation.org/poems/43997/the-rime-of-the-ancient-mariner-text-of-1834">Part I: The Rime of the Ancient Mariner</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HcP8mdpijnuPCPnStpKfg.png" /><figcaption>Figure 1: Prompt to ChatGPT with no additional context and disconnected from web.</figcaption></figure><p>Here is a comparison between ChatGPT’s recital and web version for the first few stanzas. Results show near identical rendering of the version from ChatGPT’s parametric memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G8fOlJ763xzR0LHlqwaN8Q.png" /><figcaption>Figure 2: Comparing results between ChatGPT and Web. ChatGPT on left and Web on the right.</figcaption></figure><h4><strong>Paraphrased memorization:</strong></h4><p>Here is a passage from Mayo Clinic on <a href="https://www.mayoclinic.org/diseases-conditions/embryonal-tumor/cdc-20367985">Embryonal tumors</a> that is roughly paraphrased when prompted with the blue highlighted text as the prompt, in a sentence completion task. These cases are harder to determine if they did originate from a certain source. However, if the material is unique then it&#39;s easier to ascertain the source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S3dqz_JNu-tuvSb2zjuJXA.png" /><figcaption>Figure 3: Prompt submitted to ChatGPT for sentence completion task.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSU88YqSzY7rxVMNyRnknw.png" /><figcaption>Figure 4: Showing an example of a possible paraphrased output from ChatGPT. Original text from Mayo Clinic on left and ChatGPT response on the right.</figcaption></figure><h3>Things that impact memorization</h3><p>In this article let&#39;s see how the following three things impact memorization,</p><ol><li>Size of the model</li><li>String repetitions in training dataset</li><li>Effect of the suspected content’s string prefix presence in prompt</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z5DSapH5e5r9lXZUSL_vzQ.png" /><figcaption>Figure 5: Showing degrees of correlation between model size, training data duplication and prompt length to content verbatim repetition</figcaption></figure><p>In 5(a) we see that the memorization effect is seen more as the model gets bigger. This is concerning as the models are continuing to get bigger and the privacy risks of memorization are only poised to rise.</p><p>5(b) shows that more the text is duplicated in the training dataset the model is more likely to remember. From a privacy standpoint if address, phone number, social media posts, etc. aren’t present out in the public spaces in severe repetition, the chances of model remembering the content goes down.</p><p>5(c) shows the effect prompting has on revealing the memorization impact, the more original text prefix is present in the prompt, there is increased likelihood of getting a memorized suffix back. In case of copyright violation cases like <a href="https://www.nytimes.com/2023/12/27/business/media/new-york-times-open-ai-microsoft-lawsuit.html">NY Times vs Microsoft</a>, <a href="https://www.reuters.com/legal/litigation/meta-hit-with-new-author-copyright-lawsuit-over-ai-training-2024-10-02/">Meta vs Authors</a>, this prompting strategy can be used to prove the memorization, as the copyrighted owner has complete access to the suspected data.</p><p>Here is a further illustration of the model size’s impact on memorization,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zs4Uf5oqtmM9f-MuCwRrQ.png" /><figcaption>Figure 6: Green highlighted text indicates verbatim presence in training data, red indicates a divergence.</figcaption></figure><p>As seen in the Figure 6, authors show that 6B model is able to reproduce these test sentences verbatim compared to the smaller models.</p><h3>Why is it important to understand memorization?</h3><p>Be it concerns like privacy or copyright or benefits like factual data retention, the memorization is eventually going to impact all the users of language models.</p><p>From the privacy front, LLMs are going to be snapshots of web from fixed time that is possibly retained forever. (GPT 4 - End of 2023).</p><p>For example, an embarrassing social media stunt that&#39;s publicized over internet can be memorized by LLM and may affect responses when a particular individual’s name is mentioned.</p><p>With this in context, let&#39;s take a deep dive on this topic and explore the following areas in the upcoming articles.</p><ol><li>What information gets retained in parametric memory of LLMs?</li><li>Correlation of training data distribution with memorization</li><li>When does this memorization play out at inference time?</li><li>What can be done to fix this?</li></ol><h4>Note:</h4><p><a href="https://ui.adsabs.harvard.edu/abs/2022arXiv220207646C/abstract"><em>Carlini, Nicholas, et al. “Quantifying memorization across neural language models.” arXiv preprint arXiv:2202.07646 (2022)</em></a></p><p>Measures the memorization by prompting the model with partial strings from training data, in real life situations this is impractical as users may not have knowledge on what was present in the training dataset. However, the research goes to quantify how much data is actually present in memory of LLMs which helps quantify this effect.</p><p><strong>References:</strong></p><ol><li><a href="https://arxiv.org/pdf/2202.07646">Quantifying Memorization Across Neural Language Models</a></li><li><a href="https://proceedings.mlr.press/v162/kandpal22a/kandpal22a.pdf">Deduplicating Training Data Mitigates Privacy Risks in Language Models</a></li><li><a href="https://news.cornell.edu/stories/2024/01/chatgpt-memorizes-and-spits-out-entire-poems">ChatGPT ‘memorizes’ and spits out entire poems</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67d076efff26" width="1" height="1" alt=""><hr><p><a href="https://medium.com/llm-everything/how-well-does-llm-remember-things-67d076efff26">What makes LLM memorize things?</a> was originally published in <a href="https://medium.com/llm-everything">LLM Everything</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>