TL;DR
This paper introduces a novel string edit kernel that leverages learned edit probabilities from state machines, outperforming existing string kernels and standard edit distance on a handwritten digit recognition task. By combining the strengths of learned edit distances and kernel methods, it offers a more robust way to measure string similarity for classification.
What Problem Does This Paper Address?
Traditional string kernels often rely on fixed rules for comparing strings, such as exact substring matching (spectrum kernel) or simple edit distance with uniform costs. While edit distance is more flexible, its standard form can be problematic for machine learning algorithms like Support Vector Machines (SVMs) due to issues with positive definiteness and the need for manual cost tuning. Furthermore, learning edit parameters has historically been challenging, often requiring specialized classifiers. This paper aims to bridge this gap by developing a string edit kernel that can learn edit probabilities from data and be used with powerful kernel-based learning methods like SVMs, thereby improving classification accuracy.
Methods
The core contribution is a new string edit kernel derived from learned edit probabilities. The authors propose a method to learn these probabilities using conditional probabilistic finite-state transducers (cPFTs), which can be trained using Expectation-Maximization (EM) algorithms. This learned cPFT models the probability of transforming one string into another via edit operations.
The kernel itself is formulated as a marginalized kernel, which computes the joint probability of two strings by summing over a hidden variable. In this case, the hidden variable is the transformed string, leading to an infinite sum over all possible output strings. To make this computationally feasible, the authors represent the conditional probabilities $p(y|x)$ and $p(y|x')$ as probabilistic automata. The product of these probabilities is then computed by intersecting these automata. Finally, the infinite sum is efficiently calculated using algebraic methods involving matrix inversion, specifically $(I-M)^{-1}$, where $M$ is derived from the transition probabilities of the intersected automaton.
Datasets
The primary dataset used for evaluation is the NIST Special Database 3, which contains handwritten characters. The experiments utilize a learning set of approximately 8000 digits and a test set of 2000 instances. Each digit image is converted into a string representation using Freeman codes.
Key Insights and Ideas
- Bridging Edit Distance and Kernels: The paper successfully integrates learned edit probabilities (from state machines) into a kernel framework, allowing for more sophisticated string comparisons than traditional kernels and enabling the use of powerful classifiers like SVMs.
- Learning Edit Probabilities: By using conditional probabilistic finite-state transducers (cPFTs), the method can automatically learn the likelihood of different edit operations, capturing domain-specific nuances that fixed costs miss.
- Efficient Computation via Automata Intersection: The novel approach of representing conditional probabilities as automata and then intersecting them provides a structured way to compute the product of probabilities, which is crucial for the kernel's formulation.
- Tractability of Infinite Sums: The use of matrix inversion to handle the infinite sum over possible transformed strings is a key algorithmic innovation that makes the kernel practical.
- Outperforming Existing Methods: The learned edit kernel demonstrates superior performance compared to standard edit distance and other state-of-the-art string kernels on a real-world task.
Key Results
- The proposed learned string edit kernel significantly outperforms a nearest-neighbor classifier using both standard edit distance (costs set to 1) and a learned stochastic edit distance.
- On the handwritten digit recognition task, the learned edit kernel achieved higher accuracy than other state-of-the-art string kernels, including the spectrum kernel, subsequence kernel, and the Li & Jiang kernel.
- Statistical significance tests (Student paired-t test) confirmed that the learned edit kernel's performance was significantly better in most comparisons.
- The parameter $t$ in the Li & Jiang kernel was found to be difficult to tune, with optimal performance achieved at $t=0.02$, and performance dropping significantly for $t > 0.1$.
Limitations and Future Work
- Computational Complexity: The authors acknowledge that the algorithmic complexity of computing the kernel, particularly the matrix inversion step, can be a challenge for very long strings or large alphabets.
- Approximation for Tractability: To address the complexity, they suggest approximating the kernel by computing a finite sum over strings present in the learning sample.
- Future Work:
- Improving the algorithmic complexity by simplifying the conditional transducers (e.g., by considering only the most probable transitions and states).
- Extending the method to learn tree edit kernels, building upon recent work on stochastic models for tree edit distance.
Summary updated