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

Allow arbitrary feedback in the reward function other than just accuracy #8

Open
laoliu5280 opened this issue Aug 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@laoliu5280
Copy link
Collaborator

Ideally, we would like HypoGeniC to be a generic tool that can be applied to any tasks and datasets to generate hypothesis. With the current implementation, it can only support classification tasks because the current reward function takes hypothesis-based inference accuracy and the exploration term.

As an extension, we would like to support arbitrary reward functions, and users of HypoGeniC can choose to use their own reward function / heuristics to evaluate hypothesis.

For example, for text generation tasks, the workflow should be the following:

  1. Initialize some hypothesis with a first batch of examples
  2. Use the generated hypothesis to perform the text generation task.
  3. Compare the generated text and the ground truth text, use a user-defined function to output a quality score of the hypothesis
  4. Use the score in the reward function
  5. The rest of HypoGeniC should work the same.
@laoliu5280 laoliu5280 added the enhancement New feature or request label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant