In order to improve the measurement accuracy of Deuterium-Tritium (D-T) neutron porosity logging-while-drilling, different responses in several types of formations were measured using the Deuterium-Tritium (D-T) accelerator and the Am-Be source, and the differences in the measured responses were compared. In addition, the causes of the lower porosity sensitivity and accuracy were analyzed, and a correction method was proposed. The results show that the energy of neutron emitted by D-T neutron generator is higher than that by the chemical source, and the influence of formation density on hydrogen index is higher than the chemical source. So the porosity sensitivity of the D-T neutron logging-while-drilling is much lower than the chemical neutron source, and the effect of shale on the measurement is high. On the other hand, after applying density correction, the porosity sensitivity is significantly improved, and the lithology effects are reduced as well especially in the shale formation. It is concluded that the chemical sources can be replaced by more accurate and sensitive density-corrected D-T neutron porosity logging-while-drilling technique.