Synthesizing Scoring Functions for Rankings Using Symbolic Gradient Descent
Zixuan Chen, Panagiotis Manolios, Mirek Riedewald
TL;DR
RankHow tackles the problem of reconstructing a given ranking with a simple, interpretable linear scoring function by formalizing OPT as a constrained weight-vector optimization problem. It delivers an exact MILP-based solution and analyzes a PTIME LP-reduction, finding the MILP approach empirically faster due to solver heuristics; to scale further, it introduces Symbolic Gradient Descent (Sym-GD) that localizes optimization within weight-space cells. The approach is validated on real datasets (NBA MVP, CSRankings) and large synthetic data, showing it achieves lower ranking errors than competitive methods and scales to large inputs, while carefully addressing numerical imprecision.Collectively, RankHow provides a principled, scalable framework for ranking function synthesis with actionable constraints and improved explainability for ranking decisions.
Abstract
Given a relation and a ranking of its tuples, but no information about the ranking function, we are interested in synthesizing simple scoring functions that reproduce the ranking. Our system RankHow identifies linear scoring functions that minimize position-based error, while supporting flexible constraints on their weights. It is based on a new formulation as a mixed-integer linear program (MILP). While MILP is NP-hard in general, we show that RankHow is orders of magnitude faster than a tree-based algorithm that guarantees polynomial time complexity (PTIME) in the number of input tuples by reducing the MILP problem to many linear programs (LPs). We hypothesize that this is caused by 2 properties: First, the PTIME algorithm is equivalent to a naive evaluation strategy for the MILP program. Second, MILP solvers rely on advanced heuristics to reason holistically about the entire program, while the PTIME algorithm solves many sub-problems in isolation. To further improve RankHow's scalability, we propose a novel approximation technique called symbolic gradient descent (Sym-GD). It exploits problem structure to more quickly find local minima of the error function. Experiments demonstrate that RankHow can solve realistic problems, finding more accurate linear scoring functions than the state of the art.
