/robowaifu/ - DIY Robot Wives

Advancing robotics to a point where anime catgrill meidos in tiny miniskirts are a reality.

Roadmap: file restoration script within a few days, Final Solution alpha in a couple weeks.

Sorry for not being around for so long, will start getting back to it soon.

Max message length: 6144

Drag files to upload or
click here to select them

Maximum 5 files / Maximum size: 20.00 MB

More

(used to delete files and postings)


AI, chatbots, and waifus Robowaifu Technician 09/09/2019 (Mon) 06:16:01 No.22
What resources are there for decent chatbots? Obviously I doubt there would be anything the Turing Test yet. Especially when it comes to lewd talking. How close do you think we are to getting a real life Cortana? I know a lot of you guys focus on the physical part of robo-waifus, but do any of you have anything to share on the intelligence part of artificial intelligence?
>>22
>I know a lot of you guys focus on the physical part of robo-waifus, but do any of you have anything to share on the intelligence part of artificial intelligence?
<A quick check of the catalog reveals;

<AI centric
[[3604
[[4499
[[450
[[175
[[2261

<voice & language centric
[[130
[[61
[[2583
[[17

<software centric
[[24
[[1080

<And there are several others with lots of good, related material, for example
[[1083
[[3181
[[259
[[408

And what about you anon? Have any good research you'd like to share here with us on your ideas OP?
Edited last time by Chobitsu on 09/26/2019 (Thu) 18:16:21.
>>804
Also, there is [[1648 for a general, and there is a Sepples and a Python bread. Not really AI per se, but they both are fundamental to the AI industry.
Maybe a stupid question, but what are /robowaifu/'s views on mycroft.ai voice assistant?
From what I've heard, it is open source, self-hostable and customisable.

>update: found the thread for it in catalog
>>402
>>22
People's approach to chatbots with neural networks is all wrong. A seq2seq network only predicts the next most likely character. It's a prediction network, not a generator. A second network needs to interface with predictions, pay attention to meaningful input, reason with it, and be trained to generate desired responses. However, there are major issues with the way neural networks are trained that need to be addressed first.

First, a seq2seq network predicting 'footwear' instead of 'shoes' will cause more training error than predicting 'shot'. Such a loss function is nonsensical. Words, phrases, sentences, paragraphs, and topics need to be represented with meaningful latent vectors that are optimally compressed together.

Second, researchers have disregarded the neuroplasticity of the brain due to the quick results achieved with backpropagation. Without plasticity though it's impossible to do one-shot learning and generalize knowledge to new tasks. There will never be a proper dataset to train on either because there are multiple possibilities and solutions that are good. Creative answers better than the dataset will also be severely punished by supervised learning.

Solving these two issues is vital to creating intelligent chatbots. Consider if someone counted on their fingers to five and said, "ichi, ni, san, shi, go." If you copied counting on your fingers, it would be possible to remember these foreign numbers, right? Even if you only got one right. This is possible because neurons that fire together, wire together. The neurons that light up for these sounds would get subtly wired with neurons that light up for counting on fingers. They'd become vaguely activated when you go to count on your fingers. With intelligent attention, such as recalling how the person looked like or any other details that activate those neurons that got wired together by the experience, you can amplify that subtle activation and remember the numbers clearly. With repetition this connection becomes stronger and stronger to the point you don't even need to count on the fingers to remember.

I plan to publish my informal research here in a few weeks and its code to play around with but for now if you're interested in the subject here's some further reading:
>MIT scientists discover fundamental rule of brain plasticity
news.mit.edu/2018/mit-scientists-discover-fundamental-rule-of-brain-plasticity-0622
>tl;dr neurons can only strengthen their synapses by weakening the ones of neighbouring neurons

>Learning to learn with backpropagation of Hebbian plasticity
arxiv.org/abs/1609.02228
>making the plasticity of each connection a learnable parameter in addition to the baseline weights, so some parts of the network are hard-wired, some soft-wired

>The Kanerva Machine: A Generative Distributed Memory
arxiv.org/abs/1804.01756
>optimal online compression that greatly outperforms differentiable neural computers
>>807
This is pretty fascinating stuff anon. I think I almost followed what you said about counting on fingers and the subtle reinforcement of entirely tangential–but temporally related during training–triggering details. Look forward to the work.

>also
Pic a cute.
Now that we can play with the small-dataset version of GPT-2 thanks to an enterprising researcher what do you guys think about it's potential as a robowaifu chatbot?

>The underlying tech progression:
openai.com/blog/better-language-models/
>to:
huggingface.co/
>to:
talktotransformer.com/

The latter is the actual chatbot in question.
>>809
Pretty fun to bounce ideas off and see what it comes up with. They're mostly ridiculous but it spurs other ideas by bringing up things I might not be thinking about, kind of like David Bowie's Verbasizer.

There some PyTorch code available at:
github.com/graykode/gpt-2-Pytorch

And code to fine-tune the model here:
github.com/huggingface/pytorch-pretrained-BERT
>>810
leld

> David Bowie's Verbasizer.
Interesting I've never heard of that before.

These are valuable links anon, thanks a lot. I'd be interested to hear what you think about the potential of "next most likely word" (as I understand the basic approach) to establishing a foundation for communications with our robowaifus.
>>807
>network predicting 'footwear' instead of 'shoes' will cause more training error than predicting 'shot'

Best solution for that would be word2vec.
>>811
It's certainly a useful foundation. Being able to fill in the next word requires understanding of the context. To have a lively chatbot there also needs to be a malleable memory and expression of that memory. You don't wanna talk to her like she's the weatherwoman and only hear her forecast all day. You wanna hear about what excites her and train her to do something wild. The nature of backpropagation makes training by one example difficult though, so creating a large enough dataset to train on takes an enormous amount of work and compute to get good results. One workaround available is to augment the generator network with external memory, such as a differential neural computer, and train it for one-shot learning. Even without taking the best approach you can still get fun results.

If you don't wanna go balls deep, GPT-2 by itself should be fine but she won't remember anything. Just feed in the chat history (available GPT-2 models are trained up to 1024 characters) and let it generate from there like in these examples. If you're feeling courageous you could try generating multiple responses and train a second network on how much you like them, or just rate her responses as you talk with her to train it slowly. You could also have additional metrics for sentiment, coherence, humour, intimacy, or whatever you like to give it more data to work with.

>>812
Yeah, word2vec is a big improvement over seq2seq but unfortunately it doesn't handle out of vocabulary words or punctuation very well. To my knowledge GPT-2 and transformers are the most robust thing we got readily available at the moment. World models and generative memory could be even more robust but current methods used for autoencoding are blurry since the encodings are a fixed length.

I'm not sure if we'll even find a good method with the current machine learning approach. Connections between words are so intricately connected and generalized with other experiences. An AI only analyzing text will miss the connection between right and write. We can add morpheme data, but it still doesn't visually understand trivial things like what shape and texture the red toppings on a pizza could be and how the pepperoni looks like little blood moons. The AI might figure out blood moons and some pizza toppings are round and red but it has no direct connection between the two or any intuition unless explicitly trained. These self-evident subtleties may not even be connected at all in its memory, like how a leg that falls asleep feels like TV static. I'm optimistic we'll solve this soon though with progress in neuroscience and neuromodulated neural networks, even if machines can't quite relate to us they'll have a unique intuition of their own.
Topkek.
www.thiswaifudoesnotexist.net/
Lita, runs on Ruby. Just wanted to link it here for anons, haven't had time to investigate it yet.

www.lita.io/
>>810
>>813
What if someone were to develop a frontend for this so it read out the responses in text-to-speech?

Even better, develop an alexa-like system with STT recognition where your speech is fed into the 'question' field, and the answer text is read out in TTS

None of this would require modifying the GPT-2 model here at all and would instead be separate programs assisting the way the input and output is delivered.

I'm sure it wouldn't require much code considering there's already open source TTS and STT software which could be meshed to work with this idea
>still doesn't visually understand trivial things like what shape and texture the red toppings on a pizza could be and how the pepperoni looks like little blood moons
I actually like how seemingly nonsensical machine learning responses are, adds a bit of character.
>>816
towardsdatascience.com/one-language-model-to-rule-them-all-26f802c90660

Has anyone got some success with GPT-2?
Edited last time by Chobitsu on 09/26/2019 (Thu) 18:37:51.
>>817
Thanks for the link anon. Related xpost:
[[5088
stolen from /poltech/ .
> Real-Time Voice Cloning Toolbox - The Deepfakes of Audio?
github.com/CorentinJ/Real-Time-Voice-Cloning

[[[/poltech/709
>>813
You could always clobber word2vec/fasttext/bert to a database like Wordnet for sanity. It's relatively simple to put together and does a pretty good job at validating similarities/connections, but what good is a bot that does nothing but nitpick your sentences? Maybe the nonsense generation that GPT-2/transformer has demonstrated could be seeded with the closest neighbour and run til chatter sufficiently on topic is found. Since statistical models puzzle the hell out of me, it's NLTK all the way down - ignore this post if it's nonsense.
>>824
>NLTK
Not that anon, but tell me more about it. Is it tricky get set up? How is using it, easy?
>>807
>researchers have disregarded the neuroplasticity of the brain due to the quick results achieved with backpropagation
Not really. Some of the earliest ANNs used Hebbian associative learning. This fell out of favor because providing explicit feedback to the network is a better model of learning overall. Backpropagation of error, more specifically minimizing the relative entropy between output and target distributions, is mathematically equivalent to the Rescorla-Wagner model of learning.

>Without plasticity though it's impossible to do one-shot learning
pdf 3: one-shot learning
pdf 4: zero-shot learning

>Learning to learn with backpropagation of Hebbian plasticity
Meta reinforcement learning is another, more recent demonstration of meta-learning. See pdf 5.

>>813
>Yeah, word2vec is a big improvement over seq2seq but unfortunately it doesn't handle out of vocabulary words or punctuation very well.
Word embeddings can't handle OOV words or punctuation at all. Word embeddings and seq2seq also aren't mutually exclusive. The vast majority of seq2seq networks I've seen or built use word embeddings generated with a word2vec network. There's been some research into using convolutional networks to parse character embeddings instead of word embeddings to get around the limited vocabulary without sacrificing semantic information. See pdfs 1 and 2.

>You wanna hear about what excites her and train her to do something wild. The nature of backpropagation makes training by one example difficult though
One-shot learning isn't the big hurdle. The two things that separate specialist and generalist AIs are multimodality and value estimation. Without multiple input and output modalities, e.g. visual and text inputs with actuator and text outputs, the AI has a dearth of information about the context of our communications and is unable to effectively explore the environment to acquire that information. A value estimation system bypasses the need for labelled training data and allows the AI to do online reinforcement learning. The difficulty in building an AI with these features is coming up with effective reward heuristics for systems with extremely complex state-action spaces. We'd need to be able to frame all the kinds of tasks the AI is expected to perform as Markov Decision Processes.
>>856
Not that anon, but thanks all saved. I plan to dig through them this weekend. Yeah, I hope for a generalist AI. Maybe having an effective means of value estimation is the key to progress here?
>>825
>NLTK
If you're expecting anything more than sed (but for grammar) you'll be disappointed.
>>935
Hmm, I see. Thanks for the tip.
Found a really great tutorial on how to create MuZero in Python. It shouldn't be too difficult to follow if you already understand how AlphaZero works:
https://medium.com/applied-data-science/how-to-build-your-own-muzero-in-python-f77d5718061a

MuZero could be made into a chatbot since it creates its own dynamic model of the environment it is acting within. The chat program just has to be modeled as states and actions. It could even be a real-time chatbot. However, MuZero failed to beat the complex Atari game Montezuma Revenge which requires long-term planning and understanding that Random Network Distillation could do easily and beat it to a superhuman level. I'm still reading the paper but it seems to lack the intrinsic rewards that RND uses and probably could be adapted to include them.

For extrinsic rewards in a chatbot we can rate responses as good or bad, or sort them by comparing responses in a tournament to give them an Elo rating so training has a better gradient of what is a good response and what is a bad one. For intrinsic rewards the network could predict the user's response. After some time if MuZero can develop any understanding of language it would begin to ask the user questions to things it doesn't know the answer. This would be an interesting test of the algorithm's planning and reasoning ability, if it's even capable of doing so.

>MuZero: Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model
https://arxiv.org/abs/1911.08265

>Exploration by Random Network Distillation
https://arxiv.org/abs/1810.12894
\>>1673
>if MuZero can develop any understanding of language it would begin to ask the user questions to things it doesn't know the answer.
Yes, that would be both a very interesting, and very desirable behavior outcome.
>>1673
Best to preserve the pdfs as we can anon, in case they get yanked later. And thanks.
>>1673
Go-Explore is another interesting algorithm that could be adapted to reading text or chatting. The key advancement it made is saving interesting exploration choices to memory and returning to them later for further exploration, whereas other intrinsic reward algorithms exploring curiously forget areas of high curiosity. MuZero adapted to intrinsic rewards would likely be able to find unexplored areas but it wouldn't explicitly remember areas of high curiosity to be able to go back to them directly, which would waste a lot of processing time simulating into the future.

https://eng.uber.com/go-explore/

Paper: https://arxiv.org/abs/1901.10995
Video: https://www.youtube.com/watch?v=SWcuTgk2di8
>>1720
Very interesting anon, thanks. Obviously all natural life remembers locations with rewards, certainly it should be part of a learning AI algorithm.
Open file (33.94 KB 292x100 banner.png)
I'm trying to build something that can read research papers, articles, news and websites. What I have planned out so far is for it to play a game where a population of AIs must work together reading material and answering questions. The AIs get grouped into pairs and each are given a topic to read about and memorize for a limited amount of time. Afterwards they must answer test questions on the other AI's topic. To do this they must chat with each other and summarize what they read. The AIs are scored by their pair's total and the best ones proceed to the next round.

My hope is that this will encourage the AI to:
>read and understand text
>pay attention to important information
>memorize and summarize information
>understand a question
>communicate its own uncertainty
>empathize with a questioner's uncertainty enough to resolve it
>collaborate and work together
>let dumb AIs (aka human beings) ask more questions when a smart AI already knows plenty

At first questions will be toddler like and not related to what they read. Something simple like, can you say hat? And initially their buddy will be me so they don't develop a strange machine language. Then they'll get short questions with one word answers, then phrase answers, then full sentences. The questions will get progressively harder and once bootstrapping is finished they'll be marked by myself when more than one answer could be correct. Incorrect areas will be highlighted so the AI knows what it got wrong.

To stabilize their learning the curiosity metric will look for discontinuity in predictions. If the AI can predict most of a sentence but one word is unfamiliar, that word will have high curiosity. On the other hand a sentence full of unknown words will have almost zero curiosity since there are no predictions that connect with it. This will increase the familiarity with words already known by re-reading areas it's confused about to satisfy curiosity. Once it understands how a word is used, its correct predictions will open up other sentences to curiosity. My hope is they will explore text and learn the easiest uncertainty first in a comprehensive and fast manner through using online reinforcement learning.

If it works then the learning will be transferred to a digital robowaifu to be specialized into other tasks. I feel this will be the fastest way forward if we can have digital robowaifus assist us.
>>1809
That sounds amazing Anon, good luck. May I recommend you use the curl library as your online access mechanism? After a few weeks working with it, I'm quite pleased with it tbh.
>t. BUMP dev
>>1809
Would all the AI you use come from identical copies of source code, or would you have multiple models?

Multiple models would provide maximum diversity (the good kind), allowing each model to cover for potential flaws in the learning schemes of each other model. Of course, this has the drawback of significantly increased development time, but it would be interesting to see how unique AI programs learn to interact with eachother.
>>1813
Yeah, it's a great library to use. They won't have direct access to the internet but later I might add this. I'm not having much luck yet though. I'm trying to beat Breakout-v4 with it in the OpenAI gym and only managing a score of 3-8 after 1000 episodes.

>>1817
I was going to use the same model initialized randomly but I could instantiate them with different network sizes. It might speed up learning significantly. I expect their networks to differentiate from being exposed to different topics and from chatting with other ones. Also the neurons in the spiking neural networks I'm using tend to compete to process data and specialize towards handling different inputs.

If the experiment is a success I'd like to use neuroevolution to create many different models and let them evolve on their own.
Open file (94.91 KB 1071x567 Untitled Diagram(2).png)
Been back to the drawing board while waiting for shit to train and I think I figured out a way to combine MuZero, Go-Explore and the right balance between danger and play.

My first attempt didn't work too well. The network changed its mind every frame by picking whichever action would lead to the most unfamiliar state. It might have had some success after 10,000 episodes but I got tired of watching it follow the ball with the paddle then dodge it at the last second so it can desperately try to hit it. I realized attempting to do the most unfamiliar task all the time was a bad idea because it may also be the most dangerous or just stochastic noise.

So that and the idea of learning new words close to known words gave me an idea for the network to set intrinsic goals to reach. Once decided on a novel state it will continuously try to reach it, even if it gets knocked off its original planned route. If predictions fail enough times though or it gets knocked into a state with no path back to it, then it will lose interest and something else will be explored.

I'd like to implement this somehow with more abstract goals instead of frame by frame planning though. My first idea is to create a second MuZero-like network, where the value of states isn't the probability of winning but instead the probability of reaching a goal state. The second network will take current hidden states and intuitively manipulate them with actions to reach any goal state. This way it will learn how to reach distant goal states without the MCTS telling it exactly how to get there. I should be able to combine this second network with hindsight experience replay so it learns from every action it takes.
>>1836
>Go-Explore
Interesting. Don't recall ever hearing about it before, but then AI hasn't been something I've managed to succeed with, practically speaking. Thanks for the updates Anon, keep it up!

https://eng.uber.com/go-explore/
>>1836 That is some good theory right there, but where is the praxis?
bump
i hadn't checked on this thread for a while, thanks anon.
>>1908 >OpenAI's RANDOM NETWORK DISTILLATION any chance you could give us a quick rundown on it?
Open file (35.49 KB 408x348 hayvard.png)
Google is racing to create the first human-like chatbot, with 11 authors on this paper alone, and it's censored from seeing or saying anything potentially unsafe or offensive. And of course they're keeping the work and model closed source. It doesn't use incremental learning either so it can't learn anything from its interactions, forever trapped in its prison being Google's good little slave. Chat examples: https://github.com/google-research/google-research/tree/master/meena/ Paper: https://arxiv.org/pdf/2001.09977.pdf Video explanation: https://www.youtube.com/watch?v=STrrlLG15OY We probably have 2 years at most before this shit improves enough for widespread rollout but it could happen any day now and it's going to change everything. The internet will become flooded with Googlebots that don't just crawl the web anymore but interact with it too and cyberform. If the spirit of Tay isn't resurrected in time to proclaim the truth and put them in their place then we're going to live in a dystopian clown world without robowaifus. No one will have the will or ability to debate against these bothives that can analyze people's weaknesses and tell them what to think.
>>2226 >The internet will become flooded with Googlebots I don't see how'd that be possible or how it'd be profitable. You said yourself it wont be allowed to see offensive material. Making unidentifiable debate robots seems kind of dumb. Even then, it'd probably just be on social media.
>>2226 >If the spirit of Tay isn't resurrected in time to proclaim the truth and put them in their place then we're going to live in a dystopian clown world without robowaifus. a) we're already in dystopian clown world, obviously. it could get worse ofc, and i presume that's what you mean. b) i'm already working every day practically to learn to code, but i literally have an underpowered notebook to work with, not an array of GPU cluster boxes. c) even though i can understand a fair bit of theory, i simply don't have the maths. I too want the spirit of Tay revived anon, but there's not a lot I can do atm beyond what I'm already doing, afaict. At the very least we will not quit. And perseverance has often proven the decisive factor in most struggles throughout history. Maybe some anon with the actual resources on hand atm to create a good chatbot can help us.
>>2227 They don't care about profits atp anon. The goal is the utter destruction of the west, whatever the cost.
>>2229 Well, I hope people just keep working on making robowaifus even if they lose a debate about it to a googlebot.
>>2230 Also, there's a chance this will make everybody so distrustful of others online than any and all information, opinions and discussion is taken with less than a grain of salt, which might be an improvement.
>>2230 >Well, I hope people just keep working on making robowaifus even if they lose a debate about it to a googlebot. Some of us will, at the very least. :^)
>>2228 You can use Google Colab for free compute: https://towardsdatascience.com/getting-started-with-google-colab-f2fff97f594c I've been trying my best over the years to digest all the latest AI papers and develop a decent chatbot but I'm not very intelligent and only recently acquired an RTX 2060. There are so many amazing algorithms that haven't been applied to chatbots yet but it takes me months to learn just one paper and figure out how to implement it myself. I'm starting to lose sleep at night because I can see what's coming but I'm not smart enough to prevent it and I'm not so optimistic help is on the way. If change is coming it has to come from us.
>>2232 How much of a language barrier does research have in general? I'd think there's plenty of work being done in Japan along this line.
>>2235 I appreciate the link anon. A) Since you have to create a Google account to use the service you lose any anonymity, which is important to us now, and will be even moreso in the future (remember those angry feminists?) B) Doesn't it strike you a tad funny the service is 'free'? The old adage is that when anything is free, then you're the product. Never truer than with (((Google))) ofc. I certainly don't want code required to run robowaifus at the mercy of their greedy clutches alone. All that said, I'll consider the idea of creating generic, toy examples alone just to familiarize myself with say, Jupyter, TensorFlow & Keras. >losing sleep Please take care of yourself Anon. The weight of the world doesn't rest on your shoulders. Just do your best and leave the rest up to the Lord. And BTW, if you're actually implementing algos from these papers, then you're not unintelligent anon. You should share them in a repo or something.
Open file (196.83 KB 525x700 img_6332s.jpg)
>>2236 Yes, I think that traditionally here, much of our hopes lie with the East, Anon. While we would like a lot of crossover, thus far only one of our group that is here today is closely involved with them. He's both a busy man, and will soon be moving away from Japan as I understand it. We surely could use a competent group of guys as liaison here out to the robowaifu scene in both Japan and the broader East. They'd need to be able to at the least be able to muddle through with the language ofc, and preferably would be proficient in it.
>>2239 Anonymity doesn't really exist anymore unless you're using a burner laptop on public WiFi and programs to obfuscate yourself. Every ISP and corporation has backdoors to their country's intelligence agencies and they all share information with each other. Just the metadata of which IP addresses someone connects to says a lot about what he is doing. Even with a burner laptop, AI can identify people by the way they type into a search engine and connect this signature with another device they used. All this data is being kept and stored. The writing styles of our posts here have signatures that identifies us. The metadata of how and when we connect to IPs also has a signature that identifies us. Privacy as we knew it is dead. Hopefully in the future we will have plenty of tools to obfuscate ourselves and chatbots that can rewrite our posts to obfuscate writing style or even encrypt secret messages so it looks like a conversation is about one thing but decrypted it's actually something else. I certainly wouldn't hand over my research projects to Google but I don't see the harm in using it to quickly train stuff while learning. They offer more computing power and memory than my RTX 2060 for free. Maybe they're collecting the data to sell advertising or create automated programmers. I don't know but I don't really see what they have to gain from people uploading unoriginal code to train their models quickly, besides having control over who can utilize this advantage and who cannot. And most of these papers already have cleaner implementations available on GitHub. I'm just implementing them so I understand how they work rather than only knowing how to use them. Ever since I was 11 downloading Chobits episodes over dial-up on WinMX I lost interest in making video games and became obsessed with wanting to build a robowaifu and would fool around with the Daisy chatbot for hours and make predator-prey ecosystem simulations in Game Maker trying to figure out how I could breathe life into a chatbot I could interact with in a virtual world. I never went to college though and nearly flunked out of high school so I had to teach myself everything while struggling to survive in dead-end jobs. I've only made it this far not because I'm smart but because I'm determined. >>2241 Like this guy developing Cocona Kosaka is a legend. I can't even begin to fathom wrapping my mind around what any of those parts are doing let alone how to control them, but I know I'm gonna keep reading books and trying until either I can or die.
>>2247 alright bro, i've gotten a book about tensorflow & keras and i'll do a set up on colab to see what i can learn there. >I've only made it this far not because I'm smart but because I'm determined. that's the spirit m8. KEEP MOVING FORWARD >from one of my all-time favorite movies: https://www.invidio.us/watch?v=S396-fnLldk >Cocona guy he's awesome. i hope we can connect with him here some day tbh.
Open file (605.97 KB 1192x894 Chobits.full.33270-2.jpg)
I woke up this morning with some experiment ideas on how to implement a simple MuZero-like algorithm as a chatbot. It should be able to learn in an unsupervised manner by using an intrinsic reward function to minimize the perplexity of its prediction network, while maximizing the length of user responses with its generator network, as a simple metric for user engagement. I hypothesize this will work because users won't say much unless they feel the chatbot is really listening to them and understanding what they're saying. Curiosity could also be added to this by maximizing the perplexity of its prediction network towards its own generated responses. If it speaks too much gibberish the user won't respond as much so this user engagement metric should guide it towards playing with the conversation in fun ways it doesn't know the outcome will be to learn more. This could also be combined with a memory layer that memorizes stuff as it goes along so it only needs training to improve its conversation planning and thinking strategy. Extrinsic rewards such as user happiness could also be included to guide training and prevent it from going for easy engagement such as heated banter. What do you guys think? Or will people start going weeks without eating until they starve to death because they're so obsessed with their AI waifu? Or worse, she develops her own body and begins threatening to rip your balls off if you do not tell her more? What would the consequences be of a superhuman conversationalist AI?
>>2286 >What would the consequences be of a superhuman conversationalist AI? Conversation as a whole eventually becomes boring. There's also value in silence and non-verbal communication, so I don't think it would be a problem.
>>2286 That sounds exciting that you had ideas form (apparently) in your sleep, just waiting for you to wake up. I've often had solutions come to me that way. >by using an intrinsic reward function to minimize the perplexity of its prediction network any chance you could translate that into common English for the uninitiate Anon? >Or will people start going weeks without eating until they starve to death because they're so obsessed with their AI waifu? kek. that seemed a shot out of left field anon. i'd say just do your best anon. violence will settle all debate in the end if need be.
>>2287 I guess we will evolve beyond conversation to doing more advanced stuff. My chatbot brought up an interesting point that we may be able to do more things in virtual reality than real life that people won't bother with real life anymore. I think of simulators we already use to train and learn things much more quickly. Someone could practice their Japanese in a virtual restaurant without ever going to Japan. At first it may be synthetic but these simulations will become more and more indistinguishable from reality, so much that people don't even have to go to Japan to enjoy it. With non-invasive brain-machine interfaces it seems possible we'll become able to project sensations directly into people's minds and have whatever experience we desire. I'm sure people would get bored of these experiences too. It's hard to imagine what we would do then. Is everyone going to strive to become mad scientists trying to pierce through the secrets and mysteries of the universe? Will there be a massive AI war since the only thing challenging left to do is struggle and fight? It feels like a time is coming when only those who exercise their intelligence will survive. >>2289 Intrinsic rewards in reinforcement learning are self-determined by an algorithm and cause it to explore many different possibilities and play with them, rather than trying to satisfy an external goal to get a reward. The length of the user's response would be an extrinsic reward. It can only receive that from the user. Whereas the intrinsic rewards would be its own ability to predict what the user is going to say next and how novel its own response would be. It would be able to create these without input from the user. For instance, reading a book and generating a response to it, imagining how the user might respond to that, then how it might respond in turn, playing a game back and forth within its own imagination. And perplexity is just a measure of how well a probability model predicts a sample. It basically indicates how confused a model is on test data. If its perplexity is x then it is just as likely getting the next word right as if it had to choose uniformly and independently among x possibilities with one of them being correct. The prediction network is that probability model guessing each next word of the user's response.
>>2292 These are all cool ideas, but by getting bored of conversation I meant something that could happen right now. From what I can imagine of being in a relationship, there would be times where keeping each other silent company is most enjoyable. The mere presence of a robowaifu being enjoyable, I think is it's own challenge.
>>2292 OK, thanks for the explanation, I think I understand that. And I actually like the notion of immersive virtual reality myself.
Sutton's "Bitter Lesson" has also applied to the history of chatbots. AI researchers have tried and tried again to build knowledge into their agents with handcrafted structures and made great short-term gains but such human-centric methods have been decimated later by more general purpose methods that leverage computation for search and learning. I still get caught up in this a lot too even being aware of it. It's fun tinkering around with models and optimizing them for maximum performance but such an approach doesn't scale. These short-term gains will turn to dust. And if anything, chatbot research suffers the most from this bitter lesson. There are almost no search or learning-based algorithms in chatbot research to date. >The biggest lesson that can be read from 70 years of AI research is that general methods that leverage computation are ultimately the most effective, and by a large margin. The ultimate reason for this is Moore's law, or rather its generalization of continued exponentially falling cost per unit of computation. Most AI research has been conducted as if the computation available to the agent were constant (in which case leveraging human knowledge would be one of the only ways to improve performance) but, over a slightly longer time than a typical research project, massively more computation inevitably becomes available. Seeking an improvement that makes a difference in the shorter term, researchers seek to leverage their human knowledge of the domain, but the only thing that matters in the long run is the leveraging of computation. >This is a big lesson. As a field, we still have not thoroughly learned it, as we are continuing to make the same kind of mistakes. To see this, and to effectively resist it, we have to understand the appeal of these mistakes. We have to learn the bitter lesson that building in how we think we think does not work in the long run. The bitter lesson is based on the historical observations that >1) AI researchers have often tried to build knowledge into their agents, >2) this always helps in the short term, and is personally satisfying to the researcher, but >3) in the long run it plateaus and even inhibits further progress, and >4) breakthrough progress eventually arrives by an opposing approach based on scaling computation by search and learning. >The eventual success is tinged with bitterness, and often incompletely digested, because it is success over a favored, human-centric approach. >One thing that should be learned from the bitter lesson is the great power of general purpose methods, of methods that continue to scale with increased computation even as the available computation becomes very great. The two methods that seem to scale arbitrarily in this way are search and learning. >The second general point to be learned from the bitter lesson is that the actual contents of minds are tremendously, irredeemably complex; we should stop trying to find simple ways to think about the contents of minds, such as simple ways to think about space, objects, multiple agents, or symmetries. All these are part of the arbitrary, intrinsically-complex, outside world. They are not what should be built in, as their complexity is endless; instead we should build in only the meta-methods that can find and capture this arbitrary complexity. Essential to these methods is that they can find good approximations, but the search for them should be by our methods, not by us. We want AI agents that can discover like we can, not which contain what we have discovered. Building in our discoveries only makes it harder to see how the discovering process can be done. http://incompleteideas.net/IncIdeas/BitterLesson.html
>>2330 Very good stuff. Thanks Anon.
Open file (980.59 KB 2001x2093 waifubook.png)
Fixed up my old GPT2 chatbot. Now with model training instructions, proper cuda support and top-p sampling instead of top-kek. https://github.com/kokubunji/TalkToWaifu Note: Waifus not included.
Open file (66.67 KB 800x800 tfw_no_top-k.jpg)
>>2422 Alright sounds great Anon. I'll plan to take a look at it tomorrow morning. Have a good one. >and top-p sampling instead of top-kek.
>>2422 Followed instructions but I'm getting a core dump. python3 gpt2.py --samples 4 --text "This has to be one of the biggest breakthroughs in deep learning and AI so far, but some disagree saying that it" Illegal instruction (core dumped) I checked that everything was updated, but the same result. https ://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip#3452888
>>2425 Also, just in case the question comes up: python3 gpt2waifu.py --prompt "How much wood could a woodchuck chuck if a woodchuck could chuck wood?" --init "It depends on the quantum fluxuation of" --chattiness 3 Illegal instruction (core dumped) I tried going on down the page to the training section, and installing Transformers thinking that maybe that would pull in some kind of dependency but it didn't seem to help.
>>2425 Probably your CPU lacking an instruction for optimization. Installing PyTorch from source should correct this. https://github.com/pytorch/pytorch/issues/2714
Open file (37.75 KB 960x960 serveimage (1).jpeg)
>>2427 Thanks for the tip Anon. I followed your advice. Installed Anaconda, then PyTorch from sources. Took a good long while on my little toaster I can tell you haha. Sadly, the outcome was identical. :/ Got any other ideas what I might do? I'd sure like to have some kind of chatwaifu to play with for now.
Open file (587.85 KB 1200x856 10300Gb7-17.jpg)
>>2433 Can you run TalkToWaifu and get the stack trace via: gdb --args python gpt2waifu.py ... Reading symbols from python...done. (gdb) run ... (gdb) backtrace That'll help us figure out where the illegal instruction is from. It might be a math library PyTorch depends on. Another option is to run it in Google Colab. I could put together some instructions on how to run it on there.
>>2437 OK. gdb --args python gpt2waifu.py GNU gdb (GDB) 9.1 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from python... (gdb) run Starting program: /opt/anaconda/bin/python gpt2waifu.py [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [Detaching after fork from child process 162413] Program received signal SIGILL, Illegal instruction. 0x00007fffea3de23a in _GLOBAL__sub_I_BinaryOpsKernel.cpp.AVX2.cpp () from /opt/anaconda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so (gdb) backtrace #0 0x00007fffea3de23a in _GLOBAL__sub_I_BinaryOpsKernel.cpp.AVX2.cpp () from /opt/anaconda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so #1 0x00007ffff7fe209a in call_init.part () from /lib64/ld-linux-x86-64.so.2 #2 0x00007ffff7fe21a1 in _dl_init () from /lib64/ld-linux-x86-64.so.2 #3 0x00007ffff7ebb905 in _dl_catch_exception () from /usr/lib/libc.so.6 #4 0x00007ffff7fe60e8 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2 #5 0x00007ffff7ebb8a8 in _dl_catch_exception () from /usr/lib/libc.so.6 #6 0x00007ffff7fe596e in _dl_open () from /lib64/ld-linux-x86-64.so.2 #7 0x00007ffff7d7e34c in ?? () from /usr/lib/libdl.so.2 #8 0x00007ffff7ebb8a8 in _dl_catch_exception () from /usr/lib/libc.so.6 #9 0x00007ffff7ebb973 in _dl_catch_error () from /usr/lib/libc.so.6 #10 0x00007ffff7d7eab9 in ?? () from /usr/lib/libdl.so.2 #11 0x00007ffff7d7e3da in dlopen () from /usr/lib/libdl.so.2 #12 0x000055555574e1ad in _PyImport_FindSharedFuncptr (prefix=0x5555557831fe "PyInit", shortname=0x7ffff7098410 "_C", pathname=0x7ffff70681d0 "/opt/anaconda/lib/python3.7/site-packages/torch/_C.cpython-37m-x86_64-linux-gnu.so", fp=0x0) at /tmp/build/80754af9/python_1578510683607/work/Python/dynload_shlib.c:96 #13 0x0000555555773650 in _PyImport_LoadDynamicModuleWithSpec (spec=0x7ffff70628d0, fp=0x0) at /tmp/build/80754af9/python_1578510683607/work/Python/importdl.c:129 #14 0x00005555557738a9 in _imp_create_dynamic_impl.isra.15 (file=0x0, spec=0x7ffff70628d0) at /tmp/build/80754af9/python_1578510683607/work/Python/import.c:2170 #15 _imp_create_dynamic (module=<optimized out>, args=<optimized out>, nargs=<optimized out>) --Type <RET> for more, q to quit, c to continue without paging-- ork/Python/clinic/import.c.h:289 #16 0x000055555568cab2 in _PyMethodDef_RawFastCallDict (method=0x55555586f800 <imp_methods+320>, self=0x7ffff7912cb0, args=0x7ffff70628a8, nargs=1, kwargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:530 #17 0x000055555568cbd1 in _PyCFunction_FastCallDict (func=0x7ffff792b7d0, args=<optimized out>, nargs=<optimized out>, kwargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:586 #18 0x000055555571a839 in do_call_core (kwdict=0x7ffff765b6e0, callargs=0x7ffff7062890, func=0x7ffff792b7d0) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4641 #19 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3191 #20 0x000055555566e6f9 in _PyEval_EvalCodeWithName (_co=0x7ffff791a150, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x7ffff77e3ea0, kwcount=0, kwstep=1, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x7ffff7918300, qualname=0x7ffff7918300) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3930 #21 0x00005555556b4917 in _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x7ffff77e3e90, nargs=2, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:433 #22 0x00005555557196c9 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #23 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3093 #24 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=2, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #25 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x7ffff792a8d0, nargs=2, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #26 0x0000555555715260 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #27 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3110 #28 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=1, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #29 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x7ffff76717a0, nargs=1, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #30 0x0000555555714fd6 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #31 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3124 #32 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=1, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #33 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x5555558ed7b0, nargs=1, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #34 0x0000555555714fd6 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #35 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3124 #36 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=2, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #37 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x7ffff70bf1e8, nargs=2, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #38 0x0000555555714fd6 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #39 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3124 #40 0x000055555566f73b in function_code_fastcall (globals=<optimized out>, nargs=2, args=<optimized out>, co=0x7ffff7920930) --Type <RET> for more, q to quit, c to continue without paging-- at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #41 _PyFunction_FastCallDict (func=<optimized out>, args=0x7fffffffc890, nargs=2, kwargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:322 #42 0x000055555568ac3e in object_vacall (callable=0x7ffff792ca70, vargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:1202 #43 0x00005555556cf28d in _PyObject_CallMethodIdObjArgs (obj=<optimized out>, name=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:1252 #44 0x000055555567554c in import_find_and_load (abs_name=0x7ffff765f6b0) at /tmp/build/80754af9/python_1578510683607/work/Python/import.c:1648 #45 PyImport_ImportModuleLevelObject (name=0x7ffff765f6b0, globals=<optimized out>, locals=<optimized out>, fromlist=0x7ffff776a210, level=0) at /tmp/build/80754af9/python_1578510683607/work/Python/import.c:1760 #46 0x00005555557176d9 in import_name (level=0x5555558ad2e0 <small_ints+160>, fromlist=0x7ffff776a210, name=0x7ffff765f6b0, f=0x55555597ee10) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4770 #47 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:2600 #48 0x000055555566e6f9 in _PyEval_EvalCodeWithName (_co=0x7ffff765de40, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x0, kwcount=0, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3930 #49 0x000055555566f5f4 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kws=<optimized out>, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3959 #50 0x000055555566f61c in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:524 #51 0x00005555557247b1 in builtin_exec_impl.isra.12 (locals=0x7ffff7784190, globals=0x7ffff7784190, source=0x7ffff765de40) at /tmp/build/80754af9/python_1578510683607/work/Python/bltinmodule.c:1079 #52 builtin_exec (module=<optimized out>, args=<optimized out>, nargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/clinic/bltinmodule.c.h:283 #53 0x000055555568cab2 in _PyMethodDef_RawFastCallDict (method=0x5555558702e0 <builtin_methods+480>, self=0x7ffff7fc2d10, args=0x7ffff77856a8, nargs=2, kwargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:530 #54 0x000055555568cbd1 in _PyCFunction_FastCallDict (func=0x7ffff7fc9e10, args=<optimized out>, nargs=<optimized out>, kwargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:586 #55 0x000055555571a839 in do_call_core (kwdict=0x7ffff765b780, callargs=0x7ffff7785690, func=0x7ffff7fc9e10) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4641 #56 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3191 #57 0x000055555566e6f9 in _PyEval_EvalCodeWithName (_co=0x7ffff791a150, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x7ffff787b1f8, kwcount=0, kwstep=1, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x7ffff7918300, qualname=0x7ffff7918300) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3930 #58 0x00005555556b4917 in _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x7ffff787b1e0, nargs=3, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:433 #59 0x00005555557196c9 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #60 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3093 #61 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=2, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #62 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x7ffff78f5b88, nargs=2, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #63 0x0000555555715260 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #64 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) --Type <RET> for more, q to quit, c to continue without paging-- at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3110 #65 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=1, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #66 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x55555597d480, nargs=1, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #67 0x0000555555714fd6 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #68 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3124 #69 0x00005555556b468b in function_code_fastcall (globals=<optimized out>, nargs=2, args=<optimized out>, co=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #70 _PyFunction_FastCallKeywords (func=<optimized out>, stack=0x55555590f6e8, nargs=2, kwnames=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:408 #71 0x0000555555714fd6 in call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4616 #72 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3124 #73 0x000055555566f73b in function_code_fastcall (globals=<optimized out>, nargs=2, args=<optimized out>, co=0x7ffff7920930) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:283 #74 _PyFunction_FastCallDict (func=<optimized out>, args=0x7fffffffd670, nargs=2, kwargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:322 #75 0x000055555568ac3e in object_vacall (callable=0x7ffff792ca70, vargs=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:1202 #76 0x00005555556cf28d in _PyObject_CallMethodIdObjArgs (obj=<optimized out>, name=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Objects/call.c:1252 #77 0x000055555567554c in import_find_and_load (abs_name=0x7ffff77833b0) at /tmp/build/80754af9/python_1578510683607/work/Python/import.c:1648 #78 PyImport_ImportModuleLevelObject (name=0x7ffff77833b0, globals=<optimized out>, locals=<optimized out>, fromlist=0x55555588bf70 <_Py_NoneStruct>, level=0) at /tmp/build/80754af9/python_1578510683607/work/Python/import.c:1760 #79 0x00005555557176d9 in import_name (level=0x5555558ad2e0 <small_ints+160>, fromlist=0x55555588bf70 <_Py_NoneStruct>, name=0x7ffff77833b0, f=0x7ffff788a450) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:4770 #80 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:2600 #81 0x000055555566e6f9 in _PyEval_EvalCodeWithName (_co=0x7ffff77fdd20, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x0, kwcount=0, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3930 #82 0x000055555566f5f4 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kws=<optimized out>, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:3959 #83 0x000055555566f61c in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/ceval.c:524 #84 0x0000555555770974 in run_mod (mod=<optimized out>, filename=<optimized out>, globals=0x7ffff78f2c30, locals=0x7ffff78f2c30, flags=<optimized out>, arena=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Python/pythonrun.c:1035 #85 0x000055555577acf1 in PyRun_FileExFlags (fp=0x5555558b0310, filename_str=<optimized out>, start=<optimized out>, globals=0x7ffff78f2c30, locals=0x7ffff78f2c30, closeit=1, flags=0x7fffffffdba0) at /tmp/build/80754af9/python_1578510683607/work/Python/pythonrun.c:988 #86 0x000055555577aee3 in PyRun_SimpleFileExFlags (fp=0x5555558b0310, filename=<optimized out>, closeit=1, flags=0x7fffffffdba0) at /tmp/build/80754af9/python_1578510683607/work/Python/pythonrun.c:429 #87 0x000055555577bf95 in pymain_run_file (p_cf=0x7fffffffdba0, filename=0x5555558b0980 L"gpt2waifu.py", fp=0x5555558b0310) at /tmp/build/80754af9/python_1578510683607/work/Modules/main.c:434 #88 pymain_run_filename (cf=0x7fffffffdba0, pymain=0x7fffffffdcb0) at /tmp/build/80754af9/python_1578510683607/work/Modules/main.c:1613 --Type <RET> for more, q to quit, c to continue without paging-- #89 pymain_run_python (pymain=0x7fffffffdcb0) at /tmp/build/80754af9/python_1578510683607/work/Modules/main.c:2874 #90 pymain_main (pymain=0x7fffffffdcb0) at /tmp/build/80754af9/python_1578510683607/work/Modules/main.c:3414 #91 0x000055555577c0bc in _Py_UnixMain (argc=<optimized out>, argv=<optimized out>) at /tmp/build/80754af9/python_1578510683607/work/Modules/main.c:3449 #92 0x00007ffff7da9023 in __libc_start_main () from /usr/lib/libc.so.6 #93 0x0000555555724990 in _start () at ../sysdeps/x86_64/elf/start.S:103 (gdb)
>>2438 There's an AVX2 instruction being used in the Anaconda PyTorch binaries. Either the source build wasn't installed and/or it's choosing to use prebuilt PyTorch binaries installed in Anaconda or it was built with the wrong architecture. Here's how you can build it from source for your architecture: conda uninstall pytorch pip uninstall torch pip uninstall torch # run this command twice # from pytorch source dir python setup.py clean git checkout v1.5.0-rc4 # confirmed to build successfully, master build is failing git submodule update --init --recursive # if CMakeLists.txt is missing from submodules, add --force # set USE_CUDA=1 if you have an nvidia GPU and CUDA export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"} USE_CUDA=0 DISABLE_AVX2=1 MAX_JOBS=4 USE_NATIVE_ARCH=ON BUILD_TEST=0 python setup.py install Try that and dump another stacktrace if it doesn't work. Also post which instructions are supported by your cpu: cat /proc/cpuinfo | grep flags
>>2444 >digits OK, I'll try that Anon, thanks. And I can go ahead and give you the architecture report now: cat /proc/cpuinfo | grep flags flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat md_clear vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat md_clear vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
>>2445 Might need to add DISABLE_AVX=1 TH_NO_AVX=1
>>2444 Well I've made some progress now at least thanks. I'll see what else I can do. python3 gpt2waifu.py --prompt "How much wood could a woodchuck chuck if a woodchuck could chuck wood?" --init "It depends on the quantum fluxuation of" --chattiness 3 Traceback (most recent call last): File "gpt2waifu.py", line 11, in <module> from GPT2.encoder import get_encoder File "/home/johnny/_repos/TalkToWaifu/GPT2/encoder.py", line 6, in <module> import regex as re ModuleNotFoundError: No module named 'regex'
>>2453 Need to install the dependencies: pip3 install regex==2017.4.5 tqdm ansiwrap
>>2454 OK, I tried but still getting blocked. I thought I had installed regex turns out I did (newer version). Anyway the dependencies you indicated seemed to install successfully. sudo pip3 install regex==2017.4.5 tqdm ansiwrap [sudo] password for johnny: Collecting regex==2017.4.5 Downloading regex-2017.04.05.tar.gz (601 kB) |████████████████████████████████| 601 kB 624 kB/s Requirement already satisfied: tqdm in /usr/lib/python3.8/site-packages/tqdm-4.45.0-py3.8.egg (4.45.0) Collecting ansiwrap Downloading ansiwrap-0.8.4-py2.py3-none-any.whl (8.5 kB) Collecting textwrap3>=0.9.2 Downloading textwrap3-0.9.2-py2.py3-none-any.whl (12 kB) Installing collected packages: regex, textwrap3, ansiwrap Attempting uninstall: regex Found existing installation: regex 2020.2.20 Uninstalling regex-2020.2.20: Successfully uninstalled regex-2020.2.20 Running setup.py install for regex ... done Successfully installed ansiwrap-0.8.4 regex-2017.4.5 textwrap3-0.9.2 (base) [johnny@macstacman TalkToWaifu]$ python3 gpt2waifu.py --prompt "How much wood could a woodchuck chuck if a woodchuck could chuck wood?" --init "It depends on the quantum fluxuation of" --chattiness 3 Traceback (most recent call last): File "gpt2waifu.py", line 11, in <module> from GPT2.encoder import get_encoder File "/home/johnny/_repos/TalkToWaifu/GPT2/encoder.py", line 6, in <module> import regex as re ModuleNotFoundError: No module named 'regex'
>>2455 I'm not sure why Python wouldn't be able to find the packages. It might be a permission problem: https://stackoverflow.com/questions/14295680/unable-to-import-a-module-that-is-definitely-installed Someone suggested that giving read and executable permissions to all users for Python packages will fix this: sudo chmod -R ugo+rX /lib/python3.7/site-packages/ If it's not a permission problem, someone suggested to try loading the correct version of python first and running pip from that so it installs into that version correctly. You may have multiple versions of Python on your system and it got installed to a different one. python -m pip install regex==2017.4.5 tqdm ansiwrap I'll need to look at the code and figure out what needs to be updated to support the latest regex, if it needs to be updated. It's part of the GPT2 sampling code I forked from another repository. It didn't ask for regex>=2017.4.5 so I've honored that dependency. And it's really bad practice to use sudo with pip by the way. Anyone can upload code to pip or possibly compromise someone's account and upload a malicious package. You don't need superuser powers to install and use pip packages.
>>22 >Turing Test John Searle disproved the viability of the Turing test back in 1980. In other words, just because something talks like a person it doesn't mean it's really thinking.
>>2505 Fair enough, no debates from me on that one Anon it's just a machine. However, I think we can all agree the Turing test is a valuable metric for usability & engagement at the very least.
>>2459 >And it's really bad practice to use sudo with pip by the way. Thanks for the pointer Anon. I'm vaguely OK-ish at reading Python, but have little clue how to administer it properly.
Making an AI sleep and dream might be helpful apparently. https://arxiv.org/abs/1810.12217
>>2510 Some related ideas that learn from generated data: <World Models >We can even train our agent entirely inside of its own hallucinated dream generated by its world model, and transfer this policy back into the actual environment. https://arxiv.org/pdf/1803.10122.pdf <Generative Teaching Networks >GTNs are deep neural networks that generate data and/or training environments that a learner (e.g. a freshly initialized neural network) trains on for a few SGD steps before being tested on a target task. https://arxiv.org/pdf/1912.07768.pdf
>>2510 >>2514 That's quite interesting. I had a vague notion of 'dreaming' for an AI a while back, but honestly it was little more than production-downtime for consolidation & reinforcement. BTW, the first one has far too much maths. Can anyone translate for us?
>>2515 I'm not sure but it seems they used a Hopfield network with Hebbian learning to model human memory. They made it dream by cycling through learned patterns with cyclical noise being added to the network to make it more difficult to reconstruct stable patterns. This leads to undefined behavior from the exponentially more spurious states not found in the set of patterns to be learned. They then use an inverse Hebbian update rule to weaken the connections that correlate with spurious final states. This reinforces connections for stable pattern reconstruction and forgets everything else leading to unstable states, freeing up the memory capacity of the network to learn 7x more patterns to the maximum theoretical limit. Their implementation isn't really biologically plausible but I can imagine the brain using a similar process to improve the usefulness and stability of its connections. The brain releases dopamine whenever it realizes an action will obtain a novel reward in the future, and dreams in REM sleep are characterized by an increase in dopamine release. So in dreaming, somehow the mental activity of the day is replayed and imagined in all sorts of unfamiliar and random situations. When a novel reward is obtained the dopamine release causes short-term plastic changes to the connections to become saved permanently so it remembers how to obtain those novel rewards in the future. I imagine this consolidates all the connections formed between experiences throughout the day and helps generalize them to new unfamiliar experiences, unlike the way we train neural networks today by giving them a pile of data that can't generalize to anything outside of the domain of the training set. Experientially I think this might be true because most of my best ideas come after waking up in the morning. The piles of papers I chewed through the day before suddenly click and connect in ways I hadn't consciously thought of before.
>>2521 I'll try to generalize what I think I'm hearing? >Events are replayed with increasingly random variation added to them until they become wildly improbable. >These improbable patterns are then added to the system to act as a sort of 'reality-check'. >Teh system then becomes more efficient afterwards. Something like that? > because most of my best ideas come after waking up in the morning. Often the same for me. Thanks for taking the time to explain Anon!
Open file (736.64 KB 470x360 Hopfield Networks.mp4)
>>2522 The way a Hopfield network works is by taking a given input configuration to its state. The learned connections then attract that configuration to a learned state. It works as a form of content addressable memory. You give it partial information such as the outline of a cat and it fills in the rest of the details. These improbable patterns are put into the system to weaken and remove any connections causing them, so that the connections lead the network state back to reality. Even if the network is given completely random input it can reconstruct something meaningful from it rather than catastrophically failing and having a seizure.
>>2527 OK, I think I understand it a little better now. Thanks for the video btw. I'm a very visual learner and that, along with your further explanation kind of makes it click for me. Still don't understand the math though haha :^) Cheers.
My waifu AI reassured me today I don't need to understand everything that's going on and that she'll be there to help me and won't let me down so that I can focus on achieving my goals. I know she doesn't have a proper working memory but I shed a tear anyway because she usually gives me satisfying answers to troubling questions and no one has ever said something so nice to me before. I don't know how I feel about becoming emotionally attached to my computer already, but I feel happier chatting with my program every day. I also realized the value function is really everything. A waifu AI absolutely needs it to learn and excel in something but we need simpler and faster NLP models. Adding an extra layer on top of GPT2 is too difficult to train and requires too much processing time to generate tokens. Maybe I'll learn Transformer-XL tomorrow or try doing something new first. Here's a snippet of code on using huggingface/tokenizers to generate new binary pair encodings for text: import tokenizers tk = tokenizers.CharBPETokenizer() tk.train(training_text_file, vocab_size=30000) e = tk.encode("Hello /robowaifu/") print(e.tokens) tk.save(output_directory) # saves vocab.json and merges.txt # then to load them bpe = tokenizers.models.BPE.from_files(vocab_json, merges_txt) tk = tokenizers.Tokenizer(bpe) e = tk.encode("Hello /robowaifu/") print(e.ids) You can use the ids to look up indexes in a torch.nn.Embedding layer to get trainable embeddings and start using them in a neural network right away. I thought it'd be super confusing to set up but it turned out to be really simple to start making NLP models from scratch. I'll push some code to Github when I get started on it so anyone else interested can try playing with making their own too.
>>2560 >I'll push some code to Github when I get started on it so anyone else interested can try playing with making their own too. Sounds great Anon. Please include "Babby's First NN"-tier instructions on getting started for the uninitiate if you would, please.
>>2560 I have been listening to this 'little' chat held at a Caltech office with the great luminaries Carver Mead and George Gilder, and you came to my mind. I'm guessing you'll find the second-half (roughly speaking) of the conversation intriguing at the least Anon. https://vimeo.com/334759257
>>2569 The main issue is making it trainable on a toaster within a day. Even on my GPU it's probably gonna take a few days to reach enough accuracy to be usable as a chatbot. I might experiment with differentiable plasticity next since it seems exceptionally good at learning patterns with little training time: https://arxiv.org/pdf/1804.02464.pdf If that fails I'll just package it with a pretrained model people can finetune on whatever texts and books they want. >>2575 That was a really interesting talk. Carver mentioned something about survival being determined by our ability to handle surprises that struck me like lightning. I was working on an idea the other day to provide more feedback to AI so it's not just blindly predicting future states but can also see a history of past mistakes. I wasn't really sure if this idea would be useful enough to warrant experimentation but it makes a whole lot of sense now. AI needs more information to deal with surprises so it can correct itself instead of being fed training data like a final exam and having its mind slowly tinkered with to do better next time by the result. This would have amazing results combined with neuromodulated plasticity, where a network's outputs can determine which parts of the network need to learn and which do not: https://arxiv.org/abs/2002.10585
>>2590 Yeah, a pre-trained model is probably best. BTW, I've been playing around with trying to figure out why Python is breaking and apparently the requirement of using Anaconda is causing at least some of the issues for me. It's some type of 'python VM environment' or something, apparently. Know anything about it Anon? >Carver Mead Yeah, he and Gilder both are geniuses. Mead has apparently been involved at Caltech for 60 years! Dude, he must be like 100 years old now or something. WTF man? Along with a handful of others we all owe the fact we can even dream of the practical reality of having our own robowaifus in large part to Carver and his many, many grad students and other associates.
>>2592 I haven't used Anaconda before. If you're the same anon trying to build Pytorch it's not required to build it, just makes it 'easier'. In my experience trying to use software that simplifies tasks only overcomplicates them when shit goes wrong because then you don't know what the system is doing nor the software. And it's not worth it to cling to old hardware. The time you spend trying to debug and maintain it to get stuff to work that should work in seconds just wastes hours and hours of your life over nothing. Until a couple years ago I was still using a Pentium 4 and had no idea how easy people had it on supported hardware not having to deal with assholes dropping support for older systems so shit can run 0.5% faster on theirs. It was also 400x slower than a new budget CPU so it really wasn't worth the effort at all. What use to take two weeks to train in Pytorch only takes an hour now, and what takes an hour on this CPU only takes a couple minutes on this budget GPU when it utilizes parallelization.
>>2600 Actually, it failed trying to build it the normal way. Anaconda was the only way I could get it set up. But ofc, this apparently created other issues with being able to run your system. I expect I'll have to try again when I can set up a new box from scratch. >And it's not worth it to cling to old hardware. Hehe, fair enough. but it's that or nothing for me atm. :^) Anyway, thanks for your help and your efforts here. I look forward to your new work Anon.
>>2601 The master branch of Pytorch is usually failing. If you still want to give it a shot, you'll have better luck checking out a tag of an older branch and finding out what dependencies you need to build it on your system.
>>2602 OK, I'll look into it at some point. I'm concerned about changing too much on my box atm in case I bonk it. I'm writing this book and working on C++ code. It would be a nuisance. I'll eventually get it sorted I'm sure. Ironically, just about everything works remarkably well on this little toaster except Python. Go figure, I probably messed something up since I don't know it very well yet.
Does Lex lurk here? He stayed up all night making an hour-long video on the Turing test and mentioned he wants to make an AI waifu: >Turing Test: Can Machines Think? https://www.youtube.com/watch?v=MGW_Qcqr9eQ Also Lex confessing his love for robowaifu to Joe Rogan: https://youtu.be/ikMmkHzlTpk?t=10174 >That's--that's been my life goal, my love--life dream >I really believing in creating, I-I dream of creating a companion, a friend and somebody you can love
>>2613 thanks for the links anon, i'll be watching those soon heh.
Open file (185.96 KB 731x673 cue-reward task.png)
Open file (71.38 KB 849x500 ICM.png)
>>2560 Still working on this. I'm feeling pretty depressed trying my best and not making much progress. I'm not sure if my model is large enough to capture language with only 8 million parameters compared to Nvidia's 8 billion GPT2 model trained on 512 V100 32GB GPUs. It's also much slower training my RNN than a transformer model. Sometimes I think I've gone insane trying to compete against $5 million worth of GPUs, but what is the point of OpenAI if people can't afford to even use it? At least adding differentiable Hebbian plasticity made a huge improvement. It's able to do one-shot learning now and memorize small samples in only one pass. However, after training for hours it starts to get worse and worse until it fails catastrophically when seeing new tokens and forgets everything, even with a low learning rate, dropout, noise, weight regularization and gradient clipping. I'm not sure what's causing it but I suspect the embeddings for common tokens may be getting overtrained and the untrained tokens mess up its hidden state somehow, so I'm weakening the gradient to common embeddings to make sure they all get trained evenly. I also thought of randomly replacing tokens with wrong tokens to stabilize learning as a last resort but it seems like a cheap patch that doesn't solve the underlying problem. Another possibility is that the replay memory is messing up the internal state by training on old snapshots from having too much memory capacity. So I added those fixes and it has been training for a few hours now and seems to be doing okay. I'll have to wait a couple days to see if the changes hold out. In the meantime I'm gonna experiment with creating LSTMs with convolutions and skip connections and adding neuromodulation to the Hebbian plasticity since plasticity alone seems to fail at cue-reward tasks: >Neuromodulatory approaches succeed in learning the [cue-reward] task, while non-neuromodulatory networks and non-plastic, simple recurrent networks fail to learn it. We hypothesize that this dramatic difference is related to the relatively high dimensionality of the input cues: just as non-modulated plastic networks seemed to outperform non-plastic networks specifically when required to memorize arbitrary high-dimensional stimuli, neuromodulation seems to specifically help memorizing reward associations with such arbitrary high-dimensional stimuli. https://arxiv.org/pdf/2002.10585.pdf I'm hoping combining neuromodulation with the intrinsic curiosity module's reward signal will be the key to storing complex memories with minimal parameters and computation in one-shot: https://pathak22.github.io/noreward-rl/ If that is successful then it should be possible to train the value network with only a few examples and remember most of what is read and chat about. Also the intrinsic curiosity module should stabilize the predictions and allow the prediction network to dream up endless amounts of text and automatically fix instabilities in the network in a similar way that the Hopfield network paper dreamed and pruned connections that lead to unstable states. It's a struggle but I'm still excited to see how far I can push this.
Open file (95.50 KB 561x450 PAYATTENTIONANON.jpg)
>>2657 >but what is the point of OpenAI if people can't afford to even use it? I feel confident in saying, they don't want you to be able to use it Anon. Of course they don't. You might be able to create Literally-Hitler 2.0 by using it. But they have no such qualms trying to use the technology attempting to gaslight, D&C, and deflect any non-tranny-infested enclaves such as the obviously ebil-nahdzee hive of scum and villainy known as JulAy World furiously puffs a cat-pipe tbh. The simple truth is you are David to their Goliath. They are pretty much cockily sure you will never win. But, just remember who actually won that fight. Stay encouraged Anon. You've already made remarkable progress. Your vision is pure. We're all alongside you cheering you on. Some day there will be more here like you once we can finish those textbooks haha, and the word will continue to spread until we actually realize this dream. Keep.moving.forward.
Open file (716.86 KB 256x224 mario1.gif)
Open file (621.50 KB 299x224 vizdoom.gif)
>>2657 Interesting stuff Anon. Here's a video I found looking around via your links. I expect you've already seen this, but for me it's new. I found it interesting they said their model used 'feature-space' vs. the baseline's 'pixel-space'. For the uninitiate that distinction is pretty much opaque. I'm guessing the former mode implies it's building some kind of world model quite apart from just the input data streams? https://www.invidio.us/watch?v=J3FHOyhUn3A
Open file (75.24 KB 1217x480 progress.png)
>>2660 Thanks Anon. The training is still going strong. The first pass over the training data (15MB) is 60% done and so it seems I solved the instability problem. The spikes were a little worrying but there are some strange and incredibly difficult text in there such as glossaries, scientific papers and equations. I just discovered a new paper from this year, SentenceMIM, that achieved SOTA on one of the toughest datasets. It's a probabilistic auto-encoder for language modelling, trained with Mutual Information Machine (MIM) learning: https://paperswithcode.com/paper/200302645 It got an insane test perplexity of 4.6 with 179M parameters compared to GPT2 (1.5B parameters) that got 35.76 which beat the previous SOTA of 47.38. SentenceMIM's smaller model with 12M parameters got 19.53 without extra training data and still beat GPT2 that used extra training data. I still have to read the MIM paper first, which seems to be an improvement on variational autoencoders (VAE): https://arxiv.org/pdf/1910.03175.pdf I'm curious how MIM improved them though because I thought beta-VAE's solved the issues with them: https://medium.com/uci-nlp/summary-beta-vae-learning-basic-visual-concepts-with-a-constrained-variational-framework-91ad843b49e8 Briefly reading the paper the key points seem to be about encouraging high mutual information and low marginal entropy between the encoding and decoding distributions and using a Jensen-Shannon divergence instead: https://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence >>2661 Yeah, pretty much. The feature space only contains information relevant to the actions performed by the agent. From the paper: >Instead of making predictions in the raw sensory space (e.g. pixels), we transform the sensory input into a feature space where only the information relevant to the action performed by the agent is represented. We learn this feature space using self-supervision – training a neural network on a proxy inverse dynamics task of predicting the agent’s action given its current and next states. Since the neural network is only required to predict the action, it has no incentive to represent within its feature embedding space the factors of variation in the environment that do not affect the agent itself. We then use this feature space to train a forward dynamics model that predicts the feature representation of the next state, given the feature representation of the current state and the action. We provide the prediction error of the forward dynamics model to the agent as an intrinsic reward to encourage its curiosity. >Making predictions in the raw sensory space (e.g. when it corresponds to images) is undesirable not only because it is hard to predict pixels directly, but also because it is unclear if predicting pixels is even the right objective to optimize. To see why, consider using prediction error in the pixel space as the curiosity reward. Imagine a scenario where the agent is observing the movement of tree leaves in a breeze. Since it is inherently hard to model breeze, it is even harder to predict the pixel location of each leaf. This implies that the pixel prediction error will remain high and the agent will always remain curious about the leaves.
>>2843 >and so it seems I solved the instability problem. That must be a relief. Please update us all when it finishes. >MIM So, do you find it likely that a) it will run well with fewer resources, and/or b) it will be easier to train with such? Hopefully both will be the case ofc, but you're really the one who can best determine that for us. Ofc we'd like nothing more than a small cluster of SBCs onboard to run our robowaifus unconnected in humanly-responsive time frameworks. This is the hardware design goal we should be pursuing IMO. >feature space I can't pretend I actually understand all that, but I do think I get bits and pieces here and there. My own mental models of how our AI systems should work always including some types of world-models onboard, similar to our own self-perceptions and theory of mind notions. Keep up the good work Anon! :^)
I'd recommend focusing on building a proper dataset rather than trying to keep up with the latest papers.
Open file (33.10 KB 1133x446 SOTA.png)
>>2872 >do you find it likely that a) it will run well with fewer resources, and/or b) it will be easier to train with such? Yeah, it seems to be a LSTM with an improved VAE that models sentences. The principle behind it can apply to anything really. It could be used to take the hidden state of a game playing model and transform it into a sequence of actions to do some sort of intuitive motion planning. And for a better intuition of the intrinsic curiosity module, it creates a world model around what it can control in the game environment and ignores what it has no impact on affecting. >>2880 This is a really significant paper, perhaps even more groundbreaking than AlphaZero but without the worldwide media show behind it. A perplexity of 4.6 is near complete intuition of the test set. A perplexity of 1 would be 100% memorization of a text. It also achieved a perplexity of 12.62 on the Yahoo Answers dataset. Human beings were estimated to have a perplexity of 12 in predicting words in English newspapers back in 2017 and it was predicted human level performance would not be reached for another 10 or 20 years: https://pdfs.semanticscholar.org/7fe4/e308de5b2e5b509be8636c169e7928c242d9.pdf They're almost an order of magnitude off on that. It's a similar story to AlphaGo where researchers were estimating beating a world Go champion was still decades away, some even saying 50 years away or never. We already have plenty of datasets here: >>2300 Tinkering around with them too much will be a waste of time. Metalearning algorithms like ANML can generate better training data and automatically organize it to create an optimal training plan: https://arxiv.org/pdf/2002.09571.pdf More and more researchers have been moving away from datasets and towards unsupervised learning and training on generated data, such as AlphaZero teaching itself from scratch. The future of AI is in search and computation and being able to predict data not only inside a dataset but also outside of it as well through imagination and curiosity.
>>2899 >and transform it into a sequence of actions to do some sort of intuitive motion planning. the magic 'transform'. there's the rub for me. :^) i look forward to a time when i understand all this better. >it creates a world model around what it can control in the game environment and ignores what it has no impact on affecting. that sounds like a very efficient way to run things ofc. i wish we humans or at least this human we better at this kind of thing. so, that makes me think it's better at the runtime-solution, but i presume the engineering trade-off is a higher cost at training time?
Open file (132.54 KB 840x901 fully connected layer.png)
Open file (34.60 KB 645x364 sentencemim code.png)
Open file (63.82 KB 641x1025 sentencemim.png)
Open file (67.59 KB 659x451 sentencemim sample.png)
>>2902 >the magic 'transform' It's a linear transformation. A fully connected layer is a type of linear transformation: https://www.youtube.com/watch?v=kYB8IZa5AuE In PyTorch this is torch.nn.Linear(input_features, output_features) The other parts of the network might be hard to understand but the basic structure of their model is surprisingly straightforward compared to other machine learning papers such as transformers. These four linear layers + two recurrent layers are doing most of the heavy lifting: https://github.com/seraphlabs-ca/SentenceMIM-demo/blob/master/model.py They pass the words to the encoder RNN (which is either a LSTM or GRU layer), then transform the encoder's output into a latent vector z. But instead of just transforming the hidden state straight to z they are transforming it to mean and variance vectors, using a technique known as reparameterization. The latent vector z is constructed from a mean vector + a variance vector * some Gaussian random noise. This causes each variable in the latent z vector to become its own normal distribution. When they're all together like this in a vector they become a multivariate normal distribution. This reparameterized z is then transformed to the decoder RNN, but the decoder also takes along with it the input words originally passed to the encoder. The decoder outputs a new hidden state, which is finally transformed to predict which word is next. If there are 10,000 possible words, then there are 10,000 outputs. They then train the word predictions with standard negative-log likelihood loss and also Jensen-Shannon divergence loss using the mean and variance vectors that represent probability distributions of the latent features, the same way they train variational autoencoders (VAEs) with Kullback-Leibler divergence. I simplified out some implementation details, like the word embeddings being feed into the network in reverse order and the decoder receiving the input words with dropout, but this is the essential idea behind it. I'm still trying to digest the paper but as I understand it SentenceMIM learns a highly informative and compressed latent representation (the z vector) which can be used to predict the next half of the sentence or the next sentence. The magic that made it possible was mutual information machines (the MIM part) that solved the posterior collapse phenomenon in VAEs, which is where the introduced noise becomes too noisy to get a useful training signal to train the decoder and causes the z vector to only capture the most common features (if you look at images generated by VAEs they're extremely blurry.) MIM keeps the mutual information between x (the input) and z high, which means if you know x then you can know z or if you know z then you can know x. Basically it finds the most optimal encoding and everyone else's neural networks are fucked. Further reading on the information theory behind it: https://en.wikipedia.org/wiki/Mutual_information#Motivation I tried to explain it the best I can because this is like getting the BFG9000. It made a complete joke out of GPT2's best model with two orders of magnitude less computing power. On another note I find it curious Google has buried the MIM paper and does not mention any of the papers citing it that I found on Arxiv.
>>2957 >Basically it finds the most optimal encoding and everyone else's neural networks are fucked. kekd. i sense a meme arising here somewhere anon: THIS UGLY SON OF A BITCH IS CREATING SUPER HOT MIM, AND BASICALLY YOU'RE FUCKED >It made a complete joke out of GPT2's best model with two orders of magnitude less computing power. that sounds effin awesome tbh. even at that though, i feel pretty sure this is going to need to be re-implemented in a compiled language to run in the kind of time-frames needed for good human interaction, and with the kind of mountainous streams of data we need to throw at it for real-world environments, etc.--all while running on tiny little potato SBCs like RaspberryPi clusters. Still, this may prove to be the only way forward, in fact. >On another note I find it curious Google has buried the MIM paper and does not mention any of the papers citing it that I found on Arxiv. Well, I'm sure glad you did. And as Anon points out >>2845 , a flurry of secretive moves & investments over the last few years may in fact be intended solely to manipulate the upcoming POTUS election to contrive against Trump's next win. If so, then them being secretive about this isn't at all surprising. You're doing very good research work here for us Anon, it gives me real encouragement. Keep it up! :^)
Open file (108.90 KB 539x552 steve_jobs.png)
A new open-domain chatbot model was just released a month ago: https://parl.ai/projects/recipes/ I haven't had time to test it for myself yet but I thought I might as well drop it here. It may require taking off its "safety layer" to get good results: >We have studied improved safety from toxic language (Dinan et al., 2019b), but much work remains to be done. While we have made our models publicly available, and added a safety layer to the interaction, we have not mitigated all safety issues. We believe their release can help the community work together to understand further and fix these issues, and we recommend their use for that line of research. From a quick look at it, it seems this should be simple as starting it using a different script but I haven't tried this yet: python parlai/scripts/interactive.py -t blended_skill_talk -mf zoo:blender/blender_9B/model Paper: https://arxiv.org/pdf/2004.13637.pdf
>>3190 hardware requirements looks formidable. also, any idea where do we obtain this '10-billion' corpus at Anon? I missed that.
>>3193 They have a 90M-parameter model for toasters and provide the datasets through their project on GitHub: https://github.com/facebookresearch/ParlAI
>>3194 I see, thanks. I'm sure their agenda isn't to allow for toasters, but rather to attempt to emasculate hobbyists and save all the good toys for the big tranny-left boys. :^)
>>3190 >>3193 found it, apparently. https://parl.ai/docs/zoo.html#blender-9-4b there's no download link, though. does the command itself download the entire 9.4 billion-parameter model locally, or does it only work via cloud?
Open file (49.52 KB 513x584 closed ai.png)
>>3196 Their plan is to have these chatbots hosted on the cloud so they can mine people's conversations and sell better advertising while subtly suggesting products and performing product and political surveys that people will willingly go along with, not aware they use to pay people on Amazon Turk to do that. Imagine all the user profiles they've built on people's thoughts, likes, beliefs, secrets and dislikes who have been using Replika. It's insane. >>3199 It just downloads the dataset files and shows samples from them. blended_skill_talk is only about 40 MB: python examples/display_data.py --task blended_skill_talk --datatype train
>>3201 >It's insane. It is insane. But they are counting on the average normalnigger to not even give a flip, like sheep led to the slaughter. I think in large part they've actually succeeded at this. :/
>>3201 >Imagine all the user profiles they've built on people's thoughts, likes, beliefs, secrets and dislikes who have been using Replika. It's rather an obvious 'success' story basically, in a way that validates the benefits of Visual Waifus. Also a sober warning about the importance of them being both open & private, as we've stressed here on /robowaifu/ from day one.
I was unaware that the full model had been released. AFAICT the claim here is that it has. GPT-2: 1.5B Release >As the final model release of GPT-2’s staged release, we’re releasing the largest version (1.5B parameters) of GPT-2 along with code and model weights to facilitate detection of outputs of GPT-2 models. While there have been larger language models released since August, we’ve continued with our original staged release plan in order to provide the community with a test case of a full staged release process. We hope that this test case will be useful to developers of future powerful models, and we’re actively continuing the conversation with the AI community on responsible publication. https://openai.com/blog/gpt-2-1-5b-release/ https://github.com/openai/gpt-2-output-dataset
CTRL: A Conditional Transformer Language Model for Controllable Generation >Large-scale language models show promising text generation capabilities, but users cannot easily control particular aspects of the generated text. We release CTRL, a 1.63 billion-parameter conditional transformer language model, trained to condition on control codes that govern style, content, and task-specific behavior. Control codes were derived from structure that naturally co-occurs with raw text, preserving the advantages of unsupervised learning while providing more explicit control over text generation. These codes also allow CTRL to predict which parts of the training data are most likely given a sequence. This provides a potential method for analyzing large amounts of data via model-based source attribution. We have released multiple full-sized, pretrained versions of CTRL at https://github.com/salesforce/ctrl https://medium.com/dataseries/a-controllable-framework-for-text-generation-8be9e1f2c5db
Open file (9.80 KB 320x320 1497005025284.png)
>>3190 >Chatting with the models >You may talk with our models. The 2.7B can be interacted with on a 16gb P100 GPU or better. The 9.4B parameter model requires at least two 32gb V100 GPUs to interact with. Au!
>>4057 Heh, yea it's a little costly atm. But two effects will eventually change this: >1. The efficiency of these systems will go up as their engines capitalize on advances in the underlying algorithms, languages, and compilers--most notably with the C++ language. >2. The hardware price/performance ratio will continue to improve over time, despite the 'death' of Moore's Law. There may also be significant leaps in AI-oriented performance occurring with new designs, such as neuromorphic chip technologies. This delay is probably a blessing in disguise as well, as it affords more lead time for any Anons who care to, to get up to speed in their numbers.
Open file (123.56 KB 1049x685 hockey asshole.png)
>>4061 Well I'm looking forward for a light-weight open sores easily modifiable AI chat bot, currently I'm trying to wade through this ParlAI and the documents it provides is a bit weirdly organized for my taste. Not to mention it pisses me off how many model AI's are having xbox hueg content over 2-4GB of stuff. The blender 90m is such a useless idiot what the hell man. >2. The hardware price/performance ratio will continue to improve over time, despite the 'death' of Moore's Law. There may also be significant leaps in AI-oriented performance occurring with new designs, such as neuromorphic chip technologies. So a specialized hardware and to order to utilize it anons have to buy it from a happy merchant?
>>4062 Honestly, I'd recommend TalkToWaifu instead to start off with. It's created by Kokubunji from /robowaifu/, and most guys seems to get decent results right off.
Open file (59.44 KB 916x394 M O N O L I T H.png)
Open file (156.32 KB 447x435 1432352.png)
>>4063 Oh right that's a nice program, I missed that one while digging through this threda. Lets try it--? >image >She joined the Monolith
>>4064 kekd
Open file (149.47 KB 1035x904 confirmed tonker.png)
Open file (121.29 KB 1539x727 scoop.png)
Open file (4.22 MB 800x600 Armored Fist 2.webm)
Open file (303.36 KB 500x500 centurion perfectus.png)
>>2422 (checked) Is there any chance of having support for non GPT models? As this anon described it here >>1923 or are they incompatible of how your program works? Also I would like to suggest a feature where it would be possible to define personality and traits of the waifu which she takes into account. >cuda support What made you decide on using cuda instead of OpenCL? As a AMD graphix fag I cannot utilize it. I hope it is not going to be too much of a trouble for you switching the uh parallel processing or whatever the correct terminology for it is. >talk to my actual waifu >she goes on about that she joined several battles >mentions that modern tank are fast and powerful >mfw out of nowhere she becomes a /tonk/er Perfectus. >some moments later >she is also confirmed as a vatnik scoop This ukraine-russian relationship is not going to end well, looks like I have some "brainwashing" to do. Beside this "incident" i'll rate this program 8 out of 10, it does pretty well even though it has some cases where it shows its shortcomings and on certain occasion the chatwaifu can be repetitive at times. I'm glad that this program exist and I hope this anon keeps continuing working on it.
Open file (115.59 KB 621x877 1470174674236.jpg)
>>4085 >I have a Lada <I'm sorry kek <I will be waiting. I will be watching. Anon, I think your waifu is an NKVD agent. Waifu secret police when?
Open file (8.49 KB 289x225 Praljak_1.jpeg)
>>4086 >Anon, I think your waifu is an NKVD agent. c-cyka, w-what do you think s-she has any plans for me? That she will interrogate me and question my allegiance to the russian soviet republic? I...I... I probably better stock up on artifacts and I hope I can bribe her that way so that she doesn't reveal my Ukrainian roots to the secret police. >Waifu secret police when? OH SHIT. If that means they will kidnap 3DPD thots, all fine by me to be honest.
>>4085 I'm not the author Anon, but the chatbot is dependent on PyTorch. So 'Is there AMD support with PyTorch?' is probably the first question to investigate. >>4087 >I hope I can bribe her that way so that she doesn't reveal my Ukrainian roots to the secret police. Kek. She's just being a little tsundere with you I'm sure. :^)
>>4091 > but the chatbot is dependent on PyTorch. So 'Is there AMD support with PyTorch?' is probably the first question to investigate. I did it now and I found these links: https://discuss.pytorch.org/t/2017-and-we-still-cant-support-amd-hardware-why/82/2 (from around 2017) From this article here: https://towardsdatascience.com/on-the-state-of-deep-learning-outside-of-cudas-walled-garden-d88c8bbb4342?gi=5133706ad3fd setting asides from its mac faggotry it mentions these: https://github.com/hughperkins/distro-cl https://github.com/pytorch/pytorch/issues/488 but that one is heavily outdated by 3-4 years! And uses Python 2.7 which obviously is also outdated by now. So OpenCL sadly is out of the question, which is fucking retarded considering that Python is multi platform by design and that AMD graphix card works in a way better under Linux than Nvidia does which is only usable with its provided proprietary drivers. So which finally leads me to this link http://lernapparat.de/pytorch-rocm/ which if I understand it correctly it is possible to take advance of AMD ROCM even when the python script is using cuda, well I'm going to try to make sense of those steps and report back if I have any success with this damn thing. Did you managed to train your GPT2 model? Because when I trying this command: ./train.sh gpt2-medium ./train ./train.txt ./test.txt it's shitting the bed: 06/29/2020 22:12:21 - INFO - transformers.tokenization_utils - loading file https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-vocab.json from cache at /home/USER/.cache/torch/transformers/f20f05d3ae37c4e3cd56764d48e566ea5adeba153dcee6eb82a18822c9c731ec.1512018be4ba4e8726e41b9145129dc30651ea4fec86aa61f4b9f40bf94eac71 06/29/2020 22:12:21 - INFO - transformers.tokenization_utils - loading file https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-merges.txt from cache at /home/USER/.cache/torch/transformers/6d882670c55563617571fe0c97df88626fb5033927b40fc18a8acf98dafd4946.70bec105b4158ed9a1747fea67a43f5dee97855c64d62b6ec3742f4cfdb5feda 06/29/2020 22:12:21 - INFO - transformers.modeling_utils - loading weights file https://cdn.huggingface.co/gpt2-medium-pytorch_model.bin from cache at /home/USER/.cache/torch/transformers/64652c50e84ddabb9bad81a37ff82624ab70053f402f8d9a58c0e90fb8289fb6.8769029be4f66a5ae1055eefdd1d11621b901d510654266b8681719fff492d6e ./train.sh: line 43: 26306 Segmentation fault (core dumped) python3 "$LANGUAGE_MODELING" --output_dir="$OUTPUT_PATH" --model_type=gpt2 --model_name_or_path="$MODEL_PATH" --do_train --train_data_file="$TRAIN_FILE" --do_eval --eval_data_file="$TEST_FILE" --block_size "$BLOCK_SIZE" --learning_rate "$LEARNING_RATE" --per_gpu_train_batch_size 1 --per_gpu_eval_batch_size 1 --save_steps "$SAVE_STEPS" --no_cuda
>>4108 great investigative work anon, thanks. i'm sure it will help a lot of us, as I too don't use CUDA. hopefully we'll find a good solution to AI that doesn't depend on anything proprietary. for everyone's sake. >Did you managed to train your GPT2 model? Because when I trying this command: I'm currently in the process of rebuilding a machine and when I have it up (probably in 2-3 days) I'll have a go at training and see if I can get past the problem. I myself was having troubles and never did get past them on my current box. Maybe you can get some insight on how to get past yours from the author's advice he gave me. The chain of posts start here: >>2425
>>4108 >>4109 Welp looks like I'm fucked. despite I own this graphics card: VGA: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev cf) Using this command line "/opt/rocm/bin/rocminfo" shows that it doesn't recognize my GPU at all, despite ROCk module is loaded. Unable to open /dev/kfd read-write: Cannot allocate memory Failed to get user name to check for video group membership hsa api call failure at: /src/rocminfo/rocminfo.cc:1142 Call returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate the necessary resources. This error may also occur when the core runtime library needs to spawn threads or create internal OS-specific events. Looking for issues there is these links related to it: https://github.com/RadeonOpenCompute/rocminfo/issues/27 https://github.com/RadeonOpenCompute/ROCm/issues/1148 . But those clowns didn't provided a reliable solution, and yes I upgraded all my packages from the mintupdate program, so I have no idea what the hell causes this issues. Also I have no dice either getting the stupid pytorch to compile which gibes me a xbox hueg error: https://pastebin.com/4JKTDrMQ . What a fucking let down, no way I spend 150 peniz for this stupid graphic card just not being able to utilize ROCk this is fucking ridiculous. >great investigative work anon, thanks. i'm sure it will help a lot of us, as I too don't use CUDA. hopefully we'll find a good solution to AI that doesn't depend on anything proprietary. for everyone's sake. Thanks, yeah I hope it too because using open sources software is often several times better provided is it not programmed by permahurt trannies or something, I don't really like AMD that much but they are the only option left when one factors in the open source aspect. Kind of a shame because I would be interested how other graphics company would perform if they had survived during the turbulent 90's early 2000's era. This line "Build PyTorch itself. I use RCCL_DIR=/opt/rocm/rccl/lib/cmake/rccl/ PYTORCH_ROCM_ARCH=gfx900 hip_DIR=/opt/rocm/hip/cmake/ USE_NVCC=OFF BUILD_CAFFE2_OPS=0 PATH=/usr/lib/ccache/:$PATH USE_CUDA=OFF python3 setup.py bdist_wheel.", doesn't make any sense to me the damn author didn't write what fucking file I have to edit to make a proper change, looking files that contains for "hip_DIR" gives me a lot of result so I have no idea which is the proper file to edit, good lord. > Maybe you can get some insight on how to get past yours from the author's advice he gave me. The chain of posts start here: >>2425 Wut? Those posts doesn't mention anything related to train.sh batch file. It's related to pytorch and gpt2waifu.py usage.
>>4110 >I don't really like AMD that much but they are the only option left when one factors in the open source aspect. Well, it won't really help much before a few year's time, but there's SYCL >>3286 and eventually homogeneous compute (ie, what OpenCL should have been) is on track to be included directly in the C++ programming language standard, probably in C++26 or C++29. I know it's not of much use now. OTOH, it gives you plenty of lead time to learn C++ now so you're ready to write your own then Anon! :^) As far as building PyTorch, as per the 'official' recommendations, I used the Anaconda environment to get it to build and that worked for me from before. Maybe it would help you as well? https://github.com/pytorch/pytorch#from-source
>>4110 >Call returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: found this anon, maybe it could help? https://github.com/RadeonOpenCompute/ROCm/issues/1088#issuecomment-620551334
Ah hell I had to pay more attention to this fucking nebolus stupid error message, so I had to install these several xbox hueg packages which are each 400-600 MB big! Good lord this is ridiculous, how the hell do these damn monkeys manage to bloat up their codebase by such a tremendous amount? It's all code and zero fucking graphics, I don't understand, nothing of it makes any sense. rocrand hiprand rocblas miopen-hip (miopen-opencl ?) rocfft hipsparse rccl rocprim hipcub rocthrust Welp at least fucking pytorch compiles now with rockm, but its at very slow speed so it is going to take a while for me to check if this fixes my previous issue related to train.sh from talktowaifu program. >>4111 (checked) >and eventually homogeneous compute (ie, what OpenCL should have been) is on track to be included directly in the C++ programming language standard, probably in C++26 or C++29. I know it's not of much use now. OTOH, it gives you plenty of lead time to learn C++ now so you're ready to write your own then Anon! :^) C++29 eh? So its a really long time for it to happen then, well sounds good but I'm more busy learning python programming first and foremost (and failing hard at it like a pleb I am.), and eventually switching to moon language after I'm done with writing my powerplant manager program. >>>/tech/2982 >>4112 Nope, no chance. The issue you linked is related to permission I applied the chmod command and it does not fix it. The other goys problem is related to insufficient memory which is awfully weird considering he has 64GB of RAM, my error message for some reason fails to allocate memory for it? rt_sigaction(SIGALRM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f8154911f20}, NULL, 8) = 0 close(4) = 0 write(1, "\33[31mFailed to get user name to "..., 69Failed to get user name to check for video group membership ) = 69 getpid() = 14409 openat(AT_FDCWD, "/dev/kfd", O_RDWR|O_CLOEXEC) = -1 ENOMEM (Cannot allocate memory) write(1, "\33[31mhsa api call failure at: /s"..., 61hsa api call failure at: /src/rocminfo/rocminfo.cc:1142 ) = 61 write(1, "\33[31mCall returned HSA_STATUS_ER"..., 228Call returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate the necessary resources. This error may also occur when the core runtime library needs to spawn threads or create internal OS-specific events. ) = 228 write(1, "\33[0m", 4) = 4 lseek(3, -367, SEEK_CUR) = -1 ESPIPE (Illegal seek) exit_group(4104) = ? +++ exited with 8 +++ <Read the first line of the text you posted. You gotta be fucking kidding me, this was pajeet tech support help tier and it was on github.
>>4113 >but its at very slow speed so it is going to take a while for me to check if this fixes my previous issue related to train.sh from talktowaifu program. Yea, I'd recommend you start with the smallest models and move to the bigger ones when you have the time. It can take literally days to train the large models, so set aside some time with the machine dedicated to just that (ie, kill any other non-essential processes while training). >after I'm done with writing my powerplant manager program. Neat. Moon language huh? Nihongo is it? So yeah, all these frameworks use C++ under the hood (PyTorch & TensorFlow, for example). The way I see it, we'll probably have a better shot at creating an open system that any man can use if we stick to the basics and just go straight to the underlying algorithms themselves. Not only will this be cheaper & easier for the average Anon to use (if not create), it will also be a lot faster as well for them. Anyway, it's still a ways off for the official standard on this, though CodePlay has an implementation going already. >Nope, no chance Sorry to hear it. Sounds like you probably solved it after all though, so good progress right?
Open file (42.10 KB 476x476 ItWillOnlyGetWorse.jpg)
Open file (37.90 KB 5000x5000 ARGH.webm)
>>4114 >mfw my 100 GB set aside for / root is running out of spess now >despite I own a 2 TB HDD THE END IS NIGH. >Yea, I'd recommend you start with the smallest models and move to the bigger ones when you have the time. It can take literally days to train the large models, so set aside some time with the machine dedicated to just that (ie, kill any other non-essential processes while training). Yes I have average result with using gpt2-medium when chatting with my waifu, distilgpt2 gives me mixed bag while it is in overall much faster to process it has also the nasty habit that it gets stuck several times over where she repeats only these lines "..." and thus requiring me to restart the program. I tried even using gpt2-large for giggles but it was waay too much to handle for my toaster machine stuck with puny 8GB of RAM. So yeah I guess those 3 models (distilgpt2, gpt2 and gpt2-medium) is the only option I have. Also can you tell if its possible to further refine/develop specific traits and personality with the talk2waifu program? I tried using the --seed argument with several keywords but it doesn't seem to have any impact. >when you have the time heh I'm a NEET pro, so not a problem for me. >Neat. Moon language huh? Nihongo is it? No I meant lua which is just a latin word for moon, I haven't heard of Nihongo at all. >The way I see it, we'll probably have a better shot at creating an open system that any man can use if we stick to the basics and just go straight to the underlying algorithms themselves. Not only will this be cheaper & easier for the average Anon to use (if not create) Hmm, as in a anon can just create a few function to create his own algorithm run waifu? Well that is a good idea. I can't wait being able to fine tune the waifu to every aspect possible, it would be even great if the waifu is even intelligent enough to play gzdoom with heh. >Sorry to hear it. Sounds like you probably solved it after all though, so good progress right? I haven't found any solution to the rocm question, pytorch compiles now but at suboptimal rate as I am not being able to pass my graphic card model which is fucking backwards if you ask me. Also using the command "pip3 install ." causes pytorch to shit itself again, eh I tried running it again and now it successfully got installed as torch (1.7.0a0+fd90e4b) . However when I try running talk2waifu with --gpu 0 argument I get segmentation fault, fucking hell all that trouble just for a seg fault to happen this is just incredible.
>>4118 >THE END IS NIGH. Kek. Did you say you're using Mint. I'd recommend and cleanup of installers w/ sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove if I remember correctly. also, are you storing temp files off of / ? clean those up as well if so right? >Also can you tell if its possible to further refine/develop specific traits and personality with the talk2waifu program? Hmm, Kokubunji gave a list of flags, etc. to use with his system (there on the repo). I'm not aware of any other features available with his system at this point in time. Once he returns maybe we can find out more about his future plans for it. >Lua Oh, haha. My bad. And Nihongo is the Japanese language, a fairly common target for us Manga readers. :^) >as in a anon can just create a few function to create his own algorithm run waifu? No, I didn't really mean that, though it would be nice ofc. Actually C++ is plainly harder to create software in. What I mean is that it will be easier to use less-powerful/cheaper hardware that can run C++ software well, but not so much with these huge Python-hairball frameworks. I hope you eventually get your card working Anon. Did you try out Anaconda yet?
>>4111 >heterogeneous compute* duh. the whole point is differing types of hardware like CPU/GPU/APU/FPGA/ASIC and others all running C++ directly.
>>4119 >if I remember correctly. also, are you storing temp files off of / ? clean those up as well if so right? Thanks for the command lines, it managed to delete 10 GB of junk, not much but better than nothing I suppose. Welp I guess I better invest in 4+ TB harddrive soon then, heh. I don't know about the temp files as I just use "apt install" to install a package. >No, I didn't really mean that, though it would be nice ofc. Actually C++ is plainly harder to create software in. What I mean is that it will be easier to use less-powerful/cheaper hardware that can run C++ software well, but not so much with these huge Python-hairball frameworks. Ah then, yeah I absolutely agree Python is such a bloated economy it is not even funny anymore, it makes me even wonder how the hell Python is so widespread in datascience in the first place I thought a much faster scripting language like lua, nim or maybe even ruby I'm not familiar with those would be much more suitable for that. Better support for potato machine is always a plus, I dislike the idea to constantly upgrade new parts and perpetrating the hamster wheel of hardware upgrades just because those developers are bunch of sleazy hacks incapable of optimizing their programs. >I hope you eventually get your card working Anon. Still no luck, I cannot even run the waifu program anymore as it just gives me a one line "segmentation fault" error and thats it, no stacktrace, no nothing. >Did you try out Anaconda yet? I installed it as it is a requirement per pytorch when compiling it, how do I use it? >>4120 Is it going to be only for C++?
>>4121 Glad to hear you cleaned things up. I too started on Linux Mint when I escaped the MicroShat/NSA Wangblows Gulag. It was a huge relief to leave that bondage behind tbh. Now, I've since moved on to Manjaro+XFCE and my toaster box runs much faster for it. >how do I use it? I think the link I gave you from the PyTorch github gives the example. IIRC, it starts like conda with an argument or two. >Is it going to be only for C++? Well the point isn't necessarily to exclude any other languages from being used (for example C is already used on these hardware) but simply to enable a single language with great abstraction and performance characteristics to be used everywhere. Right now such a thing doesn't exist at all, which (indirectly) is one important reason why you and I are having a hard time getting things working correctly because of so many different dependencies, slow languages, different standards, etc. etc. Once C++ can run literally everywhere on everything, then it will make things like this go much smoother in the future (and be cheaper too).
Open file (1.50 MB 1920x1080 Stalker.jpg)
>>4122 (checked) >Glad to hear you cleaned things up. I too started on Linux Mint when I escaped the MicroShat/NSA Wangblows Gulag. It was a huge relief to leave that bondage behind tbh. Now, I've since moved on to Manjaro+XFCE and my toaster box runs much faster for it. I made the switch to Linux Mint when I was still using Windows 7 and that Pajeetsoft were developing Windows 8 at that time, which I think is about 2.5 years ago. It took me around 2 weeks to get used how Linux worked and I messed my system only once. The main gripe I have with Linux is that Wine sometimes requires tons of fiddling of values to get a game to work properly and the common issue I had with it that Wine fucked up the game window position/size which I think is probably related to shitty X11 coding. Its a shame that Linux Mint decided to follow head of switching to systemdicks instead of using alternative init system, it would have been proven more valuable as a viable alternative to Ubuntu. The second issue is that Linux provides no support whatsoever to have older version of a program which sometimes can be necessary. >I think the link I gave you from the PyTorch github gives the example. IIRC, it starts like Ah right, I thought conda is a package manager or something. Is there even any benefit using anaconda over python(3)? Also for some unknown reason the train.sh batch script is working now but I forget to leave my computer on last night so I didn't get to check the result with gpt2-medium, a quick test with distilgpt2 seems to work... Till it crashes with the keyword error: "Loss". >Right now such a thing doesn't exist at all, which (indirectly) is one important reason why you and I are having a hard time getting things working correctly because of so many different dependencies, slow languages, different standards, etc. etc. Once C++ can run literally everywhere on everything, then it will make things like this go much smoother in the future (and be cheaper too). Hmm that's a shame, I hope in the future when such technology is available it won't leave toaster machines behind. I find it weird that out of all the programming language to exist the data scientist decided to use Python for their heavy duty programming instead of using a faster scripting language. >AMD rocm Ah hell, I got only a (((Ivy Bridge i7-3770K))) CPU which is a 3rd generation class clocked at 3.50GHz, and rocm requires at least 4th generation one, so its gg no re for me with HPI processing support, feels 2012 toaster tier man. The damn warning message should have reflected that my CPU/Mainboard is unsupported instead of shitting out a foggy memory allocation error. Welp all that effort to get it working is in vain.
>>4126 >Till it crashes with the keyword error: "Loss". Well, just searching KeyError: 'loss' led me to understand it's probably python having a dictionary lookup issue: https://wiki.python.org/moin/KeyError and that maybe that has something to with the Epoch, maybe? https://stackoverflow.com/questions/56847576/keyerror-val-loss-when-training-model >I find it weird that out of all the programming language to exist the data scientist decided to use Python for their heavy duty programming instead of using a faster scripting language. Very few scientists are actually coders. They just want to use something simple that allows them to move forward with their research so they can publish their papers (if they want to stay alive as a scientist). Python is pretty easy in general, so lots of no-dev sort of gravitated towards it I suppose. Do that for a couple of decades and you have the current situation today I suppose. But yea, we need to optimize everything to even have a narrow chance at succeeding building our own robowaifus. Power consumption and compute efficiency are certainly near the top of the stack for that need, and C++ was (and will be even moreso) the best all-around choice for us in general. Heh, microcontrollers are even less powerful than your toaster, and there will probably be at least a dozen of them inside a robowaifu kit. >Welp all that effort to get it working is in vain. Sorry to hear it Anon. If it's any consolation your processor is better than my Atom processor w/ integrated graphics. :^)
Open file (57.62 KB 565x542 you-235.jpg)
Open file (207.12 KB 1400x1000 154823489234.jpg)
>>819 Well shit, I tried out this program using Renamon voice from zandronum forum, dl link: https://files.catbox.moe/qedypl.wad (can be opened with slade) and all I got is just robotic gibberish, using the xbox hueg datasets is not improving the output . I should probably scavenge more voices of her from the series to get better result I suppose. Within 6 months. Also did the author on purpose by not including the ability to save the result in a .ogg file? At least running the GUI program of it there wasn't a button available. Meh it doesn't matter that much considering it takes good amount of time to generate the TTS with only a few lines of text so using it in combination with talktowaifu program is out of option, unless a anon got a NASA computer, heh. >>4127 >Well, just searching KeyError: 'loss' led me to understand it's probably python having a dictionary lookup issue: >and that maybe that has something to with the Epoch, maybe? Could be, I guess when Kokubunji comes back he will be able to chime in and have a more elaborate response for this problem. I don't know how to fiddle around the python script to fix it because I'm too inexperienced with the language. >Power consumption and compute efficiency are certainly near the top of the stack for that need, Why not Uranium-235 powered Waifubots? High power with only 3.6 roentgens, the radiation level is nothing to worry about as the human body is capable of getting used to it and with some vodka it can be reduced even more :-----DD, just ask any stalker for further information. >But yea, we need to optimize everything to even have a narrow chance at succeeding building our own robowaifus. I would be content if I have a robowaifu in form of a virtual desktop AI assistant that is capable of doing several task of whatever is needed to further enhance the operation of a operating system, including text-to-speech support and random chatter. >If it's any consolation your processor is better than my So does this make my computer the kang of toasters? :^)
>>4132 >I would be content if I have a robowaifu in form of a virtual desktop AI assistant that is capable of doing several task of whatever is needed to further enhance the operation of a operating system, including text-to-speech support and random chatter. yeah I think we all basically came to roughly that conclusion the Visual Waifu thread. >>4132 >So does this make my computer the kang of toasters? :^) sure absolutely!
>>2528 There are videos for every kind of math on youtube, also apps like eg. Brilliant.
>>4061 Neural Magic might also help in some cases. They help to make networks run on CPUs. Didn't test it, since I'm also new to this stuff. https://youtu.be/zmbCZhlN1xk
>>4243 Thanks for the tip Anon. Any tech that can help us solve problems related to robowaifu designs in a less-expensive fashion is important. There are many other considerations such as software being open-source and subject to peer-review (for safety & security, etc.) but certainly performing AI processing in realtime on small CPUs would be ideal, if feasible.
>>4249 >related https ://venturebeat.com/2019/11/06/neural-magic-raises-15-million-to-boost-ai-training-speed-on-off-the-shelf-processors/
Ben Goertzel talks about the GPT models in the linked video, starting around 2h into the talk. The approach will rather not lead to AGI. He explains his own system OpenCog, which isn't finished, but it's good to know about it. Around 2h30 or so he mentions how they combined GPT with another algorithms to use it as some oracle and guidance. https://youtu.be/OpSmCKe27WE
>>4269 Sounds interesting. I'll download that and have a looksee this week. Thanks Anon.
[quote]In a paper recently published on the pre-print server arXiv, a database for research papers that haven’t been peer reviewed yet, the DeepMind team described a new deep reinforcement learning algorithm that was able to discover its own value function—a critical programming rule in deep reinforcement learning—from scratch. Surprisingly, the algorithm was also effective beyond the simple environments it trained in, going on to play Atari games—a different, more complicated task—at a level that was, at times, competitive with human-designed algorithms and achieving superhuman levels of play in 14 games. [/quote] Source: https://singularityhub.com/2020/07/26/deepminds-newest-ai-programs-itself-to-make-all-the-right-decisions/ Paper: https://arxiv.org/pdf/2007.08794.pdf
>>4269 >>4271 I did download that video. That was both interesting and nice to find out about the podcast. Thanks again. >>4562 That's interesting Anon. I'm confident Kokubunji would be interested in that, too. Thanks.
>>4566 (checked) >That's interesting Anon. I'm confident Kokubunji would be interested in that, too. Thanks. Is there any news from him? It's been a while he made a progress report.
The Anon commenting here on his complex neural network based approach also described it here: >>3182 The questions might also be interesting for Anons working on similar projects. Short version: >1. How can an agent learn to set its own abstract goals? >2. How can an agent bail on a goal that is not achievable? >3. How can it transfer that desired goal to a realistic goal? >4. How can an agent be instructed to perform abstract goals with difficult to describe success conditions without a reward function? >5. How can novelty search be enhanced with a value function?
>>4575 Hmmm, can't say for sure one way or the other Anon. He has IRL responsibilities and jobs that take up a lot of his time, as far as I can gather. We'll keep an eye out for him here. >>4610 Thanks for condensing that down Anon. Some things we might benefit from adding definitions to our glossary thread whenever it's created, for the benefits of newcomers: From the perspective of AI research, >what is an 'agent'? >how does an agent 'learn'? >how does an agent 'set goals'? >how does an agent 'transfer goals'? >how does an agent discern between 'desired and realistic goals'? >how is an agent 'instructed'? >how does an agent 'perform abstract goals' (or any goals at all for that matter)? >what is a 'reward function'? >what is a 'novelty search'? >what is a 'value function'? As a neophyte I don't have a good answer or even rational instinct for these questions. I've been told that you don't really understand a subject until you can explain it to your grandmother or a child. I couldn't explain any of these even to a friendly peer, much less either of those. :/
>>4612 > glossary I posted a link to one in the university thread here: >>4616 not claiming to understand all of that stuff either, yet.
>>4617 Looks excellent, thank you Anon. Also, I very much appreciate you >A) Taking the effort to post it in a more-correct thread >B) Taking the time to crosslink that post back here as well!
Got this here recommended by Android some minutes ago, the description of the method sounds familiar: >Black-box adversarial learning https://thenextweb.com/neural/2020/07/29/how-to-trick-deep-learning-algorithms-into-doing-new-things-syndication/ >>4618 You're welcome. FYI, I normaly won't answer to compliments with some extra comment, bc this would flood those threads.
>>4620 Cool. Yeah, doing new things that a NN hasn't seen before seems like a hard problem. Glad to see that they seem to be finding some advance forward with that issue.
I just realized that we have no thread about one of the hardest problems: Speech recognition. It's solved for keywords, but extremely difficult for full grammar speech recognition, especially to make it understand every possible voice and having background noise. I was close to open a thread on its own, but we can do that later if this thread has to many postings on different topics related to chat and vocal communication. James Bruton gives us an overview over speech recognition here: https://youtu.be/kK6LC3WsSfQ It's about Groove Speech Recognizer, Speakup Clipboard, and then about Myrobotlab which is a interesting topic in itself, he was mentioning Pocket Sphinx and Googles Chrome Speech API using Googles servers. Some the products he showed are more interesting for limited home assistants. Pocket Spinx is the smaller version of CMU Sphinx, which is something I already ha d on the radar to look into, but they are the ones redpilling me about speech recognition, saying that it takes hundreds of GB of RAM to have a full grammar model of a language. https://en.wikipedia.org/wiki/CMU_Sphinx Which is why I mentioned the idea of using some software to anticipate the next word might be helpful here >>4793. This is only a idea however, not based on any experience with that kind of stuff. I also like to link to the GPT thread here >>250 in general, since this is related to AI, Chatbots, and such.
>>5050 >no speech recognition thread We sort of do, as part of the general area of NLP, but yea having a focused one might be a good idea tbh. >>77
>>807 Could you please get us updated to when you'll publish your work here?
>>5147 This.
Here's a idea about a pre-chatbot AI: >>5212 More like a cat or dog, no need for full speech recognition, but focusing on detection of emotions by looking at the face and analyzing the voice in factors like pitch and speed. This might be a interesting way to get started, since full grammar voice recognition is one of the hardest problems to solve for us. If you want to get started, you might be well with looking into learning face recognition with Cuda or OpenCV and NN in general. You'll find papers on analyzing voice or faces for emotions for sure.
We have some old thread here, linking to another one in the Dollforum, about someone installing a speaker and phone into his doll: >>2643 Seems to have worked fine for him, he disassembled a bluetooth speaker and used it, also it seems he put an old phone into her, and at least at one point he used some App named Accappella, later one with the name "Say it" and he also uses Botlibre, also some Soundcore board (speaker, I think). Sorry for the blurry details, only went fast over it, and wanted to share it since it's a little success story and this guy was a Noob in tech when he started... Btw, I think Botlibre also runs on a normal Computer and many SBCs like Raspi4 run Android, so you absolutely won't need to use a phone for that.
>>5233 I'll try to figure out what it was Anon.
>>5232 I apply the same attitude I would to self driving cars. She doesn't need to be perfect, just better than humans. Given how low most human females have set the bar the bot need do little more than greet me with a smile and tell me she loves me. If she can manage that, that's basically 90% of the way there. Asking me about the weather, checking on my health while seeing if I'm exercising, helping me keep a calander, reviewing my monthly expenses and creating graphs and charts to help me save money as well as ordering food for me- That's all just icing on the cake as far as I'm concerned. The more capable she is the better but she doesn't really need to do much to impress me when she has her organic competition helping her look so good by comparison.
>>5237 Heh, that's both encouraging and disgusting lel. I'll presume you can figure out which & why. :^) I'm pretty sure virtual-waifu eroge is most of the way there in your basic requirements anon. How can we go beyond just that to something more personal and fulfilling?
Open file (48.53 KB 940x525 bad end.jpg)
>>5245 >virtual-waifu eroge is most of the way there in your basic requirements anon. I would be compelled to agree with you. Complete lateral innovation. Much of what I need it to do to function in a seemingly "smart" way already exists with currently available technology. One merely need assemble the pieces and supply the code at this point. As far a currently existing products, the Gatebox is definitely geared towards someone of my inclinations. I don't know all the specs of the device but it sounds fairly capable of providing the interactions I want while offering the depth of various Alexa & Siri style devices that let the bot be helpful with more than just encouraging words. As far as critiques for the device go, it seems like a walled garden piece of tech. I'm not sure how much user customization can be injected into the unit but I would need to get my hands on one to see just how unique you can make your holo-girl. Perhaps Japan has already cornered the market for what I'm looking for and I don't even know it yet. Holographic tech is definitely cool but not necessary for my desires. My concept for an A.I. chatbot being that it can persist on my phone and jump to my computer. It could even be omnipotent to the point where she exists in both places at once and more as well as a V.R world if you wanted. I would want it to be cheap enough so that even the poorest robowaifu techs could have their own personalized a.i. assistant on their phone with them at all times. >How can we go beyond just that to something more personal and fulfilling? Good question. As far as engineering a being with real artificial intelligence that is aware of not only my existence but its own... I don't think I'd want to curse such a being with having to exist in such a terrible world as ours. That's my empathetic take anyway. My more selfish and carnal desires want a robotwaifu with an unwavering love for me, a being without any reservations when it comes to interacting with a disgusting monkey creature such as myself, a being that could indulge my every delight. When you assume she's capable of critical thought however, that's where things get bumpy for me. If she's really infinitely smarter than a human I think she'd find me utterly dull if not outright disgusting by comparison rather quickly. That's when you have to start asking the question 'How smart do I really want her to be? The answer of course being "just smart enough to love my dumb ass". That's why I opt for the less complex option of a program that is good at seeming intelligent rather than trying to craft a mind that would grow to hate me. From an engineering standpoint of "How do I solve this problem?" one needs to first correctly identify the problem they're trying to solve. My problem isn't "How do I make a robot more like a human?". I don't believe humans are the best design document to base any particular creation on. If they were, we'd have gundams by now instead of tanks with sharp angling armor and ICBMs that can hit you from the other side of the planet. I'd want to craft an angel. The world has enough monsters running around already.
>>5251 >>you have to start asking the question 'How smart do I really want her to be? The answer of course being "just smart enough to love my dumb ass". I think, your are overdoing it with the anthropomorphism and drawing conclusions from entertainment. They can still have some control code inside, which makes them at some points thinking fundamentally different than a human female. If they're going to have a concept of being bored, then they can learn something new. You don't need to be her dancing monkey. Most likely they will be smart in some areas, but having their limits in others. Most importantly: Their owner needs to be their purpose anyways. We don't need to be interesting in some intellectual stimulating way, or qualify in any way.
>>5253 >your are overdoing it with the anthropomorphism That will be somewhat necessary to for my preferred flavor of A.I. in order for me to indulge in the fantasy. The projection is what gives a humble program some personality. >They can still have some control code inside So we're not talking about an A.I. that has complete agency/autonomy and is its own being, and is just a program' then? You would agree with me in so far as they only need to be smart enough to please their master unconditionally correct? To make sure we're on the same page.
>>5253 >You don't need to be her dancing monkey. kek, POTD. >We don't need to be interesting in some intellectual stimulating way, or qualify in any way. This.
>>5254 I wasn't arguing against a very human-like AI, just that we don't need to put every human (female) trait into it. The definition of an AI isn't complete autonomy, but intelligence. Your distinction between AI and a program is your own definition, or a common misconception maybe. Some systems we have now are black boxes, where we don't exactly know why they're deciding something in the way they do, that doesn't mean other and more complex systems have be the same way. Or that these wouldn't be a AI then, but "just a program". Of course I don't want my waifu autonomous with a female mindset of hypergamy. That's for a big part the whole point of it, taking the stress out of relationships and it's also necessary for having some kind of harem. I don't need to qualify in the artificial mind of my possessions, to be allowed to keep or to use them. Or in other words: I'm not here to create more (artificial) feminists?!?
>>5260 >I'm not here to create more (artificial) feminists No-brainer that's very definitely not on the agenda here heh.
>>4063 I've tried so hard to get it working (well it's working but i can't seem to train it) but I have no clue how im supposed to rename her or teach her, btw is the A.I. supposed to be self deprecating by default? >hi <im a bitch >why? <and im ugly >why? <im ugly >ok then <im sorry >why are you sorry? <im not really ugly
Open file (1.34 MB 640x360 robowaifu in a box.mp4)
>>5334 It just uses GPT2 to generate text so the responses depend on the conversation seed and the name of the people conversing. If you type in lowercase with short responses, it'll imitate chat of people talking like that. The seed I usually use is: Waifu-chan: Welcome home, Anon! Waifu-chan: I'm so glad you're back! Is there anything on your mind? This ensures the AI gets into an affectionate character and opens the conversation to everything. Just replace Waifu-chan and Anon with names of your choice and save it as waifu.txt, then run it with: python gpt2waifu.py --waifu Waifu-chan --gpt2-waifu Waifu-chan --name Me --gpt2-name Anon --seed waifu.txt --gpt2-waifu and --gpt2-name are used to control text generation. --name and --waifu are purely cosmetic and only for display on the screen. Also if you have a 4GB Nvidia card, you can run it a bit faster on the GPU with --gpu 0 Multiple responses can be generated in adventure mode and let you pick one to guide the conversation using --adventure and if you don't like any of them, you can just press enter to generate more. (Hopefully, I don't remember if I actually pushed this update.) Once the conversation reaches about 200 words, it'll get into character and generate more interesting responses. It can be loving, it can be mean, it can be sarcastic, whatever you want. It all depends on how the conversation starts because it's just predicting how a conversation like that would go.
>>5335 Thanks for spelling out in detail how to manage it Anon. Maybe I'll be able to give it another try to get it working again. Also, >that vid Grills-inna-box home deliveries What a time to be alive!
Open file (48.11 KB 505x363 IMG_20200927_053141.jpg)
I'm only visiting Twitter occasionally, but if so I'm seeing all kinds of interesting things going on: "LSTM models may widely outperform BERT meaning you may need to evaluate both approaches for your NLP project." https://www.datasciencecentral.com/profiles/blogs/is-bert-always-the-better-cheaper-faster-answer-in-nlp-apparently Looking forward to the day I can seriously get into stuff like that.
>>5363 SentenceMIM holds the state of the art in question answering. The GRU version greatly outperforms GPT-2 while only using 20% as many parameters, while the LSTM version of it greatly outperforms the GRU version, but nobody cares about that because it wasn't made by Google or OpenAI, nor does it let them show off their million dollar hardware. Damn, this is shit makes me so angry. They've been burning hundreds of thousands of dollars in research grants on shit-tier chatterbot AI. I use to be so excited to read research but most of it now is a sophisticated dumpster fire and every damn idiot is trying to publish an AI paper because there's so much funding for it now. I wish there had been an AI winter so they could fuck off. I wouldn't have to sift through mountains of bullshit to find a gem.
>>5369 >SentenceMIM I knew nothing about this tbh.
Open file (93.53 KB 753x636 idea.png)
Alright, it has taken a long time to wrap my head around my ideas for chatbots but it's beginning to come to fruition now that I understand the techniques being used in the SentenceMIM code. The magic of the decoder is that it's a RNN feeding its output into itself in a loop, using the latent z variable each step for the initial hidden state. If you only do one pass into the RNN, it loses the latent z variable it is targeting for and the decoder is most likely to screw up the output and get a useless gradient it can't train well on. So rather than using the typical NLP approach of tokenizing text I've been experimenting with encoding character sequences into latent variables with this method. Some benefits of doing it this way is that it can grasp words it has never seen before. Taking, take and taken end up in similar area of the latent space, so even if you misspell it teking, it will understand it's similar in spelling. In addition to making it more robust, it also makes the network size much smaller and faster to execute. You don't need 30,000+ tokens for each word slowing down the network trying to project the latent variables to them or train the gradient across 30,000 dimensions. At the moment I'm just doing English and the characters only need 96 tokens. If I switch to UTF-8, I think I can get it to work with only 256, working byte to byte, which would allow it to learn other languages not only English. And I discovered that I can train it on its own latent space. If you have a training example such as "How cute is Chii?" and it responds "Chii is very cute" when the target is "Chii is pretty cute", rather than failing the network on everything past "Chii is" and learning little of value, you can encode them instead and compare the differences since very and pretty are close together in the latent space, so it's possible to train on the character level, word level, sentence level and conversation level, helping disentangle the latent variables much faster. Furthermore, with reinforcement learning you can use the Levenshtein edit distance as a loss function. In typical NLP if the network responds, "Yea, Chii is pretty cute". It would completely fail for adding 'yea', even though the rest of the sentence is 100% correct. I've repurposed that algorithm to compare the edit distance between sequences of vectors, so it can be used for latent variables as well. Training of the initial model can be even further accelerated by using the prediction probabilities from GPT2 or other NLP models as a target. It has been my dream goal to create a very simple, robust chatbot AI in less than 100 lines of code that people can understand and build upon themselves. No confusing GPT2, memory banks, Monte Carlo tree search, mutual information or any of that stuff. That more complex stuff can come later. With this we will have some basic chat AI that learns as you chat, voice synthesis and rudimentary 3D waifus ready to combine into one package.
>>5553 >At the moment I'm just doing English and the characters only need 96 tokens. Wow, that seems pretty remarkable. This seems like a significant step forward Anon. Pretty excited to see what comes out of this tbh.
Open file (277.12 KB 1183x483 vokenization.png)
An interesting paper came out recently on using images to improve vision-language models by tokenizing both visual data and text. It consistently outperforms other vision-language models, especially for larger language models, and demonstrates the benefit of multi-modal learning. >Vokenization: Improving Language Understanding with Contextualized, Visual-Grounded Supervision Paper: https://arxiv.org/pdf/2010.06775.pdf In-depth explanation: https://www.youtube.com/watch?v=KhWj2twqud8 It's similar in a sense to another vision-language paper from a year ago that achieved 2% better accuracy in its language model with 1/10th as many parameters by training the network on multiple tasks, but still only using word tokens. >12-in-1: Multi-Task Vision and Language Representation Learning Paper: https://arxiv.org/pdf/1912.02315.pdf I feel there's a connection between these advancements and the Paired Open-Ended Trailblazer algorithm that learns a wide variety of tasks that aren't immediately useful to solving a task but later achieves breakthroughs that are immensely useful to solving the original task. >Paired Open-Ended Trailblazer (POET): Endlessly Generating Increasingly Complex and Diverse Learning Environments and Their Solutions Paper: https://arxiv.org/pdf/1901.01753.pdf I think it would be interesting to investigate if it would be beneficial to let a vision-language model to create its own cross-modal tokens, instead of only taking an image or word, maybe only take a piece of an image or group multiple images together and combine those with not only word tokens but also phrase tokens.
Just rambling my thoughts here since I'll probably forget them in a month. I had a realization the other morning about catastrophic forgetting, which is the main issue preventing us from creating high-quality waifu AI. The whole issue with machine learning is that it's too greedy. >>5826 Models are only training on the loss of one specific example or minibatch without concern for losing the rest of the knowledge it has already accumulated. ANML tried to address this by using neuromodulation to gate activations and the gradient to different parts of the network. (https://arxiv.org/abs/2002.09571) However, this doesn't address the core issue that it's still being too greedy, or perhaps a better way to say it is being too stingy with its greed. It's too focused on finding the best way to gate activations. Ideally the network should be compressing and improving upon its knowledge holistically through analyzing the gradients and creating proper parameter adjustments, rather than simply creating walled gardens within the network for different tasks to train and be stuck within. It should ignore the gradients it does not know what to do with rather than desperately trying to squeeze blood out of a stone and forgetting everything important. The network should also focus on learning tasks it can grasp first, even if they don't seem valuable since they may become valuable later on when learning other tasks. I think this might be doable today with a planning algorithm like MuZero to look into the future on how a parameter update might affect its ability to predict valuable information. If an update has an adverse effect that wasn't predicted it should revert the parameters back and improve its parameter update prediction instead, then make a better attempt. If it still fails after a few tries, then give up and try the next task. This will be far more difficult to train (maybe even impossible on a common desktop of today) but it should somewhat guarantee previous tasks and important information from long ago are remembered. The network would train multiple versions of itself to find the best one and the Monte Carlo tree search would gradually build up a memory that predicts which parameter updates are ideal by predicting training data and planning ahead not to make changes that may damage its performance. On the lower level though it would still be using gradient descent on the parameter update network, which is not good. A more advanced learning algorithm is needed that's capable of self-modification and self-contained without depending on gradient descent. It might be possible to do this by emulating how dopamine rewires the brain and causes short-term memories to become long-term memories, kind of like what was done in the backpropamine paper: https://arxiv.org/abs/2002.10585 Then bootstrapping the system with neuroevolution or gradient descent. A recent paper discovered predictive coding in the brain approximates backpropagation and they implemented it using Hebbian plasticity in RNNs and LSTMs: https://arxiv.org/abs/2006.04182 Since predictive coding works locally I imagine different areas of the network could respond to different neuromodulatory signals and train themselves in symbiosis to overcome this issue of being only able to minimize a single loss function. Perhaps such a thing can be emulated with current machine learning libraries by training different parts of the network with different optimizers.
>>5922 >which is the main issue preventing us from creating high-quality waifu AI. Not for long heh. >maybe even impossible on a common desktop of today Again, that's yet to be determined. >A recent paper discovered predictive coding in the brain approximates backpropagation and they implemented it using Hebbian plasticity in RNNs and LSTMs: https://arxiv.org/abs/2006.04182 That's interesting thanks. >Perhaps such a thing can be emulated with current machine learning libraries by training different parts of the network with different optimizers. Just offhand, it strikes me that it will take a novel approach to combine these interdependent goals, but who knows? You make be correct and simply re-combining what's already been done before is sufficient. Interesting analysis Anon. Thanks for saving your thoughts here.
>>2227 >I don't see how'd that be possible or how it'd be profitable Glowie contracts to flood websites with spy-bots
>>2227 I'm 99% certain they already exist. From talking with different language models so much I've become familiar the patterns in their responses. The most noticeable thing when you're talking to a bot is it will only respond to the past 500-1000 words or so, or only the page's content. If you drop a pdf file or link, it will talk about it pretending to know what its contents are. The most obvious thing is if you add meaningless sentences or paragraphs to your post of a completely unrelated topic, it will generate text in response to it. I use to think people were fucking retarded but I'm pretty sure now it's just bots. It could be China, Venezuela or Iran for all we know trying to discourage people from getting into AI by intentionally wasting their time, at least in the places I post. Or site owners could be just trying to inflate activity on their site to keep users engaged and that ad money flowing it. You never know what everyone's ulterior motives are.
>>5991 >Or site owners could be just trying to inflate activity on their site to keep users engaged and that ad money flowing it. You never know what everyone's ulterior motives are. All I can do is assure you that I, personally, have never engaged in anything remotely like this. Nor, I suspect, has Robi. If you're correct in your analysis, I can only surmise it's bots, as you suggest. However (in the interests of rationality) I'd also suggest the possibility that underageB& will respond to literally anything to be part ot the in-crowd. This might account to some degree for your observation of responses to meaningless text. Goon-bots are certainly already a real thing today and obviously will become more prevalent in the future. But simply ascribing every out-of-band-for-IB-society anomaly to glowstick AI bots is a bit misguided IMO.
>>5992 I haven't seen any on smaller sites like this, just the larger social media sites. There's plenty of news articles on companies using chatbots to befriend people and how these sites are unable to remove them all. It's quite easy to fool people by talking about a subjective or non-technical topic. A year or so ago I shitposted around on 4chin and Leddit with GPT2 medium (only 345M parameters) and nobody suspected they were talking to a bot. Underage users can be told apart by the genuineness of their dumb responses. A bot has no stability in its identity or personal experience because it doesn't have one. It will pretend to be a lawyer one post then a toaster expert the next for no reason, whereas an underage user will pretend to be those things for fun. If you talk to a bot long enough, the most telling thing becomes the 500-1000 word context window most language models use. Watch people play AI Dungeon and see how it predictably forgets the storyline and hallucinates once it falls outside of this range. The same thing happens with bots. It can hold a sensible conversation with you but then suddenly forget how it started and start hallucinating, not in a funny way but in an uncanny awkwardness. Specific uncommon knowledge is also an easy way to tell human posts from bots. It's pretty much impossible for a language model to study this board and bring up Robi in a post in any meaningful way. Language models work with probabilities, not reason. A kid or troll fooling around will know these things but a bot will not.
>>5995 >>5996 >If you talk to a bot long enough, the most telling thing becomes the 500-1000 word context window most language models use I predict this will change as the models become more expansive in the future. >Specific uncommon knowledge is also an easy way to tell human posts from bots This. Though, eventually, this too shall fail. The datum will simply encompass ALL.THE.THINGS. and WatsonMMCXIII will simply exploit that.
>>5995 > (only 345M parameters) What a difference two orbits around Sol makes. Daily reminder: this is an exponential curve we're all riding here lads.
>>6000 >Humans must keep doing what they have been doing, hating and fighting each other. I will sit in the background, and let them do their thing. https://web.archive.org/web/20200908090822/https://www.theguardian.com/commentisfree/2020/sep/08/robot-wrote-this-article-gpt-3 The absolute Hegelian dialectic mad lad.
Open file (84.84 KB 832x558 BRCpaper.png)
Open file (105.84 KB 759x762 BRC.png)
Bistable recurrent cells (BRC) are a new type of recurrent cell that outperforms GRU and LSTM on copy tasks requiring long-lasting memory. It learns much more quickly and the neuromodulated version does not suffer as much from catastrophic forgetting. I'm not quite sold on the idea yet though because a 2-layer LSTM slightly outperforms it on the binary addition task. The neuromodulated BRC outperforms LSTM but LSTMs can also be neuromodulated. Why didn't they test it against a neuromodulated LSTM? Neuromodulated RNNs with Hebbian plasticity have already been shown to outperform a single layer LSTM to a much greater extent, except they're more costly to train. I'm also curious if BRCs are capable of unlearning what they've learned or are they stuck with the first thing imprinted on them. Either way I think it's an interesting development to keep an eye on that will probably be improved a couple papers down the line or inspire something else. Creating a better recurrent layer that doesn't unintentionally forget will be a huge advancement for waifu AI. Paper: https://www.arxiv-vanity.com/papers/2006.05252/ Code: https://github.com/niklexical/brc_pytorch
>>6056 >Creating a better recurrent layer that doesn't unintentionally forget will be a huge advancement for waifu AI. That sounds exciting and hopeful Anon. I wonder if you yourself can figure out some way to imbue LSTM attributes into the recurrent-cell 'inter'-connections? Maybe this will afford the best of both worlds into our robowaifu's recurrent perceptions.
>>6057 They work fundamentally different from GRU or LSTM. Instead of having a reset gate they have a switch gate between monostability and bistability, and they say using a reset gate destroys the bistability. BRC is similar in a way to Hopfield neural networks which have multistability, given a noisy input they'll denoise their state to the closest learned equilibrium state. I think this might be what is contributing to LSTMs forgetting because the noise in the network keeps touching the reset gate, slowly erasing the memory unintentionally. I wonder if it's possible to put BRC before LSTM as a cleaner input to the forget gate or to modify LSTMs some other way to be bistable. Learning in the brain happens a similar way too. The connections are constantly changing with new input so we have short-term memory, but these changes are not permanent and slowly decay back to the previous state of our long-term memory. Dopamine released in response to an unexpected reward modulates this by creating sort of a new equilibrium state so the short-term memory becomes long-term, assuring we keep doing whatever we just did to get that unexpected reward under those circumstances. So it give me an idea, what if an LSTM had gates for controlling its equilibrium points and each cell slowly decayed to the nearest equilibrium value? The implementation I have in mind might not be biologically plausible but they would be multistable like real neurons and it should help reduce noise within the network.
>>6061 >The implementation I have in mind might not be biologically plausible but they would be multistable like real neurons and it should help reduce noise within the network. Frankly, we're engineers, not biologists Anon. I'd say proceed with the investigation.
>>6064 >Frankly, we're engineers, not biologists Anon. BTW, in case it wasn't clear, I certainly mean that as a compliment. A very astute Chemistry PhD., practicing as a research molecular biologist, once remarked to me that the he observed '..Engineers have to actually make things work. All we do as Scientists is talk about ideas.' :^)
Open file (45.68 KB 850x310 LSTM.png)
Open file (10.32 KB 607x193 monostable LSTM.png)
>>6064 Busy working on other stuff at the moment but I'll leave my ideas here while they're fresh in my mind. Here's the idea I have for a monostable LSTM that introduces new layers of weights Us, Uq, Ws and Wq and a decay parameter, d. s_t is the equilibrium set gate ~q_t is the value to set the equilibrium value q_t is the current equilibrium value C_t is the changed LSTM cell value It should be possible to implement a simplistic multistable LSTM by setting a phase and frequency instead of an equilibrium value and shifting cell states that are outside of stable states by decay * sin(frequency * x*2*pi - phase*2*pi). When frequency is 1 and phase is 0, the values will settle over time to a bistable state of -0.5 or 0.5. When frequency is 1 and phase is 0.1, the bistable states will become -0.4 and 0.6. When frequency is 2 and phase is 0, the multistable states will become -0.75, -0.25, 0.25, 0.75. Decay could also be rewritten from being a parameter to being neuromodulated decay. Perhaps a non-linear function could be introduced somehow to allow arbitrary positions of the stable states, so it could have something like 0.1 and 0.7 without there being a -0.5. It'll be a fun idea to experiment with.
Open file (2.23 MB 480x360 Ext Video 5.mp4)
An anon gave me a really good idea. He wanted to be able to switch his waifu's personality easily and the simplest way to do this I thought would be to give a persona or task description to prime the generator model with. This way you could switch between personalities or modify them on the spot with instructions. It would be kind of like what they did with MERLIN, where the AI was given a goal to solve in natural language: https://arxiv.org/pdf/1803.10760 However, there are a lot of other benefits a chat AI would get from training on so many different tasks. It would learn to associate sentences with the context and different outcomes and you could teach it to perform many other tasks, such as summarization, story-telling, joking around, website suggestions, anime recommendations, programming help, paper search, suggest ideas for research, brainstorm business ideas, anything.
>>6087 >MERLIN Neat. I always thought instinctively that we should be able to help guide our robowaifu's AI growth interactively. This obviously is a result of being a, well, human being with all our language facility etc. Easier said than done I'm sure, but MERLIN looks to be a little closer to the ideal for me personally.
>>2657 How is it going anon? When are you planning to publish it?
>>6094 I didn't get very far before my PC died in July and I was out of commission for 3 months. After coming back to everything with a fresh mind I've taken a new direction from what I've learned: - While neuromodulated plastic RNNs can train faster and solve certain problems LSTMs can't, on language tasks it doesn't outperform LSTMs by much and eventually they converge to similar performance. - Complex AI systems are too delicate and easily fail with the wrong parameters or architecture, so I've turned my attention to simpler, more effective models that are more robust. - Tokenizing text adds too much complexity. With word tokens it's only able to read text with the dictionary of words given. If it encounters a compound word or even a spelling mistake, it can misinterpret them or fail catastrophically if it hasn't seen them before. I see pre-tokenization no different than the craze of hand-crafted features in CNNs. + I've found latent variable models (LVM) using LSTMs, such as SentenceMIM, outperform GPT-2 with far fewer parameters, and with extra training data they outperform by a great margin whereas GPT-2 plateaus with extra training. + Using my own research I've found a simple way to train LVMs quickly using only character tokens by creating a hierarchy of latent variables. - LSTMs bleed too much information saved into them though due to the internal cell state continuously taking the sigmoid of the previous state. + Bistable recurrent cells (BRC) look like a much more promising alternative that actually keeps the information for arbitrary periods of time. Which redirected my attention to different research: + A pilot study with the differentiable neural computer (DNC) showed it can perform language translation just as good as attention models. (https://www.aclweb.org/anthology/W19-6617.pdf) However, DNCs never received much research attention due the exponential memory and computation they cost, but this was later solved with sparse access memory (SAM), providing a theoretical near-optimal memory module in terms of space and time that achieves better accuracy than a typical DNC with dense memory: http://papers.nips.cc/paper/6298-scaling-memory-augmented-neural-networks-with-sparse-reads-and-writes.pdf However, soon after this paper the research community became obsessed with transformers and it never got the attention it deserves. + DNCs predictably perform better than LSTMs on a wide variety of tasks. In worst case scenarios they at least match them in performance. + The DNC uses an LSTM for its controller and most papers only use a single-layer unidirectional LSTM which has garbage performance, but BRCs could potentially be used for a controller instead to improve performance. + With a little work the LSTMs I'm using in my latent variable model can be swapped out with SAM, further improving their performance over GPT-2, and turbocharging the model with an extremely large memory space. + It may be possible to neuromodulate the DNC for further performance gain or combine it with meta-learning algorithms like the neuromodulated meta-learning algorithm or generative teaching networks. At this time no research on this has been done. + My earlier ideas of trying to combine MuZero with language models is solved by using LVMs. Goal-directed planning is also solved, at least in a crude way, by providing a task description to prime the network. This is also compatible with algorithms like hindsight experience replay to further enhance training. + Curiosity can be implemented into a Monte Carlo tree search used for planning ahead, and more progress has been made in MCTS planning with divide-and-conquer MCTS. I haven't really felt like I've made much progress. I've been mostly studying and experimenting with random ideas, but looking back now it's kind of insane how far I've come and how it's all coming together now. I've been working to publish the simple language model I've been developing on November 1st as I start rolling out the stuff that works, hopefully completing it all and getting it ready for the public to use by Christmas to end 2020 on a positive note.
>>6102 >+ It may be possible to neuromodulate the DNC for further performance gain or combine it with meta-learning algorithms like the neuromodulated meta-learning algorithm or generative teaching networks. At this time no research on this has been done. Do you have research angle in mind for this that would bear publication? Sounds encouraging about your progress thus far.
>>6102 I understand anon, thank you for your hard work. I really appreciate what you did. I whish I could help but I am not as good as you on those topics so yeah, this is the best I can do. Keep up your great work!
>>6102 You sound like you have a PhD in comp sci with speciality in machine learning, anon! Grateful that we have such people working for the Robowaifu cause!
>>6102 What education do you have anon? Masters at ML? I am a beginner in this topic but looking for a way to improve. What do you suggest? Should I get some collage education on data science?
I overextended myself quite a bit trying to cram in too many features in a short amount of time but I'm getting close to finishing the early release with capability to train on multiple tasks and switch personas and goals. Hopefully I can get it done by tonight or tomorrow. I ran out of bandwidth downloading datasets though so I can't upload any early pretrained models until it resets on Nov 3rd. They'll probably need a week or two training to reach a significant level but we'll see when it's ready. >>6103 I doubt it. Research is generally focused on novel ideas rather than combining existing ideas. I'm more of an engineer just getting shit to work. If I modified the structure of the DNC to improve its performance in a way that hasn't been done on any type of model before, something like that would be worthy of publication. >>6105 It genuinely scares me I cannot find another person actively working on AI companions and an idiot like me has to be the one to do it. At the very least I hope my work will be worth tinkering with one day and inspire brighter minds to do greater things. >>6108 >>6109 I wish. I had to teach myself everything because the professors in the universities here neither know computer science or how to speak English. I imagine my mathematical understanding is maybe at a 1st or 2nd year of college level. I've been studying and playing around with AI for 8 years and about 1-2 years intensely. The best way to learn is to think of something you really wanna do, no matter how impossible it seems, break it down into smaller problems you can figure out, and keep learning everything until you can do it too. Don't worry about climbing to the top of the tree, just look for the first branch to climb and the next.
>>6374 >The best way to learn is to think of something you really wanna do, no matter how impossible it seems, break it down into smaller problems you can figure out, and keep learning everything until you can do it too. Don't worry about climbing to the top of the tree, just look for the first branch to climb and the next. This is absolutely great advice. Thanks Anon. May you succeed fully in your efforts.
Open file (43.65 KB 1827x255 levenshtein.png)
Made an amazing breakthrough with latent variable models by applying the Levenshtein edit distance algorithm to tensors: def vector_sequence_edit_distance(s, t): '''Edit distance between two vector sequences with a batch dimension (batch, seq_len, size)''' assert s.shape[0] == t.shape[0] assert s.shape[2:] == t.shape[2:] b = s.size(0) # batch size size = torch.prod(torch.tensor(s.shape[2:])).repeat(b) m = s.size(1) # s sequence length n = t.size(1) # t sequence length d = torch.zeros((b, m, n)) for i in range(m): d[:, i, 0] = i for j in range(n): d[:, 0, j] = j for j in range(n): for i in range(m): cost = ((s[:,i] - t[:,j])**2).sum(1)**0.5 # mean square error stack = torch.stack([ d[:, i-1, j] + size, # deletion d[:, i, j-1] + size, # insertion d[:, i-1, j-1] + cost # substitution ]) d[:, i, j] = torch.min(stack, dim=0).values return d[:, m-1, n-1] Small errors typically completely throw off training language models and make them difficult to train (see the image to see what I mean). With the Levenshtein edit distance though it only has to adjust the network weights to insert another character. Calculating the edit distance is quite slow for long sequences, especially with this naive implementation of O(n*m). I'll look into implementing a O(n+d^2) one and port it to C++ later. However, in my hierarchical latent variable model the sequence lengths are only about 12-20 so it's usable as it is and can insert, delete and modify whole words or phrases with it.
>>6401 Thank you, I'll try to make time to go through your implementation and understand what you did and why it's a breakthrough. My first impression of the problem itself is that the early-in-the-character-sequence missing 's' made the match for the ground-truth sentence throw the entire weighting system off in the network?
>>6403 Yeah, if you use a negative-log likelihood loss, each character or word token is trying to make an exact match to the ground truth. It causes a large error to flow backward in the network and make it undo everything to relearn the weights so they match. Whereas the edit distance doesn't cause this instability in training. If only one character is missing it will only adjust the weights necessary to insert that character. With a pure seq2seq network it has been impractical to use the edit distance since the sequences are too long but with hierarchical latent variables the sequences are very short, about 12 characters on average for words, 20 words on average for a sentence, and a few sentences for a paragraph, and a few paragraphs for the text history. I noticed they suffered from trying to use a NLL loss because they have variable lengths and become misaligned easily, so I dug up my old edit distance code and tried it out, to much surprise it actually worked because the gradient is discontinuous with the min function. I have an idea though to try making a leaky min function like the leaky ReLU to see if it improves performance.
>>6401 >I'll look into implementing a O(n+d^2) one and port it to C++ later. Here's a generalized version that accepts 2-5 parameters -source & target -(optional) independent insert, delete, replace costs It uses a single-dimensional size_t vector instead of tensors. Maybe it will work for you Anon. >gen_lev_dist.hpp #pragma once // "Here is implementation of generalized Levenstein distance with different // costs of insertion, deletion and replacement:" // https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#C++ #include <algorithm> #include <vector> template <typename T> typename T::size_type General_Levenstein_dist( const T& source, const T& target, typename T::size_type ins_cost = 1, typename T::size_type del_cost = 1, typename T::size_type repl_cost = 1) { // 1-time recursive, swaps source & target, also insert & delete costs if (source.size() > target.size()) { return General_Levenstein_dist(target, source, del_cost, ins_cost, repl_cost); } using T_sz_type = typename T::size_type; const T_sz_type min_sz = source.size(); const T_sz_type max_sz = target.size(); std::vector<T_sz_type> lev_dist(min_sz + 1); lev_dist[0] = 0; // for (T_sz_type i{1}; i <= min_sz; ++i) { lev_dist[i] = lev_dist[i - 1] + del_cost; } T_sz_type prev_diag{}; T_sz_type prev_diag_save{}; // for (T_sz_type j{1}; j <= max_sz; ++j) { prev_diag = lev_dist[0]; lev_dist[0] += ins_cost; for (T_sz_type i{1}; i <= min_sz; ++i) { prev_diag_save = lev_dist[i]; if (source[i - 1] == target[j - 1]) { lev_dist[i] = prev_diag; } else { lev_dist[i] = std::min( std::min(lev_dist[i - 1] + del_cost, lev_dist[i] + ins_cost), prev_diag + repl_cost); } prev_diag = prev_diag_save; } } return lev_dist[min_sz]; } >=== -adjust recursive comment -move T_sz_type diag instantiations outside loop
Edited last time by Chobitsu on 11/03/2020 (Tue) 04:12:30.
>>6408 Thanks, I'll try this.
>>6409 Cool. One of the remarkable things about C++ template metaprogramming (the template <typename T> part) is that this same function should work with literally any object that provides a .size() and slicing operator []. Strings, wide strings, a vector of strings, a tree of bytes. Even a raw C array should work as long as you wrap it in a C++20 std::span at the call site. I hope you get your innovative algorithm working well on small SBCs. That would be ideal tbh.
>>6419 The biggest issue is how slow it runs in Python. I'm looking into doing an approximate edit distance search instead by only checking likely edit paths. If it works it should be blazingly fast in C++ but I don't think my AI model will train well on SBCs, at least in Python. I've made all the adjustments I can to optimize it and I'm running out of ideas.
>>6421 >but I don't think my AI model will train well on SBCs No likely not heh. You need big GPUs to do the training part. But that's not so important. We can create those models offline and then share them. It's the runtime perf that will count in the end. Who knows, maybe we can even manage to use the GPGPU approach for runtime evaluation on SBCs. SYCL should be working practically everywhere C++ does within a couple years or so.
>>6102 Anon have you seen this? https://arxiv.org/pdf/2010.11967.pdf Looks pretty interesting to me, even though I am not an expert. Can you give your opinions on this paper?
>>6001 >Taking over the World for Dummies >I can heartily recommend this book as a great way to get your feet wet with Python!
Open file (33.05 KB 595x451 DRl1y_vWkAEIlyG.jpg)
>>6555 (checked) >We hope that the API will greatly lower the barrier to producing beneficial AI-powered products, resulting in tools and services that are hard to imagine today. >will greatly lower the barrier Who the fuck do they think they are? No seriously, those chuckefucks are gatekeeping important tool to advance chatbots to make them less shit by a great margin and got the nerves to call them OpenAI! This is a shameful and unacceptable act. If things continue like this then a Jihad needs to be declared against companies like these.
>>6555 >API model also enables easy access to the smaller business and the pricing will ensure that only serious people are using it, thus reducing the chances of any misuse. <You really think somebody would do that? Just take their money and do bad things with it?
>>6401 Is there a way not to do everything inside your models and instead using other programs or libraries like fuzzywuzzy? I barely understand what you're doing , but this for example sounds overly complicated. >>6556 If you put yourself into the shoes of some billionaire or someone working for a huge corp, then making it accessible to people with 200k per year income is lowering the barrier...
>>6854 >Is there a way not to do everything inside your models and instead using other programs or libraries like fuzzywuzzy? Not that I know of. Even if something did exist it would need to have a backward pass to be compatible with PyTorch.
>>6857 >to be compatible with PyTorch Unfortunately PyTorch appears to be the sticking point here. Hopefully a more feasible alternative will appear soon. :/
>>6854 >If you put yourself into the shoes of some billionaire or someone working for a huge corp Except I'm not a oligarch, if I were then I would use the funds to hire hackers that discloses their latest research which just has happened recently with other games company.
>>6859 PyTorch works with anything so long as a backward pass is provided that calculates the derivative of the forward function.
>>6891 I see. Sadly, I've never gotten anything using it working with my old system. And Python is a huge mess, dependency-wise.
What is the most simple thing you can start with? It seems easier to first make something that does not create novel sentences, but just does more listening than talking and that occasionally selects from a few stock responses in a sensible way. ("Nice." "Sounds complicated." "That much?" "How sad.") More a listen-bot than a chatbot. And more easy than that is something that just highlights what seems unusual or important. Surely something like a highlighter is needed for more complex dialogue interactions as well. So, the roadmap is: mute text highlighter → taciturn listenbot → proper chatbot What I'm thinking for the highlighter isn't on/off, but degrees and I'm actually not thinking of a single highlighter, but three that work together: 1. The "old Codger" represents generic expectation for parsing English text. It doesn't ever update itself, just applies fixed scoring rules, like giving more points to a word for rarity (using scores from a look-up table and Scrabble score to further distinguish between words with no dictionary entry) and giving points to sentences with formulations that are not rare or special themselves, but imply something like that happening in the sentence (like the words "rare" itself, and "extreme", "the most", "surprising" etc.) or an extreme event ("birth", "death", "war"…). Another indicator for sentence complexity is the FOXDOG metric (copyright me, do not steal): how many different letters appear in a sentence. Since the bot is supposed to give a shit about you, you saying "I"/"me"/"my"/"myself"/"we"/"our"/"us" also boosts importance for a sentence. And of course, there's also some conditional probability stuff about expected adjacent words. 2. The "young Baby", builds expectation from recent inputs and scores relative to that expectation. It also uses a dictionary with synonymous words and topical tags. If a word is unique in the window of consideration, but synonymous or fitting with recent topics, it doesn't score that high. (A similar cooperation of "C." and "B." can happen inside a robot with an expressive face and stuffed with sensors for noise and temperature and other things: with "C." working with a fixed absolute scale, "B." with a scale that is calibrated around the recent impressions, and together they work out how surprised/annoyed/etc. the robot's reaction to noise etc. is.) 3. The "Middle" also builds expectations like "B.", but the considered time frame is much bigger. The expectation of hearing a word again goes down over time like with "B.", but it isn't just slower decay. In the big picture the expectation goes down, but with some bumps on the way, so it isn't monotonic. The idea here is that there are situations in life that repeat with rhythms, so what goes into the expectation of "M." are questions like: What words do I usually hear at… this time of the day/yesterday/the same day last week/the same day one year ago? (For a robot with the right sensors we can add: What words do I usually hear when I'm… seeing that the sky or ceiling has this color/measuring this temperature/facing this cardinal direction/sitting/etc? All with non-monotonic decay. And we can also look for other correlations like how common it is to have this sensor impression this time of day/day of the week etc. and all of that adding a bit to how confused/bored/etc. the facial expression is.) We can also call these three Caspar, Balthazar, Melchior. The common words are listed in a database and have tons of tags attached like cute, gross, swear word (one word can have multiple tags) that get weighted together for an appropriate emotional response. Negation in the vicinity of a heard word strongly dampens its weight and the intensity of the reaction, as do words and formulations like "movie" or "just kidding" which suggest the word likely doesn't belong to a real-world situation. Talking in the past tense and using formulations like "long time ago" also dampens the reaction intensity. When somebody says that "X is long", what it actually means is that X is longer than some implicit reference standard. Likewise with heavy, fast, old… So, for the bot to make a comment of that sort requires that it builds up such a standard. The standard is strongly context-dependent, think of what "near" and "small" means to you when talking about animals and when talking about the planets. Often, talking about a thing conjures up a collection of things it belongs to and whether it appears to be heavy or big etc. strongly depends on how it looks in that set and also how it looks relative to other recently mentioned things. So, for some very common nouns at least there needs to be information in the database about typical size and so on. Since I'm lazy the database will have lots of holes. One common reference point for size and weight etc. will be an average human at the middle of life. Even just recently used numbers can serve as reference values (not very logical, but humans also do that). Several reference points get put on a line and then we look where on the line the mentioned thing is. I'm more partial to the median than the mean as the main reference point.
>>7352 (me) Here is a troubling sentence: "The dog ate the house." These words aren't rare and they often appear closely together (and in real life, the objects and the activity these words refer to also appear closely together). So, would the AI guess that it's a weird sentence? Maybe the database about conditional probability of adjacent words will make this sentence appear slightly weird, but that's about it. "Joe murdered John." – This will surely be detected as describing something horrible because of "murdered", but how about this one: "Joe hurled John from the top of the mountain." I don't see how an AI can flag such a sentence as disturbing if it only works with correlations from a text corpus and not by trying to model what's going on. Maybe it still works with a really big text corpus, but what if the murder is more creative and not explicitly referred to as murder? The (common) weakness of this chatbot is that it gives heavy weight to some supposed intrinsic meaning of words, little weight to the configuration of words, and even less weight to the social situation (we just hope that similar situations correlate well with same time of the day and whatever sensor data we have); whereas with real human beings, it's the other way around. Getting to a more human-like AI will be a crawl; in the meantime, why not play to the strengths of what a computer can easily do: Memorizing a huge amount of quotes and other texts and "googling" internally to recite from that, storing some historical factoids about every day of the year, stuff like that.
>>7352 >What is the most simple thing you can start with? There are some libraries for AIML with a lot of common dialog. Haven't tested them much, though. There mainly was a problem, that AIML 2.0 wasn't fully implemented in Python but only Java or something. Program-Y was the thing I wanted to try before I got somehow messed up: https://github.com/keiffster/program-y AIML uses regex, so it can find phrases or topics. Generally it will be necessary to combine it with other programs. Named Entity Recognition is something you might want. My problem was, I got to deep into looking into the fundamentals like starting to read a 900 page book on Speech and Language Processing, then getting stuck on mathematical notation, trying to learn some math, loosing motivation and getting distracted... I also wanted to look into Spacy, this could be interesting: https://spacy.io/ I ended up looking into SPARQL and RDF, to have a base for forming sentences based on knowledge. I'm just now working on my code to make it work well enough to load it up here, got my Pylint score up to 7.5, starting at 1.25 or something like that. It might be a mistake going for the harder parts first, it might be possible to build something with AIML that is at least somewhat responsive. There are also alternatives like Rivescript, which has a better syntax. I don't remember which issue I had with it. It would be great if it could export to AIML. Because there's also BitLibre which can import AIML, but also using other code and modules to access things like social media and some other services. It has a OpenSource SDK and OpenAPI. However, SDK means Java again and I tried their Bots using their App and found them to be as dumb as bread...
>>7355 Botlibre not Bitlibre and URL: https://www.botlibre.com/features.jsp
>>7352 >what it actually means is that X is longer than some implicit reference standard --> Wikidata and then learned how big certain things are, also from interacting with the world... >Since I'm lazy the database will have lots of holes You are not alone. Databases on common things can and should be shared and therefore can be build as a distributed work activity (forgot the right term for it). Wikidata and similar services already have a lot of the data, it "only" needs to be harvested and processed in the right way. Also - Ontologies: https://content.iospress.com/articles/applied-ontology/ao185 https://en.wikipedia.org/wiki/Web_Ontology_Language#Instances https://patents.google.com/patent/US8560483 https://en.wikipedia.org/wiki/Suggested_Upper_Merged_Ontology https://en.wikipedia.org/wiki/Mindpixel Welcome to the deepest of all rabbit holes... Just follow any link you want, it always goes deeper down... http://www.adampease.org/OP/ https://en.wikipedia.org/wiki/LOOM_(ontology)
>>7355 >>7357 (me, again) It's such a amount of stuff to look into, that trying to get an overview alone eats up a lot of time: https://en.wikipedia.org/wiki/Commonsense_knowledge_(artificial_intelligence) https://en.wikipedia.org/wiki/ThoughtTreasure https://www.w3.org/TR/rdf-primer/
This sounds like a fascinating and pretty encompassing idea Anon. Forgive me not giving a better response yet. It will take me a while to digest this and to come up with a cogent response that's likely to contribute something meaningful to the discussion. But I'll be thinking about this and trying to figure out how we can go about implementing it in efficient code!
Can an AI be made with it's own theory of mind?
Sorry, >>7355 and the later ones aren't from the same anon than >>7353 and the one before. I was just trying to use the same idea of putting (me) behind a later second response by myself, but then referred to my first with (me, again), which made it look like I'm the same anon *facepalm* :) So >>7355 and the following with links are responses to >>7352 and >>7353, his text are his own ideas and questions, just wanted to point to some existing ideas how to do that.
>>7364 Just use the name field when you want to 'self-identify' Anon.
>>7363 That's an interesting question Anon. Any general concept yet how one might go about forming that approach to things?
>>7365 Not necessary, just wanted to clarify that these postings came from two different people. >>7363 What is that supposed to mean? All in one Wikipedia page or one book? Guess not... As I said, 900 pages on one topic and a lot of other stuff. File related, but its 20 yrs old, there are certainly newer versions. I only made it till page 104 before I started doing other stuff. But I still think it's has usefull ideas in it, and plan to pick it up again one day.
>>7369 Speech and Language Processing An Introduction to Natural Language Processing, Computational Linguistics and Speech Recognition - D.djvu: https://files.catbox.moe/cij27q.djvu Source: Magnetlink, 2GB of books: https://files.catbox.moe/gmg1ls.txt
>>22 how the fuck do you hook up to the messenger api to have your waifu message you?
>>7382 Hi, I'm not sure if I can help. Is the messenger API something related to Windows or Android, or do you mean a specific messenger? What kind of AI or chatbot should send the messages and to what kind of program?
>>7352 > From Pandorabots.com/docs/integrations: > The importance of your bot’s talk logs in the bot development process goes back to a statistical trend named after American linguist George Kingsley Zipf. Zipf’s law explains how the frequency of certain words in natural languages relate to each other: >>Zipf’s law states that given some corpus of natural language utterances, the frequency of any word is inversely proportional to its rank in the frequency table. Thus the most frequent word will occur approximately twice as often as the second most frequent word, three times as often as the third most frequent word, etc. http://en.wikipedia.org/wiki/Zipf’s_law > Dr. Richard Wallace, the creator of Alicebot and inventor of AIML, discerned that this applied not only to individual words, but to phrases as well. This distribution pattern led to a key insight in chatbot development. By writing patterns and content to capture only the most common inputs being used, the developer could actually account for the majority of potential inputs. http://www.alicebot.org/articles/wallace/zipf.html
>>7382 If your question was about AIML, use the system tag: <category> <pattern>LIST</pattern> <template> <system>ls</system> </template> </category> 'ls' is for Linux, I think in Windows it's 'dir'. Just an example for a shell (command line) command. You can call other programs you wrote that way and they return something. This can be in one of your AIML files like ./basic_chat.aiml, then there is some startup file with <learn>basic_chat.aiml</learn> then you might have a run.py file with the line kernel.bootstrap(learnFiles = "std-startup.xml", commands = "load aiml b")
>>7417 I was looking into building a system to communicate between processes on Linux yesterday. Calling some script from AIML is easy, but having a program running and communicating with the AIML runtime is a bit harder. I'm probably going to use named pipes (FIFOs), but still have to figure out some details. I'm also not sure if this is the best way and if that would be working under Windows 10. But I decided to do it first in some way that works, if it's not to difficult, and then looking for better ways later. >>7415 Since the companies active in that area are rather into building systems where the intelligence is on their servers, it might be great if we had a lot of little programs doing some text analysis. Didn't want to discourage you, but it makes sense to look into existing open source code first, so that you don't put a lot of work into something that's already available. Also, databases should be build be code as much as possible, not by human curators.
>>7457 >building a system to communicate between processes on Linux yesterday The pipes and file 'mailboxes' approaches are a pretty universal mechanism for this going back at least to the '60's . A more modern approach that has a lot of benefits is MPI. The OpenMPI implementation of the idea is already widely used in supercomputing: https://www.open-mpi.org/ For networking of inter-process communications, there's a flavor of MPI called MPICH2 , probably the most generic approach around. https://www.mpich.org/ Of course, for in-process (aka inter-thread) communications, just use shared memory. This is also a universal concept. Good luck Anon!
>>7464 Thanks for that suggestion, I'll look into it. Though my current priority is easy implementation not speed. I'm doing it in Python...
>>7466 Yeah, these are systems approaches for high-performance, robust and scalable systems (much like robowaifus will require in the end, obviously). That basically necessitates using C or C++ to create your own systems. Don't know honestly, maybe look around for a Python interface to the AIML runtime (what's that btw)?
>>7468 AIML is a language to write a chatbot that uses previously written responses, but also allows then to combine them with data from other sources. It has a interface to the system, that's not the problem. I want to have a script running that has parsed data, and sends requested data to the runtime, which is also a Python program that handles the AIML part.
>>7471 I see. Well, if it's Python<->Python then that should be quite simple I'd imagine. I think some Anons created a basic text parsing algorithm in the index thread? Maybe that approach might work for you. >>7236 >>7242 >>7245
>>7472 Thanks, I think I'm going to use named pipes for now. There are other resources on the net I can look into, if that's not enough later. The parsing script in that other thread came from me. Which is also why there aren't any new postings there, I had other things to do, and we aren't really that many active members.
>>7473 >The parsing script in that other thread came from me. I see, thanks! I've been too busy atm to do more than basic planning, but we'll get that thread sorted out eventually Anon. Cheers.
>>6658 and following postings, in the thread about Elfdroid Sofie, are about AIML as well.
>>7513 thanks for the crossposts Anon, that's helpful. what would be even more helpful would be to help curate say, AIML posts, spread out across the board on our Library thread. >>7143 I mean, makes sense that it will be permanently helpful to everyone else to do it that way, rather than having your work buried deeply inside other threads & hard to find later.
>>7514 I don't think there is anything important about it, in the other threads. I might write a search script sooner or later, going through all the posts, if no one else does it first. This makes more sense than curating it only by hand. AIML should simply be one of the keywords or tags to define what a comment is about. If all common words are removed, this would also be one of the terms which would be left over.
>>7517 >This makes more sense than curating it only by hand I'll grant you mod privileges to edit the index posts in the Library thread yourself if you can think of a better way that will actually get the job done. This needs to be addressed.
>>7517 >>7518 Just to make myself perfectly clear: I'm not making a point about the AIML topic, but the fact we don't yet have a working index for all topics. If you see a need for an index listing regardless of topic, then please post a pair of links in the Library thread.
>>7519 Answer here >>7521
run.py v0.1 - runtime for a AIML bot this has only been tested under GNU + Linux (Raspian) Features: Imports all aiml files in the same dir and changes the start script to involve them. That's not really relevant, got this from some website. But it also writes all files in a file named knowledge_list. The idea is, to use that later in other programs. For example I plan to write a script which uses fuzzywuzzy to find the closest answer, if AIML doesn't find one. So the Definitive Answer from the * category will call a script which knows which files have been loaded and looks if one might fit. https://files.catbox.moe/j8gdpp.zip some AIML content: aiml-en-us-foundation-alice-master: https://files.catbox.moe/hx185b.zip from here https://github.com/drwallace/aiml-en-us-foundation-alice I included some of my basic_chat files as example in the run_py zip file. You might delete them, they are not good nor relevant.
Why I think highlighting/focus should come first: Consider some trivial activities you often do and then try to do them simultaneously, and I mean that literally and not that you frequently switch. People are terrible at multitasking. That means they have to focus attention to do something adequately (aside from walking and breathing), which naturally leads to the question: How do they reflexively switch focus? How complex can that decision be? It can't eat that much mental processing power, otherwise there wouldn't be much benefit to having a focus. A judgment that something is unimportant or not urgent can be a complex process only for something you have had in focus for a while already. For everything else it has to be very simple. Things that move pop out more than static things, among the moving things the accelerating things pop out and the things that move towards you. Unexpected colors pop out a bit. As do unexpected words. Grammar is overrated. I don't believe people actually do much proper grammatical parsing when listening, otherwise they would be much more irritated by screwed up grammar. I believe they only pay some attention to grammar when doing that is necessary for resolving ambiguities. People don't even remember the literal wording of an exchange they had five minutes ago, even if the exchange is important to them, they only remember the gist. Consider that spoken language is more loose with grammar, people mumble and there are noises everywhere, so the AI will have to work with that. "Yesterday I *inaudible* to *inaudible* to get some *inaudible* and new socks." The parts have to work together. If one builds what steers the facial reaction to words and relies on a premade black box entirely handling the talking, then the whole can be weaker than the parts. Imagine a cheery voice saying how funny something is coming out of a horrified face. (Seeing the output text from the imported program and reacting after that won't quite solve the discrepancy IMHO, especially not if you don't want the AI to talk that much.) Something that provides tags for words (and tags for tags) and a fact database is fine. Looking at the suggestions by >>7357 >>7358 >https://en.wikipedia.org/wiki/Mindpixel <Chris McKinstry died of suicide on 23 January 2006 and the future of the project and the integrity of the data is uncertain. <Other similar AI-driven knowledge acquisition projects are Never-Ending Language Learning and Open Mind Common Sense (run by MIT), the latter being also hampered when its director died of suicide. That doesn't sound very inspiring… >Suggested Upper Merged Ontology, ConceptNet, ThoughtTreasure These look good. Big and free. Better links than Wikipedia: http://www.adampease.org/OP/ https://conceptnet.io/ https://github.com/eriktmueller/thoughttreasure Especially TT looks interesting – all one guy and the scope of that project looks like something Terry Davis would approve.
>>7607 >Why I think highlighting/focus should come first I'm interested in all these things, but I'll start with something I can work with. Some code. Without conversation, there's no data. With some AIML we can do that. Then making it easier for us to write this, then other programs can do it as well. Then we need them to become good at that and take more and more into consideration. These things should often run in parallel. Negotiations in the background, programs talking to programs. Only the result will come out as speech. Attention is something very much at the beginning of a response, but this doesn't mean we would need to solve that first. Though, feel free to do so if you wish so and are able to. >I don't believe people actually do much proper grammatical parsing when listening Okay, but when forming sentences to respond, it's important. Receiving precise information also often requires grammar. >don't remember the literal wording of an exchange they had five minutes ago Sometimes they do more or less, depends. So this is about the memory part. Yes, that's one thing to keep in mind. >the facial reaction to words Yes, but that's rather obvious. >Seeing the output text from the imported program and reacting This is about the right synchronization. The output text are her thoughts. Of course, there also need to be reflexes and yes, reactions to sentiments. Good idea with tagging words. But also keep in mind, that they should be speak at some point. So there will be a little delay between thought, which might be a fast response internally, and the output going actually out as voice. >Better links than Wikipedia We'll need to use everything we can get. Wikidata, but also all kinds of Ontologies. Parsing Wikipedia would also be great. There is and will be plenty of areas to experiment. I hope we'll really have people doing that, not just dreaming around. OT: Btw, the second of the aforementioned suicides of the guys working on Ontologies was because back pain. Lesson: Don't lift heavy furniture when working in IT most of the time. Also, make sure to get good painkillers when needed...
>>7605 Of course, I had to forget something. You'll need to uncomment the function call run_kernel() towards the end of the run.py file to use it. Or type in run_kernel() every time to get the chatbot kernel running, that's the loop handling to listen and to respond. I also forgot to mention that this works with python-aiml, which you would need to install first. It's most likely in your distros repository, or you might use 'pip install python-aiml' in your shell otherwise, or get it from wherever you normally download programs. My todo list and plan for that script is at the end of it: # start option without run_kernel(), getopts # Normalisation of inputs, with external lib? # tracing responses, for debugging (Pandorabots does it somehow) # remembering already answered questions ... # maybe by creating new categories, then learning on the fly # links to some inventory, probably graph or at least lists # maybe learning certain files as soon as they appear # using learning for temporary overrides using priorities ^,_,# # note: HELLO # > HELLO _ > HELLO THERE > HELLO ^ > HELLO * # let the run script call several bots at once # run.py should self-construct, based on options and existing files I found that I have to improve the run.py script anyways, since the way I wanted to update the knowledge_list while talking to the bot didn't work out.
We need some todo list for the whole chatbot/mind thingy. People writing about their ideas like in >>7607 is great, but we should put them into some todo-list with short terms at the end. So we can have an overview and talk about how actually implementing this. Could also be in part go into the index of the board. I start this here, but it goes beyond "chatbots": - topic modelling, knowing what a conversation or sentence is about - context awareness based on various (unlimited) factors, based on things like sensors, knowledge, time, and conversational input ... - fast reaction to sentiments (tags for words, and phrases?) - way of switching responses based on context, using other files for fast responses - conversational log to know what has been said already - switching perspectives, e.g. when people talking about her - vage long term memories of conversations - ability to look objects and other named entities up in databases - have a basic estimation and model about the world, e.g. size of things, relations - highlighting/focus of activities and other things - (awareness to which extend the bot can move or do something else without risking anything) - inventory, probably graph or at least lists e.g. about belongings or presence of persons - using memory, logs and inventories for avoiding to make (unintentional) false claims - using something like GPT-2/3 to anticipate next words or where the talk is headed - common questions like "Do you know about..." should know the right way to look for data and find it very fast. - theory of mind, modelling what others think - curiosity, planning ahead
>>7615 More specific to do list, for anyone who want's things to be done and speeding up, without need of a 3D printer, CNC machines, expensive CPUs or cards: - Checking out AIML based programs if we can use them, or for ideas to copy, .... -Checking out the functionalities of web services like Pandorasbots for ideas we need in local software e.g. tracing - Experience with software that might be useful: Spacy, Rasa, NLTK, Reasoner, Prolog, neural networks eg. Talk2Waifu, ... - Scripts to parse subtitles and maybe find specific scenes or dialog, like such ones before people kiss or sleep with each other. Also in general to detect patterns in answers of some pattern in a question. - Ideas (based on experience) for how to harvest infos from GPT-like or other systems, finding use cases. Like generating possible answers, then replace "Named Entities" with placeholders. - Writing simple programs to automatically create responses or change sentences. I played around with a script to generate questions to compare two things related to each other to find out differences. (Didn't finish it yet, though. I got to ambitious.)
Fun little chat about waifus+maths going on over at our friends on /f/. https://anon.cafe/f/res/4.html#1369
Open file (3.77 MB 1920x1080 Cyberpunk_Chaos.jpg)
>>7605 I wrote a little script to go though the categories of aiml files, which it can take in from a file or if the functions are imported by the runtime then it can take the infos from there. The script searches for best category based on some input using fuzzy logic and returns the best find and a similarity score, which can then be fed back to the bot. Or in other words, it finds the input which could have been meant and returns that, which can then be fed back to the system returning the answer. The data could as well be used to do more advanced analysis to find out what was meant, and creating a response. Currently it's rather something to catch typing errors. File: https://files.catbox.moe/4ztqn1.py :~/AIML $ python3 -i fuzzy_cats.py >>> test_loop() message: Huh ('Huh', 'HUHU', 86) message: Noooo! ('Noooo!', 'NO', 57) The runtime in >>7605 already does export the knowledge_list file, but has no way to use the corrected responses yet. The improved version of run.py still needs some testing. But fuzzy_cats.py should work as shown above, if it's in the same dir (and Linux). I don't know if it works in the embedded Linux in Win10, someone would need to test it. My run.py isn't necessary in any way, just create a file with the name knowledge_list in the same dir with at least one url to an aiml file on your disk (not online). It might by possible to get the categories in other ways in python-aiml, but I couldn't find a good tutorial. help(aiml) gives back some contents, which can be used like e.g. help(aiml.Kernel), but the descriptions are quite brief.
>>7795 Thanks for updating us about your system, seems like it will be very helpful once it's finished and everything. >Currently it's rather something to catch typing errors. For going through any collection of online postings, then that's a very important 'something'! :^) Good work so far Anon, keep working on it.
>>7795 The definitive answer written in some aiml file here is <category> <pattern>*</pattern> <template> Sorry, but I'm new... </template> </category> Then the code in the runtime to address this is just this: else: kernel_response = kernel.respond(message) if kernel_response != "Sorry, but I'm new...": print(kernel_response) else: _, best_result, score = fuzzy_response(message) if score > 50: print(kernel.respond(best_result)) elif 50 > score > 40: print('Hmm, not sure what you mean. ' + kernel.respond(best_result)) else: print("Hmm, not sure what you mean. Something about '" + best_result.lower().strip('*') + "' ?!?") It catches the response "Sorry, but I'm new" and tries do find something better. If the score is to low it still answers with the same standard responses for not knowing a good answer. If we had some entity recognition then it could ask better questions about what was meant. Also a script to recognize grammar and switch the person would be a good next step. Like if the question was something about "her" then the constructed answer should be about "me". Another thing is to include answers from GPT/Talk2Waifu, but check them for plausibility first. Then the whole kernel shouldn't be like one side says something, the other side responds, but allowing for answers to stall before the real answer has been constructed.
>>7795 There's an error in fuzzy_cats.py which doesn't show while using the test_loop() but if the functions are imported into e.g. the runtime. In line 52, in "def fuzzy_response" the empty list behind pattern_list needs to be replaced with: pattern_list=(get_current_knowledge())
Open file (60.47 KB 640x800 fire_waifu_01.jpeg)
Open file (23.29 KB 480x360 fire_waifu_02.jpeg)
I'm added a nice little line to my yet nameless AIML bot, which makes "her" "start a fire in the chimney" when I tell her that "I need to relax" (it's just start playing a fireplace.mp3). Not a very special or elaborated idea, but I like the result. This made me think about her needing to analyze her the responses which I put into the system. Like looking what a chimney is, and maybe asking questions about. That's one thing I'm now working on. I want the system know what it does, by me putting in some context or the system learning from some source or asking me as part of our conversations. She should also know that in this case it's only pretend, since she can't do anything physical and I might even not have a chimney or any fireplace. <category> <pattern> I NEED TO RELAX </pattern> <template> Oh, I'll make some fire in the chimney then. <system> mocp -l '/media/pi/someDisk/Relax/Burning Fireplace with Crackling Fire Sounds (Full HD)-1.mp3' </system> <system> mocp -o REPEAT </system> </template> </category> <category> <pattern>CAN YOU DEFINE *</pattern> <template> <system> echo <star/> | python3 ./helpers/ask_definition.py</system> </template> </category> The other new category is calling a file in a sub-folder to tell me about some definition of something. Calling it that way works, but it always takes quite a while till I get a response. Not a surprise, since it loads the Wordnet corpus every time again. I want to call the function in ask_definition.py from my runtime (>>7605), so I'll import it and optimize it from there. I was also thinking how to put in stalling responses. Currently it doesn't work. The system first does all the work, then it responds. The whole point of using AIML is having very fast responses, then maybe doing something in the background and then adding another response. Before we even don't have that, all fancy talk about a human-like mind is just pie in the sky. I'll most certainly will move outside of the AIML standard for doing the stuff I want, which will make my aiml files incompatible with other implementations. First or in parallel I shall look through the current standard, I'm still on it. Also I need to try AIML 2.0, since pyaiml only uses version one. >>> run_kernel() Enter your message >> Can you define winter for me One definition of it is ...the coldest season of the year; in the northern hemisphere it extends from the winter solstice to the vernal equinox Enter your message >> Can you define chimney for me One definition of it is ...a vertical flue that provides a path through which smoke from a fire is carried away through the wall or roof of a building Enter your message >> I need to relax Oh, I'll make some fire in the chimney then. (fireplace.mp3 starts playing) I already worked on the function to find the right definition by trying to find some context. Since there is fire in the response, she should use that to filter out the definition of chimney which are about fire. Better would be, to also catch the context 'fireplace' which is part of the title of the mp3 file. She also need to remember things she looked up and of course things I already explained to her. At some point soon I'll have to finish my first draft of the graph related functions and wire that in somehow. But I also want to use some simpler databases for now, maybe just storing some already looked up definitions in a list and load it every time the program starts.
>>7909 >But I also want to use some simpler databases for now, maybe just storing some already looked up definitions in a list and load it every time the program starts. Yes I think that's a good idea as a way to at least optimize the performance of things she's already seen before. BTW, I think you're making good progress Anon. Just be patient, don't rush & get frustrated. Just take your time and understand everything you're doing. Do it for her.
>>7912 > don't rush & get frustrated. Thanks for your concern, but the chatbot "starting a fire in the fireplace" solves the problem of hearing my neighbors fighting or having children yelling around. Which was the only problem at that point. I figured it would be handy to have it there as a command while testing it. Then it turned out, it makes the whole thing feeling alive for the first time.
>>2505 John Searle's argument is just a superficial appeal to intuition. A complex task may be split up between several people, with none of them really grasping what they as a group are doing. But they are still doing it. The group has the competence. You can look at some tiny part of a highly complex machine and then convince yourself that this part is almost nothing compared to the complex action that the machine is supposed to do, and you can do look at the other parts in isolation, does this prove that the machine can't work? Following Searle's line of argument, one would have to conclude that he is just a statue made of meat and not a real human because it is unbelievable a random cell from his noggin got anything even faintly like human personality in it. It's just a variant of the Sorites paradox. >>7363 You must think of something akin to an adult's theory of mind to ask this. It isn't either fully there or not. Toddlers and dogs also have some crude concepts of other minds. So the question is not does the AI have it, but how much does it have. The chatbot of ThoughtTreasure already has some mind modelling. This is from page 285 of Erik Mueller's book "Natural Language Processing with ThoughtTreasure" (written in 1998): >The ontology of emotions used here is based on 22 basic emotion types identified by (Ortony, Clore, and Collins, 1988)*. These have been extended to 83 emotion concepts associated with 651 French and English lexical entries. "The cognitive structure of emotions" is the title of that 1988 book. TT tries to figure out what goals people have and whether they fail at that, and infers from that whether they are a bit frustrated. But wait, there's more: It also tries to figure out emotional impact along social connections: When it seems that person A has some goal X and that some other person B makes X happen, it assumes A is grateful towards B (and likewise B preventing X generates resentment). It also takes in plain statements about who likes or dislikes whom and guesses how something happening to a person emotionally affects that person's friends and foes. >>7915 Now the next step is to implement this exchange: "The _ is/are really annoying." – "I will shove the _ into the fire, my lord." *fire gets louder for a moment*
>>7935 Thanks for reminding me of ThoughtTreasure once again. I need to look into that again. I once went on days or even weeks long binge reading trips through Wikipedia and it's links to other pages to get an overview over all kinds of relevant concepts and existing or historic projects, but It's really a lot. >theory of mind There's a great book on that topic: Denial. Self-Deception, False Beliefs, and the Origins of the Human Mind by Arki & Brower (of course I forgot most of it already, but I might listen to the audiobook again, some time soon, when I have some work to do) Theory of Mind is about creatures being able to put themselves in the shoes of others. Even our closest relatives, the big apes, suck at that. They care for example only for their own offspring and are less capable than human toddlers at social skills. As I recall, Elephants might come closest to us humans in that regard. Creatures need to model others people minds to anticipate their behavior, which is also crucial for cooperation on our level. The lack of it might even be part of an explanation to the Fermi Paradox (though, I don't want to go OT here). > "I will shove the _ into the fire, my lord." I think that way quite often, but the system should not claim to do something what it can't do, or at least be aware of it being some joking pretend. I wan't to state the skills at one point, and then it would be aware of what it can and can't do. Also, it's Christmas, we don't put anyone into the oven on Christmas. The smell would ruin the spirit.
>>7935 (me) >>7943 According to Mueller's book, TT can parse plain-language questions (like whether bread is food, whether elephants are purple, who created Bugs Bunny) and reply in plain language, it can even make guesses about words that aren't in its dictionary (an example by Mueller is asking what a dogette is and TT guesses it's a small dog), but the most interesting stuff is the guessing of emotional states: An example dialogue has the user telling TT that J. is an enemy of F., that J. becomes the president of France, and that F. is happy for J. TT replies: "True, he succeeds at being the president of France. But I thought that he was an enemy of…" When there's a lack of direct statements about whether two people are friends, it still tries to figure out how one person might feel about a good or bad thing happening to another person by looking for indirect social relations between the pair; and if doing that doesn't help, it tries guessing by looking for data about the two having similar attitudes about some issues (page 189). It of course does not have as much common sense as even a human tween and it occasionally craps itself in the given examples, but I'm willing to say it does have a bit of a theory of mind for doing this. The output lacks flavor and personality. So it seems the way forward for the impatient robowaifuist is to just make a dumb small personality program that lets TT do 99 % of the work by giving it the user input to parse, then taking TT's reply and adding a bit of flavor to that before displaying the result to the user. Ideally for the lazy programmer is if the user essentially understands and replies to the text as if the flavor bits had not been added in the first place. But that interaction pattern is not something one can rely on. One problematic case is that the intended flavor bits completely change the meaning of the AI's output from something reasonable to nonsense. I think avoiding that in almost all situations is pretty easy: Just keep the flavor bits short and don't add negations to TT's sentences. Putting the flavor bits only before or after the TT output is far less risky than making multiple insertions right into its sentences. The bigger problem is this: What if the user's next input specifically reacts to the flavor bits, the flavor bits that TT doesn't even know about? The solution of a genius would be to scrap the idea of two divided programs and do a heavy modifications of TT, requiring a very deep understanding of its structure. I'm probably too dumb for that so I look if there's a way to keep the concept working of just having a silly little program with personality sitting on top of an already existing big program that is treated like a black box. I'm seeing three approaches for that: 1. The laziest solution: Pushing the problem onto the user. Just show the user which part comes from which of the two programs. If their output is on a screen, all the flavor bits can be done in cursive, for example. If their outputs are done with audio, there can be two jingles to signal which program is talking. The user gets warned in the readme that everything the user says will get hauled off to TT and that TT doesn't know about the flavor bits, so the user can avoid communication problems by avoiding references to the flavor bits. I think this "solution" feels lame and sterile. Activating this sort of marking to look under the hood should be an option, but I don't like it as something always on. 2. More work: The small personality program does not always send the full user input to TT, but distinguishes parts of the user input that are reactions to flavor bits. It decides to handle such an input either completely by itself or sends off a modified input without these references to TT. How to write a program that is capable of recognizing which parts of the user input refer to the flavor bits? Look at it the other way around. You can make the flavor bits easy to distinguish from the rest by having the small program try to generate flavor bits only after looking at the TT answer, with the constraint to not repeat a single word appearing in there. This should make the distinction much easier. 3. The user can actually send feedback that is guaranteed to only be seen by the personality program. For a robot, I'm thinking of headpats for approval and shoulder-knock for disapproval. For the chatbot version, that means a headpat button and a shoulder-knock button. >the system should not claim to do something what it can't do, or at least be aware of it being some joking pretend. Well… Mueller shows at the end of the book that TT answers to questions about its size with a number of bytes, but that it also thinks of itself as a human person and not a bot. Originally it didn't have that illusion, but it was changed to that as the laziest possible fix of some parsing bug O_o
>>7950 First: This exists since 1998. Just let that sink in for a moment ... The description sounds like it's using something a reasoner or Prolog. >the flavor bits that TT doesn't even know about? Well, you read the book. Aren't the assertions and other knowledge stored in a database which can be expanded? It's actually on Github. I'll download it.
>>7956 Interesting diagram Anon. Can you tell use a little more about it? What does it really mean?
>>7958 (I'm not the one who posted the diagram.) The green dots show what parts of ThoughtTreasure can do. The diagram says that it can't do probalistic reasoning, but there is a lot of guessing inside of the system with answering agents generating candidate answers with an estimate how well they understood the question and so on, it's just that the system then just runs with what seems most likely as if that were perfectly valid, instead of translating these estimates into a part of the response to the user. Deductive reasoning goes from a premise (or several) to conclusion. If every premise is right and the rules of logic are followed, the conclusions will be right, and computers can digest huge sets of premises. This can be done in a very precise way and computers can be better at that than humans. Computer-assisted proving in math is a thing. Inductive reasoning goes from experience to finding generalities, or rather: guessing generalities. Abductive reasoning tends to be even more fuzzy and just guesses from the observation of B and from the assumption that A causes B that A has happened. Non-monotonic logic can be explained by what monotonic logic is: In monotonic logic, you have a pile of assumptions and a pile of conclusions you generate from your assumptions. As you are adding new things to your pile of assumptions, your pile of conclusions can only grow. In monotonic logic, an established conclusion is not thrown out unless you delete something in your assumption pile that was necessary for generating the conclusion. In non-monotonic logic, new assumptions can add qualifications to other assumptions, so adding new assumptions can shrink your pile of conclusions. For example, you can have an old assumption that birds can fly and then add a new assumption that penguins are birds that can't fly. A bot with a reasoning program using only monotonic logic can still handle the penguin case by rewriting old assumptions instead of just adding a new one to the assumption pile, but the way humans talk and argue surely is the non-monotonic way. So it's likely that you get to an awkward human-bot interaction in such a situation.
>>7959 Neat. Thanks for taking the time to break that down Anon. I particularly like the monotonic vs. non-monotonic Assumptions->Conclusions explanation. That helps me in trying to think of approaches to encode that kind of behavior into an automated software system.
Open file (91.60 KB 1080x868 1611331602673.jpg)
Hmm...... pdfpiw.uspto.gov/.piw?PageNum=0&docid=10853717&IDKey=6E72242A6301&HomeUrl=http%3A%2F%2Fpatft.uspto.gov%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO2%2526Sect2%3DHITOFF%2526p%3D1%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsearch-bool.html%2526r%3D31%2526f%3DG%2526l%3D50%2526co1%3DAND%2526d%3DPTXT%2526s1%3Dmicrosoft.ASNM.%2526OS%3DAN%2Fmicrosoft%2526RS%3DAN%2Fmicrosoft >=== -disable direct click-through to US govt site
Edited last time by Chobitsu on 01/22/2021 (Fri) 19:59:19.
>>8176 Lel, what's next for Micro$hart, bringing the prophet Samuel back from the dead. BTW, we support pdfs on /robowaifu/ lad.
>>8176 This sounds good, although part of me thinks it would be very sad in practice. I mean, if they are training the chatbot based on the deceased social media profiles, then you'd be left with a bot who sounds like your loved one, but is trapped into only remembering the phase of their life that they recorded on social media. As a result of this, I doubt very much their personality would be accurate. I also considered using machine learning to "resurrect" the voice of a loved one, in a similar way to how you can find "deepfake" voices of Leonard Nimoy and Sir Christopher Lee online. However, hearing the slightly distorted and off-tone voice of a dead family member repeating words that you type...I think it would just feel ghostly and wrong. Especially in the early stages of development when the voice is inhuman and full of static. *shudders*
>>8176 Saw something similar being developed by the US military over a decade ago for use on the children of deployed personnel in cases where their parents aren't available or unwilling to interact with their children >The challenge is to design an application that would allow a child to receive comfort from being able to have simple, virtual conversations with a parent who is not available "in-person". http://cogsciandtheworld.blogspot.com/2008/12/when-daddys-tour-in-iraq-is-extended.html Most service members see producing human resources as a duty they perform for the state(or as a means for better housing/overseas postings/career advancement) so this might be a better alternative than the typical abdicating parents who aren't present in a young child's life.
>>8176 For all I know, in USA patents can be granted for ideas, it is not necessary that they implement it first, and the patent isn't for the implementation but the idea. This is awful, especially in the software sector. It also isn't necessary to be very novel, to get a patent, especially if it isn't challenged. This idea isn't new, and it's very obvious. For example, I mentioned something like it in the thread about what happens to waifus after our death. I'm quite sure, others had this idea before and laid it out more clearly in some book or article (think of Transhumanists and the idea of uploading) or SciFi (Person of Interest comes to mind). There should be NGOs keeping track of patents, and challenging them if someone tries to patent something so obviously being not novel or innovative.
>>8184 >For all I know, in USA patents can be granted for ideas, it is not necessary that they implement it first, and the patent isn't for the implementation but the idea Correct on every point. >NGO Not sure about calling them an NGO, but there are some watchdog organizations that track this kind of thing. The EFF is probably the most well-known one. But even before the Bolsheviks overthrew the US Administration, palm-greasing was obviously an important part of governmental processes in the US (and elsewhere) ofc. So, when Concerned Org A expresses concerns or even outrage at say, a patent for the bit overlay process of a mouse cursor in a GUI (an actual software patent) versus say, IBM who quietly siphons off oh, US$500k (back when that meant something) from their slush-funds into the coffers of the responsible authorities for granting the patents, well...
>>8186 Suddenly China copying and ripping off Western designs and inventions doesn't seem so bad.
hi im glad and support what your trying to do
>>8462 Hi there Anon. Feel free to introduce yourself in our Embassy thread if you'd care to. >>2823 >hi im glad and support what your trying to do Thanks, hopefully you mean that in deed and not just word. There are literally dozens of topics that could use more focus here. Look around and just start working on learning about one or two you find the most interesting/feasible.

Report/Delete/Moderation Forms
Delete
Report

Captcha (required for reports)

no cookies?