Skip to content

NSI's Laws: Memorable Prompt Engineering for Persistent AI Behavior

A bright blue point of light drawing a wide fan of lines in from the left and out to the right as straight parallel lines, with two fainter points further along, on a dark field.
Generated illustration
Status
In progress
Published
Reading
2 min read
Written by
Nicolas SiatrasCEO & Founder
Contents · 9 sections

Abstract

Research investigating whether applying cognitive memorability techniques to prompt design can create more persistent behavioral patterns in AI systems across extended conversational contexts.

The Problem

Current Large Language Model (LLM) APIs require developers to resend entire conversation histories with each request, leading to instruction degradation over extended contexts. Traditional prompting approaches suffer from "context fade" where initial instructions lose influence after 20-30 conversational turns.

Research Question

Can memorable prompt engineering techniques (emotional language, vivid metaphors, named patterns) significantly improve instruction compliance and retention in LLMs across extended conversational contexts compared to traditional plain-text instructions?

The NSI's Laws Approach

We developed a memorably-framed set of software development principles to test this hypothesis. Instead of generic instructions like "use constructor injection," we created:

Preliminary Findings

Initial testing suggests memorable prompts achieve:

  • 3x higher compliance rates in tasks 20+ messages after instruction
  • 2.5x more resistance to contradictory suggestions
  • Spontaneous reference to named principles ("This violates the Front Door Law")

Methodology

The study employs controlled experimental framework comparing "NSI's Laws" against equivalent plain-text instructions across three major LLM APIs (Claude, GPT-4, Gemini). We measure:

Immediate Compliance:
Code quality metrics in initial responses
Retention Over Distance:
Compliance after 20+ intervening messages
Resistance to Contradiction:
Behavior when prompted to violate stated principles
Spontaneous Reference:
Unprompted mentions of named principles

Practical Applications

Software Development:
Maintaining coding standards across long debugging sessions
Customer Service:
Preserving brand voice without constant reminders
Education:
Creating persistent tutoring behaviors
API Cost Reduction:
Fewer tokens needed for consistent behavior

Significance

This research addresses a critical gap in prompt engineering literature by:

  • Quantifying the relationship between cognitive memorability and AI instruction persistence
  • Providing actionable techniques for developers working with stateless LLM APIs
  • Reducing token costs by eliminating need for instruction repetition
  • Establishing framework for "branded" behavioral patterns in AI systems

Expected Outcomes

  1. A validated framework for memorable prompt design
  2. Quantified impact scores for different memorability techniques
  3. Best practices for persistent AI instruction
  4. Open-source testing framework for replication

Academic Contribution

This work bridges cognitive psychology and prompt engineering, introducing memorability as a measurable factor in human-AI interaction design. It provides the first empirical study of how linguistic memorability techniques affect LLM behavior persistence in production environments.

More research

Keep reading.