English

Filter Equivariant Functions: A symmetric account of length-general extrapolation on lists

Programming Languages 2025-07-14 v1 Machine Learning

Abstract

What should a function that extrapolates beyond known input/output examples look like? This is a tricky question to answer in general, as any function matching the outputs on those examples can in principle be a correct extrapolant. We argue that a "good" extrapolant should follow certain kinds of rules, and here we study a particularly appealing criterion for rule-following in list functions: that the function should behave predictably even when certain elements are removed. In functional programming, a standard way to express such removal operations is by using a filter function. Accordingly, our paper introduces a new semantic class of functions -- the filter equivariant functions. We show that this class contains interesting examples, prove some basic theorems about it, and relate it to the well-known class of map equivariant functions. We also present a geometric account of filter equivariants, showing how they correspond naturally to certain simplicial structures. Our highlight result is the amalgamation algorithm, which constructs any filter-equivariant function's output by first studying how it behaves on sublists of the input, in a way that extrapolates perfectly.

Keywords

Cite

@article{arxiv.2507.08796,
  title  = {Filter Equivariant Functions: A symmetric account of length-general extrapolation on lists},
  author = {Owen Lewis and Neil Ghani and Andrew Dudzik and Christos Perivolaropoulos and Razvan Pascanu and Petar Veličković},
  journal= {arXiv preprint arXiv:2507.08796},
  year   = {2025}
}

Comments

18 pages, 2 figures