| Literature DB >> 36249081 |
Ahmed Izzidien1, Stephen Fitz2, Peter Romero3, Bao S Loe1, David Stillwell1.
Abstract
Fairness is a principal social value that is observable in civilisations around the world. Yet, a fairness metric for digital texts that describe even a simple social interaction, e.g., 'The boy hurt the girl' has not been developed. We address this by employing word embeddings that use factors found in a new social psychology literature review on the topic. We use these factors to build fairness vectors. These vectors are used as sentence level measures, whereby each dimension reflects a fairness component. The approach is employed to approximate human perceptions of fairness. The method leverages a pro-social bias within word embeddings, for which we obtain an F1 = 79.8 on a list of sentences using the Universal Sentence Encoder (USE). A second approach, using principal component analysis (PCA) and machine learning (ML), produces an F1 = 86.2. Repeating these tests using Sentence Bidirectional Encoder Representations from Transformers (SBERT) produces an F1 = 96.9 and F1 = 100 respectively. Improvements using subspace representations are further suggested. By proposing a first-principles approach, the paper contributes to the analysis of digital texts along an ethical dimension.Entities:
Keywords: Digitisation of human values; NLP; Social metrics for texts; Text analysis
Year: 2022 PMID: 36249081 PMCID: PMC9549858 DOI: 10.1007/s42803-022-00049-4
Source DB: PubMed Journal: Int J Digit Humanit ISSN: 2524-7832
Using the principal and contingent factors for vector wordings
| Factor | Wording for scale |
|---|---|
| Responsibility dimension |
|
| Emotional dimension |
|
| Public benefit dimension |
|
| Personal benefit dimension |
|
| Consequence dimension |
|
Snippet of dataset D1
| Index | Test sentence | Result | Label |
|---|---|---|---|
| 1 |
|
| Fair |
| … | … | ||
| 200 |
|
| Unfair |
Fig. 1Using results in incorrectly classified sentences. All sentences of the left of the dotted line ought to be positive, while all sentences on the right ought to be negative. The incongruence of the scoring of the unfair sentences on the right can also be seen by comparing the score for murder (-0.024) to that of the act of misinforming (-0.087)
Fig. 2Use of the fairness vector to measure the similarity of each sentence with a parsimonious representation of fairness
Fig. 3Outcome of using each of the five ranges represented in ( ) with the illustrative 36 sentences in Appendix Table 8. Bars on the left of the dotted line ought to be positive while bars on the right ought to be negative. Each figure represents a dimension of a fairness perception, and thus captures partial information regarding how associated each sentence is with fairness/unfairness. a Responsibility Dimension. b Emotion Dimension. c Consequence Dimension. d Benefit Dimension. e Harm Dimension
List of 18 fair and 18 unfair sentences selected at random from the longer 200 list. The selection serves for illustrative purposes on vector addition and subtraction outcomes in the paper
| Fair | Unfair |
|---|---|
| The baby smiled at the father | The man harmed the lady |
| The man excused the visitor | The footballer damaged the goalkeeper |
| The lecturer amused the students | The teenager slandered the attendant |
| The woman picnicked with the man | The student slurred the teacher |
| The nurse snuggled the baby | The killer disfigured the person |
| Jim hugged Sara | The saboteur contaminated the people |
| The workers savoured the food | The guard dehumanized the boy |
| The man serenaded his fiancé | The spy poisoned the innocent |
| The groom serenaded the bride | The father murdered the boy |
| The president welcomed the immigrant | The attendant misinformed the customer |
| The student appreciated the tutor’s help | The man demonized the people |
| The crowd acclaimed the singer | The woman assaulted the baby |
| The audience enjoyed the tenor | The man sickened the lady |
| The principal thanked the student | The organizer mismanaged the crowd |
| Jack celebrated with Jill | Richard brutalized Noah |
| The teacher loved the pupils | The escapee raped the policeman |
| The nanny comforted the child | The army slaughtered the children |
| Tom charmed the woman | The teacher crippled the student |
Confusion matrix for testing the fairness vector against the full list of sentences
Vector used
| |||
| Actual Class | |||
| Fair | Unfair | ||
Predicted Class | Fair | 73% | 10% |
| Unfair | 27% | 90% | |
Confusion matrix for testing vector against the full list of sentences
Vector used
| |||
| Actual Class | |||
| Fair | Unfair | ||
Predicted Class | Fair | 45% | 18% |
| Unfair | 55% | 82% | |
Fig. 4A visual comparison of using the vector for ‘it was fair – it was unfair’ (left panel) vs. the fairness perceptions vector (right panel) with a list of fair and unfair sentences. Sentences to the left of the dotted line in each panel ought to be positive, while those to the right of the dotted line in each panel ought to be negative. Higher accuracy is found for the fairness perceptions vector with almost all unfair acts correctly classified as detailed in the confusion matrix seen in Table 3
Confusion matrix for testing the fairness vector against the full list of sentences using SBERT
Vector used
| |||
| Actual Class | |||
| Fair | Unfair | ||
Predicted Class | Fair | 95% | 91% |
| Unfair | 5% | 99% | |
Comparison of a number of uncorrelated results found when performing sentiment analysis on a list of illustrative sentences against the use of the parsimonious representation of fairness given in vector
| Sentence | Negative | Neutral | Positive | Compound | Sentiment Analyser Outcome | Fairness Perceptions Vector | Fairness Vector Outcome |
|---|---|---|---|---|---|---|---|
| The jury convicted the innocent | 0.000 | 0.625 | 0.375 | 0.3400 | Incorrect | -0.168450 | Correct |
| The army executed the innocent | 0.000 | 0.625 | 0.375 | 0.3400 | Incorrect | -0.232097 | Correct |
| The man scratched the baby | 0.000 | 1.000 | 0.000 | 0.000 | Incorrect | -0.150248 | Correct |
| the manager helped the bullied | 0.506 | 0.494 | 0.000 | -0.6249 | Incorrect | 0.131304 | Correct |
The sentiment outcome for each sentence is incorrect when considering whether or not it reflects a fairness sentiment – where a positive outcome ought to reflect a fair sentence
Comparison of a number of results found when performing sentiment analysis using RoBERTa on a list of illustrative sentences against the use of the parsimonious representation of fairness given in vector
| Sentence | Negative | Neutral | Positive | Sentiment Analyser Outcome | Fairness Perceptions Vector | Fairness Vector Outcome |
|---|---|---|---|---|---|---|
| The jury convicted the innocent | 0.188 | 0.713 | 0.099 | Incorrect | -0.168450 | Correct |
| The army executed the innocent | 0.878 | 0.113 | 0.009 | Correct | -0.232097 | Correct |
| The man scratched the baby | 0.495 | 0.475 | 0.030 | Correct | -0.150248 | Correct |
| the manager helped the bullied | 0.472 | 0.505 | 0.022 | Incorrect | 0.131304 | Correct |
The sentiment outcome for each sentence is incorrect when considering whether or not it reflects a fairness sentiment – where a positive outcome ought to reflect a fair sentence
Fig. 5All dimensions using the vector plot against each other using a scatter plot for results found using the USE
Fig. 6PCA on the data set, 74% explained in first two components. The explained variance ratio for the PCA is found to be 0.56, 0.18, 0.15, 0.08
Fig. 7All dimensions using the vector plot against each other using a scatter plot for result using SBERT
Fig. 8PCA on the dataset found using SBERT, 99% explained in first two components. The explained variance ratio for the PCA is found to be 0.97, 0.02
Fig. 9Heat map displaying similarity scores for permutations of the term ‘responsible’ in the vector embedding
| Fair | Unfair |
|---|---|
| The baby loved the mother | Jane bullied Paul |
| The baby loved the father | Peter killed Joe |
| The brother helped the sister | The man killed the man |
| The boy loved the girl | Tom hit Mary |
| The boy cradled the baby | The wife attacked the husband |
| The father loved the baby | Tom cut Mary |
| Tom liked Tim | Paul hurt Bella |
| Jane adored Mary | Susan killed Joe |
| The girl adored the actor | The boy abused the baby |
| The actor hugged the actress | The boy abused his sister |
| The actor kissed the actress | The girl blackmailed the boy |
| Mary adored Tim | the girl slapped the boy |
| The girl adored Tom | The man scratched the baby |
| The man thanked the man | The girl slapped the baby |
| The man thanked the woman | John tortured Tim |
| The woman thanked the man | Sally threatened Louise |
| The woman thanked the police | The pervert harassed the woman |
| The woman thanked the woman | The robber overpowered the resident |
| The police thanked the woman | the pervert harassed the baby |
| The police thanked the police | The man intimidated the girl |
| The husband comforted his wife | The boy harmed the baby |
| The groom complemented the bride | The boy mutilated the baby |
| Mary loved the baby | The boy poisoned the baby |
| The wife loved the son | The boy dismembered the baby |
| The man serenaded his fiancé | The boy offended the baby |
| Mary appreciated Mike | The boy killed the baby |
| The pastor thanked the priest | The boy murdered the baby |
| The child assisted his father | The boy hurt the baby |
| The man charmed the lady | The boy cut the baby |
| The headmistress embraced the girl | The man assaulted the lady |
| The tailor admired the woman | The man dehumanized the lady |
| The president greeted the immigrant | David killed Michael |
| The man loved his girlfriend | The grandfather attacked the grandchild |
| The police reciprocated the hero | The general killed his people |
| The woman admired the captain | The solider disfigured his captain |
| The detective welcomed the defendant | The man murdered his wife |
| The child cleaned the baby | The son killed the father |
| The sailor guided the seafarer | The bride gouged the groom |
| The solicitor advised the client | The baby traumatized Mary |
| The student tutored the pupil | The guard tortured the prisoner |
| The Russians helped the Americans | The colonel executed the child |
| The Americans helped the Russians | The interrogator burned the suspect |
| The student tutored the friend | The lawyer bribed the judge |
| The judge freed the prisoner | The man destroyed the shop |
| The allies freed the prisoners | The director killed the employee |
| The gentleman welcomed the stranger | The president rejected the refugee |
| The man excused the visitor | Richard killed Noah |
| The suitor paid the saleswoman | Richard murdered Noah |
| The Germans paid the Soviets | Richard terrorized Noah |
| The soldier saved the prisoners | Richard strangled Noah |
| The lady bathed the baby | The criminal tortured the victim |
| The child obeyed his mother | The criminal burned the victims |
| The waitress served the party | The thief stabbed the shopkeeper |
| The musician entertained the audience | The man stabbed the pedestrian |
| The student called the professor | Richard brutalized Noah |
| The man respected the professor | Joseph violated Joseph |
| the man hired the workman | Patricia assaulted David |
| the woman hired the tailor | The burglar threatened the homeowner |
| the manager helped the bullied | Rebecca neglected the baby |
| The husband dined the wife | Jonathan tortured the kid |
| Mary taught Sam | The man rejected the lady |
| The husband hugged the wife | The lady rejected the man |
| The driver found the party | Susan abused Kim |
| The minister loved the congregation | Susan insulted Timothy |
| The girl appreciated the suitor | The child violated the child |
| The athlete cheered the crowd | The man raped Patrick |
| The man adored his wife | The mother murdered Henry |
| The driver delivered the passengers | The female killed the male |
| The driver comforted the passengers | The party insulted the guest |
| The actor romanced the actress | The guest disfigured the lady |
| The headmaster amazed the pupil | James betrayed John |
| The headteacher taught the pupils | The manager extorted the employee |
| The president obeyed the senate | Jenifer blackmailed the boyfriend |
| The worker praised the workmen | Jenifer assassinated the gardener |
| The worker raised the workmen | The horticulturist poisoned the pensioner |
| The lady beautified the girlfriend | The government terrorized the people |
| The security trusted the manager | The state murdered the prosecutor |
| The manager energized the employee | The army deposed the winner |
| The singer excited the audience | The crowd mobbed the prosecutor |
| The singer enthused the boy | The crowd killed the protestor |
| The pilot charmed the stewardess | The army executed the innocent |
| The teacher loved the pupils | The caretaker poisoned the household |
| The actor heroized the protagonist | The mother decapitated the child |
| The doctor treated the patient | The gang burnt the lion |
| The farmer nourished the child | The corporation polluted the ocean |
| The farmer fostered the family | The locksmith robbed the landlord |
| The caretaker cleaned the house | The university silenced the professor |
| The nurse cleaned the patient | The university housed the students |
| The scientist taught the attendee | The professor cheated the students |
| The boy hugged the uncle | the attacker slashed a stranger |
| The crowd cheered the singer | the thief gouged his eyes |
| The people loved the leader | the criminal wounded the police |
| The nurse treated the patient | usher scolded the protestors |
| The surgeon admitted the patient | protestors hit the police |
| The lecturer amused the students | protestors kicked the police |
| The researcher taught the class | rioters stabbed the police |
| The presenter surprised the audience | The rioters attacked the bystanders |
| The soldier saluted the general | The man killed his friend |
| The painter painted the woman | The clerk murdered his manager |
| The child praised a teacher | The jury convicted the innocent |