The Barbarian civ gets some reasearch every turn towards any tech that:
1. It doesnt know.
2. Any other player does.
The amount of research it gains is based on how many players know that tech. So it can learn a tech that only one player knows, but it would take longer than learning a tech that 4 players know.