Reconstruct SGD template