potentialpaper

Online Minimum Description Length Passive-Aggressive Algorithms

John Hurwitz, Charles K. Nicholas, Edward Raff

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We present an algorithm for margin-based online learning using lossless compressors via the Minimum Description Length Principle.

Abstract. We present an algorithm for margin-based online learning using lossless compressors (like zip) via the Minimum Description Length Principle. The technique, we call \emph{MDL-PA}, can be viewed as an analogue of Passive-Aggressive algorithms for probability distributions (equivalently viewed as lossless compression schemes) where we consider a \emph{code length margin}. Separate models are maintained per class, and the update rule is an information projection correcting the true-class model's prediction on a margin-violating sample. To bridge theory and practice, we demonstrate a practical approximation to this online learning setup via adaptive Lempel-Ziv-style compression dictionaries to classify sequences in the text and malware domains.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 4 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper formulates lossless compression-based classification as an online learning problem and introduces MDL-PA, an online Passive-Aggressive-style algorithm for the log-loss based the minimum description length (MDL) principle. The passive-aggressive algorithm performs an update only if the log-ratio of the predictions is below a given threshold. The paper includes both theoretical analysis as well as empirical results based on the zstandard compressor.

While I highlight some points raised in the reviews below, please also note that all reviewers have raised very significant and important concerns that must be addressed comprehensively.

  1. Reviewers have questioned the gap between the theoretical analysis and experimental setting. Can the realizability assumption be satisfied in practice? If not, how can the theoretical analysis be extended?
  2. Please address the practical significance of Theorem 2 and Corollary 1 as noted by the reviewers. How are these results reflected in any of your experiments?
  3. Please demonstrate how close the dictionary approximation in Section 4 is to the exact updates proposed in theoretical analysis based on the comments by reviewers yUTG and j9DC. Also please explain whether the algorithm is indeed performing aggressive memorization as raised by reviewer yUTG.
  4. Please compare the results with additional baselines as noted by different reviewers.
Final justification

The authors provided a detailed rebuttal that largely addressed the major concerns raised by the reviewers on the gap between the theoretical results and the experimental settings. The paper provides an interesting application of minimum description length principle to online learning and will be of interest to NeurIPS.

Area Chair 3Fqd · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper formulates lossless compression-based classification as an online learning problem and introduces MDL-PA, an online Passive-Aggressive-style algorithm for the log-loss based the minimum description length (MDL) principle. The passive-aggressive algorithm performs an update only if the log-ratio of the predictions is below a given threshold. The paper includes both theoretical analysis as well as empirical results based on the zstandard compressor.

While I highlight some points raised in the reviews below, please also note that all reviewers have raised very significant and important concerns that must be addressed comprehensively.

  1. Reviewers have questioned the gap between the theoretical analysis and experimental setting. Can the realizability assumption be satisfied in practice? If not, how can the theoretical analysis be extended?
  2. Please address the practical significance of Theorem 2 and Corollary 1 as noted by the reviewers. How are these results reflected in any of your experiments?
  3. Please demonstrate how close the dictionary approximation in Section 4 is to the exact updates proposed in theoretical analysis based on the comments by reviewers yUTG and j9DC. Also please explain whether the algorithm is indeed performing aggressive memorization as raised by reviewer yUTG.
  4. Please compare the results with additional baselines as noted by different reviewers.
Final justification

The authors provided a detailed rebuttal that largely addressed the major concerns raised by the reviewers on the gap between the theoretical results and the experimental settings. The paper provides an interesting application of minimum description length principle to online learning and will be of interest to NeurIPS.

Reviewer yUTGOpenReview ↗
Rating
3/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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
  1. 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.

  2. 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?

  3. 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.

  4. 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.

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.

Formatting concerns

NA

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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.

Method AG News 20 Newsgroups
PPM, order 6 0.1005 +- 0.0023 0.1903 +- 0.0020
PPM, order 7 0.1014 +- 0.0016 0.1917 +- 0.0024
PPM, order 8 0.0999 +- 0.0006 0.1926 +- 0.0013
zstd, one dict/class (insert-all) 0.1205 +- 0.0014 0.2185 +- 0.0024
MDL-PA, rho* 0.1204 0.2270 +- 0.0029
gzip NCD + 1NN 0.1417 0.3947
LZJD + 1NN 0.7154 0.9275

We draw two conclusions we note below and will also state explicitly in the revision.

1) Within the same compressor family (e.g. zstandard dictionaries), the offline insert-all model 
matches MDL-PA's tuned online model on  AG News (unsurprising since at rho* = 128 the update rate is 0.998, 
so here MDL-PA approaches the insert-all case), and is slightly better on 20 Newsgroups (0.2185 vs 0.2270), 
while storing roughly twice the bytes (19.7 MB vs. 10.0 MB). On text, therefore, the margin rho is best 
understood as an accuracy-memory trade-off parameter whose large-rho limit recovers the classical offline model. 
The value of our approach is in the online formulation itself, allowing for anytime predictions over the stream,
with update rate controlling the accuracy-memory tradeoff. For example, on 20 Newsgroups, MDL-PA reaches 0.9 points
of insert-all accuracy with half the dictionary bytes. We also note that in the malware domain, the update rate at 
the tuned margin is only 5.2% (Drebin TAR, Table 5), far from insert-everything; the corresponding malware 
insert-all experiments are more computationally expensive and are running and will be added to revision when complete.

2) Across compressor families, PPM class-conditional models are stronger offline classifiers than Lempel-Ziv
dictionary models ((0.10 vs. 0.12 onAG News, 0.19 vs. 0.22 on 20 Newsgroups)) consistent with the classical PPM
text-categorization literature. Our approach is compressor-agnostic and is a formulation of online margin-based
learning with lossless compressors, and thus the margin-triggered update rule can apply to any adaptive
compression model including PPM. We chose zstd dictionaries for the practical instantiation because of speed
(MB/s compression throughput). Instantiating MDL-PA with PPM class models is a natural extension
that this comparison directly motivates, and we will discuss it in the
revision. We thank the reviewers for prompting this experiment.

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:

  • Realizability and slack held on all update rounds
  • The per-round Pythagorean inequality Phi_t - Phi_{t+1} >= D_bin(e^rho q_t || p_t) held on every update round to machine precision
  • cumulative compression progress plateaus between 0.0012 (rho = 0.25) and 1.12 (rho = 3) nats, well below the bound Phi_1 = 10.32 nats

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:

  • the append approximately enforces Theorem 1's constraint. The post-append margin reaches the required rho on 95.4-100% of updates. while the exact I-projection would land exactly on the constraint boundary, the append instead overshoots by a few hundred bytes.
  • Assumption 1 is satisfiable in practice. A fixed reference pair (we use the final dictionaries after training) - satisfies the margin condition at 100% / 99.4% / 95.3% of update rounds (rho = 0 / 64 / 128), with a median slack of ~300 bytes.
  • The learner indeed becomes progressively more passive. on 20 Newsgroups the windowed update rate decays monotonically over the stream at every margin (0.59 -> 0.16 at rho = 0; 0.92 -> 0.51 at rho*)
rho (= rho*) 0 64 128
update rate 0.261 0.531 0.655
constraint satisfaction (post-append margin >= rho) 100.0% 99.5% 95.4%
median overshoot beyond rho (bytes) 394 336 282
median margin deficit rho - gamma_t (bytes) 12 56 108
Assumption 1 satisfied under final dictionaries 100.0% 99.4% 95.3%
median hindsight slack (bytes) 393 335 281
windowed update rate, t in [100, 1000) 0.59 0.86 0.92
windowed update rate, final window 0.16 0.37 0.51

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:

Method Prequential err Test err
MDL-PA, rho* 0.1325 0.1204
PA-I, byte 1-3 grams 0.2137 +- 0.0007 0.1573 +- 0.0162
LogSGD, byte 1-3 grams 0.2652 +- 0.0008 0.2470 +- 0.0042
PA-I, online TF-IDF 0.0996 +- 0.0007 0.0852 +- 0.0012
LogSGD, online TF-IDF 0.1343 +- 0.0004 0.1338 +- 0.0006

20 Newsgroups:

Method Prequential err Test err
MDL-PA, rho* 0.1974 +- 0.0026 0.2270 +- 0.0029
PA-I, byte 1-3 grams 0.8169 +- 0.0038 0.7160 +- 0.0739
LogSGD, byte 1-3 grams 0.8289 +- 0.0038 0.7740 +- 0.0588
PA-I, online TF-IDF 0.1559 +- 0.0006 0.1531 +- 0.0025
LogSGD, online TF-IDF 0.1756 +- 0.0016 0.1890 +- 0.0038

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.

Reviewer yUTG · CommentOpenReview ↗

I thank the authors for a substantial and honest rebuttal. That said, the new evidence largely confirms rather than resolves my main concerns. PPM class-conditional models outperform MDL-PA on both text datasets (0.10 vs 0.12 on AG News, 0.19 vs 0.23 on 20 Newsgroups), the offline insert-all model within the same compressor family matches or exceeds it, and PA-I on TF-IDF is stronger than MDL-PA on both. The repositioning toward byte-level domains and an accuracy-memory trade-off is reasonable, but it moves the empirical case to a setting where the corresponding comparisons are not yet in place, and it would require substantially rewriting the paper's performance claims. Thus, my concerns remain, and I will keep my score.

Authors · CommentOpenReview ↗

Byte-level domains was always our intention

We realize the byte-level intention of our work wasn't stated strongly enough, and we thank the reviewer for that feedback. However, we do caution against the perception that this has "moved" the empirical goalpost. Our interest in compression-based methods is precisely because byte-level domains like malware are extremely complex and expensive to apply features, making it often impractical to apply any desired features to a corpus. For example, [1] notes that it takes days or even weeks for 20-year veterans of malware analysis to really understand one sample, of which many would be reviewed in designing new features. We agree that these results give much greater insight into our method and its pros and cons, but TF-IDF is a much different mechanism than compression using an approach designed and tested over time for the task itself, where compressors were never designed for this task. Performing TF-IDF over n-grams in the same manner/library to our dataset is estimated to take weeks of time to enumerate the n-grams.

  1. D. Votipka, S. Rabin, K. Micinski, J. S. Foster, and M. L. Mazurek, “An Observational Investigation of Reverse Engineers’ Process and Mental Models,” in Extended Abstracts of the 2019 CHI Conference on Human Factors in Computing Systems, ser. CHI EA ’19. New York, NY, USA: Association for Computing Machinery, 2019. https://doi.org/10.1145/3290607.3313040
Reviewer ZyVxOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces MDL-PA, an online learning algorithm that combines passive aggressive algorithm with MDL principle. The paper reformulates the margin-based updates as information projections over probability distributions by replacing the Euclidean metric by KL divergence. It also provides closed-form solutions with theoretical guarantees. Empirically, the paper shows the MDL-PA has good performance.

Strengths and weaknesses

Strengths: the main contribution of the work is to recast compression-based classification as online passive-aggressive learning problem. They also provide a clean theoretical framework, paralleling the classical passive-aggressive analysis. This establishes an intuitive and appealing connection between: Minimum Description Length, margin-based online learning, and compression-based classification. Weaknesses: the main weakness is the gap between the theoretical method and practical update. The theoretical algorithm assumes explicit distributions while the practical method uses an approximation. The formal connection between the two is not explained. Overall, I find the paper conceptually interesting and theoretically clean.

Questions
  • Like mentioned above, the explicit distribution in the theoretical update and the practical approximation does not have an informal or formal connection. When would we expect the approximation to be tight or not?
  • The baseline used in the empirical section seems not strong enough. Since the paper is framed as an online learning algorithm, it may be stronger to compare with a simple online learning baesline.
  • Can the authors provide a bit more insight on how to choose the margin parameter?
Limitations

The paper includes some limitations, but not with a limitation section explicitly. Like mentioned above, the practice and empirical implementation is a bit separated; the experimental scope is a bit narrow. Additionally, the paper observes that margin tuning helps text but not malware, but does not deeply address this. Some more explanation may help here.

Final justification

I maintain my overall recommendation.

The rebuttal addressed most of my main concerns through providing evidence for the practical update and clarifying the role of the \rho as a memory-accuracy tradeoff knob. Overall, I find the formulation original and technically solid. I therefore maintain my overall assessment.

Formatting concerns

NA

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment and for three questions that each led to a concrete addition.

Q1.

We have now made the connection explicit and quantified it. We instrumented the 20 Newsgroups runs (5 seeds, rho in {0, 64, 128}) to re-measure the margin immediately after each dictionary append and to test Assumption 1 using the final dictionaries as the fixed reference pair; full tables are in our rebuttal to reviewer yUTG under Q2. The takeaways:

  • The append (approximately) enforces Theorem 1's constraint. the post-append margin reaches the required rho on 95.4-100% of updates.
  • while the exact I-projection would land exactly on the constraint boundary, the append overshoots by a median of a few hundred bytes.

Q2

We added classical PA-I and logistic SGD, run prequentially over the same stream order as MDL-PA, on hashed byte 1-3 grams and on online TF-IDF. Please see our rebuttal to reviewer yUTG under Q4. Takeaways: in the byte-level regime, MDL-PA dominates (e.g., 20 Newsgroups test error 0.227 vs. 0.716-0.774); with hand-engineered word features, PA on TF-IDF is the strongest method on text (0.085 AG News). We will state this explicitly: MDL-PA is not intended to beat tokenized text pipelines; its value is online learning in domains without a natural tokenization (e.g., raw malware bytes), where it is the stronger online learner.

Q3.

We tune rho on a 10% validation split as a hyperparameter. However, due to the comments of multiple reviewers we will clarify in the paper that this rho also acts as a memory-accuracy trade-off knob, approaching the accuracy of offline MDL prediction with a much smaller compression dictionary. This allows the user to explicitly choose a rho which results in a smaller dictionary if smaller memory footprint is desired.

Reviewer j9DCOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper is concerned with the problem of class prediction using generic compressors. To do so, the authors propose a passive-aggressive algorithm for the log-loss, based on the minimum-description length principle (MDL). In this framework, the passive-aggressive algorithm performs an update only if the log-ratio of the predictions is below a given threshold \rho. The first part of the paper is focused on the theory, assuming realizability. Empirical results based on the zstandard compressor are provided in the second part.

Strengths and weaknesses

Strengths: The paper is well written and organized, notation is (mostly) introduced and explained, the theoretical results seem sound (though I didn't check everything). The algorithm is particularly simple, which is a plus (unless it has already been proposed elsewhere, but a quick search didn't return much). The empirical results are encouraging.

Weaknesses:

As acknowledged in the Limitations, there is a strong disconnect between the theory and the practice. Realizability is most likely not meant in practice, but perhaps more importantly external compressor like zstandard cannot update to Q*. Hence, the resulting algorithm evaluated in the empirical section diverges significantly from the theoretical results, which makes their value unclear.

Theorem 2, while apparently sound, is also rather misleading. A quick read suggests that the number of mistakes is strongly bounded by a constant, suggesting in turn that learning is very fast. The catch appears in the definition of R, and the hidden distribution set of the KL: The KL runs over instance space, and not class space as one may assume. This implies that the KL term is bounded by O(T), and indeed can easily be linear in T: consider a predictor that initially predicts uniformly (log q_t / p_t = 0) and, after a single update, it predicts the class of x_t perfectly (realizability, log p_t / q_t = infty). This is pretty much just a memorizer. But then the number of prediction mistakes is just the number of examples so \sum_{t in M_T} D_bin(e^\rho q_t || p_t) must be linear in T. Unfortunately, this severely limits the interest of the whole theory section.

I strongly encourage the authors to try to derive some theory that is more in line with the experiments.

Finally, many more benchmarks are need, and comparisons with different compressors are also a necessary. There are only 2 baselines, and one only has half of the data. This is insufficient to form an informed opinion about the quality of the idea. Moreover, [13] reports 0.063 (accuracy of 0.937) for AG News, which is significantly better than the paper's reported value of 0.1417.

Other comments

  • L83: Why "otherwise", isn't it really just the Hinge loss?
  • L85: \ell_t undef
  • L89: I-projection undef
  • I understood why the authors consider one model per class only after looking at the experiment section. Otherwise it felt like an unnecessary constraint. This can probably be cleared easily by describing the experiments setup in the introduction, ideally with an example.
  • L 160: e^\rho q_min > p_max is difficult to interpret. But I think we necessarily have qmin ≥ 1/|Y| (on mistakes) for |Y| classes, and pmax ≤ 1/2, which gives the requirement that \rho > \log |Y|/2, which is much easier to read — if correct.
  • Table 1: I didn't find this part particularly useful or interesting (but perhaps it's just me?)
  • The paper should mention and insist upfront that the algorithm is very simple, easy to implement, and can adapt to many compressors. Prove these points in benchmarks.
  • Mention which zstandard compression level is used, and other parameters: the source code mentions window_log=31 and ldm=True.
  • Runtimes are quite long. 15min for AG News seems too much. Is this for each value of \rho, or for the entire sweep?
  • During testing on the held-out offline set, do you still concatenate prequentially, or is the compressor frozen?
  • The values for \rho* of 128 is already very high, and 4096 seems borderline improbable, especially when looking at exp(\rho). Perhaps I'm just lacking intuition here.
Questions

See Weaknesses above.

Limitations

yes, mostly, apart from the KL being over the sample set.

Final justification

I re-read the paper under a new light, and it now makes a lot more sense to me. The compression and prequential setting led me to consider a different setup.

Under this new light, the paper is more interesting and decently executed (though perhaps applying MDL-PA to other compressors, in particular PPM, would be nice). I still have some reservations about the theory.

Formatting concerns

n/a

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their point about the connection between the theoretical predictions and practical instantiation. To address this point, we instrumented our experiments to track the margin after dictionary append and to test whether our Assumption 1 holds in practice using the final trained dictionaries as the "reference pair" in our theory. For further detail please see our rebuttal to reviewer yUTG under Q2.

Takeaways for results below:

  • the append approximately enforces Theorem 1's constraint. The post-append margin reaches the required rho on 95.4-100% of updates. while the exact I-projection would land exactly on the constraint boundary, the append instead overshoots by a few hundred bytes.
  • Assumption 1 is satisfiable in practice. A fixed reference pair (we use the final dictionaries after training) - satisfies the margin condition at 100% / 99.4% / 95.3% of update rounds (rho = 0 / 64 / 128), with a median slack of ~300 bytes.
  • The learner indeed becomes progressively more passive. on 20 Newsgroups the windowed update rate decays monotonically over the stream at every margin (0.59 -> 0.16 at rho = 0; 0.92 -> 0.51 at rho*)
rho (= rho*) 0 64 128
update rate 0.261 0.531 0.655
constraint satisfaction (post-append margin >= rho) 100.0% 99.5% 95.4%
median overshoot beyond rho (bytes) 394 336 282
median margin deficit rho - gamma_t (bytes) 12 56 108
Assumption 1 satisfied under final dictionaries 100.0% 99.4% 95.3%
median hindsight slack (bytes) 393 335 281
windowed update rate, t in [100, 1000) 0.59 0.86 0.92
windowed update rate, final window 0.16 0.37 0.51

ADDITIONAL BASELINES: We have added both requested families: classic offline MDL class-conditional models with a different compressor family (PPMd, orders 6-8) plus the offline zstandard insert-all variant, and standard online learners (PA-I and logistic SGD on byte n-grams and online TF-IDF, same stream order). Please see our rebuttal to reviewer yUTG, Q1 and Q4, for tables and discussion. Briefly: PPM is the strongest offline model on text (0.10 / 0.19 test error on AG News / 20 Newsgroups), which we view as motivating rather than undermining MDL-PA, since the margin-triggered update is compressor-agnostic and PPM-based MDL-PA is a natural instantiation we will discuss.

Regarding "other comments", we thank the reviewer for their careful reading and will address these corrections in the revision for further clarity.

Reviewer j9DC · CommentOpenReview ↗

Thank you for the additional information.

It appears I have been reading the paper from the wrong angle. The "prequential loss" and the compression terminology lead me to think that the algorithm was predicting the bits of all the files, instead of solely predicting the class at the end of each file.

Under this new light, the paper now makes a lot more sense to me. I strongly encourage the authors to clear up this misinterpretation as early as possible in the text, ideally with an example.

It seems though that Theorem 2 is still largely vacuous in the settings of the experiments, that is, the loss would be linear in T. It is imperative that the authors acknowledge this, but it seems it also does not need to always be vacuous, e.g., when |\mathcal X| << T, or when the compressor is "pre-trained" perhaps, giving a non-uniform prior. Corollary 1 could also be a good angle, but the uniform slack condition appears too strong. If you can make it work with the mean or the median, and on the experiments you show how this relates to the |M_T| bound, that would be definite proof of that it's non-vacuous. I wouldn't expect an upper bound to be extremely tight, of course.

I will revise my score accordingly.

Authors · CommentOpenReview ↗

We thank the reviewer for the careful reading, yes, we affirm that the technique predicts the class of the entire sequence, and intend to make this clearer in the revision e.g. as follows:

"Our technique simply utilizes the compressed length of each instance, under each compression model, to do Minimum Description Length-style prediction for the label of the entire sequence. For example, our experiments in malware family classification maintain a compression model per malware family, perform a compression operation on a test sample with each compression model, and predicts the label of the class model which achieves the best compression of the test sample.

We thank the reviewer for the insightful point about encoding a non-uniform prior into the initial compressor model, and agree with the benefits of encoding such a prior in the initialization, but in operation, we don't have a mechanism to impose such priors via compression algorithms like zstandard/gzip/etc. Such a mechanism is interesting future work in itself. The reviewer is correct that Theorem 2 bounds cumulative compression progress and as such if both class models assign vanishing probability to current instance, each term Dbin(eρqt∣pt)D_{bin}(e^\rho q_t | p_t) vanishes and results in a memorizer. We will acknowledge these points in the revision as follows:

"We note that when both class models assign vanishing probability to the current instance (e.g. near-uniform models), the per-round progress Dbin(eρqt∣pt)D_{bin}(e^\rho q_t | p_t) vanishes, and the bound is consistent with an update on every round, resulting in a memorization trajectory. Therefore, the bounds are informative and practical when either (a) ∣X∣|\mathcal{X}| is moderate relative to TT, as in our synthetic study, or (b) P1P_1 encodes a non-uniform prior, avoiding vanishing probabilities for observed instances. "

We highlight that compression-based machine learning is often inspired by uncomputable functions, as in (conditional) Kolmogorov complexity which inspired the practical compression distance serving as an approximation of it, and we view our theory in a similar vein -- an information-theoretic grounding of a technique which requires real Lempel-Ziv or PPM-based compressors to tackle practical tasks which only attempt to approximate the solution to our information projection as in Theorem 1.  Our work is the first we are aware of, in the compression-based ML literature, which connects I-projections over instance space with modifying compression models motivating an online learning scheme. We view further connections between this theory and practical online learning schemes using real compressors, as very interesting future work.

Reviewer XZejOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes an online classification algorithm based on lossless compression. In particular, the authors introduce a Passive-Aggressive-like approach that operates in the space of class-conditional distributions through Kullback-Leibler-based updates.

To the best of my knowledge, prior work has not explicitly formulated lossless compression-based classification as an online learning problem in the sense considered in this paper. As such, the proposed framework appears to be novel.

Overall, the approach is interesting, and, as far as I can assess, the theoretical results are mathematically correct. The paper is also well written and easy to follow.

That said, this paper lies outside my area of expertise. Consequently, while I find the ideas interesting and technically sound, I am not in a position to definitively assess the novelty and significance of the contributions.

Strengths and weaknesses

Strengths:

The paper introduces a novel perspective by formulating minimum description length (MDL) classification as an online learning problem. The key idea exploits the one-to-one correspondence between lossless compressors and probability distributions to formulate the update using KL divergence rather than Euclidean distance, a framework they call MDL-PA The authors also propose a practical approximation of it based on Lempel-Ziv compression.

The proposed method is conceptually interesting and combines ideas from online margin-based learning (passive aggressive) and compression-based classification in a principled manner.

The empirical results show consistent improvements over the considered compression-based baselines (LZJD and NCD) across several datasets.

Weaknesses:

One of the main theoretical results (Theorem 2) relies on a realizability assumption, and Corollary 1 requires an even more stringent one. It would be worth discussing how realistic these assumptions are and whether they can be justified in the context of the proposed framework, for example, for the experiments in the paper. Ideally, the authors should also discuss whether the analysis can be extended to settings where these assumptions are relaxed or removed entirely.

The two baselines considered, NCD and LZJD, date from 2004 and 2017 respectively. As this paper lies outside my area of expertise, I am not fully familiar with the compression-based classification literature; however, given the time elapsed since their introduction, it is unclear to me whether more recent and stronger baselines exist. The authors should address this, either by including more recent comparisons or by explicitly arguing that NCD and LZJD remain the most relevant points of comparison.

Questions

The proposed update relies on the KL divergence, which is asymmetric. While KL is a natural choice in an MDL/compression setting, it would be worth discussing whether alternative divergences, such as the reverse KL divergence or symmetric divergences (e.g., total variation distance), could lead to different empirical or theoretical results.

Limitations

Yes

Final justification

Overall, I find the paper technically sound. The rebuttal addressed all my comments and I am happy to maintain my score of 4.

I note, however, that the paper lies outside my area of expertise, and my assessment should be considered in light of this.

Formatting concerns

None.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment and for two questions that led to concrete additions.

Weakness 1 (how realistic is the realizability assumption; can the analysis be relaxed?).

We now address this empirically:

(a) On a synthetic small-alphabet task we construct class distributions with disjoint supports for which Assumption 1 holds by construction and we verify that updates cease and mistakes stay well below the theoretical bound. Please see our rebuttal to reviewer yUTG under Q2 for these results.

(b) On real data (20 Newsgroups, 5 seeds) we test Assumption 1 directly by taking the final class dictionaries as the fixed candidate reference pair, the margin condition holds at 100% / 99.4% / 95.3% of update rounds for rho = 0 / 64 / 128, with a median slack of ~300 bytes. So on our text data the assumption is (approximately) satisfiable in practice, and its violations are rare and confined to the largest margin. Further details/results in rebuttal to reviewer yUTG, again Q2.

Weakness 2 (are NCD (2004) and LZJD (2017) still the right baselines; stronger or more recent comparisons?).

We have added both stronger classical and standard modern baselines:

  • offline MDL class-conditional compression models - PPMd orders 6-8 and offline zstandard dictionaries
  • standard online learners (PA-I and logistic SGD on byte n-grams and online TF-IDF) under the same prequential protocol and stream order. Please see our rebuttal to reviewer yUTG, Q1 and Q4, for tables and takeaways.

Q (would alternative divergences change the results?).

We thank the reviewer, this prompted a result we will mention in the paper. The update is invariant to this choice: the reverse projection yields exactly the closed form of Theorem 1, as does the projection under any strictly convex ff-divergence. Consequently there are no alternative empirical results to report.

Proposition (invariance of the update across ff-divergences). Let ff be strictly convex on (0,∞)(0,\infty) with f(1)=0f(1)=0, and let Df(Q∥P)=∑xP(x)f(Q(x)/P(x))D_f(Q\|P) = \sum_x P(x) f(Q(x)/P(x)). Write P=PtytP = P_t^{y_t} for the current true-class model, b=P(xt)b = P(x_t), and c=eρqtc = e^{\rho} q_t, and assume 0<b<c<10 < b < c < 1. Then the minimizer of Df(Q∥P)D_f(Q\|P) over Q∈ΔXQ \in \Delta_{\mathcal{X}} subject to Q(xt)≥cQ(x_t) \ge c is unique and equals the closed form of Theorem 1, namely Q∗(xt)=cQ^{\ast}(x_t) = c and Q∗(x)=P(x)(1−c)/(1−b)Q^{\ast}(x) = P(x)(1-c)/(1-b) for x≠xtx \neq x_t, independently of ff. Taking f(t)=tlog⁡tf(t) = t \log t gives the forward projection DKL(Q∥P)D_{KL}(Q\|P) of Theorem 1 and f(t)=−log⁡tf(t) = -\log t gives the reverse projection DKL(P∥Q)D_{KL}(P\|Q), so both induce the same update.

Proof sketch.

Step 1: the constraint is active. Let Q∗Q^{\ast} be a minimizer. Since P(xt)=b<cP(x_t) = b < c, the point PP is infeasible, so Q∗≠PQ^{\ast} \neq P and hence Df(Q∗∥P)>0D_f(Q^{\ast}\|P) > 0 by strict convexity. If Q∗(xt)>cQ^{\ast}(x_t) > c, then for small λ>0\lambda > 0 the point Qλ=(1−λ)Q∗+λPQ_{\lambda} = (1-\lambda) Q^{\ast} + \lambda P is still feasible, while convexity of DfD_f in its first argument together with Df(P∥P)=0D_f(P\|P) = 0 gives Df(Qλ∥P)≤(1−λ)Df(Q∗∥P)<Df(Q∗∥P)D_f(Q_{\lambda}\|P) \le (1-\lambda) D_f(Q^{\ast}\|P) < D_f(Q^{\ast}\|P), contradicting optimality. Hence Q∗(xt)=cQ^{\ast}(x_t) = c, and the term bf(c/b)b f(c/b) of the objective is now a constant.

Step 2: the remaining mass is reallocated proportionally. Put w(x)=P(x)/(1−b)w(x) = P(x)/(1-b) for x≠xtx \neq x_t, which is a probability weight since ∑x≠xtP(x)=1−b\sum_{x \neq x_t} P(x) = 1-b, and let t(x)=Q(x)/P(x)t(x) = Q(x)/P(x). Feasibility with Q(xt)=cQ(x_t) = c forces ∑x≠xtw(x)t(x)=(1−c)/(1−b)\sum_{x \neq x_t} w(x) t(x) = (1-c)/(1-b), so the ratios t(x)t(x) have a fixed weighted mean. By Jensen's inequality,

∑x≠xtP(x)f(Q(x)/P(x))=(1−b)∑x≠xtw(x)f(t(x))≥(1−b)f((1−c)/(1−b)),\sum_{x \neq x_t} P(x) f(Q(x)/P(x)) = (1-b) \sum_{x \neq x_t} w(x) f(t(x)) \ge (1-b) f((1-c)/(1-b)),

with equality if and only if t(x)t(x) is constant, by strict convexity of ff. The mass constraint then fixes t(x)=(1−c)/(1−b)t(x) = (1-c)/(1-b) for all x≠xtx \neq x_t, giving Q∗(x)=P(x)(1−c)/(1−b)Q^{\ast}(x) = P(x)(1-c)/(1-b); uniqueness is the equality case above. The divergence ff therefore enters only through the value it is evaluated at, which the constraints have already determined, and never through which QQ is optimal.

Reviewer XZej · CommentOpenReview ↗

Thank you for the detailed rebuttal and for addressing my question regarding alternative divergences. It is interesting that the update is invariant to the choice of divergence.

I have no further questions. As the topic lies outside my primary area of expertise, my overall assessment remains unchanged, and I will retain my current rating.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…