Model weight from zero to one: random birth, data carving (use a mini game to better understand the model weight from 0 to 1)
An article that uses gpt6.2astra iteration to facilitate a zero-based understanding of the model from zero to one. This chaotic world is the initial state of the model. The guessing process is the repeated operation of the model training from 0 to 1. Although it is not detailed and there is no data, it will give you a better understanding of the general process of the model from 0 to 1.
Born in a chaotic world, there are no trees, no rivers, just random squares. My task is to start from these two columns of soil under my feet, and create the ground one by one that will allow me to walk to the other end of the map. The small soil platform marked "Starting Point" in the picture is the soil under my feet. The one in blue is me. In this game of Minecraft, I am the model that generates the terrain. The one in yellow is my friend, he is waiting for me under the red flag.
Every time I come to an empty space, I have to make a choice: put soil or leave air? After finishing the paving for the first time, I stood at the starting point and looked forward. The place marked "gap" on the map should have been soil for me to rest on, but it was filled with skylight. Looking up, I saw several pieces of soil hanging upside down in the air. I took back the foot I had just stepped out.

Why would I put dirt into the sky? Before each move, I could see the blocks already appearing to the left and below the empty space. There are four positions in total. Each position may be earth or air. In total, there are sixteen ways to place it. Each placement method is associated with a number. The higher the number, the more inclined I am to put soil. These sixteen adjustable numbers are my weights. When they are born, they are randomly drawn from around zero. Fill a hole in the soil, and the chance of putting soil in is close to half. When it comes to an open space in mid-air, the chance is close to half.
A friend opened a hillside archive and covered it with a piece of paper with a question mark on it. "Guess, what's under the paper?" I stared at the yellow box. There is soil exposed on the side of the frame, and there is also soil underneath. I give dirt a 49.4% chance, slightly more bullish on air. The friend opened the paper, and a piece of soil was exposed in the yellow frame, which was exactly level with the ground next to it.

The lower the probability that I give the true answer, the greater the loss in this prediction. The training program works backwards from the loss to find out which way the weights just used should be adjusted. This is called backpropagation. This time, it moved that number from −0.0241 to +0.0974.
The friend walked to the other end of the slope and covered it with another piece. The place has been changed, but the soil and air on the edge of the paper are arranged the same as before. I still use the numbers I just adjusted. Before my friend even opened the paper, my probability of giving dirt had risen from 49.4% to 52.4%. This time I guessed it was dirt underneath.
Sometimes what my friend reveals is air, and the number is adjusted back. After practicing 240 hillside pictures, and encountering the kind of placement next to the yellow box, my probability of giving dirt is 75.2%. Other placement methods also have their own numbers. I will gradually fill in the soil, and when I reach the surface, I will stop my hands, leaving air above my head. My friend put away the archive and I saved the sixteen numbers I had practiced.
During the break, my friend opened the mine diary and covered the words behind "I raised fire" with his finger. I guess "put". He removed his finger, and it turned out to be "hand" on the paper. I recognized the question in the yellow box. Switching to a language model, each time I guess is a text fragment, called token. Here we first treat a word as a token. The "handle" in the original text is like the soil in the yellow box, giving me an answer that can be checked. Practicing in this way using a large amount of original text is self-supervised pre-training of the language model. When I continue writing, the word "bar" I picked up will remain in the sentence and become a clue for me to write further.
When I read "I raised the torch, the mine suddenly...", I might have followed "I lit up". If it had been written "extinguished the torch", I would be more likely to pick "dark". The attention mechanism allows me to refer to the previous verb when I continue writing. Later, I was taught to be an assistant, who could show me questions and model answers, and do supervised fine-tuning (SFT). You can also ask someone to compare the two responses and continue to adjust the weighting based on their preferences. Both the RLHF and the DPO could use this feedback.
My friend closed the diary, opened a new map, and placed a red flag on the opposite side. I started from the same small soil platform with the trained weights. I put down a piece of dirt next to the platform. When it was my turn to find the empty space above it, what I looked down and saw was the soil I had just placed. Move one step closer to the red flag, and the land on the left is also paved by me. This time there was no archive to reveal the answer to me, so I just followed my own judgment and spread it all the way to the wooden platform under the flagpole.
Counting the starting point, there are 69 pieces of dirt in the first picture and 70 in this one. There is only one more piece of soil. This time, the entire section of the ground was connected from my small soil platform to my friend's feet.

I stepped out from the starting point, followed the green arrow up the hillside I paved, and walked down the other side step by step. I stepped onto the wooden platform under the red flag and gave a high-five to my friend who was waiting there.
There are no messages yet. please Log in or Register an account Start this discussion.