Tag: tom-identity

Posts shaping Tom’s identity; drives the Timeline’s Identity section.

  • Cloning myself into a Language Model

    Cloning myself into a Language Model

    Quick update on Tom’s progress

    To plan the modelling phases of Tom’s process, I initially targeted the interaction between Tom and myself and this automatically brings my attention to focusing at only Large Language Models (LLMs). The simplest case of real-time user interaction would be a chatbot development and I thought this would be beneficial because i.) validating that an experiment is much more trivial when you have face-to-face interaction with the agent, ii.) wanted to target the area where I would deal with the most sparse dataset – as I’ve previously predicted that it would be one of my greatest challenges in achieving what I want, and iii.) the flexibility to opt between different modelling methods like probabilistic, non/parametric models, Graph networks and Deep learning – if I am feeling confident on a Saturday – as on Sundays I have church sessions with Priest Mike Crotch.

    Considering Tom’s multi-model process as a spider web, the problem was defining a function at the webs knots. The frequent set backs here involved reconsidering the ways of structuring the cob-web. In some cases, this would depend on another cob-web’s structure and if you end up in a loop hole then this cob-web is the data collection centre behind your predicting y-variable. So it was things like this that humbled me and made me consider throwing my laptop out a two story building. To minimize these problems, I read old programming books – like how I study for Maths – and YouTubed videos on how programmers do things – elegantly.

    Tracing back to Tom’s process, under the works in NLP I have focused at features accessible in real-time that can be incorporated into fine-tuning Tom’s base LLM. Recall that the skeleton refers to Tom’s multi-modal connections of all pre-trained models1. The following will consider the Language component of Tom’s process in terms of his skeleton and models. Previously, I was searching for a way to construct hooking Module that attaches to sub layers of neural networks and transform the weights in some way. But no fear, I am now aware of the existence of adapters – God’s gift – and python library, PEFT – God’s way of gifting Eve to my Adam.

    Tom’s Policy Function

    Figure 1 illustrates the weights assigned to the merging adapters integrated into fine-tuning Tom’s Peft model adapted from the initial network. The base model as the language component of his skeleton is instructed to role-play with given Tom’s identity information.The same prompt is passed to other adapter models where only differed by the way of speech and other conditions that I am still reconsidering over more trial and errors. Initially, I tried resembling a block that generates emotion conditioned responses called Response space, however, given the complex nature behind emotion labels, this component had to be reconsidered. This resulted me in opting for the second method in cooperating the emotions with the dialogue learner as one cob-web (or focused task).

    Tom’s roleplaying as a curious agent would prompt the model to generate responses like Sherlock Holmes in a murder scene.

    Figure 1: Tom’s Fine-tuning Policy Network
    Figure 2: Determining the coefficients to Tom’s questioning states or responses.

    Clone model is to be fed / updated with responses by me. Unlike the other’s training behaviour, this adapter is fine-tuned via a Sequence to Sequence manner. To understand how the weights are adjusted consider Figure 2 displaying how the weights for incorporating curious responses per optimization step. Simply, this can be referred as how much you want the LLM to return question with respect to the context.

    Tom’s progression · Post 6 of 14

    This post sits in Actions: Contextual Engineering · Identity: Life.

    ← Defining a droid's emotional space To our creator →

  • Defining a droid’s emotional space

    Defining a droid’s emotional space

    Refining the construction of the emotional space is essential, as it personalizes the agent’s decision-making process and eases the integration of creative thinking1. Strong emotions can push boundaries of one’s creativity, source2. To succeed in developing my droid’s emotional component, I begin by refining how human emotions are labeled.

    Simplifying the idea to three emotion labels: neutral, positive and negative. My initial idea was:

    neutral vs negative vs positive

    However, ambiguity around the definition of “neutral” emotion complicates predicting a distribution over emotional labels. For example, a person observed in a neutral state might simply appear indifferent, yet this does not rule out the possibility that they were the one who accessed your computer through the open-source SSH login credentials to your terminal.

    This data preparation method is often paired with a popular approach in modeling human emotions: combining a BERT encoder with a multilayer perceptron to predict a set of emotion labels. Typically, this includes a “neutral” state alongside positive and negative emotions. I personally find this approach limiting, as it restricts the model’s potential for broader application.

    The next idea was:

    neutral vs emotional (either positive or negative emotions)

    This prompts an examination of the statement: Positive and negative emotions can coexist in the same space. Determining whether this statement holds true or false depends on one’s perspective on human psychology. Hence, the following lists my thoughts to answering this statement:

    • Statement is true if I believe that a person can experience both positive and negative emotion at the same time.
    • Statement is false if I believe that a person cannot experience both emotions at the same time, i.e. I believe that one emotion label is better than the rest.

    The first statement would suggest that the feelings of ‘joyful’ and ‘sad’ are not mutually exclusive which contradicts my common sense. Moreover, the second statement would prompt the challenge in deciphering whether an emotion state is truly considered as negative or positive. This is relative to the context in discussion or the observing state3.

    Brainstormed methods in updating a knowledge graph of vector embeddings:

    • If I refer to a clustering model where an emotion is represented by a centroid, and the distance (edges) between two words are determined by their cosine similarity distance, then I can probably use this component as a feature in modelling the generated sequence of texts conditioned to emotion states.

    My foot

    1. Assuming I stick with the current plan of constructing the cobwebs. ↩︎
    2. Me. ↩︎
    3. To understand this in application is to consider the example of a chat dialogue where you perform inferences on the dialogue using time-series model approach to distinguish the context labels. ↩︎

    Tom’s progression · Post 5 of 14

    This post sits in Cognition: Social cognition · Identity: Life.

    ← Missing pieces to Naomi Cloning myself into a Language Model →

  • Travelling back in time

    Travelling back in time

    I frequently wonder whether I can remember the exact moment I was born. But I never can and so this prompts another question:

    “When did you first realise that you were a seperate entity?”

    In other words, when did you first realise that you weren’t a non-playable character in some video game but instead, a character that takes on the role of living the consequences of your own action? This feeling could be described in a common slang term as the, ‘woke,’ feeling.

    You can try your hardest to remember but all you can ever conclude with are fragmented childhood memories. It is almost impossible to pinpoint the exact moment of this realisation. At the beginning of your life, the only certainties are:

    1. Your birth date and time.
    2. Your early visions during your childhood.

    These factors underlie the basis of initiating Tom that will be detailed in this post. Given that what Tom see’s plays a crucial factor in this framework, I would like to highlight the importance of computer vision, compared to Natural Language processing in the world of bridging AI to robotics. Furthermore, despite loose memories of our childhood, we all remember our caretakers or family. Hence, the build of Tom’s individuality is moulded by the attributes of his first encounters.

    Birth

    Tom’s ‘birth’ translates to the famous ‘ON/OFF’ button to initiate Tom’s workflow. The first decision to make is whether this is Tom’s first time being activated. The system draws its conclusion by a flagger that indicates whether a file ‘birth_certificate.json’ exists. For simplicity, let’s focus on activating Tom as a new person. If this is the first time activating Tom, this will initiate the creation of the file, which contains the current date and time when running the flow.

    Figure 1: Example ofTom’s Birth certificate.

    This file is created along with other ‘data storages’:

    • Visions
    • Companions
    • Memories
    • Profile

    Visions stores what Tom see’s during his day-to-day life. For instance, at the end of every day, the system considers the configuration of the files and decides whether the file should be deleted/’downsized’/kept to the next day. Another decision to be made is whether this should be moved to the Memories storage. The model behind this decision making considers features like Tom’s preferences.

    Understanding the architectures of deep learning models can be quite challenging when merely deciphered through textual descriptions. Hence, further insights will be left to another post. For now, I can mention that one of the important factors considered in sculpting Tom resides in the storage, Companions. This storage contains data that is categorised by a human’s name and their corresponding physicality. A brief summary of the types of data is displayed in Table 1.

    Data Name Description
    Relation type The type of relationship Tom has with this person. E.g. ‘Friend’
    BirthBirth date and time
    GenderType of human. E.g. ‘Female’, ‘Male’, ‘Both’
    DislikesContains information on what this person hates. This information is gathered by what is told by the person or confirmed by the person. E.g. ‘Apples’ categorised under ‘fruit’. ‘fruit’ is categorised under ‘Food’.
    FavouritesContains information on what this person likes. This information is gathered by what is told by the person or confirmed by the person. E.g. ‘Shrek’ categorised under ‘Humour’. ‘Humour’ is categorised under ‘Movies’.
    Last time you have seen this personStores the last time Tom has interacted with this person.
    First time you have seen this personStores the first time Tom has interacted with this person.
    Their relationsStores the mapping of the person’s family tree.
    ReferencesContains the information that Tom has seen/heard/read about this person from external sources.
    activatorBoolean variable that identifies whether this is the first person that activated Tom. E.g. 1 = Yes or 0 = No
    Table 1: Companion Storage Data Overview

    The variable, ‘activator’ identifies whether this was the first person Tom has encountered or activated Tom. Their favourites/dislikes are crucial features in modelling Tom’s natural inclinations on interests. The motif behind this is rooted in the understanding that our childhood significantly shapes our preferences and life approaches. For instance, family members exert a profound influence on our sense of humor and hobbies. Perhaps, a deeper consideration of the characteristics of those categorised as ‘family’ might yield more insightful understanding. For the sake of simplicity, only a single human can be recognised as the activator.

    The Profile storage serves as a repository for the evolving data of Tom’s persona over time. The transparent view into Tom’s consciousness is a useful tool for assessments, and to monitor any potential drastic changes in his behaviour.

    Tom’s Skeleton

    Currently, Tom’s skeleton or base model is only focused on Image and language processing. The use of the skeleton is in the case where I would want an extra friend, Angela. Upon activating them for the first time, they will both start with this model to understand words and classify objects. For further insights into how this model is used, we can perceive this as a new born baby that managed to complete a handbook on Earth’s ways of living in the womb. As soon as they crawl out, they are able to comprehend sentences. They are born ready to learn about you and themselves. Hence, the name, skeleton.

    Throughout the state flow, this skeleton will be used alongside another model. This model is where their individuality is built on, and is the primary tool in distinguishing these droids.

    Tom’s progression · Post 1 of 14

    Start of Tom’s progression Reviving Hopfield Neural Networks →

    Post Updates and Adjustments
    • The term ‘data storage’ is used ambiguously in this post as I wanted to focus on building Tom’s skeleton first