Language models generate functionally correct code that tends toward excessive verbosity, with elaborate documentation and defensive patterns that diverge from human baselines. Two prompting mechanisms have emerged for stylistic control: instruction based prompts that articulate abstract directives, and example based prompts that provide concrete code demonstrations. The core problem is whether stylistic constraints persist when models enhance initial implementations with additional features while maintaining high functional accuracy. Here we show that instruction-based, example-based, and combined prompts produce distinct patterns of initial control and expansion discipline over one enhancement turn. We manipulated system prompts across four conditions in a paired two-turn protocol where models first generated solutions to an intermediate Python task, then revised their code under general improvement directives, holding the user task fixed (N = 160 paired programs). Combined prompts produced the strongest initial compression and greatest expansion discipline. Instructions showed large initial effects and moderate expansion discipline. Examples showed modest initial effects with no expansion discipline. These results show that initial prompt effectiveness and expansion discipline are separate aspects of prompt design, and that combined approaches provide the most stable stylistic control in this two-turn workflow.
How Model Size, Temperature, and Prompt Style Affect LLM-Human Assessment Score Alignment
Harvard Graduate School of Education(哈佛教育研究生院);Munster University(穆恩斯特大学);Institute of Anatomy and Neurobiology, University of Münster(解剖与神经生物学研究所,穆恩斯特大学)
Influences on LLM Calibration: A Study of Response Agreement, Loss Functions, and Prompt Styles
Faculty of Computer Science, University of Vienna(维也纳大学计算机学院);UniVie Doctoral School Computer Science(维也纳大学计算机博士学院);Department of Computer Science, Aarhus University(奥胡斯大学计算机系);Faculty of Philological and Cultural Studies, University of Vienna(维也纳大学语文学与文化学院)
Style-Aware Radiology Report Generation with RadGraph and Few-Shot Prompting
Stanford University(斯坦福大学);Jawaharlal Institute of Postgraduate Medical Education and Research (JIPMER)(贾瓦哈拉尔研究生医学教育与研究学院);Hospital Israelita Albert Einstein(以色列阿尔伯特·爱因斯坦医院);Johns Hopkins University(约翰斯·霍普金斯大学);Massachusetts General Hospital(马萨诸塞总医院);Harvard Medical School(哈佛医学院)
Do What I Say: A Spoken Prompt Dataset for Instruction-Following
Karlsruhe Institute of Technology, Germany(卡尔斯鲁厄理工学院,德国);Fondazione Bruno Kessler, Italy(布鲁诺·凯瑟尔基金会,意大利);ACC Cyfronet AGH, Poland(AGH计算机科学与技术学院,波兰);AGH University of Krakow, Poland(克拉科夫AGH大学,波兰);Carnegie Mellon University, U.S.(卡内基梅隆大学,美国)