The document presents a new algorithm named GOPE2 for solving the posterior inference problem in Latent Dirichlet Allocation (LDA), a crucial topic modeling technique used in various data mining fields. GOPE2 improves upon existing methods by employing a stochastic optimization approach with Bernoulli distribution, achieving better efficiency and performance on large datasets. Experimental results demonstrate that GOPE2 outperforms earlier algorithms, making it a significant advancement for processing big text collections.