paper-with-me

홈 › Papers

Joint Prompt Optimization of Stacked LLMs using Variational Inference

2023-06-21 · NeurIPS 2023 11 · Alessandro Sordoni, Xingdi Yuan, Marc-Alexandre Côté, Matheus Pereira, Adam Trischler, Ziang Xiao, Arian Hosseini, Friederike Niedtner, Nicolas Le Roux

Large language models (LLMs) can be seen as atomic units of computation mapping sequences to a distribution over sequences. Thus, they can be seen as stochastic language layers in a language network, where the learnable parameters are the natural language prompts at each layer. By stacking two such layers and feeding the output of one layer to the next, we obtain a Deep Language Network (DLN). We first show how to effectively perform prompt optimization for a 1-Layer language network (DLN-1). Then, we present an extension that applies to 2-layer DLNs (DLN-2), where two prompts must be learned. The key idea is to consider the output of the first layer as a latent variable, which requires inference, and prompts to be learned as the parameters of the generative distribution. We first test the effectiveness of DLN-1 in multiple reasoning and natural language understanding tasks. Then, we show that DLN-2 can reach higher performance than a single layer, showing promise that we might reach comparable performance to GPT-4, even when each LLM in the network is smaller and less powerful.

📄 PDF Abstract BibTeX arXiv:2306.12509

Code (1)

microsoft/deep-language-networks 공식 구현

Tasks

Natural Language UnderstandingVariational Inference

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Position-Wise Feed-Forward Layer 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Multi-Head Attention 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음

Similar Papers 제목 키워드 기반

All SMILES Variational Autoencoder for Molecular Property Prediction and Optimization

2019-09-25 · Zaccary Alperstein, Artem Cherkasov, Jason Rolfe

Variational autoencoders (VAEs) defined over SMILES string and graph-based representations of molecules promise to improve the optimization of molecular properties, thereby revolutionizing the pharmaceuticals and materia…

AllMolecular Property PredictionProperty Prediction

All SMILES Variational Autoencoder

2019-05-30 · Zaccary Alperstein, Artem Cherkasov, Jason Tyler Rolfe

Variational autoencoders (VAEs) defined over SMILES string and graph-based representations of molecules promise to improve the optimization of molecular properties, thereby revolutionizing the pharmaceuticals and materia…

AllDrug DiscoveryMolecular Graph Generation

Multimodal Prompt Optimization: Why Not Leverage Multiple Modalities for MLLMs

2025-10-10 · Yumin Choi, Dongki Kim, Jinheon Baek, Sung Ju Hwang arxiv

Large Language Models (LLMs) have shown remarkable success, and their multimodal expansions (MLLMs) further unlock capabilities spanning images, videos, and other modalities beyond text. However, despite this shift, prom…

Diffusion LLMs are Natural Adversaries for any LLM

2025-10-31 · David Lüdke, Tom Wollschläger, Paul Ungermann, Stephan Günnemann 외 arxiv

We introduce a novel framework that transforms the resource-intensive (adversarial) prompt optimization problem into an \emph{efficient, amortized inference task}. Our core insight is that pretrained, non-autoregressive …

Red Teaming

Joint Optimization of Prompt Security and System Performance in Edge-Cloud LLM Systems

2025-01-30 · Haiyang Huang, Tianhui Meng, Weijia Jia

Large language models (LLMs) have significantly facilitated human life, and prompt engineering has improved the efficiency of these models. However, recent years have witnessed a rise in prompt engineering-empowered atta…

Prompt Engineering