Skip to main content

22 October 2026

New way to compress molecular data could reduce AI energy cost and democratise its use in chemistry

The work could make AI-enabled science more accessible to groups with limited access to computing resources around the globe.

AI Chemistry decorative design

A new approach to encoding molecular data could help chemists using AI to build new materials and molecules save significant computational power and energy. This would make AI more accessible to groups with limited access to computing resources around the globe.

Two novel embedding methods have been shown to compress the chemical data needed to train machine learning models significantly, without compromising the validity of their predictions. Scientists from King’s College London and Swansea University, in collaboration with the University of Granada and MIT, have reported an up to 50% reduction in RAM memory usage in some cases and up to 80% reduction in disc space across numerous models.

By not compromising the validity of what the AI models produce, scientists using this embedding approach in areas like drug discovery can be safe in the knowledge their model will not introduce potentially dangerous inaccuracies.

Computational chemistry uses computer simulations and, increasingly, artificial intelligence to predict the structures and properties of molecules and chemical reactions without physical experiments. To train AI models, large libraries of molecules must first be translated into numbers a computer can process. These libraries can contain millions of molecules that are often stored by the terabyte in data centres and used in simulations which require large high-performance computers (HPCs).

What we show is that you don’t always need bulky, sparse molecular representations to do meaningful AI-driven chemistry. Efficiency isn’t just a technical detail, it decides who gets to take part. We want AI for chemistry to grow in a way that lowers the barrier for researchers with limited access to computing resources, wherever they are.”

Dr Francisco Martin-Martinez

These data centres and HPCs require large amounts of electricity, with the global uptick in AI usage forcing some coal power stations to stay open to keep up with power generation demands – driving global greenhouse emissions from the ICT industry.

As access to large servers and HPCs is expensive, the memory and computing demands of training AI models on large molecular libraries can be a barrier for scientists in places without reliable access to the necessary infrastructure. Top500.org, a project that charts the location of supercomputers, notes that almost 75% of supercomputers in the world are located in just ten countries.

Dr Francisco Martin-Martinez, Senior Lecturer in Computational Chemistry and AI at King’s and corresponding author of the study said, “Data centres and AI are accelerating the pace of scientific discovery, but not without environmental cost. By making molecular data more compact, we lower the hardware bar for training some machine learning models. With our approach, a researcher with a modest computer or a limited budget can tackle problems that would otherwise need a much larger machine.

“What we show is that you don’t always need bulky, sparse molecular representations to do meaningful AI-driven chemistry. Efficiency isn’t just a technical detail, it decides who gets to take part. We want AI for chemistry to grow in a way that lowers the barrier for researchers with limited access to computing resources, wherever they are.”

The embedding methods work by compressing the numerical encodings that AI models use to read molecules. Two of the most widely used approaches are One Hot Encoding and the Morgan Fingerprint.

OHE turns text-based molecular formats such as SELFIES, SMILES and DeepSMILES, which describe how the atoms in a molecule are connected, into large grids of 1s and 0s. Morgan fingerprints record the chemical fragments a molecule contains as a long string of 1s and 0s.

Children using laptops rural
The team hope that with their embedding approach, even those with modest computing power can contribute to the field of computational chemistry.

Both are inefficient, because most of their entries are zeros, meaning they give limited information. Fingerprints also suffer from “bit collisions”, where two different chemical fragments are assigned to the same position, making their representation ambiguous and introducing inaccuracy into the process. Making the string of 1s and 0s longer reduces collisions, but it also means more data that is slower to process.

By essentialising these systems further through the new embedded Morgan Fingerprint and embedded One Hot Encoding, these new encoding practices take molecules down to a single number while preventing bit collision. This shrinks the representation significantly, and because the conversion is reversible, no information is lost. This also cuts the computational cost and energy needed to compute large amounts of data, while maintaining the validity of the predictions.

Computational chemistry isn’t the only field which uses such large amounts of data, and because our approach doesn’t compromise the validity of our outputs, other data scientists, industry practitioners or students could try our approach to reduce the computing they need. This is a practical way to keep the cost and emissions of AI in check.”

Dr Emilio Nunez-Andrade, Marie Curie Postdoctoral Fellow at the University of Granada

The use of embedded Morgan Fingerprints also reduces overfitting, a common problem in machine learning. This is when a model learns the noise and the outliers from its training data, rather than learning patterns, which negatively impacts the accuracy of the results.

Because the approach can be applied to other data encoded as 1s and 0s in a similar way, the team believes it could be useful beyond chemistry, although more testing is needed.

Dr Emilio Nunez-Andrade, the study’s lead author and now a Marie Curie Postdoctoral Fellow at the University of Granada, said “One-hot encoding is used across machine learning, not just in chemistry, and the same principle applies to other long, sparse binary encodings in other disciplines. In chemistry, where libraries can contain millions of molecules, encoding each one more efficiently adds up to real savings in the total cost of training machine-learning models.

“Computational chemistry isn’t the only field which uses such large amounts of data, and because our approach doesn’t compromise the validity of our outputs, other data scientists, industry practitioners or students could try our approach to reduce the computing they need. This is a practical way to keep the cost and emissions of AI in check.”

In this story

Francisco J.  Martin-Martinez

Senior Lecturer in Chemistry and Natural Sciences