During quenching process, in which the metal is rapidly cooled from austenite phase so that a phase transformation (to martensite) would occur. During this transformation, in order for martensite to form, the temperature must past through Ms (martensite start), in which the martensite phase will start to nucleate, until Mf (Martensite finish).
There are many factors that could cause austenite to be retained. The first one is the steel’s carbon concentration. As the concentration of carbon increases, both temperature of Ms and Mf will be lowered (i.e. lower than room temp). When it reaches room temperature, most of it has transformed into martensite structure, but however, some minute amount of austenite will still remain.
Another will be substistutional alloying elements such as manganese. If I recalled correctly, about 5-8% of manganese will cause Ms to fall way below room temperature, in such that a quench to room temp will produce an almost, fully austenitic structure (i.e. Manganese Steel). Almost all alloying elements (for substistutional) lower the Ms temp, accept for some, such as Al, cobalt.
What you can do is to control the alloying concentration. If you can’t, then try to control the quenching temp.