Abstract Helium (He) and neon (Ne) have similar molecular sizes and are both chemically inert, making their separation particularly challenging. Moreover, the applications of polymer membranes for He/Ne separation using membrane technology remain limited. In this study, various dianhydrides were introduced to modulate the free volume of ODA-based polyimide membranes, and their He/Ne separation performance was systematically investigated. Positron annihilation lifetime spectroscopy (PALS) was used to reveal the relationship between membrane structure and He/Ne separation performance. Among the series of membranes, the BTDA-ODA membrane exhibited the optimal fractional free volume and cavity size, achieving a helium permeability of 91.58 Barrer and an ideal He/Ne selectivity of 13.63, with stable performance maintained across a pressure range of 40–200 psi.