Huperzine A acts as a cholinesterase inhibitor — a group of medications that work by improving the levels of neurotransmitters in the brain. Small early studies suggest that huperzine A may improve memory and protect nerve cells, which could slow the cognitive decline associated with Alzheimer's.