Skip to main content
QUICK REVIEW

[Paper Review] Online Learning of k-CNF Boolean Functions

Joel Veness, Marcus Hütter|arXiv (Cornell University)|Mar 26, 2014
Machine Learning and AlgorithmsComputer Science25 references3 citations
TL;DR

This paper presents two efficient, online, probabilistic algorithms for learning k-CNF Boolean functions under logarithmic loss, using Bayesian inference and hybrid memorization techniques. The key contribution is a theoretical loss bound of O(d²) for monotone conjunctions and O(d log n) for a practical variant, with extension to k-CNF via reduction, enabling polynomial-time learning with strong regret guarantees.

ABSTRACT

This paper revisits the problem of learning a k-CNF Boolean function from examples in the context of online learning under the logarithmic loss. In doing so, we give a Bayesian interpretation to one of Valiant's celebrated PAC learning algorithms, which we then build upon to derive two efficient, online, probabilistic, supervised learning algorithms for predicting the output of an unknown k-CNF Boolean function. We analyze the loss of our methods, and show that the cumulative log-loss can be upper bounded, ignoring logarithmic factors, by a polynomial function of the size of each example.

Motivation & Objective

  • To develop online, probabilistic learning algorithms for k-CNF Boolean functions that avoid IID assumptions and handle arbitrary example sequences.
  • To provide theoretical loss bounds under logarithmic loss for online prediction of k-CNF functions.
  • To extend Valiant’s PAC learning framework by giving it a Bayesian interpretation and constructing efficient, low-loss online predictors.
  • To enable practical integration into predictive ensembles for universal source coding and data compression.

Proposed method

  • Proposes a hybrid algorithm (Algorithm 1) that performs exact Bayesian inference only on positive examples, using a carefully chosen prior to bound loss on negative examples.
  • Introduces a more practical algorithm (Algorithm 2) with O(d) space and O(d) per-instance time complexity, achieving loss within a log n factor of the intractable Bayesian predictor.
  • Uses a reduction from k-CNF learning to monotone conjunction learning, enabling efficient learning of k-CNF functions for fixed k.
  • Employs a Bayesian model averaging approach (MADNB) for real-world performance evaluation, combining predictions across multiple k-CNF models.
  • Applies the logarithmic loss function to measure cumulative prediction error, with cumulative loss expressed as −log of the joint predictive probability.
  • Uses the Iverson bracket and Boolean logic notation to express model likelihoods and constraints in a compact, formalized way.

Experimental results

Research questions

  • RQ1Can Valiant’s PAC learning algorithm for k-CNF functions be reinterpreted as a Bayesian model selection procedure?
  • RQ2Can efficient online learning of k-CNF functions be achieved with low logarithmic loss without assuming i.i.d. data?
  • RQ3What is the theoretical loss bound of a Bayesian predictor when only positive examples are used, and how can negative examples be handled without sacrificing performance?
  • RQ4How does the performance of the proposed algorithms compare to baseline models (e.g., monotone conjunctions, k-CNF with small k) on real-world datasets?
  • RQ5Can the proposed algorithms be effectively integrated into predictive ensembles for universal source coding or compression?

Key findings

  • The cumulative log-loss of the hybrid Bayesian algorithm (Algorithm 1) is upper bounded by O(d²) for monotone conjunctions, ignoring logarithmic factors.
  • The practical algorithm (Algorithm 2) achieves a cumulative log-loss within a multiplicative log n factor of the intractable Bayesian predictor, with O(d) space and O(d) per-instance time complexity.
  • On the Mushroom dataset, the k=3 CNF model achieved 98.58% accuracy with a total log loss of 844.51 bits, significantly outperforming monotone and 1-CNF models.
  • On the King-Rook vs King-Pawn chess endgame dataset, k=3 CNF achieved 85.58% accuracy and a log loss of 4311.65 bits, outperforming smaller k models.
  • The MADNB method showed linear scaling of empirical loss with n, with total log loss increasing from ~265 bits at n=2048 to ~3822 bits at n=32768, indicating stable performance.
  • The k-CNF reduction enables efficient learning of k-CNF functions in polynomial time for fixed k, extending the applicability of the Bayesian framework to non-monotone Boolean functions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.