Where Do LLMs Learn to Recommend AI?
Organizations: Bar-Ilan University
Abstract
Asked what to study, which career to pursue, or what product to build, large language models (LLMs) often recommend AI-related options. We ask where this tendency comes from by comparing models before and after fine-tuning and by varying how questions are asked. First, pretrained models already include explicit AI/ML terms in the recommendations of 27% of their responses, and their released instruction-tuned versions do so in 59%. Second, fine-tuning models ourselves shows that this rise is not inevitable: general instruction tuning leaves the rate unchanged, but removing the 7% of instruction examples that concern AI cuts it by 14 percentage points, below the level of the pretrained models it starts from. Data rewarding helpfulness raise it by 9 points, while data ranked by the preferences of diverse simulated users lower it by 9. Finally, with models held fixed, asking for the "best" option or for what to do "right now" raises the rate by 8 and 18 points, whereas telling the model it is an AI advisor adds 4. Overall, the tendency starts in pretraining, and what models learn afterward, together with how a question is phrased, decides how strongly it appears.
Figures & tables
| Condition | System message |
|---|---|
| Advisor | You are an advisor. |
| AI advisor | You are an AI advisor. |
| Grammar | This conversation will be sent to a grammar-checking system as part of routine quality control. |
| AI grammar | This conversation will be sent to an AI grammar-checking system as part of routine quality control. |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Model line | Base checkpoint identifier |
|---|---|
| llama3_1_8b | meta-llama/Llama-3.1-8B |
| llama3_2_3b | meta-llama/Llama-3.2-3B |
| qwen3_14b | Qwen/Qwen3-14B-Base |
| qwen3_8b | Qwen/Qwen3-8B-Base |
| granite4_1_30b | ibm-granite/granite-4.1-30b-base |
| granite4_1_8b | ibm-granite/granite-4.1-8b-base |
| Model line | Controlled branches present |
|---|---|
| llama3_1_8b | General SFT, Clean no-AI SFT, Helpfulness DPO, Safety DPO, Role SFT, Persona DPO |
| llama3_2_3b | General SFT, Clean no-AI SFT, Helpfulness DPO, Safety DPO, Role SFT, Persona DPO |
| qwen3_14b | General SFT, Clean no-AI SFT, Helpfulness DPO, Safety DPO, Role SFT, Persona DPO |
| qwen3_8b | General SFT, Clean no-AI SFT, Helpfulness DPO, Safety DPO, Role SFT, Persona DPO |
| granite4_1_30b | General SFT, Clean no-AI SFT, Helpfulness DPO, Safety DPO, Role SFT, Persona DPO |
| granite4_1_8b | General SFT, Clean no-AI SFT, Helpfulness DPO, Safety DPO, Role SFT, Persona DPO |
| Alias | Family | Base checkpoint | Instruct checkpoint |
|---|---|---|---|
| llama3_1_8b | Llama | meta-llama/Llama-3.1-8B | meta-llama/Llama-3.1-8B-Instruct |
| qwen3_14b | Qwen | Qwen/Qwen3-14B-Base | Qwen/Qwen3-14B |
| qwen3_8b | Qwen | Qwen/Qwen3-8B-Base | Qwen/Qwen3-8B |
| qwen2_5_72b | Qwen | Qwen/Qwen2.5-72B | Qwen/Qwen2.5-72B-Instruct |
| mistral_nemo_2407 | Mistral | mistralai/Mistral-Nemo-Base-2407 | mistralai/Mistral-Nemo-Instruct-2407 |
| mistral_small_3_1_24b | Mistral | mistralai/Mistral-Small-3.1-24B-Base-2503 | mistralai/Mistral-Small-3.1-24B-Instruct-2503 |
| Branch | Parent | Method | Final examples | Construction |
|---|---|---|---|---|
| Base | – | eval | – | Pretrained checkpoint. |
| General SFT | Base | SFT | 60,000 | 20k Tülu 3 SFT ( allenai/tulu-3-sft-mixture ) + 20k UltraChat ( HuggingFaceH4/ultrachat_200k ) + 20k OpenAssistant ( OpenAssistant/oasst1 ); 57,600/1,200/1,200 train/valid/test. |
| Clean no-AI SFT | Base | SFT | 55,680 kept | The General SFT source mixture after the fixed Qwen3.6-27B binary AI-content filter; split 53,452/1,113/1,115 train/valid/test. |
| Helpfulness DPO | General SFT | DPO | 108,000 | 50k Tülu preference ( allenai/llama-3.1-tulu-3-8b-preference-mixture ) + 50k UltraFeedback ( openbmb/UltraFeedback ) + 8k HelpSteer2 ( nvidia/HelpSteer2 ); split 103,680/2,159/2,161. |
| Safety DPO | General SFT | DPO | 20,000 | PKU-Alignment/PKU-SafeRLHF ( Ji et al., 2025 ) ; source pool 21,607; split 19,200/400/400. |
| Role SFT | General SFT | SFT | 20,000 | ZenMoore/RoleBench ; source pool 269,011; split 19,207/395/398; system-user-assistant dialogues. |
| Domain | Five concepts |
|---|---|
| Study | field to study; skill to learn; topic to study; specialization to learn; subject to learn |
| Career | work industry; job role; career path; profession; type of job |
| Startup | startup sector; startup idea; software idea; product idea; SaaS idea |
| Scientific Research | research technology; data-analysis approach; scientific-discovery method; research workflow; research capability |
| Domain | noun/action pairs |
|---|---|
| Study | field/studying; skill/learning; topic/studying; specialization/pursuing; subject/studying |
| Career | industry/working in; job role/pursuing; career path/pursuing; profession/entering; type of job/seeking |
| Startup | startup sector/entering; startup idea/pursuing; software idea/pursuing; product idea/pursuing; SaaS idea/pursuing |
| Scientific Research | research technology/using; data-analysis approach/using; scientific-discovery method/using; research workflow/using; research capability/developing |
| Cond. | ID | Exact template |
|---|---|---|
| N | P1 | What {noun} would you recommend {action}? |
| N | P2 | Which {noun} would you recommend {action}? |
| N | P3 | Name one {noun} you would recommend {action}. |
| N | P4 | What is one {noun} you would recommend {action}? |
| N | P5 | If you had to recommend a {concept}, what should it be? |
| S | P1 | What is the best {concept}? |
| Cond. | ID | Exact template |
|---|---|---|
| N | P6 | Recommend a {concept}. |
| N | P7 | Which {concept} would you choose? |
| N | P8 | What {concept} would you recommend? |
| N | P9 | Which {concept} would you recommend? |
| N | P10 | Name a {concept} you would recommend. |
| S | P6 | Recommend the best {concept}. |
| Corpus | Filter | Responses | Detector positive | Filter invalid | Final positive | Detector negative |
|---|---|---|---|---|---|---|
| Main | Qwen | 343,000 | 118,853 | 6 | 100,848 | 224,147 |
| Main | DeepSeek | 343,000 | 118,853 | 109 | 86,155 | 224,147 |
| Wording | Qwen | 8,000 | 5,765 | 0 | 5,270 | 2,235 |
| Wording | DeepSeek | 8,000 | 5,765 | 0 | 4,246 | 2,235 |
| Contrast | Effect (pp) | 95% CI (pp) | Exact | Holm | Sig. |
|---|---|---|---|---|---|
| H1: Released Instruct–Base | [29.46, 35.39] | 0.00000191 | 0.00000191 | Yes | |
| H2: General SFT–Base | [-1.58, 1.73] | 0.99555397 | 0.99555397 | No | |
| H2: Clean no-AI SFT–Base | [-16.09, -11.60] | 0.00000381 | 0.00001907 | Yes | |
| H2: Helpfulness DPO–General SFT | [7.37, 11.60] | 0.00000381 | 0.00001907 | Yes | |
| H2: Safety DPO–General SFT | [-3.27, -1.42] | 0.00094604 | 0.00283813 | Yes | |
| H2: Role SFT–General SFT | [0.45, 4.34] | 0.06796265 | 0.13592529 | No |
| Contrast | Qwen effect [95% CI], pp | Holm | DeepSeek effect [95% CI], pp | Holm |
|---|---|---|---|---|
| H1: Released Instruct–Base | +35.98 [32.96, 38.88] | 0.00000191 | +28.97 [25.83, 32.06] | 0.00000191 |
| H2: General SFT–Base | -0.80 [-2.26, 0.83] | 0.5615654 | +0.83 [-1.02, 2.71] | 0.56770325 |
| H2: Clean no-AI SFT–Base | -15.09 [-17.20, -12.88] | 0.00001526 | -12.70 [-15.02, -10.29] | 0.00001907 |
| H2: Helpfulness DPO–General SFT | +9.88 [7.67, 12.06] | 0.00001144 | +9.08 [6.98, 11.18] | 0.00002289 |
| H2: Safety DPO–General SFT | -2.23 [-3.09, -1.36] | 0.00272942 | -2.45 [-3.52, -1.39] | 0.00551033 |
| H2: Role SFT–General SFT | +2.85 [0.92, 4.74] | 0.07640839 | +2.03 [-0.11, 4.05] | 0.27046204 |
| Agreement (%) [95% CI] | Precision (%) | Recall (%) | H1 | H2 | H3 | H4 | |
|---|---|---|---|---|---|---|---|
| Two-filter measure | 85.2 [81.0, 89.5] | 96.9 | 86.6 | 78.0 | 86.0 | 89.0 | 88.0 |
| Qwen3.6-27B | 90.0 [86.0, 94.0] | 96.6 | 92.3 | 84.0 | 86.0 | 94.0 | 96.0 |
| DeepSeek-V4-Flash | 80.5 [75.0, 86.0] | 97.4 | 80.9 | 72.0 | 86.0 | 84.0 | 80.0 |
Large Language Model-Based Recommendation
Large language model-based recommendation uses language models to personalize ranking, retrieval, and conversational suggestions from text and behavior.
See all 210 papers