The Challenge of Unsupervised Structured Prediction
Unsupervised learning of "structured predictors"—models where output variables exhibit complex dependencies, such as sequences or graphs—remains a notoriously difficult problem in machine learning. While deep models for structured outputs excel when supervised labels are abundant, they struggle when labels are missing.
To bridge this gap, researchers often employ two-layer models, like Conditional Random Field (CRF) auto-encoders. In these architectures, an input $X$ generates a latent structure $Y$, which is then used to reconstruct an output $Z$. However, these models face two major hurdles:
- Non-convexity: The training objective is typically non-convex, meaning optimization algorithms frequently get trapped in poor local minima.
- Intractable Inference: Calculating the "normalization constant" or sampling from these distributions is often NP-hard for complex structures, such as graph matching.
A common workaround is "bi-level optimization," where the model finds the best latent structure $Y$ (the Maximum A-Posteriori or MAP estimate) and then updates its parameters. Unfortunately, because $Y$ is often discrete, small parameter changes do not alter $Y$ at all. This results in "zero gradients," causing standard gradient descent methods to fail.
A Novel Convex Relaxation Approach
To address these fundamental issues, this paper introduces a Convex Two-Layer Model that leverages a mathematical "relaxation" to enable the joint and global optimization of model parameters and latent representations.
- Optimality Conditions as Constraints: Instead of attempting to differentiate through the inner optimization problem (finding the best $Y$), the authors use the first-order optimality conditions of that inner problem as constraints in the outer learning problem.
- SDP Relaxation: To handle the resulting non-linear terms, the framework applies a Semi-Definite Programming (SDP) relaxation. This effectively "linearizes" the quadratic interactions between layers, transforming a highly non-convex problem into a convex one that can be solved globally.
- MAP-only Inference: Crucially, this framework only requires MAP inference—finding the single most likely latent state—rather than summing over all possible states. This weaker requirement is far more computationally efficient, making the model applicable to complex structures where traditional methods fail.
- Low-Rank Inducement: The authors provide a theoretical proof (Theorem 1) demonstrating that the extreme points of their relaxed feasible set naturally encourage low-rank solutions. This ensures the model recovers meaningful, non-trivial latent representations related to the original unrelaxed problem.
Experimental Validation
The model's flexibility was evaluated on two distinct structured problems based on total unimodularity: English-Hebrew Transliteration and MNIST Inpainting.
1. English-Hebrew Transliteration (Graph Matching)
Using a corpus of 250 training and 300 testing word pairs, the task was to determine if two words are phonetically similar. The latent structure here is modeled as a graph matching problem (letter-to-letter correspondence).
The convex method (CVX) significantly outperformed the previous state-of-the-art "Local" optimization in Mean Reciprocal Rank (MRR).
As seen in the scatter plots above, the CVX points consistently sit above the diagonal line across various experimental setups (50, 75, and 100 negative examples), indicating superior and more robust performance.
2. MNIST Inpainting (Linear Chain)
The second task involved 200 sequences of MNIST digits, restricted to be either "all odd" or "all even" to create inherent structure. The objective was to fill in occluded $k \times k$ patches in an unsupervised way, using a linear chain latent structure to represent the digit sequence.
CVX achieved consistently lower reconstruction errors than the recently proposed CRF Auto-Encoder (CRF-AE). For instance, with a $4 \times 4$ occluded patch, CVX achieved an error of 1.28 compared to CRF-AE's 1.31. This advantage held steady across different sequence lengths and patch sizes.
Limitations and Future Directions
While this approach successfully bridges bi-level optimization and convexity, it is not without limitations. SDP relaxations can become computationally expensive as the number of variables grows. Although the authors utilized a refined optimization algorithm (projected LBFGS and CG) to mitigate this, scaling to massive "deep" architectures remains a challenge. Additionally, the current model assumes the "support set" (the allowed shapes of the latent structure) is fixed and lacks learnable parameters.
Looking forward, the authors suggest extending this framework to latent layers that employ submodularity. This would allow the model to capture even more complex "diminishing returns" relationships within the latent space, further expanding the potential of convex two-layer modeling.
Summary updated