Hierarchical bases