[Paper Review] The Mondrian Kernel
The Mondrian kernel is a fast, efficient random feature approximation to the Laplace kernel that leverages the Mondrian process to enable reusable, online feature construction across all kernel widths. By sampling random partitions via a Mondrian process, it allows for rapid kernel width selection and achieves superior performance with fewer features compared to random Fourier and binning features, while revealing a novel link between kernel methods and random forests.
We introduce the Mondrian kernel, a fast $ extit{random feature}$ approximation to the Laplace kernel. It is suitable for both batch and online learning, and admits a fast kernel-width-selection procedure as the random features can be re-used efficiently for all kernel widths. The features are constructed by sampling trees via a Mondrian process [Roy and Teh, 2009], and we highlight the connection to Mondrian forests [Lakshminarayanan et al., 2014], where trees are also sampled via a Mondrian process, but fit independently. This link provides a new insight into the relationship between kernel methods and random forests.
Motivation & Objective
- Address the computational inefficiency of kernel width selection in kernel methods, which typically requires retraining for each width.
- Develop a random feature approximation to the Laplace kernel that reuses features across different kernel widths without retraining.
- Establish a theoretical and practical connection between kernel methods and random forests via the Mondrian process.
- Enable online learning and efficient hyperparameter tuning for Laplace kernel-based models.
- Provide a scalable alternative to expensive exact Laplace kernel computations, particularly beneficial in large-scale or streaming settings.
Proposed method
- Construct random features using the Mondrian process, which generates hierarchical, axis-aligned partitions via competing exponential clocks.
- Map data points to indicator vectors based on which Mondrian partition bins they fall into, forming a sparse feature representation.
- Leverage the projectivity property of the Mondrian process to reuse the same random features for all kernel widths, avoiding retraining.
- Use the lifetime parameter λ of the Mondrian process as a proxy for the Laplace kernel's length-scale (inverse width).
- Perform kernel width selection by optimizing the lifetime λ via validation error, enabling fast, iterative tuning.
- Compare the Mondrian kernel to Mondrian forests, highlighting differences in parameter fitting (joint vs. independent) and performance trade-offs.
Experimental results
Research questions
- RQ1Can the Mondrian process be used to construct a random feature approximation for the Laplace kernel that supports efficient kernel width selection?
- RQ2How does the performance of the Mondrian kernel compare to random Fourier features and random binning in terms of approximation accuracy and computational efficiency?
- RQ3What is the theoretical and practical relationship between the Mondrian kernel and Mondrian forests, and how does joint parameter fitting in the kernel improve model compactness?
- RQ4Can the Mondrian kernel enable fast, online learning with adaptive kernel width selection?
- RQ5Does the Mondrian kernel achieve better generalization with fewer non-zero features than alternative random feature methods?
Key findings
- The Mondrian kernel achieves lower test set error than random Fourier and binning features when using fewer than 15 non-zero features per data point on the CPU dataset.
- The maximum absolute kernel approximation error of the Mondrian kernel is comparable to random binning and significantly lower than Fourier features for small feature counts.
- The Mondrian kernel recovers the ground truth kernel lifetime λ₀ = 10 within an order of magnitude using validation error, with ˆλ ≈ 19 minimizing error.
- The Mondrian kernel discovers suitable kernel widths at least an order of magnitude faster than random Fourier features and random binning, as shown by validation error vs. computation time.
- The Mondrian kernel achieves lower test error at lower lifetime values than Mondrian forests, indicating a more compact and efficient model due to joint parameter fitting.
- The weight distribution learned by the Mondrian kernel is more peaked around zero than that of Mondrian forests, enabling more extreme predictions through aggregation of small weights.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.