How is the album artist determined for an album?

The artist name for an album by the artists you enter in the track details. If the album has more than 4 main artists then it will be displayed as various Artists by default.