The Uttar Pradesh government is set to modernize hostels, run by the social welfare department, by focusing on infrastructure, cleanliness, and security.