Abstract
This paper investigates the use of Long Short-Term Memory (LSTM) networks equipped with attention mechanisms for English article usage prediction (a, an, the, or none). By extending the context window beyond local phrases, the model effectively captures complex pragmatic and contextual cues such as coreference and synonymy. The proposed architecture achieves a state-of-the-art accuracy of 96.63% on the WSJ/PTB corpus, representing a 51% relative error reduction over traditional feature-engineered baselines.
Introduction
Predicting whether a noun phrase should be preceded by a definite article ("the"), an indefinite article ("a/an"), or no article at all is a classic NLP challenge known as definiteness prediction. This task is notoriously difficult because it requires a combination of local syntactic knowledge (e.g., mass nouns like "money" typically do not take "a") and complex, long-range pragmatic reasoning (e.g., tracking discourse context and information status).
Traditionally, an entity is introduced with an indefinite article ("A man entered") and subsequently referred to with a definite article ("The man sat down"). Previous approaches relied heavily on hand-crafted features extracted from fixed, local context windows. These models often failed to capture broader discourse cues necessary for resolving tricky cases, such as bridging references or synonyms (e.g., introducing a "house" and later referring to it as "the home").
Methods
The authors frame article prediction as a sequence modeling task using LSTM networks. The core architecture, illustrated in Figure 1, processes input tokens to generate hidden states which are then aggregated to make a prediction.
Several variations were tested to determine how models learn pragmatics:
- Context Window: Comparison between local context (previous head noun to current) and extended context (up to 50 tokens from previous sentences).
- Attention Mechanism: A learned attention layer replaces standard mean pooling, allowing the model to dynamically weigh the importance of specific tokens in the sequence.
- Input Representations: Word embeddings were initialized randomly or using pre-trained vectors (word2vec or GloVe).
- Syntactic Injection: Explicit Part-of-Speech (POS) tags were concatenated to word embeddings to provide direct syntactic knowledge.
Experiments were conducted on the Penn Treebank (PTB) Corpus (Wall Street Journal section), where noun phrases were extracted and determiners removed to create a classification dataset.
Key Results and Insights
The experimental results demonstrate that providing the LSTM with an extended context window is critical for resolving complex pragmatic cases. In an analysis of 200 difficult samples involving synonymy and bridging references, models restricted to local context failed, whereas the extended-context LSTM successfully linked concepts across sentences.
As shown in Figure 3, the best-performing model (Extended Context + GloVe + POS + Attention) achieved 96.63% accuracy. Key findings include:
- Relative Error Reduction: The model achieved a 51% relative error reduction over the previous state-of-the-art logistic regression baseline (93.07%).
- Interpretability: Qualitative analysis of attention weights revealed that the model actively "looks" at semantically related tokens from previous sentences to make decisions.
- Learning Syntax: While POS tags improve performance, the gap between models with and without POS tags shrinks significantly when extended context is used, suggesting the LSTM can learn relevant syntactic cues directly from the surrounding text.
- Non-Named Entities: The LSTM models showed massive improvements on non-named entities, which are generally harder to predict and require more long-range dependency tracking.
Conclusion
This research proves that recurrent neural networks can learn to resolve difficult linguistic phenomena like coreference and synonymy without relying on hand-crafted features. While the highest-performing model still benefits from explicit POS tags, the architecture's reliance on task-specific training rather than linguistic engineering makes it highly transferable. Future work will explore applying this architecture to other NLP tasks requiring deep contextual awareness and semantic understanding.
Summary updated