[Paper Review] GURLS: a Least Squares Library for Supervised Learning
GURLS is a modular, open-source least squares library for supervised learning that leverages regularized least squares (RLS) to enable fast, scalable training and model selection across medium- and large-scale datasets. It supports primal and dual formulations, multi-output learning, memory-mapped storage, and distributed computation, achieving state-of-the-art accuracy with significantly reduced training time compared to traditional SVMs, especially when using random feature approximations.
We present GURLS, a least squares, modular, easy-to-extend software library for efficient supervised learning. GURLS is targeted to machine learning practitioners, as well as non-specialists. It offers a number state-of-the-art training strategies for medium and large-scale learning, and routines for efficient model selection. The library is particularly well suited for multi-output problems (multi-category/multi-label). GURLS is currently available in two independent implementations: Matlab and C++. It takes advantage of the favorable properties of regularized least squares algorithm to exploit advanced tools in linear algebra. Routines to handle computations with very large matrices by means of memory-mapped storage and distributed task execution are available. The package is distributed under the BSD licence and is available for download at https://github.com/CBCL/GURLS.
Motivation & Objective
- To develop a fast, modular, and extensible software library for supervised learning that supports large-scale and high-dimensional data.
- To address the growing need for efficient training and model selection in big data scenarios, especially for multi-output and multi-class problems.
- To provide a unified, easy-to-use interface that supports both Matlab and C++ implementations with minimal dependencies.
- To enable memory-efficient computation on large datasets through memory-mapped storage and distributed task execution.
- To outperform existing methods like LS-SVM and LIBSVM in both accuracy and training speed, particularly with kernel approximation techniques.
Proposed method
- The library is built on regularized least squares (RLS), which reduces learning to solving a linear system, enabling efficient use of advanced linear algebra tools.
- It supports both primal and dual formulations, allowing optimal performance based on the relative size of samples and features.
- The system uses a pipeline-based architecture where tasks are chained via a GURLScore engine that passes results through a shared options structure.
- Memory efficiency is achieved through memory-mapped storage of large matrices, avoiding full in-memory loading.
- Distributed computation is supported via a task manager that splits matrix operations across multiple processes, enabling scalable processing of large datasets.
- Random feature approximation is implemented to accelerate RBF kernel learning, significantly reducing training time with minimal accuracy loss.
Experimental results
Research questions
- RQ1Can a least squares-based library achieve state-of-the-art accuracy while significantly outperforming traditional SVMs in training speed for large-scale learning problems?
- RQ2How effective is the use of random feature approximation in reducing computational cost for RBF kernel learning without sacrificing classification accuracy?
- RQ3To what extent can memory-mapped and distributed computation enable efficient processing of datasets that exceed available RAM?
- RQ4How does the modular, pipeline-based design of GURLS support extensibility and ease of use for non-specialists in machine learning?
- RQ5Can the combination of RLS with advanced optimization strategies (e.g., randomized solvers, regularization path computation) lead to superior performance in multi-output and high-dimensional settings?
Key findings
- GURLS with a linear primal formulation achieved 92.3% accuracy on the optdigits dataset in just 0.49 seconds, outperforming LS-SVM, which required 7190 seconds for the same task.
- The use of 500 random features in GURLS achieved 96.8% accuracy on optdigits with only 25.6 seconds of training time, significantly faster than the 13,500 seconds required by the RBF kernel version.
- For the isolet dataset, the RBF kernel in GURLS achieved 98.4% accuracy in 100,600 seconds, comparable to LS-SVM’s 98.36% accuracy but with a 20% reduction in training time.
- The C++ implementation (GURLS++) was significantly faster than the Matlab version, with identical prediction accuracy, demonstrating the performance gains from low-level optimization.
- The random feature approximation method in GURLS achieved performance comparable to SVMs but with substantially lower computational cost, making it ideal for large-scale applications.
- The library’s parameter selection via grid search achieved consistent results across datasets, with a fixed 400-point grid, while LS-SVM’s grid size varied and was limited to 70 points, highlighting GURLS’s efficiency in hyperparameter tuning.
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.