Snyk has improved its AI model, DeepCode AI Fix, with a new technology called CodeReduce, which uses program analysis to limit the model's attention mechanism and improve fix generation quality. The technology was developed by leveraging open-source security fixes and a comprehensive dataset of labeled code issues. This allows the model to focus on specific portions of code needed for fixing security issues, reducing hallucinations and processing time. The results show that models using CodeReduce outperform those without it, with significant improvements in accuracy and relevance across various LLMs and security issue categories.