Weight loss has been associated with improved cognitive function, including better memory and problem-solving skills, although research is still ongoing in this area.