paper-with-me

Papers

SpecMind: Cognitively Inspired, Interactive Multi-Turn Framework for Postcondition Inference

2026-02-24 · Cuong Chi Le, Minh V. T Pham, Tung Vu Duy, Cuong Duc Van, Huy N. Phan, Hoang N. Phan, Tien N. Nguyen arxiv

Specifications are vital for ensuring program correctness, yet writing them manually remains challenging and time-intensive. Recent large language model (LLM)-based methods have shown successes in generating specifications such as postconditions, but existing single-pass prompting often yields inaccurate results. In this paper, we present SpecMind, a novel framework for postcondition generation that treats LLMs as interactive and exploratory reasoners rather than one-shot generators. SpecMind employs feedback-driven multi-turn prompting approaches, enabling the model to iteratively refine candidate postconditions by incorporating implicit and explicit correctness feedback, while autonomously deciding when to stop. This process fosters deeper code comprehension and improves alignment with true program behavior via exploratory attempts. Our empirical evaluation shows that SpecMind significantly outperforms state-of-the-art approaches in both accuracy and completeness of generated postconditions.

📄 PDF Abstract BibTeX arXiv:2602.20610

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Interactive inference: a multi-agent model of cooperative joint actions

2022-10-24 · Domenico Maisto, Francesco Donnarumma, Giovanni Pezzulo

We advance a novel computational model of multi-agent, cooperative joint actions that is grounded in the cognitive framework of active inference. The model assumes that to solve a joint task, such as pressing together a …

Towards Developmentally Plausible Rewards: Communicative Success as a Learning Signal for Interactive Language Models

2025-05-09 · Lennart Stöpler, Rufat Asadli, Mitja Nikolaus, Ryan Cotterell 외

We propose a method for training language models in an interactive setting inspired by child language acquisition. In our setting, a speaker attempts to communicate some information to a listener in a single-turn dialogu…

Language AcquisitionQuestion Answering

Once Upon a Time: Interactive Learning for Storytelling with Small Language Models

2025-09-19 · Jonas Mayer Martins, Ali Hamza Bashir, Muhammad Rehan Khalid, Lisa Beinborn arxiv

Children efficiently acquire language not just by listening, but by interacting with others in their social environment. Conversely, large language models are typically trained with next-word prediction on massive amount…

BabyLM Turns 3: Call for papers for the 2025 BabyLM workshop

2025-02-15 · Lucas Charpentier, Leshem Choshen, Ryan Cotterell, Mustafa Omer Gul 외

BabyLM aims to dissolve the boundaries between cognitive modeling and language modeling. We call for both workshop papers and for researchers to join the 3rd BabyLM competition. As in previous years, we call for particip…

Language ModelingLanguage Modelling

CogMem: A Cognitive Memory Architecture for Sustained Multi-Turn Reasoning in Large Language Models

2025-12-16 · Yiran Zhang, Jincheng Hu, Mark Dras, Usman Naseem arxiv

Large language models (LLMs) excel at single-turn reasoning but often lose accuracy and coherence over extended, multi-turn interactions. Recent evaluations such as TurnBench highlight recurring failure modes-reasoning b…