liveBook · Manning

Weight

As explained in Introduction to Generative AI, Second Edition

A model weight is a learned numerical parameter that determines the strength of a computational connection in a machine-learning model.

In a neural network, a weight represents the strength of a connection between nodes. Each node combines weighted inputs and adds a bias; training iteratively adjusts weights and biases to perform well against the model’s objective. A model’s parameter count refers to its learned weights and indicates the complexity it can handle. section 1.1

For a large language model, learned weights are an end product of training. Access to them can enable reproduction of the model, making the protection of proprietary, unreleased weights a security concern. section 10.29

Llama 1 weight leak

After Meta’s Llama 1 weights leaked, users quickly produced a high-quality language model based on Llama 1. section 10.29

Figure 10.5 The three pillars of voluntary commitments made to the White House by leading AI companies
A screenshot of a cell phone

AI-generated content may be incorrect.

The figure summarizes voluntary AI commitments, including security commitments to protect proprietary, unreleased model weights. section 10.29

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains weights as connection strengths, their iterative adjustment, and their role in parameter counts, but defers the underlying mathematics.
Examples
Uses the leak of Meta’s Llama 1 weights and rapid reproduction of a model based on it as a security example.
What you can do after
Understand how training sets connection strengths and why access to model weights can enable model reproduction.
How it connects
Links weights to neural networks, training, bias terms, model parameters, and large language models.

Also explained in

Compare how 4 books explain weight →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.