paper-with-me

홈 › Papers

INDICT: Code Generation with Internal Dialogues of Critiques for Both Security and Helpfulness

2024-06-23 · Hung Le, Yingbo Zhou, Caiming Xiong, Silvio Savarese, Doyen Sahoo

Large language models (LLMs) for code are typically trained to align with natural language instructions to closely follow their intentions and requirements. However, in many practical scenarios, it becomes increasingly challenging for these models to navigate the intricate boundary between helpfulness and safety, especially against highly complex yet potentially malicious instructions. In this work, we introduce INDICT: a new framework that empowers LLMs with Internal Dialogues of Critiques for both safety and helpfulness guidance. The internal dialogue is a dual cooperative system between a safety-driven critic and a helpfulness-driven critic. Each critic provides analysis against the given task and corresponding generated response, equipped with external knowledge queried through relevant code snippets and tools like web search and code interpreter. We engage the dual critic system in both code generation stage as well as code execution stage, providing preemptive and post-hoc guidance respectively to LLMs. We evaluated INDICT on 8 diverse tasks across 8 programming languages from 5 benchmarks, using LLMs from 7B to 70B parameters. We observed that our approach can provide an advanced level of critiques of both safety and helpfulness analysis, significantly improving the quality of output codes ($+10\%$ absolute improvements in all models).

📄 PDF Abstract BibTeX arXiv:2407.02518

Code (1)

SalesforceAIResearch/indict_code_gen 공식 구현

Tasks

Code GenerationNavigate

Methods 이 논문이 사용한 방법론

ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

IndicTalk: A Large-Scale Persona-Based Multilingual Conversational Corpus for Indic Languages

2026-07-25 · Sahil Deepak Gawande, Mayank Singh arxiv

Large Language Models (LLMs) have transformed conversational AI, yet high-quality multilingual code-mixed dialogue resources remain scarce, particularly for Indic languages where speakers naturally alternate between Engl…

Dialogue Generation

Navigating Text-to-Image Generative Bias across Indic Languages

2024-08-01 · Surbhi Mittal, Arnav Sudan, Mayank Vatsa, Richa Singh 외

This research investigates biases in text-to-image (TTI) models for the Indic languages widely spoken across India. It evaluates and compares the generative performance and cultural relevance of leading TTI models in the…

Diversity

Exploring Design of Multi-Agent LLM Dialogues for Research Ideation

2025-07-11 · Keisuke Ueda, Wataru Hirota, Takuto Asakura, Takahiro Omi 외

Large language models (LLMs) are increasingly used to support creative tasks such as research idea generation. While recent work has shown that structured dialogues between LLMs can improve the novelty and feasibility of…

Diversity

SAFETY-J: Evaluating Safety with Critique

2024-07-24 · Yixiu Liu, Yuxiang Zheng, Shijie Xia, Jiajun Li 외

The deployment of Large Language Models (LLMs) in content generation raises significant safety concerns, particularly regarding the transparency and interpretability of content evaluations. Current methods, primarily foc…

RecMind: Japanese Movie Recommendation Dialogue with Seeker's Internal State

2024-02-21 · Takashi Kodama, Hirokazu Kiyomaru, Yin Jou Huang, Sadao Kurohashi

Humans pay careful attention to the interlocutor's internal state in dialogues. For example, in recommendation dialogues, we make recommendations while estimating the seeker's internal state, such as his/her level of kno…

Movie RecommendationResponse Generation