Polymer property prediction

Per-target LightGBM and CatBoost on ~2,600 Mordred, RDKit and fingerprint descriptors for the NeurIPS 2025 polymer challenge: 5-fold grouped OOF weighted MAE 0.0649, against 0.168 for predicting the mean.

At a glance

Question
With a few hundred labels per property, how well can five polymer properties be predicted from a repeat-unit SMILES string, and where does the signal come from?
My contribution
Built per-target LightGBM and CatBoost models on Mordred, RDKit and fingerprint descriptors with masked labels, duplicate-safe grouped folds and gain-based feature pruning, then recomputed every score from the saved out-of-fold predictions.
Result & scope
Out-of-fold weighted MAE 0.0649 (LightGBM), 0.0674 (CatBoost) and 0.0647 (50/50 blend), against 0.168 for predicting the training-fold mean. Whole-molecule Mordred descriptors carry 92 to 99% of the model gain on every target.
In this write-up

The problem

The NeurIPS 2025 Open Polymer Prediction competition on Kaggle gives you a polymer as a SMILES string for its repeat unit, with * marking where the chain continues, and asks for five properties: glass transition temperature (Tg), fractional free volume (FFV), thermal conductivity (Tc), density, and radius of gyration (Rg).

The training file has 7,973 polymers, but the labels are very sparse. FFV is measured for 7,030 of them. Tg has 511 labels, Tc 737, density 613 and Rg 614. So four of the five targets are small-data regression problems sitting inside one larger table.

The score is a weighted MAE across the five targets. As implemented in my notebooks (competition_wmae in phase1.ipynb), each target gets weight 1 / (√n × range), where n is its label count and range is the spread of its labelled values, and the weights are normalised to sum to one. That makes the weighting very uneven: Tc gets 0.561, density 0.269, FFV 0.158, Rg 0.012 and Tg 0.001. Tg, the property a polymer chemist would care about most, barely moves the score, because its range is 620 °C.

Local results

All numbers below are out-of-fold (OOF) MAE from phase4.ipynb, recomputed from the saved predictions (oof_lgb.csv, oof_cat.csv) against the competition training labels. The protocol is 5-fold GroupKFold grouped on canonical SMILES, so a duplicate polymer never sits in both the training and validation side. Each target is trained only on its own labelled rows, with early stopping on the validation fold, and the OOF predictions are averaged over 3 seeds. Every labelled row has exactly one OOF prediction.

The baseline predicts, for each validation fold, the mean of that target over the training folds. Recomputing it with a plain shuffled KFold gives the same number to three decimals (0.168).

ModelWeighted MAETg (°C)FFVTcDensity (g/cm³)Rg (Å)
Predict the fold mean0.168588.40.02090.07700.10963.96
CatBoost0.067451.10.005720.02520.02741.57
LightGBM0.064948.60.005760.02520.02471.53
50/50 blend (not tuned)0.064749.00.005520.02490.02451.52

Weighted out-of-fold MAE for the fold-mean baseline, CatBoost, LightGBM and a 50/50 blend, and per-target error relative to the baseline

LightGBM cuts the baseline’s weighted error by 61%. Per target, its error is 22% of the baseline for density, 27% for FFV, 33% for Tc, 39% for Rg and 55% for Tg. The 50/50 row is a plain average of the two models.

Where the signal came from

Whole-molecule descriptors, not substructure bits. The phase4 notebook doesn’t save its models, so for feature importance I used the five-fold LightGBM models saved in the repo’s first commit. They use the phase1 recipe: 1,412 Mordred 2D descriptors, 2,048 Morgan radius-2 count bits and 8 RDKit basics. Summing split gain over the five folds, Mordred descriptors carry 98.5% of the gain for Tg, 96.2% for FFV, 91.5% for Tc, 99.6% for density and 97.8% for Rg. That is despite the Morgan bits outnumbering them. The pruning step in phase4 says the same thing: it kept 75% of the Mordred columns but only 13% of the Morgan radius-2 counts and 36% of the radius-3 bits.

The top features per target are mostly physically sensible:

  • Tg: RotRatio, the fraction of rotatable bonds, is the single largest feature (5.0% of gain). Chain flexibility is the textbook driver of the glass transition.
  • Density: mean atomic mass (Mm), mean atomic number (MZ) and average molecular weight (AMW), plus information-content indices. Heavier atoms per unit of structure mean a denser material.
  • Rg: one descriptor, MDEC-11 (a distance-edge count between primary carbons, effectively a measure of how many chain ends there are and how far apart they sit), carries 13% of the gain on its own.
  • Tc: the one target where a fingerprint bit leads: Morgan count bit 1143 takes 6.1% of the gain, ahead of topological charge indices (JGI2, JGT10).
  • FFV: gain is spread thinly. The top feature has 1.0%, and the top 20 together have only 10%. This is the target with 7,030 labels, and the model uses many weak descriptors rather than a few strong ones.

LightGBM against CatBoost. On the same pruned features, the two models’ OOF predictions correlate at 0.97 to 0.99 per target. LightGBM has the lower error on a given row only about half the time (49 to 53%). That is why averaging them helps so little.

Why this architecture

The label counts settled most of it. With 511 to 737 labels on four targets, a model that has to learn chemistry from raw structure (a graph network or a fine-tuned SMILES transformer) has too little data. Descriptor libraries like Mordred already encode chemistry: mass, polarity, shape and flexibility. Gradient-boosted trees handle that kind of wide, heterogeneous, partly redundant table well, without scaling, and they train in minutes per target. Every model is per-target and trained on masked labels, so FFV’s 7,030 rows never swamp the small targets.

The sequence of notebooks:

  • phase1.ipynb: the first end-to-end pipeline. Mordred, Morgan counts and RDKit basics (2,444 features), one LightGBM per target on masked labels.
  • phase2.ipynb: a label-sparsity audit per target, a small physics-motivated feature block (sp3 fraction, heteroatom ratio, halogen, N, O and S counts, aromatic rings) and a predict-the-mean reference.
  • phase4.ipynb: the reference pipeline above. It adds MACCS keys and radius-3 Morgan bits, variance and correlation filters (2,641 features), gain pruning (938), grouped folds, CatBoost as a second model family, and 3 seeds.
  • neurips-preparedataset-predict.ipynb: the Kaggle-side inference notebook, with per-target AutoGluon predictors.

The investigation

kept partial ruled outtap any step to expand

Scope

These are 5-fold out-of-fold scores on one set of folds grouped by exact canonical SMILES. The feature importances come from the five-fold models saved in the repo’s first commit (phase1 recipe), since the phase4 notebook does not save its models.

Code and results: github.com/rohit-ravi2/neurips-polymerprediction. OOF predictions: oof_lgb.csv, oof_cat.csv; selected features: pruned_feature_names.json; pipeline: phase4.ipynb.