Skip to content

[Feature] Allow metrics to return multiple scores, and allow optimizers like GEPA to support multi-score optimization #8689

@LakshyAAAgrawal

Description

@LakshyAAAgrawal

What feature would you like to see?

Many tasks have multiple objectives which may be complementary, or a trade-off. How can we allow metrics to return such subscores, and have optimizers optimize them?

This will require thinking about:

  1. What is the right interface for the user-defined metric to return multiple scores
  2. How can the user specify how different sub-scores should be aggregated? Arithmetic/Geometric mean, weighted avg, etc.
  3. How should scores across instances be aggregated?

Would you like to contribute?

  • Yes, I'd like to help implement this.
  • No, I just want to request it.

Additional Context

Relevant discussion: https://discord.com/channels/1161519468141355160/1161519469319946286/1407399169517420718

Upstream GEPA issue: gepa-ai/gepa#2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions