Introduction
Lexical Substitution (LS) is a fundamental Natural Language Processing task that involves identifying a replacement for a target word in a sentence while strictly preserving the original meaning. For instance, in the context of "The weather is dry today," a successful LS system should suggest "arid" rather than "wet."
Despite advancements using pretrained language models (PLMs) like BERT and XLNet, two significant challenges remain. First is meaning drift: PLMs often suggest words that are contextually plausible but semantically incorrect (e.g., suggesting "wet" for "dry" because both appear in weather contexts). Second is the subword trap: because modern models use subword tokenization, they struggle to generate multi-token substitutes, often defaulting to the single most likely next token regardless of semantic fit.
Methodology: Leveraging Paraphrasers
To address these issues, the authors introduce ParaLS, a method that utilizes an encoder-decoder paraphraser (BART fine-tuned on ParaBank2) instead of a standard language model. Paraphrasers are inherently optimized to maintain semantic equivalence while varying lexical choice, making them uniquely suited for LS.
The system employs two distinct decoding strategies:
- ParaLS (Fixed Prefixes): The decoder is constrained to generate the exact prefix of the original sentence up to the target word, at which point it branches out to identify the top $K$ most likely substitutes.
- ParaLS⋆ (Lookahead Heuristics): An advanced version inspired by A* search. It evaluates potential substitutes not just on local fit, but on how well they integrate with the remaining sentence suffix. This ensures grammatical and semantic coherence across the entire output.
Following generation, a Substitute Ranking step uses global text generation metrics—specifically BARTScore and BLEURT—to compare the modified sentence to the original. This "global" evaluation ensures that the substitute preserves the overall thought of the sentence rather than just fitting a local slot.
Experimental Results
ParaLS was evaluated against three major benchmarks: LS07, CoInCo, and the rigorous SwordS (Stanford Word Substitution) dataset. The results demonstrate that ParaLS⋆ consistently achieves new state-of-the-art performance.
Performance on SwordS
On the challenging SwordS benchmark, which requires high data coverage and quality, ParaLS⋆ significantly outperformed even large-scale commercial models. As shown in the table below, ParaLS⋆ achieved an $F_a$ score of 24.9, surpassing both GPT-3 (22.7) and WordTune (23.5).
Key Advantages
- Semantic Integrity: By using a paraphrasing objective, the model avoids the "meaning drift" common in standard LMs.
- Multi-token Support: The autoregressive nature of BART allows ParaLS to naturally handle multi-token substitutes that masked models like BERT often fail to produce.
- Efficiency: Despite its complex decoding, ParaLS remains computationally efficient, with processing times comparable to standard BERT-based methods.
Conclusion
ParaLS represents a shift in Lexical Substitution methodology by prioritizing paraphrasing over simple language modeling. By combining constrained decoding with global sentence-level ranking, it effectively solves the long-standing issues of meaning drift and subword limitations. Future work will focus on extending this approach to low-resource languages and integrating ParaLS into broader writing assistance tools.
Summary updated