A Study of Machine Learning Algorithms for Recognizing Textual Entailment
Paper · 2009 · Julio Javier Castillo
Summary
The paper addresses Recognizing Textual Entailment (RTE): deciding whether a hypothesis H follows from a text T. It covers the classic two-way setting and the three-way setting (entailment / contradiction / unknown) used in RTE4. The author fixes a small set of four similarity features and compares five Weka classifiers on equal terms: SVM, AdaBoost, BayesNet, Multilayer Perceptron and Decision Trees. The features are:
- character-level Levenshtein distance;
- a token-level lexical distance;
- a WordNet-based semantic similarity;
- a longest common substring score.
The classifiers are trained on every combination of the RTE1–RTE3 development sets, and BPI is added for two-way. All models are tested on the RTE4 (TAC 2008) gold set. A named-entity heuristic filter flags pairs that cannot be entailments. A separate SVM then sorts those pairs into contradiction or unknown.
The best results come from MLP trained on RTE3 alone: 58.4% for two-way and 55.4% for three-way. Both beat the baseline. Merging more RTE corpora did not help. This questions the common belief that more training data always improves shallow entailment classifiers.
Key points
- The feature vector is deliberately small to limit overfitting. Its four features are stemmed-string Levenshtein, a token-level Levenshtein distance, WordNet similarity and longest common substring.
- The lexical and WordNet features align tokens of T and H with the Hungarian algorithm.
- Word senses are chosen with Lesk.
- Word-to-word similarity is computed from the depth of the least common subsumer.
- The NER filter rule: if H contains a named entity of some type that is absent from T, the pair is labelled non-entailment.
- It fired on about 10% of RTE4 pairs.
- It was correct in 66 of 92 cases (0.71).
- On RTE4 test, the best scores were MLP trained on RTE3: 58.4% two-way and 55.4% three-way.
- Ten-fold cross-validation gave much higher scores than the test set, which points to overfitting or dataset shift:
- 67.85% two-way (RTE3, BayesNet);
- 65.5% three-way (RTE3, MLP).
- Kappa was low: on average 0.138 two-way and 0.168 three-way, with a best of 0.35. The Levenshtein and lexical-distance features correlate at about 0.86, and dropping either one cost only around 1%.
Interesting ideas
- I1. Hold the feature set fixed and vary only the classifier and the training-corpus combination; this cleanly separates the effect of the learner from the effect of the data.
- I2. A cheap, high-precision veto rule says a hypothesis mentioning an entity of some type missing from the text cannot be entailed; it handles a slice of cases before any statistical model runs.
- I3. Alignment through optimal bipartite matching (Hungarian algorithm) pairs each H token with its best partner in T, which beats a bag-of-words overlap because every token is matched at most once.
- I4. The error analysis shows the filter failing on "fifty years ago" versus "fiftieth birthday"; surface entity matching misses equivalent temporal and numeric expressions.
- I5. Comparing cross-validation scores with scores on a separate test set exposed a large gap between them, a reminder that in-distribution scores flatter shallow models.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): Our evaluation runs could freeze inputs and swap one component at a time, such as the parser or the data mix, so that gains can be attributed honestly.
- I2 (answer): Readers answering yes/no questions could first check whether the question names entities absent from the world of the text, and then explain a "not stated" answer by pointing to that missing entity.
- I3 (world): Optimal matching could link entities or frame arguments in a question to those in the text world, giving an explicit, inspectable alignment.
- I4 (world): Normalizing dates and quantities into values in the world layer would avoid such false contradictions and keep the reasoning explainable.
- I5 (learn): Evaluations should always include a held-out corpus from a different source alongside cross-validation, to catch overfitting to one treebank or test collection.
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.Reasoning · 1,426 works
Cite
Cite as Julio Javier Castillo. 2009. A Study of Machine Learning Algorithms for Recognizing Textual Entailment. Proceedings of the Student Research Workshop.
@inproceedings{castillo2009study,
title = {{A Study of Machine Learning Algorithms for Recognizing Textual Entailment}},
author = {Julio Javier Castillo},
booktitle = {Proceedings of the Student Research Workshop},
year = {2009},
url = {https://aclanthology.org/R09-2003/}
}References
- Prodromos Malakasiotis and Ion Androutsopoulos. Learning Textual Entailment using SVMs and String Similarity Measures. ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, (ACL 2007), Prague, Czech Republic, 2007. find
- Julio Javier Castillo, and Laura Alonso i Alemany. An approach using Named Entities for Recognizing Textual Entailment. TAC 2008, Gaithersburg, Maryland, USA, November 2008. find
- M. Lesk. Automatic sense disambiguation using machine readable dictionaries: How to tell a pine cone from a ice cream cone. In SIGDOC ’86, 1986. find
- Gusfield, Dan. Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology. CUP, 1999. find
- V. Levenshtein. Binary Codes Capable of Correcting Deletions, Insertions and Reversals. Soviet Physics Doklady, 10:707, 1966. find
- Ian H. Witten and Eibe Frank (2005). Data Mining: Practical machine learning tools and techniques, 2nd Edition, Morgan Kaufmann, San Francisco, 2005. find
- Alvaro Rodrigo, Anselmo Peñas, Jesus Herrera, Felisa Verdejo. Experiments of UNED at the Third RTE Challenge. Proceedings of the ACL-PASCAL 2007. find
- D. Inkpen, D. Kipp and V. Nastase. Machine Learning Experiments for Textual Entailment. Proceedings of the second RTE Challenge, Venice-Italy, 2006. find
- Bill Dolan, Chris Quirk, and Chris Brockett. 2004. Unsupervised construction of large paraphrase corpora: exploiting massively parallel news sources. In COLING ’04: Proceedings of the 20th international conference on Computational Linguistics, page 350, Morristown, NJ, USA. Association for Computational Linguistics.
- F. Zanzotto, Marco Pennacchiotti and Alessandro Moschitti. Shallow Semantics in Fast Textual Entailment Rule Learners. In Proceedings of the Third Recognizing Textual Entailment Challenge, Prague, 2007. find
- Marie-Catherine de Marneffe, et al. Manning.Learning to distinguish valid textual entailments. In Proceedings of the Third Recognizing Textual Entailment Challenge, Italy, 2006. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/castillo-2009-study-machine-learning-algorithms-recognizing/