Max loyalty is 5000, you lose loyalty if you get enslaved and punished by your master, or if your colony is lost to another player. If you`re sick of researching, you can try rewarding for loyalty for whatever pop you have. i think there comes a point where you earn more by increasing loyalty than by researching