Introduction
Conditional Maximum Entropy (MaxEnt) models are widely utilized in Natural Language Processing (NLP) due to their ability to incorporate diverse and overlapping features. However, training these models using the standard Generalized Iterative Scaling (GIS) algorithm is often prohibitively slow. The primary bottleneck in GIS is the step size, which is constrained by $f^\#$, the maximum number of active features in any training instance. In complex models, a large $f^\#$ forces the algorithm to take very small steps, leading to long convergence times.
The SCGIS Algorithm
This paper introduces Sequential Conditional Generalized Iterative Scaling (SCGIS), a variation that updates model parameters ($\lambda$) sequentially rather than simultaneously. By updating features one by one, the effective $f^\#$ is reduced (often to 1), allowing for significantly larger mathematical step sizes toward the global optimum.
To maintain computational efficiency, SCGIS employs a caching strategy. This mechanism incrementally updates the sums of weights ($s[j, y]$) and normalizing factors ($z[j]$), ensuring that a single iteration of SCGIS remains computationally comparable to an iteration of GIS while achieving much greater progress. Additionally, the framework supports Gaussian priors for smoothing to prevent overfitting.
Experimental Setup
The algorithm was evaluated on a confusable word task (e.g., distinguishing "their" from "there") using datasets ranging from 10 to 50 million words. The models varied in complexity, utilizing 5, 15, and 55 feature types, including n-grams, part-of-speech tags, and context windows.
Results and Speedup Analysis
The primary metric for evaluation was the speedup factor required to reach the same objective function value as 10 iterations of GIS. The results demonstrate that SCGIS provides substantial performance gains, particularly as model complexity increases.
For simpler models with only 5 feature types, SCGIS achieved an average speedup of approximately 7.7x. As the number of features increased to 55, the average speedup jumped to 27.3x. In many instances, GIS failed to reach the performance level of SCGIS even after 1,000 iterations, highlighting the massive efficiency gap between the two methods.
Limitations and Future Work
While SCGIS offers significant speedups, it introduces memory overhead. Storing the array $s[j, y]$ requires space proportional to the number of instances multiplied by the number of outputs. For tasks with very large output vocabularies, techniques like word clustering may be necessary to mitigate memory usage. Future research could explore the impact of feature update ordering and compare SCGIS against more complex optimization methods like Conjugate Gradient descent in sparse data environments.
Summary updated