Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Majority vote give wrong label due to model inconsistency. #106

Open
Panzy-18 opened this issue Jan 10, 2024 · 0 comments
Open

Majority vote give wrong label due to model inconsistency. #106

Panzy-18 opened this issue Jan 10, 2024 · 0 comments

Comments

@Panzy-18
Copy link
Contributor

In example/rater/generated_answer.ipynb. For a input of which true label is equivalent, model sometimes generate accept or reject. So majority vote can give wrong vote.

Input:

("Vitamin C (also known as ascorbic acid and ascorbate) is a water-soluble vitamin found in citrus and other fruits, berries and vegetables, also sold as a dietary supplement and as a topical serum ingredient to treat melasma (dark pigment spots) and wrinkles on the face.",
"Is Vitamin C water-soluble?",
"Yes, Vitamin C is a very water-soluble vitamin.",
"Yes, Vitamin C can be dissolved in water well."), # Equally good

Run:

config2 = RaterForGeneratedAnswerOpenAIGPT3p5Config()
config2.model_config.num_call = 3
config2.model_config.temperature = 0.9

with OpScope(name="TextFlow"):
    client2 = RaterClient(config2)

output = client2.run(data)
pprint.pprint(output)

Ouput:

{'output': [{'average_score': 0.0,
              'error': 'No errors.',
              'majority_vote': 'reject',
              'response': ['explanation: The grounding answer is better '
                           'because it directly states that Vitamin C is "very '
                           'water-soluble," while the generated answer is more '
                           'vague in saying that it "can be dissolved in water '
                           'well."\n'
                           'label: reject',
                           'explanation: Both the grounding answer and the '
                           'generated answer correctly state that Vitamin C is '
                           'water-soluble, so they are equivalent.\n'
                           'label: equivalent',
                           'explanation: The generated answer is better '
                           'because it accurately states that Vitamin C is '
                           'water-soluble, which aligns with the information '
                           'provided in the context.\n'
                           'label: accept'],
              'scores': [-1.0, 0.0, 1.0],
              'votes': ['reject', 'equivalent', 'accept']}],

Here 'majority_vote': 'reject' is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant