It is possible by using some tricks.
You must have a quite amount of level for the research, for example:
Level 1 - +300 HP Bonus
Level 2 - -300 HP Bonus
Level 3 - +300 HP Bonus
...
Level n - xxx HP Bonus
When you want to learn the tech, simply increase the level of the tech (Level 1 currently), and when you want to "unlearn" the tech, simply increase the level of the tech too (Level 2 currently).
The cons of using this method is that the upgrade level will be limited to a certain value.
You can use this method if the tech is going to be learned/unlearn few times (20 ~ 30).