← Latest papers
📊 statistics

Two-Sided Nearest Neighbors: An adaptive and minimax optimal procedure for matrix completion

This paper proposes a two-sided nearest neighbor algorithm for matrix completion under latent non-linear factor models with low smoothness and high missingness, proving that it achieves minimax optimal error rates adapting to the underlying function's smoothness and matching oracle performance even with deterministic missing entries.

Original authors: Tathagata Sadhukhan, Manit Paul, Raaz Dwivedi

Published 2026-08-26
📖 5 min read🧠 Deep dive

Original authors: Tathagata Sadhukhan, Manit Paul, Raaz Dwivedi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the digital age, we are constantly surrounded by vast grids of information, from the movies a streaming service recommends to the daily steps tracked by a health app. These grids are rarely complete; users skip ratings, sensors fail to record data, and people simply do not show up for every scheduled check-in. The challenge for scientists is to fill in these missing pieces accurately without inventing false information. This problem, known as matrix completion, relies on the idea that hidden patterns connect the data we see to the data we do not. If a person who likes action movies also tends to enjoy sci-fi, a system can use that connection to guess what they might think of a new film they haven't seen yet. However, real-world data is messy. The missing information is often not random; a user might only skip rating a movie because they disliked it so much they didn't bother, or a sensor might fail only under specific conditions. Furthermore, the relationships between users and items are often complex and non-linear, meaning simple straight-line rules cannot capture the full picture.

A team of researchers at Cornell University and the University of Pennsylvania has developed a new method to tackle this difficult puzzle, specifically when the data is missing in a biased way and the underlying patterns are complex. They focused on a technique called nearest neighbors, which works by finding similar rows and columns in a data grid to make predictions. While this approach has been studied before, previous theories often assumed the data was missing at random or that the relationships between data points were smooth and simple. The researchers asked whether this method could still work when the data is missing because of the very values it contains, and when the connections between users and items are jagged and irregular rather than smooth.

To answer this, the team analyzed a two-sided nearest neighbor algorithm. Imagine a grid where the rows represent people and the columns represent moments in time or specific events. The algorithm looks for people who behave similarly to the person in question, and it also looks for moments that are similar to the moment in question. By averaging the known outcomes from these similar people and similar moments, the method estimates the missing value. The researchers proved mathematically that this approach adapts to the complexity of the data. If the hidden patterns are very rough and irregular, the method adjusts its search to find the right amount of similarity. If the patterns are smoother, it refines its search accordingly. Crucially, they showed that this method performs just as well as a perfect, all-knowing system that already possesses the hidden factors driving the data, even though the algorithm itself does not know what those factors are.

The study also demonstrated that the method remains robust even when a significant portion of the data is missing in a deterministic way. For instance, in a scenario where twenty percent of the data is guaranteed to be missing because of a specific rule—such as a user never receiving a notification if they are unavailable—the algorithm still succeeds. It does not break down when the missingness is not random but tied to the underlying structure of the system. The researchers validated these theoretical findings through extensive computer simulations, testing the method against various other techniques. In these tests, their two-sided approach consistently outperformed standard methods, maintaining a steady decline in error rates as more data became available, while other methods struggled or failed to improve.

To see how this works in the real world, the team applied their method to data from a mobile health study called HeartSteps. This study involved thirty-seven participants who received notifications on their phones to encourage walking. The goal was to estimate how many steps a person would have taken if they had received a specific type of notification, even when that notification was not actually sent. Because participants were not available at every moment, and because notifications were only sent with a certain probability, the data was incomplete and biased. The researchers treated the users as rows and the decision times as columns, creating a grid with missing entries. When they compared their method to others, the two-sided nearest neighbor approach produced the most accurate estimates, with the smallest errors and the most consistent results. It successfully navigated the missing data to reveal the likely outcomes of the interventions.

The significance of this work lies in its ability to handle the messy reality of human behavior and sensor data. By proving that a relatively simple, adaptive search strategy can match the performance of an ideal system with full knowledge, the researchers have provided a powerful tool for fields ranging from recommendation engines to medical trials. They showed that even when data is missing not at random and the relationships are complex, we do not need to know the hidden causes to make accurate predictions. We simply need to look at the neighbors in both directions—across the people and across the time—and let the patterns emerge. This finding suggests that in a world of incomplete information, the right kind of averaging can reveal the truth without needing to solve the entire mystery first.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →