Catalysis of the reaction: (R)-4-dehydropantoate + H2O + NAD+ = (R)-3,3-dimethylmalate + 2 H+ + NADH.
D-2-hydroxy-3,3-dimethyl-3-formylpropionate:diphosphopyridine nucleotide (DPN+) oxidoreductase activity