liveBook · Manning

Char-rnn

As explained in Sutskever's List

char-rnn is a two-layer stacked long short-term memory model that generates text one character at a time.

Andrej Karpathy’s char-rnn made recurrent text generation tangible: train on essays, then generate new prose one character at a time. His Paul Graham generator used about 1 MB of concatenated startup essays—roughly one million characters. section 4.1

The model was a two-layer stacked LSTM with 512 hidden units per layer, about 3.5 million parameters, and dropout set to 0.5. At generation time, it sampled each next character from a probability distribution. Lower sampling temperatures made the output more predictable and repetitive; higher ones made it more creative but less coherent. section 4.1

Startup advice, almost

The generated prose mentions investors, fundraising, and acquirers, yet its sentences fail to form coherent advice. Familiar vocabulary is not the same as a sound argument. section 4.1

How Sutskever's List covers it

How deep it goes
Specifies architecture, corpus size, sampling, and temperature effects without deriving LSTM internals.
Examples
Uses generated Paul Graham-style startup advice to contrast recognizable terminology with incoherent sentences.
What you can do after
Evaluate/understand it by relating sampling temperature to repetition and coherence in generated text.
How it connects
Connects recurrent neural networks, LSTMs, character-level language modeling, dropout, and temperature-based sampling.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Sutskever's List. The section links point to the parts of the book it draws on.