Higher composition laws