2
$\begingroup$

I've been researching a good way to automate short answer evaluation. Essentially a teacher gives a test with some questions like:

Question: why did columbus sail westward to find asia?

Answer: so he could find a new trade route to Asia through the ocean. Three goals of the Spanish in the Americas were the desire to attain great amounts of riches, to establish claims on as much land as possible, and to colonize as much as possible.

With that we have the correct answer and would like to compare that with the students answer and produce a score based on similarity. I know this isn't a reliable replacement for human grading, but for the sake of the example.

I've come across this paper and codebase: https://arxiv.org/pdf/1908.10084.pdf

https://github.com/UKPLab/sentence-transformers

It seems like the ideal method for solving this problem, but most examples are based on scoring/ranking of semantic search. I question whether I'm on the right path, given that I'm just comparing two answers and not a cluster. Anyone with more experience, possibly can provide some guidance?

$\endgroup$
2
  • $\begingroup$ Is training data for your example publicly available by any chance? $\endgroup$
    – Akavall
    Aug 21, 2020 at 1:59
  • $\begingroup$ No, I don't currently have any data trained. Still figuring out if I can use a pre-trained model $\endgroup$ Aug 21, 2020 at 13:57

4 Answers 4

3
$\begingroup$

I have used Siamese Bert and I can say it does a pretty good job. However, the issue is that the data that it has been fine-tuned atop of Bert may not necessarily, entirely represent the same semantic distance as with the answers between the true and the student's one. For instance, if there is a question about engineering, where a small change of word may mean a totally different thing; SBert would still find them quite similar cause they are related to the topic. Unless it's fine-tuned.

Moreover, you will not be able to interpret the similarity. Should a student ask you why my peer's answer is better you won't be able to explain.

My opinion: I believe you could use this tool as a way to reduce totally incoherent answers, but at some point, human evaluation will be needed. And maybe use interpretable metrics such as ROUGE or BLEU. I aware as well, that this topic is quite trendy in NLP, I won't be surprised if there is or will be good off the shelf tool for that, but I am not aware of one currently.

$\endgroup$
2
1
$\begingroup$

@b_the_builder Nice finds! The first seems to me like an advancement of the Word Mower's distance by using the similarities between each word. I believe still may lack the domain adaptation. Whereas the second link you provided does the pre-training for that specific reason. All in all, whatever method you use I believe you will need to pick some representative hard match sentences and see how they perform on them, after pre-training on your corpora. If you want to be sure. For inspiration, you can look into here on semantic similarity tasks between sentences.

$\endgroup$
0
$\begingroup$

I tried GPT-2 with your prompt but I was not extremely successful:

enter image description here

$\endgroup$
0
$\begingroup$

Also i think it won't consider negations as well. First you want to fix a threshold for correct or partially correct and wrong answers. But it is a difficult task because it doesnot consider negation statements well. for eg: If you give two statements like Tony stark is iron man and Tony stark is not iron man which is purely contradictory statement, the cosine similarity will say these statements are somewhat similar(even with STS robera large, the benchmark model) which shows this can't be used as for answer grading. I don't know whether there are any other ways to tackle this, but this is from my experiance.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.