My student Lindsey Whitmore and I have been looking at the different vdw-modifiers and (after finding a bug in the force-switch modifier that Berk impressively rapidly patched), found that there is still fundamentally a cutoff dependent term in the force-switch and potential-shift modifiers for free energies, whereas potential-switch gives essentially cutoff-independent results.
We suspect that this is occurring in most if not all MD codes - the lammps potential-shift van der Waals potential appears to have similar behavior (word of mouth from another user).
We wrote this up here: [2410.14187] Force switching and potential shifting lead to errors in free energies of alchemical transformations, see Fig 1 and 2.
The basic issue is that the constant energy subtracted out at the cutoff (force-switch has some energy subtracted at the cutoff as well) is lambda-dependent, but this is not currently included anywhere in the dH/dl or the dU(lambda)-dU(Delta lambda). I think it’s possible but ugly to include terms to calculate it, but I have not finished the entire calculations (for our free energy calculations in general, we have just always been using potential-switch).
Let me know what would make the most sense here as next steps. There probably should be warning with non-potential-switch vdw-modifiers if they are not tweaked to give correct results.