<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Sentence Analogies for Text Morphing</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Zhicheng</forename><surname>Pan</surname></persName>
							<email>panzhicheng@toki.waseda.jp</email>
							<affiliation key="aff0">
								<orgName type="institution">Waseda University</orgName>
								<address>
									<addrLine>2-7 Hibikino</addrLine>
									<postCode>808-0135</postCode>
									<settlement>Kitakyushu</settlement>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Xinbo</forename><surname>Zhao</surname></persName>
							<affiliation key="aff0">
								<orgName type="institution">Waseda University</orgName>
								<address>
									<addrLine>2-7 Hibikino</addrLine>
									<postCode>808-0135</postCode>
									<settlement>Kitakyushu</settlement>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Yves</forename><surname>Lepage</surname></persName>
							<email>yves.lepage@waseda.jp</email>
							<affiliation key="aff0">
								<orgName type="institution">Waseda University</orgName>
								<address>
									<addrLine>2-7 Hibikino</addrLine>
									<postCode>808-0135</postCode>
									<settlement>Kitakyushu</settlement>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Sentence Analogies for Text Morphing</title>
					</analytic>
					<monogr>
						<idno type="ISSN">1613-0073</idno>
					</monogr>
					<idno type="MD5">E0AD951E7282D20EF604654AC5733EDD</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-06-19T14:46+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Sentence analogy</term>
					<term>text morphing</term>
					<term>data creation</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Text morphing is a Natural Language Processing (NLP) task which aims at generating sequences of fluent and smooth intermediate sentences between two input sentences, the start and end sentences. In this paper, we show how to use sentence analogies to augment data for this task. We rely on the notion of analogy to produce sequences of sentences exhibiting step-by-step transitions. We use these sequences to fine-tune a large-scale pre-trained language model that is used for text generation. The performance is evaluated by two criteria: fluency and transition smoothness on both the semantic and formal levels. Compared to a variational autoencoder generative model, our model is shown to generate smoother transitions, although the generated sentences are slightly less fluent.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Text Morphing</head><p>Text morphing is an NLP task that consists in generating a sequence of sentences that make the transition between a start sentence and an end sentence. Tables <ref type="table">1 and 2</ref> show examples. This acceptation of text morphing is slightly different from the one in <ref type="bibr" target="#b0">[1]</ref>, where it is nearer to the meaning found in image morphing where information from two or several images is blended into one.</p><p>Obviously, text morphing can draw from techniques in Natural Language Generation (NLG) <ref type="bibr" target="#b1">[2]</ref>. Traditional methods in NLG generally start from scratch. This is the case of left to right generation using latent sentence vector sampling <ref type="bibr" target="#b2">[3]</ref>. In text morphing, we start from two given sentences and generate intermediate sentences. <ref type="bibr" target="#b3">[4]</ref> proposes a generative language model for sentences that first samples a prototype sentence from a training corpus and then edits it into a new sentence. Based on that, <ref type="bibr" target="#b4">[5]</ref> defined Text Morphing with the goal of generating intermediate sentences that are fluent and smooth between two input sentences. <ref type="bibr" target="#b2">[3]</ref> proposed an RNN-based variational autoencoder generative model which can generate coherent and diverse sentences using the latent space. It can also generate sentences from points between two sentence encodings. The model is called Sentence Variational Autoencoder (Sentence-VAE). Sentence-VAE incorporates distributed latent representations of entire sentences. It uses a continuous latent variable to capture global characteristics. The transitions</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Start sentence</head><p>The noodles and pork belly was my favourite .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>S 1</head><p>The pork belly was my favourite . S 2</p><p>The pork was very good . S 3</p><p>The staff was very good . S 4</p><p>The staff is very friendly .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>End sentence</head><p>Love how friendly the staff is .</p><p>obtained through variational latent space are smoother and the fluency of the generated sentences is higher. By searching paths through the latent space, it can generate coherent new sentences which interpolate between two already known sentences. Table <ref type="table">1</ref> shows an example of a text morphing sequence generated by Sentence-VAE. <ref type="bibr" target="#b3">[4]</ref> proposed a new generative language model for sentences that first samples a prototype sentence from the training corpus and then edits it into a new sentence <ref type="bibr" target="#b3">[4]</ref>. They perform experiments on the Yelp review corpus <ref type="bibr" target="#b5">[6]</ref> and the One Billion Word Language Model Benchmark <ref type="bibr" target="#b6">[7]</ref>. The result shows that the model they proposed improves the fluency of the generated sentences.</p><p>Building on the previous work, <ref type="bibr" target="#b4">[5]</ref> took text editing a step further and proposed a novel model called Morphing Networks which can generate intermediate sentences by editing vectors obtained from a start sentence and an end sentence. The generated intermediate sentences should be fluent and the transitions should be smooth. They aim to gradually approach the end sentence by editing the start sentence step by step, that is, with increasing similarity to the end sentence. Each edit produces a new sentence, and ideally, the editing path is smooth because they only change a small part of the sentence, a few words or a phrase, with each edit. Table <ref type="table">2</ref> shows an example that exhibits relatively smooth and natural transition between two sentences.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ICCBR'22 Workshop Proceedings</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Proposed Method for Text Morphing</head><p>In nowadays NLP, it has become classical to fine-tune a large-scale pre-trained language model to perform a given downstream task, as this has been proven to be efficient in many cases. To perform fine-tuning in a supervised way, implies the use of a data set for the task in question. In our case, this means a data set of text morphing sequences.</p><p>In this paper, we show how to create text morphing sequences by exploiting the notion of analogy between sentences. This point is the original point in our proposed method.</p><p>Our method thus consists of the following two steps. Firstly and most importantly, we use the notion of sentence analogy (Subsection 2.2) to create a data set of text morphing sequences (Subsection 2.1). Secondly, we use this data set to fine-tune a large-scale pre-trained language model (Subsection( 3.4) on the task of text morphing.</p><p>Below, we detail the original point in our method, i.e., the creation of a data set of text morphing sequences using the notion of analogies between sentences. We also explain how we solve sentence analogies.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Creating a Data Set of Text Morphing Sequences</head><p>We construct a data set of text morphing sequences by solving sequences of analogies between sentences. We start with a sentence analogy 𝐴 : 𝐵 :: 𝐶 0 : 𝑥, where 𝐴, 𝐵 and 𝐶 0 are sentences extracted from a data set of sentence analogies and 𝑥 is unknown. <ref type="foot" target="#foot_0">1</ref> olving the equation delivers a sentence 𝑥 = 𝐶 1 . We recursively apply the process by replacing 𝐶 0 with 𝐶 1 , etc., leaving 𝐴 and 𝐵 unchanged. In this way, we obtain a sequence of sentences 𝐶 0 , 𝐶 1 , . . . , 𝐶 𝑛 . It is a text morphing sequence where 𝐶 0 and 𝐶 𝑛 are the start and end sentences and 𝐶 1 , ..., 𝐶 𝑛−1 are the intermediate sentences. <ref type="foot" target="#foot_1">2</ref> See Figure <ref type="figure">1</ref>.</p><p>Since we are constantly replacing 𝐶 𝑖−1 with the next sentence 𝐶 𝑖 predicted by sentence analogy, the direction of changes in the entire sequence is given by the direction between 𝐴 and 𝐵. Now, as the variation is, by definition of the analogy 𝐴 : 𝐵 :: 𝐶 𝑖−1 : 𝐶 𝑖 , limited by the variation between 𝐴 and 𝐵, the transitions should be smooth, if 𝐴 and 𝐵 are not too distant. The tool used to solve the sentence analogies should be responsible for the fluency of the generated sentences 𝐶 𝑖 .</p><p>To summarize, in this process, the sentence 𝐶 0 is transformed slowly step by step into 𝐶 𝑛 , along the direction defined by 𝐴 and 𝐵. Notice that we give the start sentence 𝐶 0 , but that we do not know in advance the end sentence 𝐶 𝑛 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Solving Sentence Analogies</head><p>The previous process requires a tool to solve sentence analogies. Sentence analogies are more difficult to solve than word analogies (𝑔𝑜 is to 𝑤𝑒𝑛𝑡 as 𝑤𝑎𝑙𝑘 is to 𝑤𝑎𝑙𝑘𝑒𝑑 or 𝑇 𝑜𝑘𝑦𝑜 is to 𝐽𝑎𝑝𝑎𝑛 as 𝐵𝑒𝑗𝑖𝑛𝑔 is to 𝐶ℎ𝑖𝑛𝑎 ). The syntactic structure and semantic complexity of sentences makes the difficulty. . . . :: . . . : 𝑥 ⇒ 𝑥 = . . .  In early proposals to solve sentence analogies <ref type="bibr" target="#b7">[8,</ref><ref type="bibr" target="#b8">9]</ref>, sentences have been considered as strings of words or characters. The disadvantage is that the semantics of sentences is not controlled. <ref type="bibr" target="#b9">[10]</ref> proposed to combine both the form of sentences (strings of words) with the meaning of words (vector representations of words). They released a set of 5,600 so-called semantico-formal analogies in English. Examples are shown in Figure <ref type="figure" target="#fig_1">2</ref>. <ref type="bibr" target="#b10">[11]</ref> proposed to learn the mapping between three vector representations of sentences (𝐴, 𝐵 and 𝐶) for and the vector representation of the sentence 𝐷 solution of the analogy 𝐴 : 𝐵 :: 𝐶 : 𝐷. The three vectors for 𝐴, 𝐵 and 𝐶 can be obtained from word or sentence embedding models. To decode the sentence 𝐷 from its vector representation, they proposed a vec2seq model, implemented as a fully connected network, to map vector representations of sentences onto their corresponding sentences.</p><formula xml:id="formula_0">𝐴 : 𝐵 :: 𝐶 𝑛−1 : 𝑥 ⇒ 𝑥 = 𝐶 𝑛 ⎫ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎭ =⇒ (𝐶 0 , 𝐶</formula><p>Here, we solve sentence analogies using yet another method described elsewhere <ref type="bibr" target="#b11">[12]</ref>. It consists in fine-tuning a large-scale pre-trained model on the data set of semantico-formal analogies mentioned above. The fine-tuned model obtained can perform the task of solving sentence analogies directly in an end-to-end manner. Different language models were tested and the most efficient one was a fine-tuned GPT-2 model. We use that one in the experiments reported in this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Experiment Settings</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Data Used</head><p>The previously mentioned data set of semantico-formal analogies is used to create text morphing sequences that will be used to train a GPT-2 model for the task of text morphing. This data set was created from sentences extracted from the English part of the Tatoeba resource<ref type="foot" target="#foot_2">3</ref> .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Assessment of Text Morphing Sequences</head><p>Assessment of text morphing is done according to two dimensions. Firstly, by the smoothness of the transitions between the sentences in the morphing sequences: two consecutive sentences should not differ by too much for the entire sequence to be considered smooth. Secondly, by the quality of each individual intermediate sentence: all sentences generated should sound natural, fluent, grammatical, in a word, it should be reasonable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1.">Transition Smoothness</head><p>We define it as the average of all edit distances between consecutive sentences in the morphing sequence. The edit distance between two strings gives the number of edit operations needed to transform a given string into another one. It is thus particularly well suited for our purpose.</p><p>Here we use the Levenshtein distance <ref type="bibr" target="#b12">[13]</ref> in which deletion, insertion, and substitution are the basic edit operations. Lower scores indicate smoother transitions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2.">Fluency of a Text Morphing Sequence</head><p>Perplexity, as classically used in language modelling, is a measure of the reasonableness of sentences. We thus define the fluency of a text morphing sequence as the average of the perplexity scores over all intermediate sentences (excluding the start and end sentences). A lower score indicates higher fluency. <ref type="foot" target="#foot_3">4</ref></p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Creation of a Data Set of Text Morphing Sequences Using Sentence Analogies</head><p>As mentioned at the end of Section 2.2, to solve sentence analogies, we fine-tune a pre-trained language model, GPT-2 <ref type="bibr" target="#b13">[14]</ref>, on the task of solving sentence analogies. The sentence analogies used during this training are from the semantico-formal analogy data set mentioned in Section 2.2. To create a data set of text morphing sequences, we then use each semantico-formal sentence analogy as a starting point as described in Section 2.1 and illustrated in Figure <ref type="figure">1</ref>.</p><p>We asses the quality of the created text morphing sequences with the metrics introduced in Section 3.2, but, in addition, we compare with an existing model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Table 4</head><p>Quality of text morphing sequences. On the left, in the creation of the data set to be used in fine-tuning. On the right, in performing the task of text morphing with the fine-tuned model. For both measures of transition smoothness and fluency, the lower, the better.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Data Set Creation</head><p>Text Morphing </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Results for the Creation of the Data Set of Text Morphing Sequences</head><p>The quality of the created text morphing sequences, that will be used afterwards to train a large-scale language model for the task of text morphing, is shown in Table <ref type="table">4</ref>. Our proposed approach delivers smoother sentences which are semantically relatively correct, in comparison with the Sentence-VAE model proposed in <ref type="bibr" target="#b2">[3]</ref> for generating morphing sequences. Table <ref type="table">4</ref> shows that the transition smoothness (average of edit distance between consecutive sentences) of Sentence-VAE is 3.52, while it is 1.31 with our proposed method. This means that for each transition, the Sentence-VAE model changes on average three and a half words on average, while our proposed method changes 1.3 words only, less than half in comparison. The average number of words per sentence being 6.7, the baseline method changes half the sentence at each transition. Our method makes more subtle and smoother changes.</p><p>The fluency, as measured by perplexity, is 1.35 in the method using Sentence-VAE, while it is 1.57 in our method (the scores are small because the sentences are short). According to these numbers, the sentences generated by the Sentence-VAE model are more reasonable, but whether there is a real difference may be disputable. We conclude that, in comparison with the Sentence-VAE model, our proposed method delivers smoother sentences that are relatively fluent.</p><p>The following Table <ref type="table">5</ref> shows basic statistics of our created dataset. An example of generated morphing sentences is given in Table <ref type="table">6</ref> below.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Table 6</head><p>Morphing sequences obtained with the Sentence-VAE method (on the left) and our proposed method (on the right) for the same start and end sentences.</p><p>Sentence-VAE <ref type="bibr" target="#b2">[3]</ref> Our </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Results for the Text Morphing Task</head><p>The quality of text morphing is shown in the same table as before, Table <ref type="table">4</ref>. The results of this experiment are similar to those obtained in the previous section when creating a data set of text morphing sequences. This indicates that our trained model can deliver smoother sentences which are semantically relatively correct, in comparison with the Sentence-VAE model for the task of text morphing.</p><p>The transition smoothness of the Sentence-VAE model is 3.73, while it is 0.72 with our proposed method. The previous remarks made above apply similarly here for this model. It is not a surprise as we use it here in the same way as before. Our proposed method shows improvement in transition smoothness relatively to the creation of text morphing sequences: the average edit distance between two consecutive sentences has been almost divided by two.</p><p>The perplexity of the method using the Sentence-VAE model is 1.36, while the perplexity with our proposed method is 1.75. Again, there is no difference between the scores in the data creation step and the text morphing tesk for the Sentence-VAE model because we use it in the same way in both cases. Our proposed method generates sentences with a slightly worse perplexity in the text morphing task compared with the creation of text morphing sequences using sentence analogy. However, again, we can conclude that our proposed fine-tuned model delivers sentences which are relatively fluent, but smoother, in comparison with the Sentence-VAE model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Discussion</head><p>When creating text morphing sequences, we observed that, sometimes the same sentences were generated repeatedly or several sentences were generated alternately. We explain these phenomena by the relative shortness of the sentences used. The sentences contained in our data set are less than 10 words long. Shorter sentences allow for fewer options for changes when the text is morphed, and sometimes repetition occurs, which induces no change. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>We proposed to perform text morphing by fine-tuning a large-scale pre-trained language model on the task, as is classical nowadays in NLP. But for that, data was needed. We relied on analogies to create text morphing sequences. We proposed an original method which consists in starting with an analogical equation and in letting the solver perform changes in the direction defined by the two terms on the left of the analogical equation. Variations are obtained step by step and this results in text morphing sequences.</p><p>The performance of the fine-tuned model was evaluated with transition smoothness and fluency. Our model achieved more than three times smoother transitions than the baseline we considered, the Sentence Variational Autoencoder generative model. However, the baseline was shown to generate slightlymore fluent sentences than our proposed model.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>ICCBR' 22</head><label>22</label><figDesc>Workshop Proceedings 𝐴 : 𝐵 :: 𝐶 0 : 𝑥 ⇒ 𝑥 = 𝐶 1 𝐴 : 𝐵 :: 𝐶 1 : 𝑥 ⇒ 𝑥 = 𝐶 2 𝐴 : 𝐵 :: 𝐶 2 : 𝑥 ⇒ 𝑥 = 𝐶 3 . . . :</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Figure 2 :</head><label>2</label><figDesc>Figure 2: Semantico-formal analogies from the data set released in [10].</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head></head><label></label><figDesc>1 , 𝐶 2 , . . . , 𝐶 𝑛 )</figDesc><table><row><cell cols="5">Figure 1: Process of creating a text morphing sequence.</cell><cell></cell><cell></cell></row><row><cell>It 's really not that interes-ting .</cell><cell>:</cell><cell>It 's really not that hot .</cell><cell>::</cell><cell>It 's not that bad .</cell><cell>: 𝑥 ⇒ 𝑥 =</cell><cell>It 's not that cold .</cell></row><row><cell>You 're not from around here , are you ?</cell><cell>:</cell><cell>You 're not stay-ing here , are you ?</cell><cell>::</cell><cell>You 're confused again , are n't you ?</cell><cell>: 𝑥 ⇒ 𝑥 =</cell><cell>You 're disap-pointed , are n't you ?</cell></row></table></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_3"><head>Table 7</head><label>7</label><figDesc>Examples of text morphing sequences (of length 3) generated by the fine-tuned GPT-2 model. Start sentences on the first row, end sentences on the last row.</figDesc><table><row><cell>I deserve this .</cell><cell>I really do not know .</cell><cell>I see the problem .</cell></row><row><cell>I do not deserve this .</cell><cell>I do not know .</cell><cell>I know the truth .</cell></row><row><cell>I deserve that .</cell><cell>I do not know anything .</cell><cell>I know the problem .</cell></row><row><cell>I do not need that .</cell><cell>I do not know .</cell><cell>I know the truth .</cell></row><row><cell>I do not need a girl-friend .</cell><cell>I do not understand anything .</cell><cell>I know the solution .</cell></row></table></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">http://lepage-lab.ips.waseda.ac.jp/en/projects/kakenhi-kiban-c-18k11447/ See Experimental Results.</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1">In our experiments, we set 𝑛 to have 1 to 5 intermediate sentences. When 𝑛 becomes larger, we observe that the same sentence may be repeated in the sequence of sentences.</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2">https://tatoeba.org/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3">We use the a 3-gram language model, trained on the Tatoeba corpus, with the KenLM toolkit https://github.com/ kpu/kenlm to compute the perplexity of the sentences.</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_4">https://github.com/timbmg/Sentence-VAE</note>
		</body>
		<back>
			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ICCBR'22 Workshop Proceedings</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Table 3</head><p>The GPT-2 fine-tuning settings for text morphing.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Hyperparameter</head><p>Value GPT-2 model 345M Optimizer adam Batch size 1 Learning rate (LR=2) 0.00002 <ref type="bibr" target="#b4">[5]</ref> did not release their code, although they claim better results than the Sentence-VAE model <ref type="bibr" target="#b2">[3]</ref>. The code for this latter model is available 5 . So we adopt it as our baseline. In our experiments, we trained the Sentence-VAE model using the Tatoeba data set from which the above-mentioned semantico-formal analogies were extracted. By exploring the paths between the start and end sentences created with our method, in the latent space of the obtained Sentence-VAE model, we can generate a certain number of coherent sentences, which constitute a text morphing sequence.</p><p>In this way, we can compare the transition smoothness and the fluency of two comparable sets of text morphing sequences, created from the same start and end sentences, by two methods, the Sentence-VAE model, and our proposed method.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.">Fine-Tuning a Pre-Trained Model with the Data Set of Text Morphing Sequences Created Using Sentence Analogies</head><p>We fine-tune the pre-trained GPT-2 model using the sentence sequences generated in the previous section. For comparison, as in the previous section, we still use the Sentence-VAE model as a baseline model. Due to limitations in memory, we choose the medium-sized GPT-2 model (345M). The GPT-2 fine-tuning parameters are shown in Table <ref type="table">3</ref>. For the baseline model, we trained the Sentence-VAE model using the Tatoeba corpus dataset which consists of 110,000 English sentences. GPT-2 <ref type="bibr" target="#b13">[14]</ref> is a large transformer-based language model created by OpenAI. GPT-2 uses the Decoder structure of the Transformer <ref type="bibr" target="#b14">[15]</ref>, with some changes to the Transformer Decoder. They verified that unsupervised language modeling is able to learn the features required for supervised tasks. GPT-2 pretraining uses the foregoing to predict the next word, which is suitable for text generation tasks since text generation usually generates the next word based on currently available information.</p><p>GPT-2 is a large model based on transformer training on a very large dataset with a large scale, and GPT-2 has a good performance in text generation, both in terms of contextual coherence and sentiment expression.</p></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<monogr>
		<title level="m" type="main">Multi-stage text morphing</title>
		<author>
			<persName><forename type="first">R</forename><forename type="middle">A</forename><surname>Connor</surname></persName>
		</author>
		<idno>patent US 2011/0184725 A1</idno>
		<ptr target="https://patents.google.com/patent/US20110184725" />
		<imprint>
			<date type="published" when="2011">2011</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Survey of the state of the art in natural language generation: Core tasks, applications and evaluation</title>
		<author>
			<persName><forename type="first">A</forename><surname>Gatt</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Krahmer</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal of Artificial Intelligence Research</title>
		<imprint>
			<biblScope unit="volume">61</biblScope>
			<biblScope unit="page" from="65" to="170" />
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Generating sentences from a continuous space</title>
		<author>
			<persName><forename type="first">S</forename><forename type="middle">R</forename><surname>Bowman</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Vilnis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">O</forename><surname>Vinyals</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Dai</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Jozefowicz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Bengio</surname></persName>
		</author>
		<idno type="DOI">10.18653/v1/K16-1002</idno>
		<ptr target="https://www.aclweb.org/anthology/K16-1002.doi:10.18653/v1/K16-1002" />
	</analytic>
	<monogr>
		<title level="m">Proceedings of The 20th SIGNLL Conference on Computational Natural Language Learning</title>
				<meeting>The 20th SIGNLL Conference on Computational Natural Language Learning<address><addrLine>Berlin, Germany</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2016">CoNLL2016. 2016</date>
			<biblScope unit="page" from="10" to="21" />
		</imprint>
	</monogr>
	<note>Association for Computational Linguistics</note>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Generating sentences by editing prototypes</title>
		<author>
			<persName><forename type="first">K</forename><surname>Guu</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><forename type="middle">B</forename><surname>Hashimoto</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Oren</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Liang</surname></persName>
		</author>
		<idno type="DOI">10.1162/tacl_a_00030</idno>
		<ptr target="https://www.aclweb.org/anthology/Q18-1031.doi:10.1162/tacl_a_00030" />
	</analytic>
	<monogr>
		<title level="j">Transactions of the Association for Computational Linguistics</title>
		<imprint>
			<biblScope unit="volume">6</biblScope>
			<biblScope unit="page" from="437" to="450" />
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<monogr>
		<author>
			<persName><forename type="first">S</forename><surname>Huang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Wu</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Wei</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Zhou</surname></persName>
		</author>
		<idno>) abs/1810.00341</idno>
		<title level="m">Text morphing</title>
				<imprint>
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
	<note>ArXiv (not published elsewhere</note>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<title level="m" type="main">Yelp dataset challenge: Review rating prediction</title>
		<author>
			<persName><forename type="first">N</forename><surname>Asghar</surname></persName>
		</author>
		<ptr target="https://arxiv.org/abs/1605.05362" />
		<imprint>
			<date type="published" when="2016">2016</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<monogr>
		<title level="m" type="main">One billion word benchmark for measuring progress in statistical language modeling</title>
		<author>
			<persName><forename type="first">C</forename><surname>Chelba</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Mikolov</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Schuster</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Q</forename><surname>Ge</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Brants</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Koehn</surname></persName>
		</author>
		<idno>CoRR abs/1312.3005</idno>
		<imprint>
			<date type="published" when="2013">2013</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">A framework of a mechanical translation between Japanese and English by analogy principle</title>
		<author>
			<persName><forename type="first">M</forename><surname>Nagao</surname></persName>
		</author>
		<ptr target="http://www.mt-archive.info/Nagao-1984.pdf" />
	</analytic>
	<monogr>
		<title level="m">Proceedings of the international NATO symposium on Artificial and human intelligence</title>
				<editor>
			<persName><forename type="first">A</forename><surname>Elithorn</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">R</forename><surname>Banerji</surname></persName>
		</editor>
		<meeting>the international NATO symposium on Artificial and human intelligence</meeting>
		<imprint>
			<publisher>NATO</publisher>
			<date type="published" when="1984">1984</date>
			<biblScope unit="page" from="173" to="180" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Using paradigm tables to generate new utterances similar to those existing in linguistic resources</title>
		<author>
			<persName><forename type="first">Y</forename><surname>Lepage</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Peralta</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 4th internation conference on Language Resources and Evaluation (LREC 2004)</title>
				<meeting>the 4th internation conference on Language Resources and Evaluation (LREC 2004)<address><addrLine>Lisbon</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2004">2004</date>
			<biblScope unit="volume">1</biblScope>
			<biblScope unit="page" from="243" to="246" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Semantico-formal resolution of analogies between sentences</title>
		<author>
			<persName><forename type="first">Y</forename><surname>Lepage</surname></persName>
		</author>
		<ptr target="http://lepage-lab.ips.waseda.ac.jp/media/filer_public/32/04/32049346-75dd-4bd1-93cc-ae221e49a2e9/ltc-005-lepage.pdf" />
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 9th Language &amp; Technology Conference (LTC 2019) -Human Language Technologies as a Challenge for Computer Science and Linguistics</title>
				<editor>
			<persName><forename type="first">Z</forename><surname>Vetulani</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">P</forename><surname>Paroubek</surname></persName>
		</editor>
		<meeting>the 9th Language &amp; Technology Conference (LTC 2019) -Human Language Technologies as a Challenge for Computer Science and Linguistics</meeting>
		<imprint>
			<date type="published" when="2019">2019</date>
			<biblScope unit="page" from="57" to="61" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">Vector-to-sequence models for sentence analogies</title>
		<author>
			<persName><forename type="first">L</forename><surname>Wang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Lepage</surname></persName>
		</author>
		<idno type="DOI">10.1109/ICACSIS51025.2020.9263191</idno>
		<ptr target="https://ieeexplore.ieee.org/document/9263191.doi:10.1109/ICACSIS51025.2020.9263191" />
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 2020 International Conference on Advanced Computer Science and Information Systems</title>
				<editor>
			<persName><surname>Ieee</surname></persName>
		</editor>
		<meeting>the 2020 International Conference on Advanced Computer Science and Information Systems<address><addrLine>ICACSIS</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2020">2020. 2020</date>
			<biblScope unit="page" from="441" to="446" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<monogr>
		<title level="m" type="main">Solving sentence analogies by using embedding models combined with a vector-to-sequence decoder or by fine-tuning pre-trained language models</title>
		<author>
			<persName><forename type="first">L</forename><surname>Wang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Z</forename><surname>Pan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>Xiao</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Lepage</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2022">2022</date>
		</imprint>
	</monogr>
	<note>Under review</note>
</biblStruct>

<biblStruct xml:id="b12">
	<analytic>
		<title level="a" type="main">Binary codes capable of correcting deletions, insertions and reversals</title>
		<author>
			<persName><forename type="first">V</forename><surname>Levenshtein</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Soviet Physics-doklady</title>
		<imprint>
			<biblScope unit="volume">10</biblScope>
			<biblScope unit="page" from="707" to="710" />
			<date type="published" when="1966">1966</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b13">
	<monogr>
		<title level="m" type="main">Language Models are Unsupervised Multitask Learners</title>
		<author>
			<persName><forename type="first">A</forename><surname>Radford</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Wu</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Child</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Luan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Amodei</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><surname>Sutskever</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2019">2019</date>
			<publisher>OpenIA</publisher>
		</imprint>
	</monogr>
	<note type="report_type">Technical Report</note>
</biblStruct>

<biblStruct xml:id="b14">
	<analytic>
		<title level="a" type="main">Attention is all you need</title>
		<author>
			<persName><forename type="first">A</forename><surname>Vaswani</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Shazeer</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Parmar</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Uszkoreit</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Jones</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">N</forename><surname>Gomez</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Ł</forename><surname>Kaiser</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><surname>Polosukhin</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Advances in Neural Information Processing Systems (NIPS 2017)</title>
				<editor>
			<persName><forename type="first">I</forename><surname>Guyon</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">U</forename><surname>Luxburg</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">S</forename><surname>Bengio</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">H</forename><surname>Wallach</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">R</forename><surname>Fergus</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">S</forename><surname>Vishwanathan</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">R</forename><surname>Garnett</surname></persName>
		</editor>
		<imprint>
			<date type="published" when="2017">2017</date>
			<biblScope unit="volume">30</biblScope>
			<biblScope unit="page" from="6000" to="6010" />
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
