- Rating
- 6
- Clarity
- 3
- Confidence
- 4
- Originality
- 4
- Quality
- 4
- Significance
- 4
Read review
Summary
The paper introduces requential coding, a coding technique which improves prequential coding by defining an expected code length that does not include the data entropy using a teacher-student mechanism. They show that this measure of compressibility of a model coherently decreases as model size increases, predicts overfitting and allows to define the intrinsic complexity of different datasets.
Strengths and weaknesses
Strenghts
- The overview of different approaches and techniques to measure the compressibility of a model in Section 1 is well structured, and it allows to well position this work in the literature. The same holds for the underlying motivations to look for metrics showing that as parameter count increases the effective complexity of the model must decrease, as suggested by how well quantization works well in practice.
- Results showed in Fig.4 and Fig.5 show a remarkable advantage in using the defined requential metric as a measure of model compressibility.
Weaknesses
- It's not clear what, when training a model with the requential approach, the encoder and decoder symbolize in practice.
- Authors might have missed to cite previous work on using relative entropy coding in the context of minimum description length [1].
- A more systematic comparison of prequential vs requential coding is missing among the results.
[1] Flood, Paris Dominic Louis, and Pietro Lio. "Prechastic Coding: An Alternative Approach to Neural Network Description Lengths." In Workshop on Machine Learning and Compression, NeurIPS 2024. 2024.
Questions
- Why do the curves showing requential code-length in Fig. 3 do not present values for all the number o tokes on the x-axis but look truncated?
- Can the requential code-length metric be used to study double-descent and other phenomenon like grokking? Do the authors think this metric can detect these phenomena?
- What does Complexity blue line represent in Fig. 7a and how do the authors claim to be able to detect overfitting in this setting?
- How complex is, computationally, "measuring the requential code-length of a model on a chosen dataset"? Can this mechanism also be thought as a distillation technique that produces a student model at the end? What's the cost comparad to prequential coding?
- Does requential coding suffer from the same "catch-up phenomenon" weakness of prequential coding [1]?
- Could the authors compare prequential coding measures in Fig. 1 and Fig. 4,5 or at least comment on them? Is the behavior of the curve of requential coding dramatically different from the one of prequential coding?
- Is there any theoretical evidence showing the convergence of the prequential code-length to the requential one or vice-versa?
- How much does the estimated requential code-length depends on the size of the teacher model?
[1] Blier, Léonard, and Yann Ollivier. "The description length of deep learning models." Advances in Neural Information Processing Systems 31 (2018).
Limitations
yes
Paper formatting concerns
No
Final justification
All my concerns and questions have been properly addressed and I think this work is an important contribution for explaining generalization in modern deep neural networks.
Thank you for the supportive review! We address your questions below and will include the clarifications and results in the revision.
Clarifying the encoder and decoder definitions. The encoder and decoder are the algorithms that define the encoding protocol (converting the model into its code) and the decoding protocol (recovering the model from the code) in requential coding. We provide pseudocode for an illustrative implementation of both in Figure 2.
Extended comparison with prequential coding. In the following table, we compare requential and prequential coding for 100M-parameter models trained on 2B tokens on three different datasets, providing further evidence that requential coding consistently outperforms prequential coding.
To your question of whether prequential coding shows a similar trend of larger models being more compressible: we repeated the experiment of Figure 4 (top) using prequential coding and found that its code length at fixed loss does also decrease with model size, but remains consistently 30× to 50× higher than requential coding's.
Dependence on teacher size. In our experiments, we chose the teacher model size to match the student's. A smaller teacher would be inefficient at guiding a student with more capacity, whereas a student can never fully catch up to a much larger teacher, leading to unnecessarily long codes. To validate this intuition, we performed this ablation on the FineWeb dataset with a 42M-parameter student, measuring the code length needed to reach a loss of 5.0 for three teacher sizes; the results confirm that matching the teacher and student sizes works best:
Catch-up phenomenon. We do not observe this phenomenon. At initialization both the teacher and the student predict the uniform distribution, so the per-step KL that requential coding pays is zero; in contrast, prequential coding pays the early model's full loss on real data, which is what produces the catch-up penalty in the paper you cited. Moreover, with μP learning-rate and initialization scaling, larger models are better than smaller ones throughout training rather than only at the end, so no early segment of the trajectory penalizes scale [1].
Why the Fig. 3 curves look truncated. We did not truncate the curves in Fig. 3. Instead, all runs share a fixed token budget of 5B tokens, and runs whose final codes are shorter simply terminate earlier on the code-length x-axis. We will clarify this in the caption.
Fig. 7a complexity curve definition. The blue curve is the sum of the complexity terms in the bound, defined on L264: ClogV+(Σ+2)C, where C is the per-token complexity, roughly the code length divided by the training set size. By detecting overfitting, we mean that the generalization bound (training loss plus complexity term) correctly predicts that the model's test loss eventually increases as the model keeps training on a finite training set. We will clarify these definitions in the revision.
Computational cost and interpretation as distillation. Indeed, requential coding can be interpreted as training a student by distilling from a teacher. The computational cost of evaluating the code length is 2.33x that of normal training or prequential coding in FLOPs (Appendix B.2, L660): 1x to train the teacher, 1x to train the student, and 0.33x to sample from the teacher (only forward passes needed).
Convergence between prequential and requential code lengths. In general, there is no theoretical reason why the prequential and requential codes should agree, though they are likely correlated across datasets. The exception is when the teacher equals the true distribution p∗ throughout training, in which case the expected requential code length agrees with the prequential code length up to the entropy term (present only in the latter). In practice, jointly training the teacher and student typically results in much shorter codes.
Double descent and grokking. We are optimistic that requential coding can be used to shed light on other phenomena such as double descent and grokking, and believe that these are exciting future directions to study.
Prechastic coding. Thank you for the pointer. We will cite this work in the revision and discuss the similarities and differences. In short, prechastic coding transmits a labelled dataset using a model trained on noisy labels determined by solving an inner optimization problem, while requential coding transmits a generative model guided by a teacher model trained on real data. Both leverage REC to efficiently transmit the synthetic training data, but differ in how the synthetic data is chosen and what object is ultimately transmitted.
Thank you again for your feedback. We are happy to answer any further questions.
[1] Yang et al. "Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer." 2022.