The RTF Framework: Basic AI Prompt Engineering and Exploring Computer-Based Training for Higher Brain Dysfunction

Deep considerations on the basic knowledge and practical application of the RTF framework
The RTF framework is a thought framework established in the field of prompt engineering as one of the most essential and practical structuring methods for interacting with artificial intelligence.
The name of this framework is composed of the initials of three elements: Role, Task, and Format.
While each has an independent function, they also exist in a mutually complementary relationship.
Role, or the setting of a role, is an element that explicitly defines what kind of expertise or perspective the AI should adopt when responding.
Even in human-to-human communication, the content and depth of a conversation change depending on the position or expertise of the other party.
By assigning a specific role to the computer brain that is AI, it is possible to control the quality and direction of its responses.
For example, an AI assigned the role of a marketing expert will develop its thinking from perspectives such as consumer psychology, market trends, and brand strategy.
When assigned the role of a technical engineer, it tends to generate responses focused on technical aspects such as implementation feasibility, system architecture, and performance optimization.
The effect of this role setting is realized by influencing the knowledge domains and reasoning patterns activated within the AI.
Large language models are trained on vast amounts of text data.
This data includes knowledge, vocabulary, and modes of thought from various specialized fields.
Without an explicit role designation, it becomes ambiguous which knowledge domain should be prioritized, increasing the likelihood that responses will remain general and superficial.
By clarifying the role, the AI can draw upon deep knowledge and specialized modes of expression related to a specific field, making it possible to provide more valuable insights.
Task, or the clarification of the task, is the element that defines specifically what you want the AI to execute.
This element functions as a comprehensive instruction that includes the specification of the objective, a description of the expected deliverables, and the presentation of constraints.
When a task is ambiguous or open to multiple interpretations, the AI tends to select the most common interpretation or respond by listing multiple possibilities.
Therefore, the likelihood of not obtaining the intended result increases.
The choice of verbs plays an important role in effective task setting.
Using specific action verbs such as 'analyze, create, summarize, compare, evaluate, and propose' clarifies the direction of AI processing.
Furthermore, it is important to appropriately limit the scope of the task.
Tasks that are too broad can lead to unfocused responses, while conversely, tasks that are overly restricted may hinder the exploration of creative solutions.
Optimal task setting is achieved by maintaining a balance between clear goal setting and a moderate degree of freedom.
Additionally, for complex requests consisting of multiple subtasks, structuring them in stages allows the AI to approach the problem more systematically.
Format, or the specification of the format, is the element that defines what structure or style the AI's output should take.
This element includes 'how information is presented, the length of the text, the tone and style of the language used, and how data is organized'.
If the format specification is not clear, the AI will select a default output format.
That does not necessarily align with the user's needs.
There are diverse options for specifying the output format, such as 'explanatory text in paragraph form, organized presentation of numerical data, step-by-step procedures, and dialogue-style scenarios'.
The choice of format should be optimized according to the purpose of the information and the characteristics of the recipient.
While a detailed format containing technical terminology is appropriate for technical documents intended for experts, a format summarized concisely in plain language is desirable for general explanatory materials.
Also, format specification includes the level of text length and detail.
When requesting a concise summary versus a comprehensive analysis, the nature of the output differs significantly even for the same task. Therefore, it is important to specify this point.
The three elements of the RTF framework do not function independently but interact with each other to form a consistent instruction as a whole.
This is similar to how our human daily living activities and social participation are influenced by the interaction of 'physical functions, mental functions, and cognitive functions'.
The consistency between role and task is particularly important.
For example, if you set a role as a legal expert but assign a task of emotional evaluation of an artwork, the expertise of the role will not be fully utilized.
Similarly, the compatibility between format and task is also a factor that should be considered.
If you request that complex analysis results be output in an extremely short format, necessary information may be omitted, potentially preventing the original purpose of the task from being achieved.
For the effective utilization of the RTF framework, a harmonious combination of these three elements is essential.
The reason this framework is widely adopted lies in its simplicity and versatility.
Despite its easy-to-remember structure of three elements, it possesses the flexibility to be applied to almost any type of prompt.
The RTF framework functions effectively in diverse applications such as 'creating business documents, generating programming code, developing educational content, brainstorming creative ideas, and performing data analysis'.
Furthermore, this framework is easy for beginners to understand and has a practicality that allows for immediate implementation.
It also serves as a foundation for advanced users to construct more sophisticated instructions.
By deeply understanding each element of the RTF framework and adjusting them appropriately according to the situation, the quality of interaction with AI will improve dramatically.
In role setting, by defining not just the job title but also 'the experience level, area of expertise, and values that the role should possess,' you can elicit more precise responses.
For example, instead of just a marketing representative, it is possible to set a specific role such as 'a digital marketing expert with over ten years of experience who emphasizes data-driven decision-making'.
In task setting as well, by specifying not only the final deliverable but also the process leading up to it and the factors to consider, the AI will develop deeper thinking.
Instead of simply asking for new product ideas, it is necessary to analyze unmet market needs and consider factors for differentiation from competing products.
Task settings that include a step-by-step process, such as asking for three specific product concepts after evaluating feasibility, are effective.
In format setting, by specifying not only the structure of the text but also the 'tone, style, and target audience,' you can obtain more appropriate output.
You can select a format according to the purpose of communication, such as 'a professional and formal style, a friendly and conversational style, or a concise and point-focused style'.
The RTF framework also functions as a foundation for more advanced prompt engineering methods.
In extended versions like the CREATE framework, more detailed elements such as 'Context, Role, Example, Action, Target, and End' are added, making it possible to handle complex tasks.
However, these extended versions also basically inherit the principles of RTF and are developed around the core concepts of 'Role, Task, and Format'.
In actual application scenarios, it is important to clarify what you want to achieve before applying the RTF framework.
If you apply the framework while holding vague goals or expectations, you will not be able to set the three elements appropriately and will not obtain the expected results.
Conversely, if you have a clear goal, structuring it from the three perspectives of 'Role, Task, and Format' will naturally form an effective prompt.
Another advantage of the RTF framework is that prompt improvement can be carried out systematically.
If the expected results are not obtained, you can analyze which of the three elements was insufficient and adjust that part, thereby improving quality in stages.
By identifying whether the role was inappropriate, the task definition was ambiguous, or the format specification was insufficient, efficient improvement becomes possible.
This framework contains universal principles that can be applied not only to interactions with AI but also to communication between humans.
When asking someone to do something, you recognize their expertise and request specific actions.
Indicating the form of the expected output is a fundamental aspect of effective communication.
The RTF framework can be understood as an application of these universal communication principles to interactions with AI.
In modern business environments and academic research, the use of AI tools has become essential, and the ability to extract maximum value from them has become a critical skill.
The RTF framework provides a practical methodology for systematically developing this ability.
Mastering the framework requires continuous practice and iteration.
By consciously applying RTF in various situations, evaluating the results, and making repeated adjustments, you will be able to intuitively construct effective prompts.
Ultimately, it is ideal for the RTF framework to be internalized as a framework of thought for collaboration with AI, going beyond mere technical methodology.
The Essence of the RTF Framework and Its Potential Application in Post-Stroke Cognitive Rehabilitation
The RTF framework is gaining attention in the field of prompt engineering as a structured way of thinking for accurately conveying human intent to AI.
The reason this framework is effective lies in its ability to bridge the fundamental differences that exist between the human brain and AI information processing systems.
The human brain is a highly parallel processing system that instantly integrates context, implicit understanding, and emotional nuances to comprehend meaning.
On the other hand, AI functions as a sequential and probabilistic system that performs inference based on explicit instructions and structured data.
To bridge this cognitive gap, the RTF framework structures information in three dimensions—Role, Task, and Format—and serves to convert human intent into a format that AI can easily interpret.
Setting a role has the effect of activating specific knowledge domains and perspectives within the AI.
In the human brain, different cognitive frames switch automatically depending on the situation.
In AI, this frame selection must be explicitly specified.
Clarifying tasks is a crucial element for promoting goal-oriented behavior.
Granting AI functions similar to the executive functions managed by the human prefrontal cortex.
Specifying the format serves as a framework for constraining the AI's generation process by pre-defining the structure of the output, thereby obtaining more predictable and useful results.
In the field of cognitive rehabilitation for higher brain dysfunction following a stroke, computer-based training is increasingly being positioned as an evidence-based intervention recommended in recent stroke treatment guidelines.
Higher brain dysfunction is characterized by a wide range of cognitive declines, such as 'attention deficits, memory impairment, executive dysfunction, aphasia, agnosia, and apraxia,' which have serious impacts on daily life and social participation.
Conventional cognitive rehabilitation has primarily centered on face-to-face training with a therapist.
With recent advancements in digital technology, AI environments that allow for the self-development of computer-based cognitive training programs have been established, and their effectiveness is being verified.
The rationale for computer-based training recommended in stroke treatment guidelines is primarily based on moderate to high-level evidence obtained through randomized controlled trials.
These studies report that computer-based training shows effects equal to or greater than standard training in specific cognitive domains such as 'attention, working memory, and executive function.'
Advantages of computer-based training include 'standardization of training, automatic difficulty adjustment, detailed performance recording, promotion of patient self-training, and reduction of therapist burden.'
What is interesting here is that a structured approach like the RTF framework can also be applied to the design of cognitive rehabilitation programs.
Cognitive training programs are structurally similar to the RTF framework in that they set roles for patients, present specific tasks, and define the format of feedback.
For example, in a training program for attention deficits, patients are assigned roles such as 'explorer' or 'monitor' and tasked with detecting specific stimuli on the screen, with feedback provided in formats such as accuracy rates and reaction times.
Such a structured approach provides the clarity and repetition necessary for the damaged brain to establish new learning patterns.
Brain plasticity, the ability to reorganize neural circuits in response to experience, is the fundamental theoretical basis for cognitive rehabilitation.
Neuroimaging studies have shown that intensive and structured training during the recovery phase after a stroke promotes compensatory activation in brain tissue surrounding the damaged area and in the contralateral hemisphere, leading to functional improvement.
Computer-based training programs implement adaptive difficulty adjustment algorithms to maximize this plasticity.
This is a mechanism that optimizes learning efficiency by dynamically changing the difficulty of tasks according to the patient's current ability level, thereby maintaining an appropriate cognitive load.
It is known that learning in the human brain is facilitated by a balance between moderate challenge and successful experience.
Tasks that are too difficult lead to frustration, while tasks that are too easy reduce learning effectiveness.
Adaptive systems adjust task complexity in real-time to maintain this optimal learning zone.
The commonality between the RTF framework and computer-based cognitive training lies in the ability to enable efficient information processing and learning by breaking down complex cognitive processes into structured elements and providing clear definitions for each.
In the collaboration between the human brain and AI computer brain, or the interaction between patients and training systems, a clear communication structure becomes a decisive factor that influences outcomes.
In computer training for post-stroke aphasia, programs focusing on specific language functions such as 'vocabulary retrieval, sentence comprehension, and naming' have been developed.
These programs are based on the principles of speech therapy while being able to significantly increase opportunities for repetitive practice.
Therefore, they have become effective tools that complement traditional face-to-face therapy.
In training programs for executive dysfunction, tasks targeting higher-order cognitive functions such as 'planning, problem-solving, and cognitive flexibility' are provided.
These functions are primarily handled by the frontal lobe, and patients who have suffered frontal lobe damage due to a stroke often experience difficulties in performing complex activities in daily life.
Computer training programs provide opportunities to practice executive functions in a safe environment by simulating virtual daily life situations.
For example, tasks such as selecting items in a virtual supermarket based on a shopping list or processing multiple tasks according to priority are included.
These trainings are designed with the goal of transferring improvements to real-life functioning.
The goal is not just to improve cognitive test scores, but to improve actual daily living abilities.
In attention training programs, training for different aspects of attention such as 'sustained attention, selective attention, divided attention, and alternating attention' is provided systematically.
Attention deficit is the most frequent higher brain dysfunction after a stroke and serves as the foundation for other cognitive functions.
Therefore, the improvement of attention deficits may contribute to the enhancement of overall cognitive function.
In computer training for memory impairment, tasks targeting different memory systems such as 'working memory, episodic memory, and prospective memory' are used.
Working memory training aims to improve the ability to hold and manipulate information temporarily, and includes tasks such as reciting number sequences in reverse and complex calculation tasks.
In episodic memory training, tasks such as story recall and associative learning of faces and names are used, aiming to improve memory ability in daily life.
To maximize the effectiveness of computer training, 'training intensity, frequency, and duration' are critical factors.
Many studies report that significant improvements are observed by continuing training for 30 to 60 minutes per session, several times a week, over a period of several weeks to several months.
However, the optimal training parameters vary depending on factors such as 'the individual patient's site of injury, severity, age, and motivation'.
Therefore, a personalized approach is necessary.
The essential challenge in bridging the cognitive functions of the human brain and the AI computer brain lies in understanding the fundamental differences in their information processing and designing appropriate interfaces.
While the human brain possesses an exceptional ability to extract meaning from ambiguity and incomplete information, the AI computer brain excels at processing explicit and structured information at high speeds.
The RTF framework enables effective communication between these two systems by converting human ambiguous intentions into structured instructions.
Similarly, cognitive rehabilitation programs facilitate effective learning and recovery by structuring information to match the capabilities of the damaged brain and gradually increasing complexity.
In the recovery process after a stroke, there are stages known as the 'spontaneous recovery phase, compensatory recovery phase, and adaptation phase,' and different intervention strategies are required at each stage.
In the spontaneous recovery phase from the acute to subacute stage, function is restored through biological processes such as the reduction of brain edema and the development of collateral circulation.
Intensive training during this period may maximize neuroplasticity and promote the reorganization of functional neural networks.
Once the chronic phase is reached, learning compensatory strategies and optimizing residual functions become the primary mechanisms of recovery.
Computer training programs may encourage continuous improvement even in this chronic phase and are useful as tools for long-term independent training.
The recommendation for computer training in stroke treatment guidelines is positioned not as a monotherapy, but as part of a comprehensive cognitive rehabilitation program.
'Assessment by a therapist, goal setting, and the formulation of a personalized training plan' remain indispensable.
Computer training validated for human brain cognitive functions should be utilized as a means to complement these and increase training opportunities.
In recent years, cognitive training programs using virtual reality and augmented reality technologies have also been developed.
The potential to provide more immersive and highly motivating training environments is being explored.
These technologies enable training in environments close to real life and may promote the transfer of training effects to daily life.
Furthermore, the development of systems that use machine learning algorithms to analyze patient response patterns and automatically suggest optimal training programs is also underway.
Such AI-assisted rehabilitation systems have the potential to integrate the expertise of therapists with the computational power of computers, realizing more effective and personalized interventions.
The concept of the RTF framework can also be applied to the design of such systems.
By defining the therapist's role for the system, clarifying tasks such as patient assessment and training plan formulation, and specifying the format of recommended training programs, AI can provide more appropriate support.
The accumulation of evidence in the field of cognitive rehabilitation is progressing continuously, and multiple meta-analyses regarding the effectiveness of computer training have been published.
These studies indicate that there is moderate evidence for the training effects on specific cognitive domains.
On the other hand, they point out that further research is needed regarding the transfer effects to daily living functions.
Computer training for higher brain dysfunction after a stroke is becoming established as a part of standard cognitive rehabilitation.
With future technological advancements and the accumulation of evidence, it is believed that its role will continue to expand.
A structured approach that appropriately bridges the cognitive functions of the human brain and the computational power of the AI computer brain is important in both prompt engineering and cognitive rehabilitation.
It is a key principle for the human brain and the AI computer brain to realize effective communication and learning.
