At the score screen, under graphs tab, what exactly is upgrade spending? Well it sounds obvious but why does it decrease sometimes?
Upgrade spending tracks your tech in general, not just "upgrades". So if you build a roach warren, it will show in this graph. If you then lose the roach warren, the graph will reflect this loss in tech.