Eigen RadarAI
Analysis

Z.ai’s test of repeated model layers used more training compute

Chinese model developer Z.ai compared two experimental models with the same number of parameters, including one that reuses layers. The version with repeated layers used about 10 percent more computation to train. The newly launched GLM-5.4 uses this design. Its two passes share some information about previous input and keep some separate.

Artificial Intelligence··Midday
At a sunlit AI research studio in Beijing, a foreground liquid-cooled compute rig with a double-pass return loop sits beside a comparable rear rig routed in a flat single-pass path on a slate workbench.AI image

The comparison held the number of parameters fixed

Chinese artificial intelligence developer Z.ai launched GLM-5.4 with a design that runs part of the model twice.[1], [2]

In the company’s training comparison, each experimental model had 30 billion parameters, the numerical settings learned during training. With the parameter count held fixed, training the version with repeated layers took about 10 percent more computation. The trials covered mathematics, science, long input and instruction following. Z.ai used experiments on smaller models to decide how to train the released model.[1]

Z.ai carried over training from the February model

Z.ai started with the GLM-5 base model it released in February. It says earlier attempts to train models with repeated layers from scratch fared worse than using separate weights for the same amount of computation. The released design limits how sharply intermediate values can grow at each pass and at each unit of input. The first pass builds context, and the second gives greater weight to the changes made by the repeated layers.[1]

The two passes share a cache

Both passes share a cache that holds information about earlier parts of the input. In the first pass, the model selects which portions of the input to attend to. It reuses that selection in the second pass rather than scanning the entire input again. The second pass also keeps values of its own over a shorter span.[1]

References

  1. News sourceThe DecoderZ.ai's GLM-5.4 runs 28 model layers twice↩1↩2↩3↩4
  2. News sourceTNWChina’s Z.ai launches GLM-5.4 with repeated layers↩