GithubHelp home page GithubHelp logo

sts-en-to-fi-distillation's Introduction

Overview

Semantic textual similarity (STS) is a metric measuring similarity of meanings of natural language text pieces. Majority of recent NLP research has focused on a small set of largest Indo-European languages and Chinese, and, languages with smaller speaker population, Finnish for instance, often lack annotated data required to train complex models.

This work experiments using knowledge distillation to transfer STS properties learnt from English into a model pre-trained on Finnish while bypassing the lack of annotated Finnish data. Further, we experiment distillation with different types of data, English-Finnish bilingual, English monolingual and random pseudo samples, to observe which properties of training data are really necessary.

We briefly follow the knowledge distillation approach described by Reimers at al. We exploit a good-known English trained Sentence-BERT fine-tuned for STS as a teacher fteacher to train selected student models fstudent so that fteacher(s) โ‰ˆ fstudent(s) and fstudent(s) โ‰ˆ fstudent (t) where s is a sentence in the source language and t is a sentence in target language.

Models

Model Role Origin
stsb-distilbert-base Teacher + Baseline sbert.net
bert-base-finnish-cased-v1 (FinBERT) Baseline TurkuNLP
xlm-roberta-base Student + Baseline ๐Ÿค—

Data

Set Type Size
Training, cross-lingual Parallel bilingual 216,104
Training, inter-lingual Unilingual 208,054
Training, extraction Sampled 200,000
Development Parallel bilingual 1,141
Test Annotated bilingual 250

Training

Evaluation

Ref

This work mostly builds on the following:

sts-en-to-fi-distillation's People

Contributors

mkmoisio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.