Articles, prepositions, and conjunctions in acronyms and initialisms
I am not aware of any specific formal rule governing when to include the initials of minor words in acronym. Informally, in my experience, initials of minor words are added when they reduce ambiguity, or make the acronym easier to pronounce or understand. And, as in your first paragraph, I often see minor words in lower case and more important words in upper case.