← All work 11 / 29

Claim-Evidence Relationships

Transformers for NLP

Data Analytics | Machine Learning | Classification | ROBERTA | Ensembles

  • AI & ML
  • Data
Claim-Evidence Relationships Transformers for NLP

Preamble

This project was completed as part of the Machine Learning module at SMU. The objective was to train a model which can determine the relationship between sentences. As of 2022, the state-of-the-art method of a determining such relationships was via transformers built on the attention model. Basically by using various queries, keys and values to encode a sentence we are able to extract different types of features be it topological or lexicographical.

The training data is basically a list of sentence pairs, one called an evidence and the other a claim. Each pair is labeled as having a 'supportive', 'refutive' or 'none' relationship. In the transformer model each sentence is encoded and the encodings cross multiplied to create a unique matrix which is then used to train the model as it identifies the matrix as belonging to one of the labels.

The report explaining the project is as seen below. Most of the exploration and writing was completed by me, however the base code that sets up the ROBERTA transformer model for training was adapted from https://github.com/teacherpeterpan/Zero-shot-Fact-Verification.

The contents of the notebook appended below dive straight into the first of 6 stages:

  1. Data Extraction
  2. Sentence Similarity Exploration
  3. Named Entity Recognition Exploration
  4. Data Formatting for Transformer Model (ZSFV)
  5. Integrating Named Entity Recognition into Model
  6. Ensembling Experiments