Manipulating Large Language Models to Increase Product Visibility
Aounon Kumar, Himabindu Lakkaraju
TL;DR
The paper investigates whether large language models (LLMs) used in search and e-commerce can be manipulated to increase product visibility by inserting a strategically crafted text sequence (STS) into a product's information page. It proposes a framework that optimizes the STS via the Greedy Coordinate Gradient (GCG) algorithm within a retrieval-augmented generation (RAG) style setup, and tests robustness to variations in the ordering of retrieved product data using open-source LLMs. Experimental results on a catalog of fictitious coffee machines show that STS can significantly boost a target product's ranking, often elevating it to the top recommendation under both fixed and permuted input orders, with robustness enhanced when optimizing across randomized permutations. The findings highlight potential competitive advantages for vendors and raise important considerations about fairness and safeguards in AI-driven search systems, pointing to ethical guidelines and countermeasures as future work.
Abstract
Large language models (LLMs) are increasingly being integrated into search engines to provide natural language responses tailored to user queries. Customers and end-users are also becoming more dependent on these models for quick and easy purchase decisions. In this work, we investigate whether recommendations from LLMs can be manipulated to enhance a product's visibility. We demonstrate that adding a strategic text sequence (STS) -- a carefully crafted message -- to a product's information page can significantly increase its likelihood of being listed as the LLM's top recommendation. To understand the impact of STS, we use a catalog of fictitious coffee machines and analyze its effect on two target products: one that seldom appears in the LLM's recommendations and another that usually ranks second. We observe that the strategic text sequence significantly enhances the visibility of both products by increasing their chances of appearing as the top recommendation. This ability to manipulate LLM-generated search responses provides vendors with a considerable competitive advantage and has the potential to disrupt fair market competition. Just as search engine optimization (SEO) revolutionized how webpages are customized to rank higher in search engine results, influencing LLM recommendations could profoundly impact content optimization for AI-driven search services. Code for our experiments is available at https://github.com/aounon/llm-rank-optimizer.
