- Rating
- 3
- Clarity
- 3
- Confidence
- 2
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper proposes MDL PA, which formulates minimum description length classification with lossless compressors as an online learning problem. The method can be viewed as a Passive Aggressive analogue that operates on class conditional probability distributions rather than Euclidean weight vectors.
On the theory side, the learner maintains one full support distribution per class over a finite instance space. Prediction assigns the class with shortest code length, equivalently highest likelihood. The authors define a code length margin and update the true class distribution via a KL divergence I projection when the margin is violated. Theorem 1 gives a closed form update. Under a realizability assumption, Theorem 2 bounds cumulative compression progress and Corollary 1 yields a finite mistake bound. Table 1 unifies classical PA and MDL PA as Bregman projections in different geometries.
For practice, explicit distributions over large byte sequences are intractable. The authors approximate the update with zstandard adaptive dictionaries by appending sample bytes to the true class dictionary when the byte level margin is violated. Experiments use a prequential online protocol on AG News, 20 Newsgroups, and Drebin malware in APK and TAR form. Baselines include LZJD with 1 nearest neighbor and gzip based normalized compression distance with 1 nearest neighbor.
Strengths and weaknesses
Problem, motivation, and framing
Formulating lossless compression and MDL classification as online learning is reasonable and meaningful. Lempel Ziv style compressors already update internal state as data arrive, while classic offline MDL classifiers typically initialize class conditional models from full class corpora [6, 7, 8, 9]. The online setting therefore raises a real gap about how dictionaries should grow along a stream.
The stated issues are mostly fair. Prior PA extensions such as BayesPA [5], CW [2], AROW [3], and SCW [4] perform I projections over model parameters or posteriors, whereas MDL PA projects class conditional data distributions. The distinction from BayesPA [5] is clear. The claim that online compression classification is largely unstudied is somewhat strong. Bratko et al. [7] evaluate classification via incremental description length change when a document is added to a class model. MICL [10] uses minimum incremental coding length. Shamir [11] applies MDL ideas in online convex optimization. A more precise claim is that PA style margin updates have not been unified with MDL class conditional compressors in distribution geometry.
Motivation is adequate for readers at the intersection of online learning and compression, but significance for the broader NeurIPS audience is limited. The method needs no gradients and applies to raw byte sequences, which matters for malware and similar domains, yet the paper does not fully argue irreplaceability relative to strong modern or classical baselines.
Method
The theoretical MDL PA formulation is clean. Replacing Euclidean PA [1] with KL I projection on the simplex and replacing a linear margin with a code length margin is coherent. Theorem 1 is intuitive because probability on the current instance is raised to satisfy the margin and remaining mass is renormalized. The Bregman view in Section 3.2 and Table 1 aids understanding. Proofs in the appendix appear complete and technically sound.
Theoretical limitations remain important. Assumption 1 requires fixed reference compressors that satisfy the margin on every update round. This is analogous to linear separability but harder to verify on real streams. Corollary 1 additionally needs uniform slack and technical conditions that are unlikely to hold in practice. The analysis is restricted to finite full support distributions, which is far from byte level sequence classification.
The practical dictionary approximation in Section 4 is the weakest link. The authors acknowledge that dictionary updates are only a very rough surrogate for I projection, but the theory practice gap is still large. Theory uses margin in nats while experiments use margin in bytes tied to a specific compressor without a principled mapping. Dictionary append expands a lookback window rather than renormalizing a distribution, so it does not enforce constraint (2). On text tasks the tuned margin gives an update rate near 99.8 percent on AG News, so almost every sample triggers an update including many already correct predictions. That behavior resembles aggressive memorization more than sparse passive aggressive updates and weakens the link to Theorems 1 and 2.
Overall the theory is sound and self contained, while the practical algorithm is a reasonable heuristic with weak formal ties to the theorems. Experimental gains should not be attributed directly to the closed form projection mechanism.
Experiments and support for claims
Strengths include the correct prequential evaluation protocol, coverage of both text and malware byte sequences, seed variance analysis on 20 Newsgroups with ten random stream orderings, and useful diagnostics on dictionary growth and update rate. Appendix B discusses limitations honestly.
The experimental weaknesses are substantial. The paper claims improved performance over offline compression based learning, but it does not compare against classic offline MDL class conditional compressors from Frank et al. [6], Bratko et al. [7], Teahan and Harper [8], or Marton et al. [9], which are the natural offline references cited in the introduction. Jiang et al. [12] is cited but not evaluated numerically despite representing a strong gzip plus NCD plus kNN line. LZJD [14] with 1 nearest neighbor reaches 92.75 percent test error on 20 Newsgroups, near random performance for twenty classes, and the paper does not justify whether this baseline is fairly configured for text. Simple strong baselines such as TF IDF with linear SVM or online PA [1] and SGD under the same prequential protocol are missing. gzip plus NCD [13] is not reported on malware, so comparisons are incomplete.
The abstract and introduction claim online effectiveness and improved offline performance over compression similarity baselines. Figure 1 supports online learning curves, but offline gains are shown only against relatively weak NCD [13] and LZJD [14] nearest neighbor methods, not against offline MDL [6, 7, 8, 9] or standard classifiers. Margin utility is highly domain dependent. Large margins help text substantially while Drebin TAR is best at zero margin. That pattern suggests heuristic dictionary behavior rather than a unified theoretical margin story. On AG News, test error improves from 14.17 percent for gzip NCD [13] to 12.04 percent for tuned MDL PA, which is modest. On 20 Newsgroups the gap to gzip NCD [13] is larger. Overall results are moderate for compression methods and do not justify strong performance language.
Reproducibility details are thin from the reviewer perspective. The checklist states code and data are available, but the main text gives no pointer during anonymous review. Validation split details for tuning rho are not fully described. Aside from stream reordering on 20 Newsgroups, other datasets lack multi seed statistics.
Relative to prior work, theoretical novelty is moderate. Moving PA to class conditional distributions with mistake bounds complements BayesPA style parameter space methods [5]. Practical novelty is lower to moderate because margin triggered dictionary growth is intuitive and related to incremental MDL evaluation [7] and online LZ dictionary growth. For the main conference track, the theory is neat but niche and experiments do not establish broad superiority.
Strengths
- Clear theoretical formulation with a natural PA analogy in KL geometry and a useful Bregman unification
- Explicit distinction from BayesPA [5] and other parameter space PA variants [2, 3, 4]
- Complete proofs and an honest limitations appendix
- Interesting cross domain evaluation on text and malware without gradients or hand crafted features
Weaknesses
- Large gap between nats based distribution updates and byte based dictionary heuristics
- Incomplete baselines, especially missing offline MDL classifiers [6, 7, 8, 9] and standard online learners [1]
- Strong realizability assumptions and restrictive mistake bound conditions
- Near universal updates at optimal text margins, which departs from passive aggressive intuition
- Limited expected impact for the broad NeurIPS audience
References
[1] Koby Crammer, Ofer Dekel, Joseph Keshet, Shai Shalev Shwartz, and Yoram Singer. Online passive aggressive algorithms. Journal of Machine Learning Research, 7, 551 to 585, 2006.
[2] Mark Dredze, Koby Crammer, and Fernando Pereira. Confidence weighted linear classification. In Proceedings of the 25th International Conference on Machine Learning, pages 264 to 271, 2008.
[3] Koby Crammer, Alex Kulesza, and Mark Dredze. Adaptive regularization of weight vectors. In Advances in Neural Information Processing Systems 22, 2009.
[4] Jialei Wang, Peilin Zhao, and Steven C. H. Hoi. Exact soft confidence weighted learning. In Proceedings of the 29th International Conference on Machine Learning, pages 121 to 128, 2012.
[5] Tianlin Shi and Jun Zhu. Online Bayesian passive aggressive learning. Journal of Machine Learning Research, 18(33), 1 to 39, 2017.
[6] Eibe Frank, Chang Chui, and Ian H. Witten. Text categorization using compression models. In Proceedings of the Conference on Data Compression, page 555, 2000.
[7] Andrej Bratko, Gordon V. Cormack, Bogdan Filipič, Thomas R. Lynam, and Blaž Zupan. Spam filtering using statistical data compression models. Journal of Machine Learning Research, 7, 2673 to 2698, 2006.
[8] W. J. Teahan and D. J. Harper. Using compression based language models for text categorization. In Proceedings of the Workshop on Language Modeling and Information Retrieval, 2001.
[9] Yannick Marton, Nan Wu, and Lisa Hellerstein. On compression based text classification. In Advances in Information Retrieval, volume 3408 of Lecture Notes in Computer Science, pages 300 to 314. Springer, 2005.
[10] John Wright, Yangyu Tao, Zhouchen Lin, Yi Ma, and Heung yeung Shum. Classification via minimum incremental coding length. In Advances in Neural Information Processing Systems 20, pages 1633 to 1640, 2007.
[11] Ohad Shamir. Minimum description length regularization for online learning. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 2603 to 2611, 2015.
[12] Zhiying Jiang, Matthew Y. R. Yang, Mikhail Tsirlin, Raphael Tang, Yiqin Dai, and Jimmy Lin. Low resource text classification. A parameter free classification method with compressors. In Findings of the Association for Computational Linguistics ACL 2023, pages 6810 to 6828, 2023.
[13] Ming Li, Xin Chen, Xin Li, Bin Ma, and Paul M. B. Vitányi. The similarity metric. IEEE Transactions on Information Theory, 50(12), 3250 to 3264, 2004.
[14] Edward Raff and Charles Nicholas. An alternative to NCD for large sequences, Lempel Ziv Jaccard distance. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 1007 to 1015, 2017.
Questions
-
Can you report test error for offline MDL class conditional compressors such as Bratko et al. [7] or Frank et al. [6] on the same splits? This is the most important missing comparison for the claim about beating offline compression based learning. Strong results here could raise my significance and overall scores.
-
When the tuned byte margin yields a 99.8 percent update rate, is passive aggressive still the right name? Can you relate dictionary append to I projection quantitatively, even on a toy distribution, or show approximate satisfaction of the margin constraint after append?
-
How was LZJD [14] configured on 20 Newsgroups to reach 92.75 percent error? Please compare against a stronger gzip NCD setup such as Jiang et al. [12] and clarify baseline fairness.
-
What is prequential error for simple online PA [1] or SGD on bag of words or character n grams? If MDL PA lags such baselines, how should practitioners choose when to use it?
Score could increase if you add offline MDL [6, 7, 8, 9] and reasonable online baselines [1] and show stable gains with an interpretable margin mechanism. That could move my overall rating from 3 toward 4.
Limitations
Yes.
Paper formatting concerns
NA
Final justification
I agree with the other reviewers on the contribution of this paper and I do not object an acceptance decision. But I am leaning towards keeping a negative score to provide a different view.
Q1.
We have added the requested classic offline MDL baselines: class-conditional compression models (PPM, zstd insert-all, gzip NCD + 1NN) trained on all class data, evaluated on the same splits as MDL-PA. The takeaway is that indeed at the far end of the spectrum compression dictionaries can perform aggressive memorization, however we intend to make clearer in the revision that our margin parameter acts as a memory-accuracy trade-off knob, while additionally allowing for any-time predictions in an online setting. The PPM compressor family performs even better than our method in the offline setting, but we view this as a strength rather than a weakness, since our MDL-PA method is compressor-agnostic and indeed is compatible with using PPM compressors rather than zstandard. We use zstandard for speed, but we view a broader comparison of multiple compressor families in this setting as important future work.
We draw two conclusions we note below and will also state explicitly in the revision.
Q2.
We thank the reviewer for this observation; as it could be the case that the best tuned margin results in a nearly insert-all update rate, we intend to explicitly state in the paper that this \rho parameter allows for a accuracy-memory trade-off in the online setting, allowing for predictions with much smaller compression dictionaries than the total size of the class data. Depending on the task, optimal \rho may or may not result in the nearly insert-all update rate, as we see in our experiments this happens with text but it does not happen with malware, where sufficient substring patterns are found among a small chunk of class data.
We have run the exact MDL-PA algorithm on a synthetic small-alphabet task, and verified element of the theory along realized trajectories. Construction: X = Sigma^L with |Sigma| = 4, L = 6 (|X| = 4096). The two class-conditional data distributions are first-order Markov chains (positive class prefers self-transitions, negative class prefers cyclic transitions), truncated to strings with at most one non-preferred transition.
Setup: T = 20,000 rounds, 10 stream seeds, rho in {0.25, 0.5, 1, 2, 3} nats
Results:
Additionally, we tested elements of the theory on the real-world text categorization task 20 newsgroups, namely constraint satisfaction and realizability.
We record on every update round the pre-update margin gamma_t, re-measure the margin immediately after the append, and test Assumption 1 with the final class dictionaries as the fixed reference pair, checking whether the final true-class model beats that round's logged competitor length by rho.
Takeaways for results below:
Q3. LZJD has traditionally been most useful for long sequences, often in the millions of characters, as in large malware binaries, and can exhibit shortcomings with shorter text snippets. We include the method here since it is a practically-used modern compression-based similarity technique. As requested, we have included the gzip NCD setup such as in Jiang et al. The Jiang et al. work had a known bug in its original implementation which broke ties in favor of the correct class, we correct this in our implementation and report our own implementation's results.
Q4. We have added the requested standard online baselines: classical PA with hinge loss and logistic regression trained with SGD, run prequentially over same stream order as MDL-PA, same seeds, same shuffle, on two representations: hashed byte n-grams (1-3 grams) and online TF-IDF over word 1-2 grams. Prequential and held-out test error:
AG News:
20 Newsgroups:
In the pure byte-level regime, we find that our MDL-PA method substantially outperforms weight-space online learners, due to the compression model's ability to immediately exploit shared substrings. With hand-engineered word features, online PA on TF-IDF is the strongest method on text.
We will state this positioning explicitly in the revision: The text datasets are included for scientific completeness and comparability, they are the standard benchmark suite for compression-based classification (Frank et al., Teahan & Harper, Bratko et al., Jiang et al.) and the only domain where strong hand-crafted feature baselines exist to be compared against. The setting that motivates MDL-PA, however, is domains such as malware, where no trusted feature representation or tokenization exists, raw bytes are the native input.