In the toy models of superposition setup, a neural network compresses a high-dimensional sparse feature vector into a lower-dimensional hidden space and then attempts to reconstruct the original features. The encoder-decoder uses tied weights: the same matrix W is used to encode and its transpose to decode, followed by a bias and a ReLU nonlinearity.
Given:
W: a 2D array of shape (n_hidden, n_features) representing the tied encoder/decoder weight matrix.b: a 1D array of shape (n_features,) representing the output bias.X: a 2D array of shape (batch_size, n_features) representing a batch of input feature vectors.Implement the function superposition_reconstruct(W, b, X) that computes the reconstructed features for each input row using:
Return the reconstruction as a Python list of lists (one inner list per input row). Do not round inside the function.