For permitting the amphiphilic polyimide precursor of the invention to form a film by the LB technique, it is most preferable that at least one, preferably at least two, of the groups R3, R4, R5 and R6 are a straight-chain alkyl group of the formula: CH3 (CH2)n-1 wherein n is as defined above, from the viewpoint of performances and cost.