Papers › Learning Semantic Sentence Embeddings using Sequential Pair-wise Discriminator

Learning Semantic Sentence Embeddings using Sequential Pair-wise Discriminator

3 Jun 2018COLING 2018 8arXiv:1806.00807archive 2025-07-28

Badri N. Patro, Vinod K. Kurmi, Sandeep Kumar, Vinay P. Namboodiri

In this paper, we propose a method for obtaining sentence-level embeddings. While the problem of securing word-level embeddings is very well studied, we propose a novel method for obtaining sentence-level embeddings. This is obtained by a simple method in the context of solving the paraphrase generation task. If we use a sequential encoder-decoder model for generating paraphrase, we would like the generated paraphrase to be semantically close to the original sentence. One way to ensure this is by adding constraints for true paraphrase embeddings to be close and unrelated paraphrase candidate sentence embeddings to be far. This is ensured by using a sequential pair-wise discriminator that shares weights with the encoder that is trained with a suitable loss function. Our loss function penalizes paraphrase sentence embedding distances from being too large. This loss is used in combination with a sequential encoder-decoder network. We also validated our method by evaluating the obtained embeddings for a sentiment analysis task. The proposed method results in semantic embeddings and outperforms the state-of-the-art on the paraphrase generation and sentiment analysis task on standard datasets. These results are also shown to be statistically significant.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1806.00807")

Code

Syntology Ran 4 of 17 code samples harvested from 2 repositories linked to this paper; 13 have no recorded run. Of those that ran: 4 ran · our draft was wrong.

By repository: community (archive-listed): 17 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

vinodkkurmi/PQG mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 4 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
13unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cook_refs dev-chauhan/PQG-pytorch/pycocoevalcap/cider/cider_scorer.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 4c1b107103b7c856 · report
cook_test dev-chauhan/PQG-pytorch/pycocoevalcap/cider/cider_scorer.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 3573c4bc85f65dfd · report
precook dev-chauhan/PQG-pytorch/pycocoevalcap/bleu/bleu_scorer.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · ec4448373d72d636 · report
precook dev-chauhan/PQG-pytorch/pycocoevalcap/cider/cider_scorer.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 9560e3e3e41bc1b2 · report
JointEmbeddingLoss dev-chauhan/PQG-pytorch/misc/net_utils.py community (archive-listed) unverified MIT (permissive) · 8f0322f2e3938c98 · report
cook_refs vinodkkurmi/PQG/coco-caption/pycocoevalcap/cider/cider_scorer.py community (archive-listed) unverified MIT (permissive) · 5172aba957a32d9e · report
cook_refs dev-chauhan/PQG-pytorch/pycocoevalcap/bleu/bleu_scorer.py community (archive-listed) unverified MIT (permissive) · 7586e1d32f7325f7 · report
cook_test vinodkkurmi/PQG/coco-caption/pycocoevalcap/cider/cider_scorer.py community (archive-listed) unverified MIT (permissive) · 90a4bcbf05586ff3 · report
cook_test dev-chauhan/PQG-pytorch/pycocoevalcap/bleu/bleu_scorer.py community (archive-listed) unverified MIT (permissive) · 99e54843980299e2 · report
decode_sequence dev-chauhan/PQG-pytorch/misc/net_utils.py community (archive-listed) unverified MIT (permissive) · 0fd52e308ba7327b · report
getObjsForScores dev-chauhan/PQG-pytorch/misc/train_util.py community (archive-listed) unverified MIT (permissive) · 2d0a07f54afa1681 · report
one_hot dev-chauhan/PQG-pytorch/misc/utils.py community (archive-listed) unverified MIT (permissive) · aa2c3c11f48386d7 · report
precook vinodkkurmi/PQG/coco-caption/pycocoevalcap/cider/cider_scorer.py community (archive-listed) unverified MIT (permissive) · 422c41f5b22cf9c3 · report
prepro_question dev-chauhan/PQG-pytorch/prepro/prepro_quora.py community (archive-listed) unverified MIT (permissive) · 4e1b9fbb554f4958 · report
prepro_question1 dev-chauhan/PQG-pytorch/prepro/prepro_quora.py community (archive-listed) unverified MIT (permissive) · d32850b743977c57 · report
prob2pred dev-chauhan/PQG-pytorch/misc/net_utils.py community (archive-listed) unverified MIT (permissive) · 5634e65606c0b231 · report
tokenize dev-chauhan/PQG-pytorch/prepro/prepro_quora.py community (archive-listed) unverified MIT (permissive) · 88ff7954b60fad9c · report

Tasks

DecoderParaphrase GenerationSentenceSentence EmbeddingSentence EmbeddingsSentence-EmbeddingSentiment Analysis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections