-
Notifications
You must be signed in to change notification settings - Fork 119
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
Improved use ScoreTracker to avoid wasteful searching for very large k #387
Conversation
… in RelaxedMonotonicityTracker. Hyperparameter tuning.
# Conflicts: # jvector-base/src/main/java/io/github/jbellis/jvector/graph/GraphSearcher.java
I think this comment must be left over from earlier changes? |
* @param bestScoredTracked the number of tracked scores used to estimate if we are unlikely to improve | ||
* the results anymore. An empirical rule of thumb is bestScoredTracked=rerankK. | ||
*/ | ||
RelaxedMonotonicityTracker(int bestScoredTracked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in bestScoresTracked
double windowPercentile = this.mean + SIGMA_FACTOR * std; | ||
double worstBestScore = sortableIntToFloat((int) bestScores.top()); | ||
return windowPercentile < worstBestScore; | ||
// return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup
How does accuracy look for much smaller k/rrk? Like 5/10 or 10/20? |
Will look into this. We should consider whether in those cases it is worth applying this technique. |
The exploration savings are consistent for 5/10 or 10/20, but smaller. In the order of 5-10% |
This improves upon #384 by making the quantiles estimation more lightweight. It models the recent scores as a Normal distribution and uses incremental updates to track sufficient statistics of its mean and variance. Then, quantiles are computed from these statistics.