Yes, you are correct. In a 7 billion parameter language model, the term "parameters" encompasses both the weights and the biases across all the layers of the neural network. The vast majority of these parameters are indeed the weights, as they exist for every connection between neurons across layers.
Let's break down the composition of these parameters:
-
Weights: Each neuron in one layer is connected to neurons in the next layer, and each of these connections has a weight. In large-scale models with multiple layers and potentially thousands of neurons per layer, the number of weights can be very high.
-
Biases: Each neuron has a single bias parameter. While the number of biases is also large, it is significantly smaller than the number of weights because there is only one bias per neuron, not one per connection.
So, in a 7 billion parameter model, the count of 7 billion includes both types of parameters, but the weights make up the majority. To give a simplified example: if a model has a layer with 1000 neurons and the next layer also has 1000 neurons, this would result in 1,000,000 weights just for the connections between these two layers (because each of the 1000 neurons in one layer is connected to each of the 1000 neurons in the other layer). Additionally, each of the neurons in both layers would have a bias parameter, adding another 2000 parameters (1000 biases for each layer's neurons).
In summary, a large-scale language model with billions of parameters has a staggering variety of weights and biases, which collectively enable it to perform complex language processing tasks by capturing subtle patterns in the data it was trained on.