I'd like to combine a sum of as many squares as possible into a sum of as few squares as possible. The signs of the squares doesn't matter.
For example, the Brahmagupta-Fibonacci Identity combines a sum of four squares into a sum of two squares. Thus the compression ratio is 2:1. Using this identity, we can, with careful calculations, apply it recursively to get an even better compression ratio. In other words, take two sums of four squares and combine them together to get one sum of four squares, and then combine this to get one sum of two squares. Thus we have a ratio of 4:1.
Are there are any other formulas that take a sum of as many squares as possible and combine them into as few squares as possible?