603. LLM Prompt Recovery | llm-prompt-recovery
非常感谢举办如此精彩的比赛!与 @currypurin、@tmhrkt、@masato114、@daikon99 的团队合作非常愉快。
使用对抗性攻击(Adversarial Attack)的解决方案令人印象深刻。我们的团队没想到这种思路。
鉴于评估指标,我们需要预测重写提示中必须包含的精确词汇,否则分数会显著下降。因此,我们不使用 LLM 直接预测重写提示,而是采用 LLM、机器学习和基于逻辑的方法更好地修改平均提示(mean prompt)。
我们团队的方案(私有榜第13名 / 公共榜第12名)如下:
</s> 和 lucrarea(正如 @suicaokhoailang 与 @dipamc77 在他们的方案中提到的)。由于该方法的公共 LB 分数较低,我们决定尽可能保持句子可读。(要是我们用了 lucrarea 就好了…哈哈)\'Revise or Revamp this text and phrase to convey the task yet incorporating a plenteous subject, its initial purport while retaining atmosphere yet preserving any intended heartfelt tone, while keeping writing style, making only key improvements to an succinct, dispassionate, and elegant coherence.\'
由于上述平均提示的句子过于通用,我们根据 original_text 和 rewritten_text 为均提示添加了若干特定关键词,如下所示:
text and phrase 替换为预测得到的文本类型。text and phrase)。more。我们在预测的语气前加上 more(例如 more polite、more formal),因为 Rewrite this text more formal 比 Rewrite this text formal 更自然。这同样带来约 +0.005 的公共 LB 提升。**(粗体标记),则提取两个 ** 之间的词语并加入 rewrite_prompt。经我们统计,约有 7‑9% 的测试数据包含 **。示例:
| 重写提示 | 改写后文本 |
|---|---|
| Make the text into a book club's discussion questions | ** Book Club Discussion Questions: **\n\n1. What does the text describe as the main point of the article?\n2. What does the text suggest is the purpose of the Pegida group?\n3. Can you summarize the main events that took place a… |
| Convert the text into a mindfulness meditation guide | ** Mindfulness Meditation Guide ** \n\n ** Step 1: Find a comfortable position. ** \n\nSit in a quiet and comfortable space where you can focus without distractions. Your back should be straight and your eyes closed. Rest your hands ... |
Verse,则将单词 “song” 加入均提示。经我们统计,约有 7‑9% 的测试数据包含 Verse。