Robust estimation of tree structured models