We created the Reducer to make SMIRKS patterns more general by removing unnecessary decorators. The goal of ChemPer is to create SMIRKS patterns for general SMIRNOFF force fields which means we want SMIRKS that will keep our desired clustering in molecules not used in the training set. Thus, we cannot store the ClusterGraph created SMIRKS which specify all possible decorators. This is a standalone class which is initiated from a list of SMIRKS patterns and training molecules. The Reducer takes a set number of iterations to stochastically simplify SMIRKS patterns by attempting to remove decorators. Each iteration uses the following steps: