[Paper Review] Fake Sentence Detection as a Training Task for Sentence Encoding
This paper proposes fake sentence detection as a new unsupervised training task for sentence encoders, where sentences are corrupted via word shuffling or dropping to create fake variants; the model learns to distinguish real from fake sentences, achieving performance comparable to Skipthought (trained on 64M sentences) but in just 20 hours using only 1M sentences.
Sentence encoders are typically trained on language modeling tasks with large unlabeled datasets. While these encoders achieve state-of-the-art results on many sentence-level tasks, they are difficult to train with long training cycles. We introduce fake sentence detection as a new training task for learning sentence encoders. We automatically generate fake sentences by corrupting original sentences from a source collection and train the encoders to produce representations that are effective at detecting fake sentences. This binary classification task turns to be quite efficient for training sentence encoders. We compare a basic BiLSTM encoder trained on this task with a strong sentence encoding models (Skipthought and FastSent) trained on a language modeling task. We find that the BiLSTM trains much faster on fake sentence detection (20 hours instead of weeks) using smaller amounts of data (1M instead of 64M sentences). Further analysis shows the learned representations capture many syntactic and semantic properties expected from good sentence representations.
Motivation & Objective
- To address the long training times and high computational cost of existing unsupervised sentence encoding methods based on language modeling.
- To explore whether a discriminative binary classification task—detecting fake sentences—can yield effective sentence representations with less data and faster convergence.
- To evaluate whether fake sentence detection can capture syntactic and semantic properties comparable to or better than state-of-the-art models trained on large-scale language modeling.
- To reduce the dependency on massive datasets and long training cycles while maintaining or improving performance on downstream sentence-level tasks.
Proposed method
- Generate fake sentences by applying two corruption techniques: word shuffling (randomly swapping two words) and word dropping (randomly removing a word).
- Construct a binary classification dataset where each example is either a real sentence or a corrupted version (fake) derived from it.
- Train a BiLSTM-based sentence encoder to predict whether an input sentence is real or fake using a three-layer feedforward network on top of the encoded representation.
- Use a single-layer BiLSTM with 2048-dimensional hidden states and pretrained 300D GloVe embeddings for word representations.
- Train the model for 15 epochs using SGD with a batch size of 64, achieving convergence in under 20 hours on a single GPU.
- Evaluate the learned representations on downstream tasks including NLI, image-caption retrieval, and probing tasks for syntactic and semantic properties.
Experimental results
Research questions
- RQ1Can a binary classification task based on detecting small, controlled sentence perturbations (fake sentences) serve as an effective unsupervised pretraining objective for sentence encoders?
- RQ2How does the performance of a BiLSTM trained on fake sentence detection compare to strong baselines like Skipthought and FastSent on downstream sentence-level tasks?
- RQ3To what extent do representations learned via fake sentence detection capture syntactic and semantic properties of sentences?
- RQ4Can this approach achieve competitive results with significantly reduced data (1M sentences) and training time (20 hours) compared to models trained on 64M sentences?
Key findings
- The BiLSTM model trained on fake sentence detection outperforms Skipthought (trained on 64M sentences) on five out of seven NLI tasks and both caption and image retrieval tasks on COCO.
- Word shuffle and word drop variants of fake sentence detection achieve higher accuracy than Skipthought on six out of ten probing tasks, including significant gains on word content (WC), bigram shuffling (BShift), and semantic odd-man-out (SOMO).
- The fake sentence training method reduces training time from weeks (Skipthought) to under 20 hours on a single GPU while using only 1M sentences instead of 64M.
- The model achieves superior performance on syntactic probing tasks such as tree depth (TreeDepth), where word shuffle outperforms Skipthought by a notable margin.
- The representations learned via fake sentence detection are more sensitive to semantic and syntactic perturbations, as evidenced by higher accuracy in detecting shuffled bigrams and semantic anomalies.
- Even when trained on a small subset (1M sentences), the fake sentence model surpasses Skipthought trained on the full BookCorpus in multiple evaluation settings, demonstrating data efficiency and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.