The use of the "negative mass" regime provides stabilization of longitudinal size of dense photoinjector electron bunches moving through a long undulator. This allows one to increase significantly the power capabilities of a terahertz source based on coherent spontaneous emission from a short bunch. However, such type of emission is produced if the bunch length is comparable with the radiation wavelength. This work discusses the use of the negative mass regime to provide effective compression of dense bunches down to "terahertz" lengths.