The formalism of the stopping power for cluster beams was adapted to the stopping power for short electron bunches using the wake field of a medium characterized by plasma frequency. It was shown that, if the bunch length is in the 100 as range, the energy loss of the bunch is proportional to the square of the number of electrons in the bunch. If the number of electrons is large, the collective loss is able to excite a high-energy density state in the target. The target medium and beam parameters were examined to demonstrate the collective effect, and an accelerator system consisting of an accumulation ring and an inverse free-electron laser (IFEL) was considered to produce attosecond bunches.