Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Machine Learning»How Much Do Language Models Really Memorize? Meta’s New Framework Defines Model Capacity at the Bit Level

    How Much Do Language Models Really Memorize? Meta’s New Framework Defines Model Capacity at the Bit Level

    June 11, 2025

    Introduction: The Challenge of Memorization in Language Models

    Modern language models face increasing scrutiny regarding their memorization behavior. With models such as an 8-billion parameter transformer trained on 15 trillion tokens, researchers question whether these models memorize their training data in a meaningful way. Common techniques, including data extraction and membership inference, fall short as they often fail to distinguish between memorization and generalization.

    Limitations of Existing Approaches

    Previous frameworks like extraction-based methods or differential privacy operate at the dataset level, not accounting for instance-specific memorization. Language modeling through compression and assessments of capacity through fact memorization (as in RNNs and quantized transformers) offer partial insight but lack scalability and precision, especially for deep transformer architectures.

    A Novel Approach to Measuring Memorization

    Researchers from FAIR at Meta, Google DeepMind, Cornell University, and NVIDIA have proposed a novel method for estimating how much a model “knows” about specific datapoints to measure the capacity of modern language models. They separate memorization into two components: unintended memorization, which represents the information a model contains about a dataset, and generalization, which captures the information about the true data-generation process. They calculate total memorization to provide accurate estimates of model capacity by removing generalization, showing that GPT family models have an approximate capacity of 3.6 bits-per-parameter. Researchers also developed a series of scaling laws that relate model capacity and data size to membership inference by training hundreds of transformer language models.

    Experimental Framework and Training Methodology

    Using the GPT-2 architecture, the team trained hundreds of models ranging from 100K to 20M parameters, varying depths (1-8 layers), and hidden sizes (32-512). Training involved:

    • 10^6 steps
    • Batch size: 2048
    • Precision: bfloat16
    • Hardware: Single A100 GPU

    These models were trained on both synthetic sequences and deduplicated 64-token text sequences from the FineWeb dataset. The experiments ensured minimal interference from generalization through careful dataset construction.

    Model Capacity Insights and Key Findings

    • Bits per parameter: Across configurations, models consistently stored between 3.5 and 3.6 bits/parameter.
    • Double descent: As training dataset size approaches model capacity, test loss initially decreases (overfitting), then improves again as models begin generalizing.
    • Precision impact: Training in float32 increases storage capacity slightly (to ~3.83 bpp) compared to bfloat16 (~3.51 bpp).

    Disentangling Memorization and Generalization

    Switching from synthetic to real-text datasets, the team observed:

    • Sample-level unintended memorization increases with parameter count.
    • Memorization decreases as training set size increases.
    • Accurate estimation of model memorization requires deduplication and reference to an oracle model for baseline compression rates.

    Membership Inference Scaling Laws

    The researchers modeled the success rate (F1 score) of loss-based membership inference as a function of the ratio between model capacity and dataset size. Key observations:

    • Membership inference becomes unreliable as datasets grow.
    • Predictive scaling laws remain accurate within 1-2% for models up to 1.5B parameters.

    Conclusion: A Better Understanding of Model Behavior

    This work establishes a principled framework for measuring memorization in language models. By introducing quantifiable metrics and scalable experiments, it deepens our understanding of how transformer models encode training data and draws a clear boundary between memorization and generalization. The resulting insights can guide future developments in model evaluation, privacy, and interpretability.


    Check out the Paper. All credit for this research goes to the researchers of this project. Also, feel free to follow us on Twitter and don’t forget to join our 99k+ ML SubReddit and Subscribe to our Newsletter.

    ▶ Want to promote your product/webinar/service to 1 Million+ AI Engineers/Developers/Data Scientists/Architects/CTOs/CIOs? Lets Partner..

    The post How Much Do Language Models Really Memorize? Meta’s New Framework Defines Model Capacity at the Bit Level appeared first on MarkTechPost.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleNVIDIA Researchers Introduce Dynamic Memory Sparsification (DMS) for 8× KV Cache Compression in Transformer LLMs
    Next Article Supercharging Workflows with AI Agent and Copilot Development🚀

    Related Posts

    Machine Learning

    How to Evaluate Jailbreak Methods: A Case Study with the StrongREJECT Benchmark

    July 22, 2025
    Machine Learning

    Boolformer: Symbolic Regression of Logic Functions with Transformers

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    Building A 300 Channel Video Encoding Server

    Development

    RelCon: Relative Contrastive Learning for a Motion Foundation Model for Wearable Data

    Machine Learning

    CVE-2025-53475 – Advantech iView SQL Injection and Remote Code Execution Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Fix Vibrant Visuals Greyed Out in Minecraft Bedrock

    Operating Systems

    Highlights

    CVE-2025-48369 – Group-Office Cross-Site Scripting (XSS) Vulnerability in Tasks Comment Functionality

    May 22, 2025

    CVE ID : CVE-2025-48369

    Published : May 22, 2025, 6:15 p.m. | 36 minutes ago

    Description : Group-Office is an enterprise customer relationship management and groupware tool. Prior to versions 6.8.119 and 25.0.20, a persistent Cross-Site Scripting (XSS) vulnerability exists in Groupoffice’s tasks comment functionality, allowing attackers to execute arbitrary JavaScript by uploading an file with a crafted filename. When administrators or other users view the task containing this malicious file, the payload executes in their browser context. The application fails to sanitize image filenames before rendering them in the comment. By uploading an image with a crafted filename containing XSS payloads, attackers can steal sensitive information. Versions 6.8.119 and 25.0.20 contain a fix for the issue.

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    How the Model Context Protocol (MCP) Standardizes, Simplifies, and Future-Proofs AI Agent Tool Calling Across Models for Scalable, Secure, Interoperable Workflows Traditional Approaches to AI–Tool Integration

    May 5, 2025

    Xbox has become a Game Pass machine and nothing more — Is it enough to justify Microsoft’s console over a costly gaming PC?

    May 6, 2025

    CVE-2025-38158 – Hisi Acc VFio PCI DMA Address Error Vulnerability

    July 3, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.