Tuning up the cars helps too, especially if one car is “sensitive” to the track. Check the wheel gauge and make sure the wheels don’t have any wobble and they turn easily. Check the trucks to make sure they can pivot freely. One truck should be able to rock a bit from side to side, but the other one should have very little ability to rock. Couplers should be able to swing freely side to side and have no droop, or vertical slop to them. If you are using KaDees, make sure the trip pins are 1/8th of an inch above the rail-heads.
After tuning up my fleet of cars, the phantom derailments stopped happening. Now when I get a derailment, there is an obvious cause.
http://www.homodeltrains.info/forum/viewtopic.php?f=10&t=1178
edit to add link