X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=README.txt;h=d5cf6d861245694c9fd2c2c4770486e762d949ae;hb=cdf7c042612ee3b7e5cc2277e82399693a3bf343;hp=d4cb93d405a81f0d3d3b6118ab06860f2953cb68;hpb=2175a87ad4304a97c63ac9cca6224d0c0b74c64e;p=culture.git diff --git a/README.txt b/README.txt index d4cb93d..d5cf6d8 100644 --- a/README.txt +++ b/README.txt @@ -1,17 +1,61 @@ -For the stack experiment: +Trying to make GPTs build their own "culture". -./main.py --task=stack +Francois Fleuret +Jun 21st, 2024 -Takes ~1h10min on a 4090. +* Motivation -For the arithmetic expressions experiments +The original motivation of this experiment is the hypothesis that +high-level cognition emerges from the competition among humans in the +space of language and ideas. -# 38M parameters / 250k samples +More precisely, communicating agents try to out-do competitors by +creating stuff that is smart but doable, e.g. some other agents get +it, but not all. Then, that smart thing is added to the "culture", +they all learn and get to understand it, and it repeats. -./main.py --task=expr +* Setup -# 352M parameters / 2.5M samples, reaches 99.80% after 12 epochs, the - learning rate schedule is obviously terrible +It starts with a "world model" that they got before they communicate, +and from there, they try to "be smart" by proposing quizzes that can +be solved but not by everybody. -./main.py --task=expr --nb_blocks=48 --dim_model=1024 --nb_train_samples=2500000 --result_dir=results_expr_48b_d1024_2.5M +There are 5 competing GPTs. + +The "world" is a 7x9 grid with three "birds" moving in a straight line +and bouncing on the world's borders. It could be another "world", but +this one has objectness and motion. + +Given a random world state, and the state after two iterations of +birds moving, a "quiz" is to predict the second frame, given the +first, or the opposite. The starting and ending states are chosen, by +rejection, so that there is no occlusion. + +My home-baked GPT-37M trained with 250k solves this with ~99% success +[to be verified with the new setup]. + +At every iteration, we select the GPT with the lowest test accuracy, +and run one epoch. + +If its test accuracy got higher than 97.5%, it will create new +quizzes. To do so, it generates a large number of pairs of frames, and +checks which ones of these quizzes are hard but not too hard, which +means + +[THIS IS THE IMPORTANT BIT]: + +it can be solved, in both time directions, by all the other GPTs **but +one** + +The both time directions is to avoid a simple type of quizzes which is +simply to deal with noise in the first frame. + +The GPT generates 1000 of such quizzes, that are added to the +"culture", i.e. the training set. + +We update the test accuracy of all the GPTs, and then we go to the +next iteration. + +The hope is that interesting concepts emerge (connectivity, symmetry, +interior/exterior, shape vocabulary, etc.)