Efficient Coreset Selection via K-Nearest Neighbor Graphs
This paper introduces KNNG-CS, a lightweight coreset selection method that leverages K-nearest neighbor graphs to efficiently identify representative data subsets with significantly reduced time and memory costs while maintaining accuracy comparable to existing gradient-approximation approaches.
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
Machine learning models are the engines behind many modern tools, from recognizing faces in photos to predicting stock market trends. To learn how to do these tasks, these models need to be fed massive amounts of data. Imagine trying to teach a student by giving them every single book in a library; they would eventually learn, but the process would be incredibly slow and exhausting. In the world of artificial intelligence, this is the reality of training on huge datasets. It requires enormous computing power and memory, often making it too expensive or slow for many practical applications. To solve this, scientists use a technique called coreset selection. The goal is simple: instead of using the entire library, find a small, perfect subset of books that contains all the essential lessons. If you can train the model on this tiny, representative sample, it learns just as well as if it had read everything, but in a fraction of the time and with far less memory.
For years, the best ways to find these small, perfect subsets have relied on a method that is computationally heavy. These existing approaches try to measure the distance between every single data point and every other data point to see which ones are most similar. It is like trying to find the best representative for a crowd by having every person measure their distance to every other person in the room. While this works, it creates a massive amount of data that is difficult to store and process, especially when the dataset grows large. The researchers at Xidian University and their collaborators realized that this "measure everything" approach was inefficient. They observed that the most useful representatives in a dataset are usually those that sit in the middle of dense groups of similar items, rather than those standing alone. A sample that is close to many others is likely to represent a common pattern, while an isolated sample is less likely to be a good stand-in for a large group.
To address this, the team developed a new method called KNNG-CS. Instead of forcing every item to measure its distance to every other item, they built a map that only connects each item to its ten closest neighbors. This creates a sparse network, or a graph, that captures the local relationships between data points without the overwhelming burden of calculating every possible connection. Once this map is built, the researchers assigned a score to each item based on how many other items pointed to it as a neighbor and how close those neighbors were. Items that were frequently chosen as a close neighbor by many others received a high score, marking them as highly important representatives. The algorithm then greedily selected the highest-scoring items to form the final small subset. As each high-scoring item was chosen, the algorithm removed it and its neighbors from the pool, ensuring that the selected group covered the entire dataset efficiently without redundancy.
The results of this new approach were striking when tested on four real-world datasets, ranging from forest cover types to movie ratings and credit card defaults. The new method produced a small training set that allowed the machine learning model to achieve accuracy comparable to the best existing methods. However, the difference in efficiency was dramatic. The new method ran between 2.3 and 41.2 times faster than the previous leading techniques. Even more impressive was the reduction in memory usage. While older methods required storing massive tables of distances that could consume gigabytes of memory, the new approach used only 0.3% to 7.5% of that memory. In practical terms, this means that tasks which previously required expensive, high-end servers could now be performed on much smaller, more accessible machines. The researchers found that even with a very small subset of data, the model learned effectively, converging to a stable solution much faster than if it had been trained on the full dataset.
This work demonstrates that by focusing on local relationships rather than global comparisons, it is possible to drastically simplify the process of preparing data for machine learning. The study confirms that you do not need to calculate every possible distance to find the most important data points; a smart, local map is sufficient. By using this graph-based strategy, the researchers have shown that high-quality model training can be achieved with a fraction of the time and resources previously thought necessary. This opens the door for more efficient training processes, allowing complex models to be developed and deployed in environments where computing power is limited, without sacrificing the quality of the final result.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.