Inference for relative sparsity