VOOZH about

URL: https://thenewstack.io/researchers-use-machine-learning-to-supercharge-data-retrieval/

⇱ Researchers Use Machine Learning to Supercharge Data Retrieval - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-05-04 07:14:21
Researchers Use Machine Learning to Supercharge Data Retrieval
AI / Data

Researchers Use Machine Learning to Supercharge Data Retrieval

The boffins have found a way around slow data retrieval speeds that stem from hash collisions, using an AI-assisted approach to improve computational efficiency.
May 4th, 2023 7:14am by Kimberley Mok
👁 Featued image for: Researchers Use Machine Learning to Supercharge Data Retrieval

If you’ve ever shopped online, searched an online database, compressed a file, or signed a digital document, then chances are you’ve used something called hashing. Hashing is used in a wide number of applications, and can be found in blockchain technology, cryptography and image processing.

Now an international team of researchers from MIT, Harvard University and the Technical University of Munich (TUM) have found a new way to use machine learning to accelerate hash functions for retrieving data from large databases. More specifically, they’ve found a way to get around slow data retrieval speeds stemming from what is called a hash collision.

Hash clash

In order to retrieve data from big databases, a hash function is used to mathematically transform any given key or string of characters into a compressed set of representative values, called a hash value. This function also determines where this data is stored, by generating code that will point to its location.

But there are limitations to this system, because conventional hash functions will produce the code for retrieving the data randomly, and sometimes the hash function will generate the same hash code for different pieces of data, resulting in a collision. This often means reduced performance, as it takes much longer to retrieve the data that one needs.

A number of techniques have been developed to handle such incidents to prevent collisions, such as a class of hash functions known as perfect hash functions. However, perfect hash functions have to be customized for each dataset, and can significantly increase computation time.

To address this issue, the researchers developed what they call a learned model, by running a machine-learning algorithm on an experimental dataset so that the model could evaluate it for certain characteristics. They discovered that this AI-assisted approach improved computational efficiency and reduced the likelihood of collisions, compared to conventional hashing processes.

“At one end, traditional hash functions are fast to compute, but suffer from collisions that can reduce query performance,” wrote the team in their paper, which was presented at the 2023 International Conference on Very Large Databases.

“On the other hand, perfect hash functions avoid collisions, but are difficult to construct, and are not scalable, in the sense that the size of the function representation grows with the size of the input data. As an alternative, learned models can potentially provide a better trade-off between computation and collisions.”

To create their learned model, the team employed a machine learning algorithm to estimate how data was distributed in their sample dataset. Data distribution shows all the possible values within a dataset, and how frequently each value pops up. By knowing what the shape of the data distribution looks like, one can determine the probability of where a certain value will appear in that dataset. Machine learning can speed this process up, as it can more quickly predict where a key is located in the dataset.

The team’s experiments demonstrated that compared to traditional hash functions, learned models could reduce the likelihood of hash collisions from 30 percent to 15 percent. Additionally, learned models reduced the computation time by almost 30 percent, and are easier to train and operate compared to perfect hash functions.

Nevertheless, there are limitations, as the team also noted that if the data distribution is spaced too far apart, using the learned model could actually lead to more hash collisions. In addition, the team investigated the impact of varying the make-up of the learned model by using a combination of different linear sub-models — like recursive model indexes and radix spline indexes — to approximate the data distribution. Utilizing these smaller sub-models increased accuracy, but also increased the time it took to fetch the data.

“At a certain threshold of sub-models, you get enough information to build the approximation that you need for the hash function. But after that, it won’t lead to more improvement in collision reduction,” explained the study’s co-author and MIT CSAIL postdoctoral researcher Ibrahim Sabek in a press release.

The team envisions that their research on learned models can help other experts improve hash functions for other categories of information. Moreover, the team hopes to further examine how to adapt learned models to incorporate features for dynamic databases that would have data being inserted or deleted, without compromising accuracy.

“We want to encourage the community to use machine learning inside more fundamental data structures and algorithms,” said Sabek. “Any kind of core data structure presents us with an opportunity to use machine learning to capture data properties and get better performance. There is still a lot we can explore.”

TRENDING STORIES
Kimberley Mok is a tech and design reporter who covers artificial intelligence, robotics, quantum computing, tech culture and science stories for The New Stack. Trained as an architect, she is also an illustrator and multidisciplinary designer who has been passionate...
Read more from Kimberley Mok
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.