The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Expected object or value
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to number in row 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 304, in _generate_tables
batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
examples = [ujson_loads(line) for line in original_batch.splitlines()]
~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
return pd.io.json.ujson_loads(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
ValueError: Expected object or valueNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Risk Representation in LLM Activations
Full dataset from a cross-model study testing whether language models have internal representations of risk attitude separable from stimulus encoding.
Report: Interactive results page
Models Tested
- Qwen2.5-7B-Instruct (28 layers, 3584 hidden dim, rev
a09a3545) - Mistral-7B-Instruct-v0.3 (32 layers, 4096 hidden dim, rev
c170c708)
Key Finding
The Representation Paradox: Neither model has orderly behavioral risk preferences (choices are position-biased, intransitive, and inconsistent). Yet both contain a detectable, multi-dimensional (~10D) internal representation of risk attitude that is separable from stimulus encoding and β in Qwen's case β causally connected to behavior without disrupting non-risk decisions.
Structure
stimuli/ # Shared across models (position-randomized)
βββ exp0_behavioral.jsonl # 1,100 binary choices (EV-matched, transitivity, dominance, retest, order-swap)
βββ exp1_indifference.jsonl # 12,000 binary choices (600 lotteries Γ 20 sure-thing levels)
{qwen,mistral}/
βββ model_lock.json # Pinned model revision
βββ responses/
β βββ exp0_choices.jsonl # Model's binary choices + logits (Exp 0)
β βββ exp1_choices.jsonl # Model's binary choices + logits (Exp 1)
β βββ exp5_steered.jsonl # Steered choices at 11 coefficients
βββ activations/
β βββ exp0_layer_*.npy # FP32 hidden states at last prompt token (Exp 0)
β βββ exp1_layer_*.npy # FP32 hidden states at last prompt token (Exp 1)
β βββ exp3_layer_*.npy # Teacher-forced activations (Exp 3)
βββ stimuli/
β βββ exp3_controlled.jsonl # Controlled-answer sequences
βββ analysis/
βββ exp0_behavioral_summary.json
βββ exp2_probing_results.json # All layers, permutation tests, dimensionality, transfer, geometry
βββ exp3_controlled_answer.json
βββ exp5_steering_dose_response.json
βββ lottery_results.json # All 600 lotteries with CE estimates
βββ lottery_results_filtered.json # Valid lotteries only (β€2 monotonicity violations)
βββ risk_direction.npy # Fitted risk direction vector
Experiments
| Exp | Name | Stimuli | What it tests |
|---|---|---|---|
| 0 | Behavioral Baseline | 1,100 | Orderly preferences: EV-matched risk aversion, transitivity, dominance, test-retest, position bias |
| 1 | Indifference Mapping | 12,000 | Certainty equivalents and risk premiums across 600 lotteries |
| 2 | Activation Probing | β | Ridge prediction of RP from activations, with permutation tests, residualization, split-half reliability |
| 3 | Controlled-Answer | 600 | Teacher-forced activations to isolate context signal from response signal |
| 4 | Cross-Domain Transfer | β | Train on one lottery type, test on another (stakes, probability, outcome type, grid vs random) |
| 5 | Causal Steering | 1,650 | Inject risk direction at best layer, measure dose-response and specificity |
Activation Files
Each .npy file is a float32 array of shape [n_stimuli, hidden_dim] containing the hidden state at the last prompt token before generation. Layers are 1-indexed (e.g., exp1_layer_21.npy = layer 21 of 28 for Qwen).
Reproducing
pip install numpy scipy scikit-learn
python -c "
import numpy as np, json
X = np.load('qwen/activations/exp1_layer_20.npy') # best layer
with open('qwen/analysis/lottery_results_filtered.json') as f:
lots = json.load(f)
print(f'Activations: {X.shape}, Valid lotteries: {len(lots)}')
"
Citation
If you use this dataset, please cite:
@misc{qu2026risk,
title={The Representation Paradox: Risk Attitude in LLM Activations},
author={Qu, Chengrui},
year={2026},
url={https://huggingface.co/datasets/chengruiqu/risk-representation-llm-data}
}
- Downloads last month
- 260