Hostname: page-component-5db58dd55d-qmkzp Total loading time: 0 Render date: 2026-07-09T12:50:51.414Z Has data issue: false hasContentIssue false

Skeleton-based approach for semantic textual similarity

Published online by Cambridge University Press:  09 June 2026

Hao Wu
Affiliation:
School of Computer Science and Technology, Dalian University of Technology, Dalian, China
Degen Huang*
Affiliation:
School of Computer Science and Technology, Dalian University of Technology, Dalian, China School of Computing and Artificial Intelligence, Fuyao University of Science and Technology, Fuzhou, China
Xiaohui Lin
Affiliation:
School of Computer Science and Technology, Dalian University of Technology, Dalian, China
*
Corresponding author: Degen Huang; Email: huangdg@dlut.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

Semantic textual similarity (STS) is to measure semantic equivalence between sentences; it plays an important role in natural language processing (NLP) tasks. The major core of STS is text representation. This paper studies how to obtain a sentence skeleton for text representation in STS. Unlike most existing syntax models, we propose a skeleton-based reinforcement learning method to identify the skeleton and construct sentence representations. Parallel networks are adopted to extract features of different dimensions in the sentence. In the framework of parallel networks, two sentence representation models are designed: context constrained LSTM (CC-LSTM) and Adorned skeleton LSTM (AS-LSTM). CC-LSTM builds the sentence representation by constraining the word context. AS-LSTM constructs the sentence representation through using the identified skeleton and its qualifiers. Our approach achieves good results without using external resources. Especially AS-LSTM, which outperforms the state-of-the-art without using external resources in the SICK dataset.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NC
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial licence (https://creativecommons.org/licenses/by-nc/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the original article is properly cited. The written permission of Cambridge University Press or the rights holder(s) must be obtained prior to any commercial use.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Illustration of the overall process. The policy network (PNet) samples an action at each state. The sentence representation model (SRM) offers state representation to PNet and outputs the final sentence representation to the SCM when all actions are sampled. SCM performs similarity calculation and provides reward_loss to PNet. Reward by Reward_L, Rpos and Reward_Loss consists of three parts. The SRM includes parallel networks. Among them, ${h^1}_n$ represents the low-dimensional hidden layer of LSTM step n-th, and ${h^2}_n$ represents the high-dimensional hidden layer of LSTM step n-th. Taking the n-th word in a sentence as an example to illustrate the interaction between PNet and SRM. $\oplus$ represents the connection of two vectors. $\odot$ represents a dot product. $\otimes$ represents matrix multiplication. $\ominus$ represents vector subtraction. $+$ indicates vector addition.

Figure 1

Figure 2. BiLSTM model and Attention mechanism.

Figure 2

Figure 3. The overall process of parallel networks, $PN^{(a)}$ and $PN^{(b)}$, have the same input, but the hidden layer dimensions are different: sentence representation from an output concatenation of $PN^{(a)}$ and $PN^{(b)}$.

Figure 3

Figure 4. Examples for context constrained LSTM (CC-LSTM).

Figure 4

Figure 5. Examples for Adorned skeleton LSTM (AS-LSTM).

Figure 5

Figure 6. The relationship between the number of skeletons and sentence length in the annotated corpus.

Figure 6

Table 1. Test set results on the SICK, MALSTM-dev model, CC-LSTM-dev model, and AS-LSTM-dev model use 5000 sentence pairs as a training corpus, including the SICK training set and SICK validation set. Others only use the training set as the training corpus. (300) and (900) represent that the models select 300-dimensional and 900-dimensional hidden layers in the process of training the corpus, respectively.

Figure 7

Table 2. Compare the results of sentences of different lengths, (300) and (900), representative models. Select 300-dimensional and 900-dimensional hidden layers in the process of training the corpus, respectively

Figure 8

Table 3. Results on the STS benchmark dataset: “*” indicates that the result comes from the internet page

Figure 9

Table 4. Results on MSRVID dataset

Figure 10

Table 5. The frequency of various POS in the dataset and the ratio of the skeleton

Figure 11

Table 6. The accuracy of skeleton recognition and the accuracy of each POS skeleton recognition

Figure 12

Figure 7. AS-LSTM_N only uses the loss function as the reward function. AS-LSTM_L represents the addition of Reward_L to the reward function in AS-LSTM_N. AS-LSTM_P represents the addition of Rpos to the reward function in AS-LSTM_N. AS-LSTM_A indicates that all rewards have been added. BiLSTM represents using only the BiLSTM model to obtain results. The horizontal axis represents the epoch, and the vertical axis represents the corresponding result of the epoch.