NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Shockingly Easy Structured Classification: A Search-based Probabilistic Online Learning Framework

Xu Sun

Abstract

There are two major approaches for sequence labeling. One is the probabilistic gradient-based methods such as conditional random fields (CRF) and neural networks (e.g., RNN), which have high accuracy but drawbacks: slow training, and no support of search-based optimization (which is important in many cases). The other is the search-based learning methods such as structured perceptron and margin infused relaxed algorithm (MIRA), which have fast training but also drawbacks: low accuracy, no probabilistic information, and non-convergence in real-world tasks. We propose a novel and "easy" solution, a search-based probabilistic online learning method (SAPO), to address most of those issues. The method is "easy", because the optimization algorithm at the training stage is as simple as the decoding algorithm at the test stage. This method searches the output candidates, derives probabilities, and conducts efficient online learning. We show that this method with fast training and theoretical guarantee of convergence, which is easy to implement, can support search-based optimization and obtain top accuracy. Experiments on well-known tasks show that our method has better accuracy than CRF and BiLSTM. The SAPO code is released at https://github.com/lancopku/SAPO.

Introduction

Sequence labeling—assigning tags like Part-of-Speech or Entity types to a string of words—is a foundational task in Natural Language Processing. Currently, researchers face a significant trade-off between two dominant paradigms. Probabilistic gradient-based methods, such as CRFs and RNNs, offer high accuracy by considering the entire space of possible labels, but they are computationally expensive, slow to train, and difficult to scale. Conversely, search-based learning methods like the Structured Perceptron are fast because they focus on a few promising candidates, but they often suffer from lower accuracy, lack probabilistic information, and often fail to converge on complex, real-world datasets.

This paper introduces SAPO (Search-based Probabilistic Online Learning), a framework designed to bridge this gap. SAPO is as easy to implement as a search-based model while maintaining the theoretical soundness and accuracy of probabilistic approaches.

The SAPO Framework

The core innovation of SAPO is its simplicity: the optimization algorithm used during training is nearly identical to the decoding algorithm used during testing. This "shockingly easy" approach relies on four key steps:

  1. Top-$n$ Search: Instead of calculating gradients over an exponentially large space of all possible label sequences, SAPO uses efficient search techniques (like A* or beam search) to identify the $n$ most likely candidates (typically $n=5$ or $10$).
  2. Local Probability Derivation: The model treats these $n$ candidates as the entire universe, deriving a log-linear probability distribution across them.
  3. Perceptron-style Update: The model updates its weights by moving toward the correct "oracle" label and away from the $n$ candidates, with the updates scaled by their calculated probabilities.
  4. Regularization: SAPO incorporates $L_2$ regularization directly into the online update, preventing weight explosion and ensuring stability.
Algorithm 1: Search-based Probabilistic Online Learning Algorithm (SAPO)

Theoretical Insights

SAPO serves as a theoretical bridge between existing methods. The authors demonstrate a "Unification Theory": if the search parameter $n$ is set to 1, the algorithm behaves like a standard Structured Perceptron. If $n$ is set to infinity (using dynamic programming), it behaves like a CRF. By choosing a small $n$ (5–10), SAPO finds a "sweet spot" that balances efficiency and accuracy.

Furthermore, the authors provide a theoretical proof of convergence. Unlike the standard Perceptron, which may diverge on non-linearly separable data, SAPO is guaranteed to converge to an optimum even on messy, real-world datasets. The authors also observed that SAPO maintains low and stable weight complexity, a hallmark of robust regularization. Interestingly, by ignoring the "long tail" of highly unlikely sequences and focusing only on the top-$n$ candidates, SAPO acts as a form of search-based regularization, often leading to better generalization than a full CRF.

Experimental Results

The framework was evaluated on three major NLP benchmarks: POS-Tagging (Penn Treebank WSJ), Biomedical Named Entity Recognition (BioNLP-2004), and Phrase Chunking (CoNLL-2000).

  • Accuracy: SAPO consistently outperformed CRF, BiLSTM, and BiLSTM-CRF across all tasks. In POS tagging, for instance, it surpassed the heavily optimized BiLSTM-CRF baseline.
  • Efficiency: SAPO proved significantly faster than gradient-based methods. In POS-Tagging, training was several times faster than both CRF and BiLSTM.
  • Simplicity: Because the training logic mirrors the testing logic (both are search-based), the code is much easier to maintain and implement than complex neural architectures.

Conclusion and Future Work

SAPO offers a robust, efficient, and easy-to-implement alternative for structured classification. While the current implementation uses standard A* search, future optimizations could further increase speed. Additionally, while this study focused on sequence labeling, the framework is generalizable to more complex structures such as syntactic parsing and statistical machine translation.

Summary updated

BibTeX
@article{sun2015towards,
  author = {Xu Sun},
  title = {{Towards Shockingly Easy Structured Classification: A Search-based Probabilistic Online Learning Framework}},
  journal = {Information Sciences},
  year = {2015},
  doi = {10.48550/arxiv.1503.08381},
}
Figure